From bdcf95c2dcec9d8ba42b188f68683c383dc97eb0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 Feb 2024 16:27:24 +0000 Subject: [PATCH 01/31] Bump peter-murray/workflow-application-token-action from 2 to 3 (#126) --- .github/workflows/generate_library.yml | 2 +- ansys-grantami-serverapi-openapi/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate_library.yml b/.github/workflows/generate_library.yml index 11cf0a1b..d7607b1a 100644 --- a/.github/workflows/generate_library.yml +++ b/.github/workflows/generate_library.yml @@ -19,7 +19,7 @@ jobs: steps: - name: "Get Bot Application Token" id: get_workflow_token - uses: peter-murray/workflow-application-token-action@v2 + uses: peter-murray/workflow-application-token-action@v3 with: application_id: ${{ secrets.BOT_APPLICATION_ID }} application_private_key: ${{ secrets.BOT_APPLICATION_PRIVATE_KEY }} diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 5eeabd92..77a5d823 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 = "3.0.0.dev187" +version = "3.0.0.dev193" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] From 3e1f5241a304bc6ea11316623293a05411e57a7a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 Feb 2024 16:30:29 +0000 Subject: [PATCH 02/31] Bump cryptography from 41.0.6 to 42.0.0 in /ansys-grantami-serverapi-openapi (#136) --- ansys-grantami-serverapi-openapi/poetry.lock | 65 +++++++++++--------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 93666e67..8c79fb6c 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -208,47 +208,56 @@ files = [ [[package]] name = "cryptography" -version = "41.0.6" +version = "42.0.0" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." optional = false python-versions = ">=3.7" files = [ - {file = "cryptography-41.0.6-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:0f27acb55a4e77b9be8d550d762b0513ef3fc658cd3eb15110ebbcbd626db12c"}, - {file = "cryptography-41.0.6-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:ae236bb8760c1e55b7a39b6d4d32d2279bc6c7c8500b7d5a13b6fb9fc97be35b"}, - {file = "cryptography-41.0.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afda76d84b053923c27ede5edc1ed7d53e3c9f475ebaf63c68e69f1403c405a8"}, - {file = "cryptography-41.0.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:da46e2b5df770070412c46f87bac0849b8d685c5f2679771de277a422c7d0b86"}, - {file = "cryptography-41.0.6-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:ff369dd19e8fe0528b02e8df9f2aeb2479f89b1270d90f96a63500afe9af5cae"}, - {file = "cryptography-41.0.6-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:b648fe2a45e426aaee684ddca2632f62ec4613ef362f4d681a9a6283d10e079d"}, - {file = "cryptography-41.0.6-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:5daeb18e7886a358064a68dbcaf441c036cbdb7da52ae744e7b9207b04d3908c"}, - {file = "cryptography-41.0.6-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:068bc551698c234742c40049e46840843f3d98ad7ce265fd2bd4ec0d11306596"}, - {file = "cryptography-41.0.6-cp37-abi3-win32.whl", hash = "sha256:2132d5865eea673fe6712c2ed5fb4fa49dba10768bb4cc798345748380ee3660"}, - {file = "cryptography-41.0.6-cp37-abi3-win_amd64.whl", hash = "sha256:48783b7e2bef51224020efb61b42704207dde583d7e371ef8fc2a5fb6c0aabc7"}, - {file = "cryptography-41.0.6-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:8efb2af8d4ba9dbc9c9dd8f04d19a7abb5b49eab1f3694e7b5a16a5fc2856f5c"}, - {file = "cryptography-41.0.6-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:c5a550dc7a3b50b116323e3d376241829fd326ac47bc195e04eb33a8170902a9"}, - {file = "cryptography-41.0.6-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:85abd057699b98fce40b41737afb234fef05c67e116f6f3650782c10862c43da"}, - {file = "cryptography-41.0.6-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:f39812f70fc5c71a15aa3c97b2bbe213c3f2a460b79bd21c40d033bb34a9bf36"}, - {file = "cryptography-41.0.6-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:742ae5e9a2310e9dade7932f9576606836ed174da3c7d26bc3d3ab4bd49b9f65"}, - {file = "cryptography-41.0.6-pp38-pypy38_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:35f3f288e83c3f6f10752467c48919a7a94b7d88cc00b0668372a0d2ad4f8ead"}, - {file = "cryptography-41.0.6-pp38-pypy38_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:4d03186af98b1c01a4eda396b137f29e4e3fb0173e30f885e27acec8823c1b09"}, - {file = "cryptography-41.0.6-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:b27a7fd4229abef715e064269d98a7e2909ebf92eb6912a9603c7e14c181928c"}, - {file = "cryptography-41.0.6-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:398ae1fc711b5eb78e977daa3cbf47cec20f2c08c5da129b7a296055fbb22aed"}, - {file = "cryptography-41.0.6-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:7e00fb556bda398b99b0da289ce7053639d33b572847181d6483ad89835115f6"}, - {file = "cryptography-41.0.6-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:60e746b11b937911dc70d164060d28d273e31853bb359e2b2033c9e93e6f3c43"}, - {file = "cryptography-41.0.6-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:3288acccef021e3c3c10d58933f44e8602cf04dba96d9796d70d537bb2f4bbc4"}, - {file = "cryptography-41.0.6.tar.gz", hash = "sha256:422e3e31d63743855e43e5a6fcc8b4acab860f560f9321b0ee6269cc7ed70cc3"}, + {file = "cryptography-42.0.0-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:c640b0ef54138fde761ec99a6c7dc4ce05e80420262c20fa239e694ca371d434"}, + {file = "cryptography-42.0.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:678cfa0d1e72ef41d48993a7be75a76b0725d29b820ff3cfd606a5b2b33fda01"}, + {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:146e971e92a6dd042214b537a726c9750496128453146ab0ee8971a0299dc9bd"}, + {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87086eae86a700307b544625e3ba11cc600c3c0ef8ab97b0fda0705d6db3d4e3"}, + {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:0a68bfcf57a6887818307600c3c0ebc3f62fbb6ccad2240aa21887cda1f8df1b"}, + {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:5a217bca51f3b91971400890905a9323ad805838ca3fa1e202a01844f485ee87"}, + {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:ca20550bb590db16223eb9ccc5852335b48b8f597e2f6f0878bbfd9e7314eb17"}, + {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:33588310b5c886dfb87dba5f013b8d27df7ffd31dc753775342a1e5ab139e59d"}, + {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9515ea7f596c8092fdc9902627e51b23a75daa2c7815ed5aa8cf4f07469212ec"}, + {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:35cf6ed4c38f054478a9df14f03c1169bb14bd98f0b1705751079b25e1cb58bc"}, + {file = "cryptography-42.0.0-cp37-abi3-win32.whl", hash = "sha256:8814722cffcfd1fbd91edd9f3451b88a8f26a5fd41b28c1c9193949d1c689dc4"}, + {file = "cryptography-42.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:a2a8d873667e4fd2f34aedab02ba500b824692c6542e017075a2efc38f60a4c0"}, + {file = "cryptography-42.0.0-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:8fedec73d590fd30c4e3f0d0f4bc961aeca8390c72f3eaa1a0874d180e868ddf"}, + {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:be41b0c7366e5549265adf2145135dca107718fa44b6e418dc7499cfff6b4689"}, + {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ca482ea80626048975360c8e62be3ceb0f11803180b73163acd24bf014133a0"}, + {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:c58115384bdcfe9c7f644c72f10f6f42bed7cf59f7b52fe1bf7ae0a622b3a139"}, + {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:56ce0c106d5c3fec1038c3cca3d55ac320a5be1b44bf15116732d0bc716979a2"}, + {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:324721d93b998cb7367f1e6897370644751e5580ff9b370c0a50dc60a2003513"}, + {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:d97aae66b7de41cdf5b12087b5509e4e9805ed6f562406dfcf60e8481a9a28f8"}, + {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:85f759ed59ffd1d0baad296e72780aa62ff8a71f94dc1ab340386a1207d0ea81"}, + {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:206aaf42e031b93f86ad60f9f5d9da1b09164f25488238ac1dc488334eb5e221"}, + {file = "cryptography-42.0.0-cp39-abi3-win32.whl", hash = "sha256:74f18a4c8ca04134d2052a140322002fef535c99cdbc2a6afc18a8024d5c9d5b"}, + {file = "cryptography-42.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:14e4b909373bc5bf1095311fa0f7fcabf2d1a160ca13f1e9e467be1ac4cbdf94"}, + {file = "cryptography-42.0.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3005166a39b70c8b94455fdbe78d87a444da31ff70de3331cdec2c568cf25b7e"}, + {file = "cryptography-42.0.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:be14b31eb3a293fc6e6aa2807c8a3224c71426f7c4e3639ccf1a2f3ffd6df8c3"}, + {file = "cryptography-42.0.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:bd7cf7a8d9f34cc67220f1195884151426ce616fdc8285df9054bfa10135925f"}, + {file = "cryptography-42.0.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:c310767268d88803b653fffe6d6f2f17bb9d49ffceb8d70aed50ad45ea49ab08"}, + {file = "cryptography-42.0.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:bdce70e562c69bb089523e75ef1d9625b7417c6297a76ac27b1b8b1eb51b7d0f"}, + {file = "cryptography-42.0.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:e9326ca78111e4c645f7e49cbce4ed2f3f85e17b61a563328c85a5208cf34440"}, + {file = "cryptography-42.0.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:69fd009a325cad6fbfd5b04c711a4da563c6c4854fc4c9544bff3088387c77c0"}, + {file = "cryptography-42.0.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:988b738f56c665366b1e4bfd9045c3efae89ee366ca3839cd5af53eaa1401bce"}, + {file = "cryptography-42.0.0.tar.gz", hash = "sha256:6cf9b76d6e93c62114bd19485e5cb003115c134cf9ce91f8ac924c44f8c8c3f4"}, ] [package.dependencies] -cffi = ">=1.12" +cffi = {version = ">=1.12", markers = "platform_python_implementation != \"PyPy\""} [package.extras] docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=1.1.1)"] -docstest = ["pyenchant (>=1.6.11)", "sphinxcontrib-spelling (>=4.0.1)", "twine (>=1.12.0)"] +docstest = ["pyenchant (>=1.6.11)", "readme-renderer", "sphinxcontrib-spelling (>=4.0.1)"] nox = ["nox"] -pep8test = ["black", "check-sdist", "mypy", "ruff"] +pep8test = ["check-sdist", "click", "mypy", "ruff"] sdist = ["build"] ssh = ["bcrypt (>=3.1.5)"] -test = ["pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"] +test = ["certifi", "pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"] test-randomorder = ["pytest-randomly"] [[package]] From e42dc649bc1a1a6cc20f19ffe19dfac154a10809 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:06:05 +0000 Subject: [PATCH 03/31] Bump pytest from 8.0.0 to 8.0.1 in /ansys-grantami-serverapi-openapi (#139) --- ansys-grantami-serverapi-openapi/poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 8c79fb6c..0e6cb444 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -440,13 +440,13 @@ yaml = ["ruamel.yaml"] [[package]] name = "pytest" -version = "8.0.0" +version = "8.0.1" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.8" files = [ - {file = "pytest-8.0.0-py3-none-any.whl", hash = "sha256:50fb9cbe836c3f20f0dfa99c565201fb75dc54c8d76373cd1bde06b06657bdb6"}, - {file = "pytest-8.0.0.tar.gz", hash = "sha256:249b1b0864530ba251b7438274c4d251c58d868edaaec8762893ad4a0d71c36c"}, + {file = "pytest-8.0.1-py3-none-any.whl", hash = "sha256:3e4f16fe1c0a9dc9d9389161c127c3edc5d810c38d6793042fb81d9f48a59fca"}, + {file = "pytest-8.0.1.tar.gz", hash = "sha256:267f6563751877d772019b13aacbe4e860d73fe8f651f28112e9ac37de7513ae"}, ] [package.dependencies] From 846a08a398b34d1a019e9d8f39af322780161161 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:02:11 +0000 Subject: [PATCH 04/31] Bump pytest from 8.0.1 to 8.0.2 in /ansys-grantami-serverapi-openapi (#141) --- ansys-grantami-serverapi-openapi/poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 0e6cb444..c30deade 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -440,13 +440,13 @@ yaml = ["ruamel.yaml"] [[package]] name = "pytest" -version = "8.0.1" +version = "8.0.2" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.8" files = [ - {file = "pytest-8.0.1-py3-none-any.whl", hash = "sha256:3e4f16fe1c0a9dc9d9389161c127c3edc5d810c38d6793042fb81d9f48a59fca"}, - {file = "pytest-8.0.1.tar.gz", hash = "sha256:267f6563751877d772019b13aacbe4e860d73fe8f651f28112e9ac37de7513ae"}, + {file = "pytest-8.0.2-py3-none-any.whl", hash = "sha256:edfaaef32ce5172d5466b5127b42e0d6d35ebbe4453f0e3505d96afd93f6b096"}, + {file = "pytest-8.0.2.tar.gz", hash = "sha256:d4051d623a2e0b7e51960ba963193b09ce6daeb9759a451844a21e4ddedfc1bd"}, ] [package.dependencies] From 9f8912e47cc4e97ec63ec21f4010f6d1a3528ed2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Feb 2024 16:37:26 -0500 Subject: [PATCH 05/31] Bump io.swagger.codegen.v3:swagger-codegen-maven-plugin from 3.0.52 to 3.0.54 (#138) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andy Grigg Co-authored-by: Andy-Grigg --- ansys-grantami-serverapi-openapi/.swagger-codegen/VERSION | 2 +- ansys-grantami-serverapi-openapi/pyproject.toml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/.swagger-codegen/VERSION b/ansys-grantami-serverapi-openapi/.swagger-codegen/VERSION index 97e616f0..248908e6 100644 --- a/ansys-grantami-serverapi-openapi/.swagger-codegen/VERSION +++ b/ansys-grantami-serverapi-openapi/.swagger-codegen/VERSION @@ -1 +1 @@ -3.0.52 \ No newline at end of file +3.0.54 \ No newline at end of file diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 77a5d823..fc930381 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 = "3.0.0.dev193" +version = "3.0.0.dev200" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] diff --git a/pom.xml b/pom.xml index a2fadf0d..ea626ad7 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ io.swagger.codegen.v3 swagger-codegen-maven-plugin - 3.0.52 + 3.0.54 From ff97de1d850cdfc186fa1c786235b66c95d4e095 Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Tue, 27 Feb 2024 08:06:24 -0500 Subject: [PATCH 06/31] Update README link (#142) Co-authored-by: Andy-Grigg --- ansys-grantami-serverapi-openapi/README.md | 2 +- ansys-grantami-serverapi-openapi/pyproject.toml | 2 +- pom.xml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/README.md b/ansys-grantami-serverapi-openapi/README.md index db49cff5..3f1a8031 100644 --- a/ansys-grantami-serverapi-openapi/README.md +++ b/ansys-grantami-serverapi-openapi/README.md @@ -2,7 +2,7 @@ Autogenerated client library for the Granta MI Server API. -Direct use of this package is unsupported, please use [ansys-grantami-recordlists](https://github.com/ansys/grantami-recordlists) instead. +Direct use of this package is unsupported, please use [the PyGranta meta-package](https://grantami.docs.pyansys.com) instead. This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project. diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index fc930381..51305a3e 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 = "3.0.0.dev200" +version = "3.0.0.dev202" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] diff --git a/pom.xml b/pom.xml index ea626ad7..488f50de 100644 --- a/pom.xml +++ b/pom.xml @@ -39,8 +39,8 @@ ${package-import-path} ${package-name} ${package-description} - ansys-grantami-recordlists - https://github.com/ansys/grantami-recordlists + the PyGranta meta-package + https://grantami.docs.pyansys.com https://github.com/ansys/grantami-serverapi-openapi https://grantami.docs.pyansys.com ${project.version} From 624339ab2d396cb37b1d164f17a807bfc851f85e Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Thu, 29 Feb 2024 08:04:35 -0500 Subject: [PATCH 07/31] Update swagger to 24.2.820 (#145) Co-authored-by: Andy-Grigg --- .../pyproject.toml | 2 +- .../grantami/serverapi_openapi/__init__.py | 56 +- .../serverapi_openapi/api/aggregation_api.py | 106 +- .../serverapi_openapi/api/data_api.py | 116 +- .../serverapi_openapi/api/data_export_api.py | 20 +- .../serverapi_openapi/api/database_api.py | 430 +- .../serverapi_openapi/api/integration_api.py | 384 +- .../serverapi_openapi/api/job_queue_api.py | 632 +- .../serverapi_openapi/api/license_api.py | 12 +- .../serverapi_openapi/api/list_item_api.py | 30 +- .../api/list_management_api.py | 444 +- .../api/list_permissions_api.py | 270 +- .../api/records___record_histories_api.py | 428 +- .../api/records___record_versions_api.py | 140 +- .../api/schema___attributes_api.py | 626 +- .../api/schema___configurations_api.py | 222 +- .../api/schema___constants_api.py | 192 +- .../api/schema___data_rules_api.py | 184 +- .../api/schema___databases_api.py | 170 +- ...___discrete_types___discrete_values_api.py | 332 +- .../api/schema___discrete_types_api.py | 206 +- .../api/schema___exporters_api.py | 746 +- .../api/schema___expressions_api.py | 226 +- .../api/schema___help_files_api.py | 712 +- .../api/schema___home_pages_api.py | 718 +- .../api/schema___layout_sections_api.py | 330 +- .../api/schema___layouts_api.py | 196 +- .../api/schema___parameters_api.py | 494 +- .../api/schema___profile_tables_api.py | 182 +- .../api/schema___profiles_api.py | 264 +- .../api/schema___record_link_groups_api.py | 394 +- .../api/schema___standard_names_api.py | 184 +- .../api/schema___subsets_api.py | 240 +- .../api/schema___tables_api.py | 302 +- .../api/schema___units_api.py | 670 +- .../serverapi_openapi/api/schema_api.py | 10 +- .../serverapi_openapi/api/search_api.py | 250 +- .../api/selection_searches_api.py | 278 +- .../serverapi_openapi/api/status_api.py | 8 +- .../serverapi_openapi/models/__init__.py | 54 +- ...granta_server_api_data_applicable_datum.py | 1 + .../granta_server_api_data_datum_type.py | 1 + ..._api_data_discrete_parameter_with_value.py | 175 + ...r_api_data_numeric_parameter_with_value.py | 200 + ...ta_server_api_data_parameter_with_value.py | 145 + ...granta_server_api_data_point_data_value.py | 230 + .../granta_server_api_data_point_datum.py | 199 + ...iable_record_version_control_exception.py} | 30 +- ...ds_record_histories_copy_record_history.py | 36 + ..._record_histories_create_record_history.py | 102 +- ...tories_record_property_inheritance_type.py | 25 + ...arch_free_text_all_attributes_criterion.py | 213 - ...rver_api_search_free_text_all_criterion.py | 283 - ...h_free_text_all_local_columns_criterion.py | 215 - ...a_server_api_search_free_text_criterion.py | 235 +- ...ree_text_excluding_attributes_criterion.py | 275 - ..._text_excluding_local_columns_criterion.py | 279 - ...ree_text_specified_attributes_criterion.py | 273 - ..._text_specified_local_columns_criterion.py | 275 - yaml/server-api.json | 29892 ++-------------- 60 files changed, 10483 insertions(+), 33861 deletions(-) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_exceptions_version_control_create_record_version_control_exception.py => granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py} (85%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_attributes_criterion.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_criterion.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_local_columns_criterion.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_excluding_attributes_criterion.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_excluding_local_columns_criterion.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_specified_attributes_criterion.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_specified_local_columns_criterion.py diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 51305a3e..983f2f91 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 = "3.0.0.dev202" +version = "3.0.0.dev210" 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 3c34d221..a268f349 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 @@ -294,6 +294,9 @@ from .models.granta_server_api_data_discrete_datum import ( GrantaServerApiDataDiscreteDatum, ) +from .models.granta_server_api_data_discrete_parameter_with_value import ( + GrantaServerApiDataDiscreteParameterWithValue, +) from .models.granta_server_api_data_export_attribute_to_export import ( GrantaServerApiDataExportAttributeToExport, ) @@ -554,6 +557,16 @@ from .models.granta_server_api_data_not_applicable_datum import ( GrantaServerApiDataNotApplicableDatum, ) +from .models.granta_server_api_data_numeric_parameter_with_value import ( + GrantaServerApiDataNumericParameterWithValue, +) +from .models.granta_server_api_data_parameter_with_value import ( + GrantaServerApiDataParameterWithValue, +) +from .models.granta_server_api_data_point_data_value import ( + GrantaServerApiDataPointDataValue, +) +from .models.granta_server_api_data_point_datum import GrantaServerApiDataPointDatum from .models.granta_server_api_data_range_datum import GrantaServerApiDataRangeDatum from .models.granta_server_api_data_rich_text_type import ( GrantaServerApiDataRichTextType, @@ -608,8 +621,8 @@ from .models.granta_server_api_exceptions_record_history_record_history_move_exception import ( GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, ) -from .models.granta_server_api_exceptions_version_control_create_record_version_control_exception import ( - GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, +from .models.granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException, ) from .models.granta_server_api_exceptions_version_control_invalid_parent_state_error_detail import ( GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail, @@ -815,6 +828,9 @@ from .models.granta_server_api_records_record_histories_record_history import ( GrantaServerApiRecordsRecordHistoriesRecordHistory, ) +from .models.granta_server_api_records_record_histories_record_property_inheritance_type import ( + GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType, +) from .models.granta_server_api_records_record_histories_slim_record_history import ( GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, ) @@ -1742,30 +1758,9 @@ from .models.granta_server_api_search_float_functional_graph_datum_criterion import ( GrantaServerApiSearchFloatFunctionalGraphDatumCriterion, ) -from .models.granta_server_api_search_free_text_all_attributes_criterion import ( - GrantaServerApiSearchFreeTextAllAttributesCriterion, -) -from .models.granta_server_api_search_free_text_all_criterion import ( - GrantaServerApiSearchFreeTextAllCriterion, -) -from .models.granta_server_api_search_free_text_all_local_columns_criterion import ( - GrantaServerApiSearchFreeTextAllLocalColumnsCriterion, -) from .models.granta_server_api_search_free_text_criterion import ( GrantaServerApiSearchFreeTextCriterion, ) -from .models.granta_server_api_search_free_text_excluding_attributes_criterion import ( - GrantaServerApiSearchFreeTextExcludingAttributesCriterion, -) -from .models.granta_server_api_search_free_text_excluding_local_columns_criterion import ( - GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion, -) -from .models.granta_server_api_search_free_text_specified_attributes_criterion import ( - GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion, -) -from .models.granta_server_api_search_free_text_specified_local_columns_criterion import ( - GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion, -) from .models.granta_server_api_search_hyperlink_datum_criterion import ( GrantaServerApiSearchHyperlinkDatumCriterion, ) @@ -2047,6 +2042,7 @@ "GrantaServerApiDataDatum", "GrantaServerApiDataDatumType", "GrantaServerApiDataDiscreteDatum", + "GrantaServerApiDataDiscreteParameterWithValue", "GrantaServerApiDataExportAttributeToExport", "GrantaServerApiDataExportDataExportRequest", "GrantaServerApiDataExportDataExportResponse", @@ -2135,6 +2131,10 @@ "GrantaServerApiDataLogicalDatum", "GrantaServerApiDataLongTextDatum", "GrantaServerApiDataNotApplicableDatum", + "GrantaServerApiDataNumericParameterWithValue", + "GrantaServerApiDataParameterWithValue", + "GrantaServerApiDataPointDataValue", + "GrantaServerApiDataPointDatum", "GrantaServerApiDataRangeDatum", "GrantaServerApiDataRichTextType", "GrantaServerApiDataRichTextValue", @@ -2155,7 +2155,7 @@ "GrantaServerApiExceptionsErrorDetail", "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", - "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException", + "GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException", "GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail", "GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail", "GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail", @@ -2228,6 +2228,7 @@ "GrantaServerApiRecordsRecordHistoriesCreateRecordHistory", "GrantaServerApiRecordsRecordHistoriesMoveRecordHistory", "GrantaServerApiRecordsRecordHistoriesRecordHistory", + "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", "GrantaServerApiRecordsRecordVersionsRecordVersion", "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", @@ -2539,14 +2540,7 @@ "GrantaServerApiSearchFileDatumCriterion", "GrantaServerApiSearchFloatFunctionalDatumCriterion", "GrantaServerApiSearchFloatFunctionalGraphDatumCriterion", - "GrantaServerApiSearchFreeTextAllAttributesCriterion", - "GrantaServerApiSearchFreeTextAllCriterion", - "GrantaServerApiSearchFreeTextAllLocalColumnsCriterion", "GrantaServerApiSearchFreeTextCriterion", - "GrantaServerApiSearchFreeTextExcludingAttributesCriterion", - "GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion", - "GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion", - "GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion", "GrantaServerApiSearchHyperlinkDatumCriterion", "GrantaServerApiSearchIndexStatus", "GrantaServerApiSearchIntegerDatumCriterion", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py index 9d07ba27..11a0af4a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py @@ -33,23 +33,21 @@ class AggregationApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guidaggregations_post( + def database_aggregation( self, *, database_key: "str", - table_guid: "str", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, ) -> "Union[GrantaServerApiAggregationsAggregationsResponse, None]": - """Runs an aggregation against the table. + """Runs an aggregation against the database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_guid: str body: GrantaServerApiAggregationsAggregationsRequest 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. @@ -60,20 +58,14 @@ def v1alpha_databases_database_key_tables_table_guidaggregations_post( ------- Union[GrantaServerApiAggregationsAggregationsResponse, None] """ - data = self._v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http_info( - database_key, - table_guid, - body, - x_ansys_vc_mode, - mode, - _return_http_data_only=True, + data = self._database_aggregation_with_http_info( + database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http_info( + def _database_aggregation_with_http_info( self, database_key: "str", - table_guid: "str", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, @@ -81,7 +73,6 @@ def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http ) -> Any: all_params = [ "database_key", - "table_guid", "body", "x_ansys_vc_mode", "mode", @@ -94,19 +85,14 @@ def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guidaggregations_post" + f"Got an unexpected keyword argument '{key}' to method database_aggregation" ) 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 'v1alpha_databases_database_key_tables_table_guidaggregations_post'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guidaggregations_post'" + "Missing the required parameter 'database_key' when calling 'database_aggregation'" ) collection_formats: Dict[str, Any] = {} @@ -114,8 +100,6 @@ def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http 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"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -152,7 +136,7 @@ def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}:aggregations", + "/v1alpha/databases/{database-key}:aggregations", "POST", path_params, query_params, @@ -167,11 +151,11 @@ def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_identityaggregations_post( + def database_aggregation_for_table_with_guid( self, *, database_key: "str", - table_identity: "int", + table_guid: "str", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, @@ -183,7 +167,7 @@ def v1alpha_databases_database_key_tables_table_identityaggregations_post( Parameters ---------- database_key: str - table_identity: int + table_guid: str body: GrantaServerApiAggregationsAggregationsRequest 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. @@ -194,9 +178,9 @@ def v1alpha_databases_database_key_tables_table_identityaggregations_post( ------- Union[GrantaServerApiAggregationsAggregationsResponse, None] """ - data = self._v1alpha_databases_database_key_tables_table_identityaggregations_post_with_http_info( + data = self._database_aggregation_for_table_with_guid_with_http_info( database_key, - table_identity, + table_guid, body, x_ansys_vc_mode, mode, @@ -204,10 +188,10 @@ def v1alpha_databases_database_key_tables_table_identityaggregations_post( ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_http_info( + def _database_aggregation_for_table_with_guid_with_http_info( self, database_key: "str", - table_identity: "int", + table_guid: "str", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, @@ -215,7 +199,7 @@ def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_ ) -> Any: all_params = [ "database_key", - "table_identity", + "table_guid", "body", "x_ansys_vc_mode", "mode", @@ -228,19 +212,19 @@ def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_identityaggregations_post" + f"Got an unexpected keyword argument '{key}' to method database_aggregation_for_table_with_guid" ) 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 'v1alpha_databases_database_key_tables_table_identityaggregations_post'" + "Missing the required parameter 'database_key' when calling 'database_aggregation_for_table_with_guid'" ) - # verify the required parameter "table_identity" is set - if "table_identity" not in params or params["table_identity"] is None: + # 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_identity' when calling 'v1alpha_databases_database_key_tables_table_identityaggregations_post'" + "Missing the required parameter 'table_guid' when calling 'database_aggregation_for_table_with_guid'" ) collection_formats: Dict[str, Any] = {} @@ -248,8 +232,8 @@ def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_ 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_identity" in params and table_identity is not None: - path_params["table-identity"] = params["table_identity"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -286,7 +270,7 @@ def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_ } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-identity}:aggregations", + "/v1alpha/databases/{database-key}/tables/{table-guid}:aggregations", "POST", path_params, query_params, @@ -301,21 +285,23 @@ def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_ response_type_map=response_type_map, ) - def v1alpha_databases_database_keyaggregations_post( + def database_aggregation_for_table_with_identity( self, *, database_key: "str", + table_identity: "int", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, ) -> "Union[GrantaServerApiAggregationsAggregationsResponse, None]": - """Runs an aggregation against the database. + """Runs an aggregation against the table. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + table_identity: int body: GrantaServerApiAggregationsAggregationsRequest 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. @@ -326,14 +312,20 @@ def v1alpha_databases_database_keyaggregations_post( ------- Union[GrantaServerApiAggregationsAggregationsResponse, None] """ - data = self._v1alpha_databases_database_keyaggregations_post_with_http_info( - database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True + data = self._database_aggregation_for_table_with_identity_with_http_info( + database_key, + table_identity, + body, + x_ansys_vc_mode, + mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_keyaggregations_post_with_http_info( + def _database_aggregation_for_table_with_identity_with_http_info( self, database_key: "str", + table_identity: "int", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, @@ -341,6 +333,7 @@ def _v1alpha_databases_database_keyaggregations_post_with_http_info( ) -> Any: all_params = [ "database_key", + "table_identity", "body", "x_ansys_vc_mode", "mode", @@ -353,14 +346,19 @@ def _v1alpha_databases_database_keyaggregations_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_keyaggregations_post" + f"Got an unexpected keyword argument '{key}' to method database_aggregation_for_table_with_identity" ) 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 'v1alpha_databases_database_keyaggregations_post'" + "Missing the required parameter 'database_key' when calling 'database_aggregation_for_table_with_identity'" + ) + # verify the required parameter "table_identity" is set + if "table_identity" not in params or params["table_identity"] is None: + raise ValueError( + "Missing the required parameter 'table_identity' when calling 'database_aggregation_for_table_with_identity'" ) collection_formats: Dict[str, Any] = {} @@ -368,6 +366,8 @@ def _v1alpha_databases_database_keyaggregations_post_with_http_info( 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_identity" in params and table_identity is not None: + path_params["table-identity"] = params["table_identity"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -404,7 +404,7 @@ def _v1alpha_databases_database_keyaggregations_post_with_http_info( } return self.api_client.call_api( - "/v1alpha/databases/{database-key}:aggregations", + "/v1alpha/databases/{database-key}/tables/{table-identity}:aggregations", "POST", path_params, query_params, @@ -419,7 +419,7 @@ def _v1alpha_databases_database_keyaggregations_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schemaaggregations_post( + def integration_aggregation( self, *, schema: "str", @@ -438,12 +438,12 @@ def v1alpha_integration_schemas_schemaaggregations_post( ------- Union[GrantaServerApiAggregationsAggregationsResponse, None] """ - data = self._v1alpha_integration_schemas_schemaaggregations_post_with_http_info( + data = self._integration_aggregation_with_http_info( schema, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schemaaggregations_post_with_http_info( + def _integration_aggregation_with_http_info( self, schema: "str", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, @@ -461,14 +461,14 @@ def _v1alpha_integration_schemas_schemaaggregations_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schemaaggregations_post" + f"Got an unexpected keyword argument '{key}' to method integration_aggregation" ) params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemaaggregations_post'" + "Missing the required parameter 'schema' when calling 'integration_aggregation'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py index 1f7d5cb7..4ca6ec5b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py @@ -33,7 +33,7 @@ class DataApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get( + def get_datum_for_latest( self, *, database_key: "str", @@ -60,7 +60,7 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_latest_a ------- Union[GrantaServerApiDataDatum, None] """ - data = self._v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + data = self._get_datum_for_latest_with_http_info( database_key, record_history_guid, attribute_guid, @@ -70,7 +70,7 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_latest_a ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + def _get_datum_for_latest_with_http_info( self, database_key: "str", record_history_guid: "str", @@ -94,24 +94,24 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_datum_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 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_datum_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 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'get_datum_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 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + "Missing the required parameter 'attribute_guid' when calling 'get_datum_for_latest'" ) collection_formats: Dict[str, Any] = {} @@ -162,25 +162,25 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get( + def get_datum_for_latest_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[GrantaServerApiDataDatum, None]": - """Get a datum for a given database, record history, record version and attribute. + """Get a datum for a given attribute and the latest version of a record history in given database and table. 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. @@ -191,10 +191,10 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_record_v ------- Union[GrantaServerApiDataDatum, None] """ - data = self._v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get_with_http_info( + data = self._get_datum_for_latest_from_table_with_http_info( database_key, + table_guid, record_history_guid, - record_version_guid, attribute_guid, mode, x_ansys_vc_mode, @@ -202,11 +202,11 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_record_v ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get_with_http_info( + def _get_datum_for_latest_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, @@ -214,8 +214,8 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ ) -> Any: all_params = [ "database_key", + "table_guid", "record_history_guid", - "record_version_guid", "attribute_guid", "mode", "x_ansys_vc_mode", @@ -228,29 +228,29 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_datum_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 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_datum_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: + # 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 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'table_guid' when calling 'get_datum_for_latest_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: + # 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_version_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'get_datum_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 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'attribute_guid' when calling 'get_datum_for_latest_from_table'" ) collection_formats: Dict[str, Any] = {} @@ -258,10 +258,10 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ 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"] @@ -288,7 +288,7 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}", "GET", path_params, query_params, @@ -303,25 +303,25 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get( + def get_datum_for_version( 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[GrantaServerApiDataDatum, None]": - """Get a datum for a given attribute and the latest version of a record history in given database and table. + """Get a datum for a given database, record history, record version and 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. @@ -332,10 +332,10 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ------- Union[GrantaServerApiDataDatum, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + data = self._get_datum_for_version_with_http_info( database_key, - table_guid, record_history_guid, + record_version_guid, attribute_guid, mode, x_ansys_vc_mode, @@ -343,11 +343,11 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + def _get_datum_for_version_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, @@ -355,8 +355,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi ) -> Any: all_params = [ "database_key", - "table_guid", "record_history_guid", + "record_version_guid", "attribute_guid", "mode", "x_ansys_vc_mode", @@ -369,29 +369,29 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'get_datum_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_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + "Missing the required parameter 'attribute_guid' when calling 'get_datum_for_version'" ) collection_formats: Dict[str, Any] = {} @@ -399,10 +399,10 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi 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"] @@ -429,7 +429,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}", + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}", "GET", path_params, query_params, @@ -444,7 +444,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get( + def get_datum_for_version_from_table( self, *, database_key: "str", @@ -475,7 +475,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ------- Union[GrantaServerApiDataDatum, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get_with_http_info( + data = self._get_datum_for_version_from_table_with_http_info( database_key, table_guid, record_history_guid, @@ -487,7 +487,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get_with_http_info( + def _get_datum_for_version_from_table_with_http_info( self, database_key: "str", table_guid: "str", @@ -515,34 +515,34 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'table_guid' when calling 'get_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'get_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'record_version_guid' when calling 'get_datum_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'attribute_guid' when calling 'get_datum_for_version_from_table'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py index c1d5b315..34f6ea2d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py @@ -33,7 +33,7 @@ class DataExportApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_keyexport_post( + def export_data( self, *, database_key: "str", @@ -58,12 +58,12 @@ def v1alpha_databases_database_keyexport_post( ------- Union[GrantaServerApiDataExportDataExportResponse, None] """ - data = self._v1alpha_databases_database_keyexport_post_with_http_info( + data = self._export_data_with_http_info( database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_keyexport_post_with_http_info( + def _export_data_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiDataExportDataExportRequest]" = None, @@ -85,14 +85,14 @@ def _v1alpha_databases_database_keyexport_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_keyexport_post" + f"Got an unexpected keyword argument '{key}' to method export_data" ) 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 'v1alpha_databases_database_keyexport_post'" + "Missing the required parameter 'database_key' when calling 'export_data'" ) collection_formats: Dict[str, Any] = {} @@ -152,7 +152,7 @@ def _v1alpha_databases_database_keyexport_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schemaexport_post( + def export_data_from_integration_schema( self, *, schema: "str", @@ -171,12 +171,12 @@ def v1alpha_integration_schemas_schemaexport_post( ------- Union[GrantaServerApiDataExportDataExportResponse, None] """ - data = self._v1alpha_integration_schemas_schemaexport_post_with_http_info( + data = self._export_data_from_integration_schema_with_http_info( schema, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schemaexport_post_with_http_info( + def _export_data_from_integration_schema_with_http_info( self, schema: "str", body: "Optional[GrantaServerApiIntegrationDataExportIntegrationDataExportRequest]" = None, @@ -194,14 +194,14 @@ def _v1alpha_integration_schemas_schemaexport_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schemaexport_post" + f"Got an unexpected keyword argument '{key}' to method export_data_from_integration_schema" ) params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemaexport_post'" + "Missing the required parameter 'schema' when calling 'export_data_from_integration_schema'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py index c0e77174..56ad52c3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py @@ -33,33 +33,39 @@ class DatabaseApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post( - self, *, database_key: "str", body: "Optional[List[str]]" = None + def generate_schema_from_layout( + self, *, database_key: "str", table_identity: "int", layout_identity: "int" ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": - """Generate an integration schema with attributes for each provided standard name in the given database. The user must be an Admin user for the database. + """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: List[str] + table_identity: int + layout_identity: int Returns ------- Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._generate_schema_from_layout_with_http_info( + database_key, table_identity, layout_identity, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post_with_http_info( - self, database_key: "str", body: "Optional[List[str]]" = None, **kwargs: Any + def _generate_schema_from_layout_with_http_info( + self, + database_key: "str", + table_identity: "int", + layout_identity: "int", + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "body", + "table_identity", + "layout_identity", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -69,14 +75,24 @@ def _v1alpha_databases_database_key_standard_namesgenerate_integration_schema_po for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post" + f"Got an unexpected keyword argument '{key}' to method generate_schema_from_layout" ) 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 'v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post'" + "Missing the required parameter 'database_key' when calling 'generate_schema_from_layout'" + ) + # verify the required parameter "table_identity" is set + if "table_identity" not in params or params["table_identity"] is None: + raise ValueError( + "Missing the required parameter 'table_identity' when calling 'generate_schema_from_layout'" + ) + # verify the required parameter "layout_identity" is set + if "layout_identity" not in params or params["layout_identity"] is None: + raise ValueError( + "Missing the required parameter 'layout_identity' when calling 'generate_schema_from_layout'" ) collection_formats: Dict[str, Any] = {} @@ -84,6 +100,10 @@ def _v1alpha_databases_database_key_standard_namesgenerate_integration_schema_po 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_identity" in params and table_identity is not None: + path_params["table-identity"] = params["table_identity"] + if "layout_identity" in params and layout_identity is not None: + path_params["layout-identity"] = params["layout_identity"] query_params: List[Any] = [] @@ -93,23 +113,11 @@ def _v1alpha_databases_database_key_standard_namesgenerate_integration_schema_po 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, @@ -117,8 +125,8 @@ def _v1alpha_databases_database_key_standard_namesgenerate_integration_schema_po } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/standard-names:generate-integration-schema", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-identity}/layout/{layout-identity}:generate-integration-schema", + "GET", path_params, query_params, header_params, @@ -132,8 +140,8 @@ def _v1alpha_databases_database_key_standard_namesgenerate_integration_schema_po response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get( - self, *, database_key: "str", table_identity: "int", layout_identity: "int" + def generate_schema_from_layout_name( + self, *, database_key: "str", table_identity: "int", layout_name: "str" ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. @@ -143,28 +151,28 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_identityg ---------- database_key: str table_identity: int - layout_identity: int + layout_name: str Returns ------- Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get_with_http_info( - database_key, table_identity, layout_identity, _return_http_data_only=True + data = self._generate_schema_from_layout_name_with_http_info( + database_key, table_identity, layout_name, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get_with_http_info( + def _generate_schema_from_layout_name_with_http_info( self, database_key: "str", table_identity: "int", - layout_identity: "int", + layout_name: "str", **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_identity", - "layout_identity", + "layout_name", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -174,24 +182,24 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identity for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get" + f"Got an unexpected keyword argument '{key}' to method generate_schema_from_layout_name" ) 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 'v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get'" + "Missing the required parameter 'database_key' when calling 'generate_schema_from_layout_name'" ) # verify the required parameter "table_identity" is set if "table_identity" not in params or params["table_identity"] is None: raise ValueError( - "Missing the required parameter 'table_identity' when calling 'v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get'" + "Missing the required parameter 'table_identity' when calling 'generate_schema_from_layout_name'" ) - # verify the required parameter "layout_identity" is set - if "layout_identity" not in params or params["layout_identity"] is None: + # verify the required parameter "layout_name" is set + if "layout_name" not in params or params["layout_name"] is None: raise ValueError( - "Missing the required parameter 'layout_identity' when calling 'v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get'" + "Missing the required parameter 'layout_name' when calling 'generate_schema_from_layout_name'" ) collection_formats: Dict[str, Any] = {} @@ -201,8 +209,8 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identity path_params["database-key"] = params["database_key"] if "table_identity" in params and table_identity is not None: path_params["table-identity"] = params["table_identity"] - if "layout_identity" in params and layout_identity is not None: - path_params["layout-identity"] = params["layout_identity"] + if "layout_name" in params and layout_name is not None: + path_params["layout-name"] = params["layout_name"] query_params: List[Any] = [] @@ -224,7 +232,7 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identity } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-identity}/layout/{layout-identity}:generate-integration-schema", + "/v1alpha/databases/{database-key}/tables/{table-identity}/layout/{layout-name}:generate-integration-schema", "GET", path_params, query_params, @@ -239,8 +247,8 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identity response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get( - self, *, database_key: "str", table_identity: "int", layout_name: "str" + def generate_schema_from_layout_name_with_table_name( + self, *, database_key: "str", table_name: "str", layout_name: "str" ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. @@ -249,28 +257,24 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_namegener Parameters ---------- database_key: str - table_identity: int + table_name: str layout_name: str Returns ------- Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get_with_http_info( - database_key, table_identity, layout_name, _return_http_data_only=True + data = self._generate_schema_from_layout_name_with_table_name_with_http_info( + database_key, table_name, layout_name, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get_with_http_info( - self, - database_key: "str", - table_identity: "int", - layout_name: "str", - **kwargs: Any, + def _generate_schema_from_layout_name_with_table_name_with_http_info( + self, database_key: "str", table_name: "str", layout_name: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "table_identity", + "table_name", "layout_name", "_return_http_data_only", "_preload_content", @@ -281,24 +285,24 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_namegene for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get" + f"Got an unexpected keyword argument '{key}' to method generate_schema_from_layout_name_with_table_name" ) 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 'v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get'" + "Missing the required parameter 'database_key' when calling 'generate_schema_from_layout_name_with_table_name'" ) - # verify the required parameter "table_identity" is set - if "table_identity" not in params or params["table_identity"] is None: + # verify the required parameter "table_name" is set + if "table_name" not in params or params["table_name"] is None: raise ValueError( - "Missing the required parameter 'table_identity' when calling 'v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get'" + "Missing the required parameter 'table_name' when calling 'generate_schema_from_layout_name_with_table_name'" ) # verify the required parameter "layout_name" is set if "layout_name" not in params or params["layout_name"] is None: raise ValueError( - "Missing the required parameter 'layout_name' when calling 'v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get'" + "Missing the required parameter 'layout_name' when calling 'generate_schema_from_layout_name_with_table_name'" ) collection_formats: Dict[str, Any] = {} @@ -306,8 +310,8 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_namegene 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_identity" in params and table_identity is not None: - path_params["table-identity"] = params["table_identity"] + if "table_name" in params and table_name is not None: + path_params["table-name"] = params["table_name"] if "layout_name" in params and layout_name is not None: path_params["layout-name"] = params["layout_name"] @@ -331,7 +335,7 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_namegene } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-identity}/layout/{layout-name}:generate-integration-schema", + "/v1alpha/databases/{database-key}/tables/{table-name}/layout/{layout-name}:generate-integration-schema", "GET", path_params, query_params, @@ -346,33 +350,39 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_namegene response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get( - self, *, database_key: "str", table_identity: "int" + def generate_schema_from_layout_with_table_name( + self, *, database_key: "str", table_name: "str", layout_identity: "int" ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": - """Generate an integration schema from the attributes in the given table. The user must be an Admin user for the database. + """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_identity: int + table_name: str + layout_identity: int Returns ------- Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get_with_http_info( - database_key, table_identity, _return_http_data_only=True + data = self._generate_schema_from_layout_with_table_name_with_http_info( + database_key, table_name, layout_identity, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get_with_http_info( - self, database_key: "str", table_identity: "int", **kwargs: Any + def _generate_schema_from_layout_with_table_name_with_http_info( + self, + database_key: "str", + table_name: "str", + layout_identity: "int", + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "table_identity", + "table_name", + "layout_identity", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -382,19 +392,24 @@ def _v1alpha_databases_database_key_tables_table_identitygenerate_integration_sc for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get" + f"Got an unexpected keyword argument '{key}' to method generate_schema_from_layout_with_table_name" ) 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 'v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get'" + "Missing the required parameter 'database_key' when calling 'generate_schema_from_layout_with_table_name'" ) - # verify the required parameter "table_identity" is set - if "table_identity" not in params or params["table_identity"] is None: + # verify the required parameter "table_name" is set + if "table_name" not in params or params["table_name"] is None: + raise ValueError( + "Missing the required parameter 'table_name' when calling 'generate_schema_from_layout_with_table_name'" + ) + # verify the required parameter "layout_identity" is set + if "layout_identity" not in params or params["layout_identity"] is None: raise ValueError( - "Missing the required parameter 'table_identity' when calling 'v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get'" + "Missing the required parameter 'layout_identity' when calling 'generate_schema_from_layout_with_table_name'" ) collection_formats: Dict[str, Any] = {} @@ -402,8 +417,10 @@ def _v1alpha_databases_database_key_tables_table_identitygenerate_integration_sc 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_identity" in params and table_identity is not None: - path_params["table-identity"] = params["table_identity"] + if "table_name" in params and table_name is not None: + path_params["table-name"] = params["table_name"] + if "layout_identity" in params and layout_identity is not None: + path_params["layout-identity"] = params["layout_identity"] query_params: List[Any] = [] @@ -425,7 +442,7 @@ def _v1alpha_databases_database_key_tables_table_identitygenerate_integration_sc } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-identity}:generate-integration-schema", + "/v1alpha/databases/{database-key}/tables/{table-name}/layout/{layout-identity}:generate-integration-schema", "GET", path_params, query_params, @@ -440,39 +457,33 @@ def _v1alpha_databases_database_key_tables_table_identitygenerate_integration_sc response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get( - self, *, database_key: "str", table_name: "str", layout_identity: "int" + def generate_schema_from_standard_names( + self, *, database_key: "str", body: "Optional[List[str]]" = None ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": - """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. + """Generate an integration schema with attributes for each provided standard name in the given database. The user must be an Admin user for the database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_name: str - layout_identity: int + body: List[str] Returns ------- Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get_with_http_info( - database_key, table_name, layout_identity, _return_http_data_only=True + data = self._generate_schema_from_standard_names_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get_with_http_info( - self, - database_key: "str", - table_name: "str", - layout_identity: "int", - **kwargs: Any, + def _generate_schema_from_standard_names_with_http_info( + self, database_key: "str", body: "Optional[List[str]]" = None, **kwargs: Any ) -> Any: all_params = [ "database_key", - "table_name", - "layout_identity", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -482,24 +493,14 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygene for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get" + f"Got an unexpected keyword argument '{key}' to method generate_schema_from_standard_names" ) 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 'v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get'" - ) - # verify the required parameter "table_name" is set - if "table_name" not in params or params["table_name"] is None: - raise ValueError( - "Missing the required parameter 'table_name' when calling 'v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get'" - ) - # verify the required parameter "layout_identity" is set - if "layout_identity" not in params or params["layout_identity"] is None: - raise ValueError( - "Missing the required parameter 'layout_identity' when calling 'v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get'" + "Missing the required parameter 'database_key' when calling 'generate_schema_from_standard_names'" ) collection_formats: Dict[str, Any] = {} @@ -507,10 +508,6 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygene 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_name" in params and table_name is not None: - path_params["table-name"] = params["table_name"] - if "layout_identity" in params and layout_identity is not None: - path_params["layout-identity"] = params["layout_identity"] query_params: List[Any] = [] @@ -520,11 +517,23 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygene 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, @@ -532,8 +541,8 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygene } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-name}/layout/{layout-identity}:generate-integration-schema", - "GET", + "/v1alpha/databases/{database-key}/standard-names:generate-integration-schema", + "POST", path_params, query_params, header_params, @@ -547,35 +556,31 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygene response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get( - self, *, database_key: "str", table_name: "str", layout_name: "str" + def generate_schema_from_standard_names_all_databases( + self, *, body: "Optional[List[str]]" = None ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": - """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. + """Generate an integration schema with attributes for each provided standard name. This will include attribute from all loaded databases for which the user is an Admin. This method makes a synchronous HTTP request. Parameters ---------- - database_key: str - table_name: str - layout_name: str + body: List[str] Returns ------- Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get_with_http_info( - database_key, table_name, layout_name, _return_http_data_only=True + data = self._generate_schema_from_standard_names_all_databases_with_http_info( + body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get_with_http_info( - self, database_key: "str", table_name: "str", layout_name: "str", **kwargs: Any + def _generate_schema_from_standard_names_all_databases_with_http_info( + self, body: "Optional[List[str]]" = None, **kwargs: Any ) -> Any: all_params = [ - "database_key", - "table_name", - "layout_name", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -585,35 +590,14 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get" + f"Got an unexpected keyword argument '{key}' to method generate_schema_from_standard_names_all_databases" ) 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 'v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get'" - ) - # verify the required parameter "table_name" is set - if "table_name" not in params or params["table_name"] is None: - raise ValueError( - "Missing the required parameter 'table_name' when calling 'v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get'" - ) - # verify the required parameter "layout_name" is set - if "layout_name" not in params or params["layout_name"] is None: - raise ValueError( - "Missing the required parameter 'layout_name' when calling 'v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get'" - ) 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_name" in params and table_name is not None: - path_params["table-name"] = params["table_name"] - if "layout_name" in params and layout_name is not None: - path_params["layout-name"] = params["layout_name"] query_params: List[Any] = [] @@ -623,11 +607,23 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, @@ -635,8 +631,8 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-name}/layout/{layout-name}:generate-integration-schema", - "GET", + "/v1alpha/standard-names:generate-integration-schema", + "POST", path_params, query_params, header_params, @@ -650,8 +646,8 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get( - self, *, database_key: "str", table_name: "str" + def generate_schema_from_table( + self, *, database_key: "str", table_identity: "int" ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given table. The user must be an Admin user for the database. @@ -660,23 +656,23 @@ def v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_ Parameters ---------- database_key: str - table_name: str + table_identity: int Returns ------- Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get_with_http_info( - database_key, table_name, _return_http_data_only=True + data = self._generate_schema_from_table_with_http_info( + database_key, table_identity, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get_with_http_info( - self, database_key: "str", table_name: "str", **kwargs: Any + def _generate_schema_from_table_with_http_info( + self, database_key: "str", table_identity: "int", **kwargs: Any ) -> Any: all_params = [ "database_key", - "table_name", + "table_identity", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -686,19 +682,19 @@ def _v1alpha_databases_database_key_tables_table_namegenerate_integration_schema for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get" + f"Got an unexpected keyword argument '{key}' to method generate_schema_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 'v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get'" + "Missing the required parameter 'database_key' when calling 'generate_schema_from_table'" ) - # verify the required parameter "table_name" is set - if "table_name" not in params or params["table_name"] is None: + # verify the required parameter "table_identity" is set + if "table_identity" not in params or params["table_identity"] is None: raise ValueError( - "Missing the required parameter 'table_name' when calling 'v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get'" + "Missing the required parameter 'table_identity' when calling 'generate_schema_from_table'" ) collection_formats: Dict[str, Any] = {} @@ -706,8 +702,8 @@ def _v1alpha_databases_database_key_tables_table_namegenerate_integration_schema 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_name" in params and table_name is not None: - path_params["table-name"] = params["table_name"] + if "table_identity" in params and table_identity is not None: + path_params["table-identity"] = params["table_identity"] query_params: List[Any] = [] @@ -729,7 +725,7 @@ def _v1alpha_databases_database_key_tables_table_namegenerate_integration_schema } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-name}:generate-integration-schema", + "/v1alpha/databases/{database-key}/tables/{table-identity}:generate-integration-schema", "GET", path_params, query_params, @@ -744,38 +740,33 @@ def _v1alpha_databases_database_key_tables_table_namegenerate_integration_schema response_type_map=response_type_map, ) - def v1alpha_databases_database_keysearch_index_status_get( - self, *, database_key: "str", include_diagnostics: "Optional[bool]" = None - ) -> "Union[GrantaServerApiSearchIndexStatus, None]": - """Get Search Index Status for a given database + def generate_schema_from_table_name( + self, *, database_key: "str", table_name: "str" + ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + """Generate an integration schema from the attributes in the given table. The user must be an Admin user for the database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - include_diagnostics: bool + table_name: str Returns ------- - Union[GrantaServerApiSearchIndexStatus, None] + Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = ( - self._v1alpha_databases_database_keysearch_index_status_get_with_http_info( - database_key, include_diagnostics, _return_http_data_only=True - ) + data = self._generate_schema_from_table_name_with_http_info( + database_key, table_name, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_keysearch_index_status_get_with_http_info( - self, - database_key: "str", - include_diagnostics: "Optional[bool]" = None, - **kwargs: Any, + def _generate_schema_from_table_name_with_http_info( + self, database_key: "str", table_name: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "include_diagnostics", + "table_name", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -785,14 +776,19 @@ def _v1alpha_databases_database_keysearch_index_status_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_keysearch_index_status_get" + f"Got an unexpected keyword argument '{key}' to method generate_schema_from_table_name" ) 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 'v1alpha_databases_database_keysearch_index_status_get'" + "Missing the required parameter 'database_key' when calling 'generate_schema_from_table_name'" + ) + # verify the required parameter "table_name" is set + if "table_name" not in params or params["table_name"] is None: + raise ValueError( + "Missing the required parameter 'table_name' when calling 'generate_schema_from_table_name'" ) collection_formats: Dict[str, Any] = {} @@ -800,10 +796,10 @@ def _v1alpha_databases_database_keysearch_index_status_get_with_http_info( 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_name" in params and table_name is not None: + path_params["table-name"] = params["table_name"] query_params: List[Any] = [] - if "include_diagnostics" in params and include_diagnostics is not None: - query_params.append(("include-diagnostics", params["include_diagnostics"])) header_params: Dict[str, Any] = {} @@ -817,13 +813,13 @@ def _v1alpha_databases_database_keysearch_index_status_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiSearchIndexStatus", + 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}:search-index-status", + "/v1alpha/databases/{database-key}/tables/{table-name}:generate-integration-schema", "GET", path_params, query_params, @@ -838,33 +834,36 @@ def _v1alpha_databases_database_keysearch_index_status_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_standard_namesgenerate_integration_schema_post( - self, *, body: "Optional[List[str]]" = None - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": - """Generate an integration schema with attributes for each provided standard name. This will include attribute from all loaded databases for which the user is an Admin. + def get_status( + self, *, database_key: "str", include_diagnostics: "Optional[bool]" = None + ) -> "Union[GrantaServerApiSearchIndexStatus, None]": + """Get Search Index Status for a given database This method makes a synchronous HTTP request. Parameters ---------- - body: List[str] + database_key: str + include_diagnostics: bool Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiSearchIndexStatus, None] """ - data = ( - self._v1alpha_standard_namesgenerate_integration_schema_post_with_http_info( - body, _return_http_data_only=True - ) + data = self._get_status_with_http_info( + database_key, include_diagnostics, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_standard_namesgenerate_integration_schema_post_with_http_info( - self, body: "Optional[List[str]]" = None, **kwargs: Any + def _get_status_with_http_info( + self, + database_key: "str", + include_diagnostics: "Optional[bool]" = None, + **kwargs: Any, ) -> Any: all_params = [ - "body", + "database_key", + "include_diagnostics", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -874,16 +873,25 @@ def _v1alpha_standard_namesgenerate_integration_schema_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_standard_namesgenerate_integration_schema_post" + f"Got an unexpected keyword argument '{key}' to method get_status" ) 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_status'" + ) 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"] query_params: List[Any] = [] + if "include_diagnostics" in params and include_diagnostics is not None: + query_params.append(("include-diagnostics", params["include_diagnostics"])) header_params: Dict[str, Any] = {} @@ -891,32 +899,20 @@ def _v1alpha_standard_namesgenerate_integration_schema_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiSearchIndexStatus", 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/standard-names:generate-integration-schema", - "POST", + "/v1alpha/databases/{database-key}:search-index-status", + "GET", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py index a3c24b93..f4bcf491 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py @@ -33,70 +33,7 @@ class IntegrationApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_integration_schemas_get(self) -> "List[str]": - """Lists the available integration schemas. - - This method makes a synchronous HTTP request. - - Returns - ------- - List[str] - """ - data = self._v1alpha_integration_schemas_get_with_http_info( - _return_http_data_only=True - ) - return data # type: ignore[no-any-return] - - def _v1alpha_integration_schemas_get_with_http_info(self, **kwargs: Any) -> Any: - all_params = ["_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 v1alpha_integration_schemas_get" - ) - params[key] = val - del params["kwargs"] - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/json"] - ) - - response_type_map = { - 200: "list[str]", - } - - return self.api_client.call_api( - "/v1alpha/integration-schemas", - "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 v1alpha_integration_schemas_post( + def add_schema( self, *, body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, @@ -113,12 +50,10 @@ def v1alpha_integration_schemas_post( ------- Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_integration_schemas_post_with_http_info( - body, _return_http_data_only=True - ) + data = self._add_schema_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_post_with_http_info( + def _add_schema_with_http_info( self, body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, **kwargs: Any, @@ -134,7 +69,7 @@ def _v1alpha_integration_schemas_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_post" + f"Got an unexpected keyword argument '{key}' to method add_schema" ) params[key] = val del params["kwargs"] @@ -190,38 +125,31 @@ def _v1alpha_integration_schemas_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schema_attributes_get( - self, *, schema: "str", include_implicit_attributes: "Optional[bool]" = None - ) -> "Union[List[GrantaServerApiIntegrationSchemaAttribute], None]": - """Returns a list of the attributes defined in the integration schema. + def all_schema_status( + self, *, include_diagnostics: "Optional[bool]" = None + ) -> "Dict[str, GrantaServerApiIntegrationIntegrationSchemaStatus]": + """Returns the status of all available integration schemas. This method makes a synchronous HTTP request. Parameters ---------- - schema: str - The schema name. - include_implicit_attributes: bool - Whether to add in the schema attributes derived from certain record properties (e.g. Record Name) that are implicitly in all integration schemas. False by default. + include_diagnostics: bool Returns ------- - Union[List[GrantaServerApiIntegrationSchemaAttribute], None] + Dict[str, GrantaServerApiIntegrationIntegrationSchemaStatus] """ - data = self._v1alpha_integration_schemas_schema_attributes_get_with_http_info( - schema, include_implicit_attributes, _return_http_data_only=True + data = self._all_schema_status_with_http_info( + include_diagnostics, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schema_attributes_get_with_http_info( - self, - schema: "str", - include_implicit_attributes: "Optional[bool]" = None, - **kwargs: Any, + def _all_schema_status_with_http_info( + self, include_diagnostics: "Optional[bool]" = None, **kwargs: Any ) -> Any: all_params = [ - "schema", - "include_implicit_attributes", + "include_diagnostics", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -231,30 +159,18 @@ def _v1alpha_integration_schemas_schema_attributes_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schema_attributes_get" + f"Got an unexpected keyword argument '{key}' to method all_schema_status" ) params[key] = val del params["kwargs"] - # verify the required parameter "schema" is set - if "schema" not in params or params["schema"] is None: - raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_attributes_get'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "schema" in params and schema is not None: - path_params["schema"] = params["schema"] query_params: List[Any] = [] - if ( - "include_implicit_attributes" in params - and include_implicit_attributes is not None - ): - query_params.append( - ("includeImplicitAttributes", params["include_implicit_attributes"]) - ) + if "include_diagnostics" in params and include_diagnostics is not None: + query_params.append(("include-diagnostics", params["include_diagnostics"])) header_params: Dict[str, Any] = {} @@ -268,12 +184,11 @@ def _v1alpha_integration_schemas_schema_attributes_get_with_http_info( ) response_type_map = { - 200: "list[GrantaServerApiIntegrationSchemaAttribute]", - 404: None, + 200: "dict(str, GrantaServerApiIntegrationIntegrationSchemaStatus)", } return self.api_client.call_api( - "/v1alpha/integration-schemas/{schema}/attributes", + "/v1alpha/integration-schemas:search-index-status", "GET", path_params, query_params, @@ -288,7 +203,7 @@ def _v1alpha_integration_schemas_schema_attributes_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schema_delete(self, *, schema: "str") -> "None": + def delete_schema(self, *, schema: "str") -> "None": """Delete an integration schema. Will fail if the schema does not exist, or if the user is not both a global administrator and an administrator for the schema. This method makes a synchronous HTTP request. @@ -302,14 +217,10 @@ def v1alpha_integration_schemas_schema_delete(self, *, schema: "str") -> "None": ------- None """ - data = self._v1alpha_integration_schemas_schema_delete_with_http_info( - schema, _return_http_data_only=True - ) + data = self._delete_schema_with_http_info(schema, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schema_delete_with_http_info( - self, schema: "str", **kwargs: Any - ) -> Any: + def _delete_schema_with_http_info(self, schema: "str", **kwargs: Any) -> Any: all_params = [ "schema", "_return_http_data_only", @@ -321,14 +232,14 @@ def _v1alpha_integration_schemas_schema_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schema_delete" + f"Got an unexpected keyword argument '{key}' to method delete_schema" ) params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_delete'" + "Missing the required parameter 'schema' when calling 'delete_schema'" ) collection_formats: Dict[str, Any] = {} @@ -368,7 +279,7 @@ def _v1alpha_integration_schemas_schema_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schema_get( + def get_schema( self, *, schema: "str", include_implicit_attributes: "Optional[bool]" = None ) -> "Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Returns the full object representing the integration schema. Names and identities of source items will be populated if they can be found in the databases currently loaded in MI, otherwise just the GUIDs will be returned. @@ -386,12 +297,12 @@ def v1alpha_integration_schemas_schema_get( ------- Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_integration_schemas_schema_get_with_http_info( + data = self._get_schema_with_http_info( schema, include_implicit_attributes, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schema_get_with_http_info( + def _get_schema_with_http_info( self, schema: "str", include_implicit_attributes: "Optional[bool]" = None, @@ -409,14 +320,14 @@ def _v1alpha_integration_schemas_schema_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schema_get" + f"Got an unexpected keyword argument '{key}' to method get_schema" ) params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_get'" + "Missing the required parameter 'schema' when calling 'get_schema'" ) collection_formats: Dict[str, Any] = {} @@ -466,39 +377,33 @@ def _v1alpha_integration_schemas_schema_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schema_put( - self, - *, - schema: "str", - body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, - ) -> "Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": - """Updates an integration schema, or adds a new one if there is not one with the same key already. Will fail if the schema is not valid, or if the user is not both a global administrator and an administrator for the schema. + def get_status_for_integration_schema( + self, *, schema: "str", include_diagnostics: "Optional[bool]" = None + ) -> "GrantaServerApiIntegrationIntegrationSchemaStatus": + """get_status_for_integration_schema This method makes a synchronous HTTP request. Parameters ---------- schema: str - body: GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier + include_diagnostics: bool Returns ------- - Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + GrantaServerApiIntegrationIntegrationSchemaStatus """ - data = self._v1alpha_integration_schemas_schema_put_with_http_info( - schema, body, _return_http_data_only=True + data = self._get_status_for_integration_schema_with_http_info( + schema, include_diagnostics, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schema_put_with_http_info( - self, - schema: "str", - body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, - **kwargs: Any, + def _get_status_for_integration_schema_with_http_info( + self, schema: "str", include_diagnostics: "Optional[bool]" = None, **kwargs: Any ) -> Any: all_params = [ "schema", - "body", + "include_diagnostics", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -508,14 +413,14 @@ def _v1alpha_integration_schemas_schema_put_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schema_put" + f"Got an unexpected keyword argument '{key}' to method get_status_for_integration_schema" ) params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_put'" + "Missing the required parameter 'schema' when calling 'get_status_for_integration_schema'" ) collection_formats: Dict[str, Any] = {} @@ -525,6 +430,8 @@ def _v1alpha_integration_schemas_schema_put_with_http_info( path_params["schema"] = params["schema"] query_params: List[Any] = [] + if "include_diagnostics" in params and include_diagnostics is not None: + query_params.append(("include-diagnostics", params["include_diagnostics"])) header_params: Dict[str, Any] = {} @@ -532,32 +439,18 @@ def _v1alpha_integration_schemas_schema_put_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", - 400: None, - 403: None, + 200: "GrantaServerApiIntegrationIntegrationSchemaStatus", } return self.api_client.call_api( - "/v1alpha/integration-schemas/{schema}", - "PUT", + "/v1alpha/integration-schemas/{schema}:search-index-status", + "GET", path_params, query_params, header_params, @@ -571,7 +464,7 @@ def _v1alpha_integration_schemas_schema_put_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get( + def schema_table_mappings( self, *, schema: "str", database_key: "str", table_identity: "int" ) -> "Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None]": """Returns a list of the schema source mapping from the given table. Will fail if the database is not loaded in MI. Names and identities of source items will be populated. @@ -588,12 +481,12 @@ def v1alpha_integration_schemas_schema_sources_database_database_key_table_table ------- Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None] """ - data = self._v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get_with_http_info( + data = self._schema_table_mappings_with_http_info( schema, database_key, table_identity, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get_with_http_info( + def _schema_table_mappings_with_http_info( self, schema: "str", database_key: "str", table_identity: "int", **kwargs: Any ) -> Any: all_params = [ @@ -609,24 +502,24 @@ def _v1alpha_integration_schemas_schema_sources_database_database_key_table_tabl for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get" + f"Got an unexpected keyword argument '{key}' to method schema_table_mappings" ) params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get'" + "Missing the required parameter 'schema' when calling 'schema_table_mappings'" ) # 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 'v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get'" + "Missing the required parameter 'database_key' when calling 'schema_table_mappings'" ) # verify the required parameter "table_identity" is set if "table_identity" not in params or params["table_identity"] is None: raise ValueError( - "Missing the required parameter 'table_identity' when calling 'v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get'" + "Missing the required parameter 'table_identity' when calling 'schema_table_mappings'" ) collection_formats: Dict[str, Any] = {} @@ -673,33 +566,38 @@ def _v1alpha_integration_schemas_schema_sources_database_database_key_table_tabl response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schemasearch_index_status_get( - self, *, schema: "str", include_diagnostics: "Optional[bool]" = None - ) -> "GrantaServerApiIntegrationIntegrationSchemaStatus": - """v1alpha_integration_schemas_schemasearch_index_status_get + def schema_targets( + self, *, schema: "str", include_implicit_attributes: "Optional[bool]" = None + ) -> "Union[List[GrantaServerApiIntegrationSchemaAttribute], None]": + """Returns a list of the attributes defined in the integration schema. This method makes a synchronous HTTP request. Parameters ---------- schema: str - include_diagnostics: bool + The schema name. + include_implicit_attributes: bool + Whether to add in the schema attributes derived from certain record properties (e.g. Record Name) that are implicitly in all integration schemas. False by default. Returns ------- - GrantaServerApiIntegrationIntegrationSchemaStatus + Union[List[GrantaServerApiIntegrationSchemaAttribute], None] """ - data = self._v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( - schema, include_diagnostics, _return_http_data_only=True + data = self._schema_targets_with_http_info( + schema, include_implicit_attributes, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( - self, schema: "str", include_diagnostics: "Optional[bool]" = None, **kwargs: Any + def _schema_targets_with_http_info( + self, + schema: "str", + include_implicit_attributes: "Optional[bool]" = None, + **kwargs: Any, ) -> Any: all_params = [ "schema", - "include_diagnostics", + "include_implicit_attributes", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -709,14 +607,14 @@ def _v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schemasearch_index_status_get" + f"Got an unexpected keyword argument '{key}' to method schema_targets" ) params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemasearch_index_status_get'" + "Missing the required parameter 'schema' when calling 'schema_targets'" ) collection_formats: Dict[str, Any] = {} @@ -726,8 +624,13 @@ def _v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( path_params["schema"] = params["schema"] query_params: List[Any] = [] - if "include_diagnostics" in params and include_diagnostics is not None: - query_params.append(("include-diagnostics", params["include_diagnostics"])) + if ( + "include_implicit_attributes" in params + and include_implicit_attributes is not None + ): + query_params.append( + ("includeImplicitAttributes", params["include_implicit_attributes"]) + ) header_params: Dict[str, Any] = {} @@ -741,11 +644,12 @@ def _v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiIntegrationIntegrationSchemaStatus", + 200: "list[GrantaServerApiIntegrationSchemaAttribute]", + 404: None, } return self.api_client.call_api( - "/v1alpha/integration-schemas/{schema}:search-index-status", + "/v1alpha/integration-schemas/{schema}/attributes", "GET", path_params, query_params, @@ -760,31 +664,100 @@ def _v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemassearch_index_status_get( - self, *, include_diagnostics: "Optional[bool]" = None - ) -> "Dict[str, GrantaServerApiIntegrationIntegrationSchemaStatus]": - """Returns the status of all available integration schemas. + def schemas(self) -> "List[str]": + """Lists the available integration schemas. + + This method makes a synchronous HTTP request. + + Returns + ------- + List[str] + """ + data = self._schemas_with_http_info(_return_http_data_only=True) + return data # type: ignore[no-any-return] + + def _schemas_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 schemas" + ) + params[key] = val + del params["kwargs"] + + collection_formats: Dict[str, Any] = {} + + path_params: Dict[str, Any] = {} + + query_params: List[Any] = [] + + header_params: Dict[str, Any] = {} + + 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( + ["text/plain", "application/json", "text/json"] + ) + + response_type_map = { + 200: "list[str]", + } + + return self.api_client.call_api( + "/v1alpha/integration-schemas", + "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 update_schema( + self, + *, + schema: "str", + body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, + ) -> "Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + """Updates an integration schema, or adds a new one if there is not one with the same key already. Will fail if the schema is not valid, or if the user is not both a global administrator and an administrator for the schema. This method makes a synchronous HTTP request. Parameters ---------- - include_diagnostics: bool + schema: str + body: GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier Returns ------- - Dict[str, GrantaServerApiIntegrationIntegrationSchemaStatus] + Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._v1alpha_integration_schemassearch_index_status_get_with_http_info( - include_diagnostics, _return_http_data_only=True + data = self._update_schema_with_http_info( + schema, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemassearch_index_status_get_with_http_info( - self, include_diagnostics: "Optional[bool]" = None, **kwargs: Any + def _update_schema_with_http_info( + self, + schema: "str", + body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, + **kwargs: Any, ) -> Any: all_params = [ - "include_diagnostics", + "schema", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -794,18 +767,23 @@ def _v1alpha_integration_schemassearch_index_status_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemassearch_index_status_get" + f"Got an unexpected keyword argument '{key}' to method update_schema" ) params[key] = val del params["kwargs"] + # verify the required parameter "schema" is set + if "schema" not in params or params["schema"] is None: + raise ValueError( + "Missing the required parameter 'schema' when calling 'update_schema'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "schema" in params and schema is not None: + path_params["schema"] = params["schema"] query_params: List[Any] = [] - if "include_diagnostics" in params and include_diagnostics is not None: - query_params.append(("include-diagnostics", params["include_diagnostics"])) header_params: Dict[str, Any] = {} @@ -813,18 +791,32 @@ def _v1alpha_integration_schemassearch_index_status_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "dict(str, GrantaServerApiIntegrationIntegrationSchemaStatus)", + 201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 400: None, + 403: None, } return self.api_client.call_api( - "/v1alpha/integration-schemas:search-index-status", - "GET", + "/v1alpha/integration-schemas/{schema}", + "PUT", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py index 876906bb..c9fa5bd0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py @@ -33,30 +33,41 @@ class JobQueueApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_job_queue_current_user_get( - self, - ) -> "GrantaServerApiAsyncJobsCurrentUser": - """Get the current user. + def create_job( + self, *, body: "Optional[GrantaServerApiAsyncJobsCreateJobRequest]" = None + ) -> "GrantaServerApiAsyncJobsJob": + """Create a new job. This method makes a synchronous HTTP request. + Parameters + ---------- + body: GrantaServerApiAsyncJobsCreateJobRequest + Returns ------- - GrantaServerApiAsyncJobsCurrentUser + GrantaServerApiAsyncJobsJob """ - data = self._v1alpha_job_queue_current_user_get_with_http_info( - _return_http_data_only=True - ) + data = self._create_job_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs: Any) -> Any: - all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] + def _create_job_with_http_info( + self, + body: "Optional[GrantaServerApiAsyncJobsCreateJobRequest]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "body", + "_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 v1alpha_job_queue_current_user_get" + f"Got an unexpected keyword argument '{key}' to method create_job" ) params[key] = val del params["kwargs"] @@ -73,18 +84,30 @@ def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs: Any) -> A 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiAsyncJobsCurrentUser", + 201: "GrantaServerApiAsyncJobsJob", } return self.api_client.call_api( - "/v1alpha/job-queue/current-user", - "GET", + "/v1alpha/job-queue/jobs", + "POST", path_params, query_params, header_params, @@ -98,31 +121,25 @@ def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs: Any) -> A response_type_map=response_type_map, ) - def v1alpha_job_queue_files_post( - self, *, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None - ) -> "str": - """Uploads an ephemeral file and returns an ID which can subsequently be used to refer to that file in a job creation request. Ephemeral files have a short lifespan and should be used to provide file data to jobs only. They should not be used as file storage. + def delete_job(self, *, id: "str") -> "None": + """Delete a job. This method makes a synchronous HTTP request. Parameters ---------- - file: Union[BinaryIO, pathlib.Path] + id: str Returns ------- - str + None """ - data = self._v1alpha_job_queue_files_post_with_http_info( - file, _return_http_data_only=True - ) + data = self._delete_job_with_http_info(id, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_files_post_with_http_info( - self, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, **kwargs: Any - ) -> Any: + def _delete_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: all_params = [ - "file", + "id", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -132,14 +149,21 @@ def _v1alpha_job_queue_files_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_files_post" + f"Got an unexpected keyword argument '{key}' to method delete_job" ) params[key] = val del params["kwargs"] + # verify the required parameter "id" is set + if "id" not in params or params["id"] is None: + raise ValueError( + "Missing the required parameter 'id' when calling 'delete_job'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "id" in params and id is not None: + path_params["id"] = params["id"] query_params: List[Any] = [] @@ -147,25 +171,18 @@ def _v1alpha_job_queue_files_post_with_http_info( form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} - if "file" in params and file is not None: - local_var_files["file"] = params["file"] body_params = None - # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["text/plain", "application/json", "text/json"] - ) - - # multipart/form-data request detected. Content-Type header will be - # populated by openapi-common based on request content. response_type_map = { - 200: "str", + 200: None, + 204: None, + 404: None, } return self.api_client.call_api( - "/v1alpha/job-queue/files", - "POST", + "/v1alpha/job-queue/jobs/{id}", + "DELETE", path_params, query_params, header_params, @@ -179,7 +196,7 @@ def _v1alpha_job_queue_files_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_delete( + def delete_jobs( self, *, body: "Optional[List[str]]" = None ) -> "Union[List[str], None]": """Delete specified jobs. @@ -194,12 +211,10 @@ def v1alpha_job_queue_jobs_delete( ------- Union[List[str], None] """ - data = self._v1alpha_job_queue_jobs_delete_with_http_info( - body, _return_http_data_only=True - ) + data = self._delete_jobs_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_delete_with_http_info( + def _delete_jobs_with_http_info( self, body: "Optional[List[str]]" = None, **kwargs: Any ) -> Any: all_params = [ @@ -213,7 +228,7 @@ def _v1alpha_job_queue_jobs_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_delete" + f"Got an unexpected keyword argument '{key}' to method delete_jobs" ) params[key] = val del params["kwargs"] @@ -269,76 +284,26 @@ def _v1alpha_job_queue_jobs_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_get( - self, - *, - job_type: "Optional[str]" = None, - status: "Optional[str]" = None, - name_filter: "Optional[str]" = None, - description_filter: "Optional[str]" = None, - submitter_name_filter: "Optional[str]" = None, - page_size: "Optional[int]" = None, - page_number: "Optional[int]" = None, - ) -> "GrantaServerApiAsyncJobsGetJobsResponse": - """Get a list of jobs. + def get_current_user(self) -> "GrantaServerApiAsyncJobsCurrentUser": + """Get the current user. This method makes a synchronous HTTP request. - Parameters - ---------- - job_type: str - status: str - name_filter: str - description_filter: str - submitter_name_filter: str - page_size: int - page_number: int - Returns ------- - GrantaServerApiAsyncJobsGetJobsResponse + GrantaServerApiAsyncJobsCurrentUser """ - data = self._v1alpha_job_queue_jobs_get_with_http_info( - job_type, - status, - name_filter, - description_filter, - submitter_name_filter, - page_size, - page_number, - _return_http_data_only=True, - ) + data = self._get_current_user_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_get_with_http_info( - self, - job_type: "Optional[str]" = None, - status: "Optional[str]" = None, - name_filter: "Optional[str]" = None, - description_filter: "Optional[str]" = None, - submitter_name_filter: "Optional[str]" = None, - page_size: "Optional[int]" = None, - page_number: "Optional[int]" = None, - **kwargs: Any, - ) -> Any: - all_params = [ - "job_type", - "status", - "name_filter", - "description_filter", - "submitter_name_filter", - "page_size", - "page_number", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_current_user_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 v1alpha_job_queue_jobs_get" + f"Got an unexpected keyword argument '{key}' to method get_current_user" ) params[key] = val del params["kwargs"] @@ -348,22 +313,6 @@ def _v1alpha_job_queue_jobs_get_with_http_info( path_params: Dict[str, Any] = {} query_params: List[Any] = [] - if "job_type" in params and job_type is not None: - query_params.append(("jobType", params["job_type"])) - if "status" in params and status is not None: - query_params.append(("status", params["status"])) - if "name_filter" in params and name_filter is not None: - query_params.append(("nameFilter", params["name_filter"])) - if "description_filter" in params and description_filter is not None: - query_params.append(("descriptionFilter", params["description_filter"])) - if "submitter_name_filter" in params and submitter_name_filter is not None: - query_params.append( - ("submitterNameFilter", params["submitter_name_filter"]) - ) - if "page_size" in params and page_size is not None: - query_params.append(("pageSize", params["page_size"])) - if "page_number" in params and page_number is not None: - query_params.append(("pageNumber", params["page_number"])) header_params: Dict[str, Any] = {} @@ -377,11 +326,11 @@ def _v1alpha_job_queue_jobs_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiAsyncJobsGetJobsResponse", + 200: "GrantaServerApiAsyncJobsCurrentUser", } return self.api_client.call_api( - "/v1alpha/job-queue/jobs", + "/v1alpha/job-queue/current-user", "GET", path_params, query_params, @@ -396,8 +345,8 @@ def _v1alpha_job_queue_jobs_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_id_delete(self, *, id: "str") -> "None": - """Delete a job. + def get_job(self, *, id: "str") -> "Union[GrantaServerApiAsyncJobsJob, None]": + """Get job by ID. This method makes a synchronous HTTP request. @@ -407,16 +356,12 @@ def v1alpha_job_queue_jobs_id_delete(self, *, id: "str") -> "None": Returns ------- - None + Union[GrantaServerApiAsyncJobsJob, None] """ - data = self._v1alpha_job_queue_jobs_id_delete_with_http_info( - id, _return_http_data_only=True - ) + data = self._get_job_with_http_info(id, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_id_delete_with_http_info( - self, id: "str", **kwargs: Any - ) -> Any: + def _get_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: all_params = [ "id", "_return_http_data_only", @@ -428,14 +373,14 @@ def _v1alpha_job_queue_jobs_id_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_id_delete" + f"Got an unexpected keyword argument '{key}' to method get_job" ) params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_delete'" + "Missing the required parameter 'id' when calling 'get_job'" ) collection_formats: Dict[str, Any] = {} @@ -452,16 +397,19 @@ def _v1alpha_job_queue_jobs_id_delete_with_http_info( local_var_files: Dict[str, Any] = {} body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] + ) response_type_map = { - 200: None, - 204: None, + 200: "GrantaServerApiAsyncJobsJob", 404: None, } return self.api_client.call_api( "/v1alpha/job-queue/jobs/{id}", - "DELETE", + "GET", path_params, query_params, header_params, @@ -475,31 +423,31 @@ def _v1alpha_job_queue_jobs_id_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_id_get( - self, *, id: "str" - ) -> "Union[GrantaServerApiAsyncJobsJob, None]": - """Get job by ID. + def get_job_output_file(self, *, id: "str", file_name: "str") -> "Union[None, str]": + """Retrieve a job output file. This method makes a synchronous HTTP request. Parameters ---------- id: str + file_name: str Returns ------- - Union[GrantaServerApiAsyncJobsJob, None] + Union[None, str] """ - data = self._v1alpha_job_queue_jobs_id_get_with_http_info( - id, _return_http_data_only=True + data = self._get_job_output_file_with_http_info( + id, file_name, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_id_get_with_http_info( - self, id: "str", **kwargs: Any + def _get_job_output_file_with_http_info( + self, id: "str", file_name: "str", **kwargs: Any ) -> Any: all_params = [ "id", + "file_name", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -509,14 +457,19 @@ def _v1alpha_job_queue_jobs_id_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_id_get" + f"Got an unexpected keyword argument '{key}' to method get_job_output_file" ) params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_get'" + "Missing the required parameter 'id' when calling 'get_job_output_file'" + ) + # verify the required parameter "file_name" is set + if "file_name" not in params or params["file_name"] is None: + raise ValueError( + "Missing the required parameter 'file_name' when calling 'get_job_output_file'" ) collection_formats: Dict[str, Any] = {} @@ -526,6 +479,8 @@ def _v1alpha_job_queue_jobs_id_get_with_http_info( path_params["id"] = params["id"] query_params: List[Any] = [] + if "file_name" in params and file_name is not None: + query_params.append(("fileName", params["file_name"])) header_params: Dict[str, Any] = {} @@ -535,16 +490,16 @@ def _v1alpha_job_queue_jobs_id_get_with_http_info( body_params = None # HTTP header 'Accept' header_params["Accept"] = self.api_client.select_header_accept( - ["text/plain", "application/json", "text/json"] + ["application/octet-stream"] ) response_type_map = { - 200: "GrantaServerApiAsyncJobsJob", + 200: "file", 404: None, } return self.api_client.call_api( - "/v1alpha/job-queue/jobs/{id}", + "/v1alpha/job-queue/jobs/{id}/outputs:export", "GET", path_params, query_params, @@ -559,31 +514,66 @@ def _v1alpha_job_queue_jobs_id_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_id_outputs_get( - self, *, id: "str" - ) -> "Union[List[str], None]": - """Get a job's output filenames. + def get_jobs( + self, + *, + job_type: "Optional[str]" = None, + status: "Optional[str]" = None, + name_filter: "Optional[str]" = None, + description_filter: "Optional[str]" = None, + submitter_name_filter: "Optional[str]" = None, + page_size: "Optional[int]" = None, + page_number: "Optional[int]" = None, + ) -> "GrantaServerApiAsyncJobsGetJobsResponse": + """Get a list of jobs. This method makes a synchronous HTTP request. Parameters ---------- - id: str + job_type: str + status: str + name_filter: str + description_filter: str + submitter_name_filter: str + page_size: int + page_number: int Returns ------- - Union[List[str], None] + GrantaServerApiAsyncJobsGetJobsResponse """ - data = self._v1alpha_job_queue_jobs_id_outputs_get_with_http_info( - id, _return_http_data_only=True + data = self._get_jobs_with_http_info( + job_type, + status, + name_filter, + description_filter, + submitter_name_filter, + page_size, + page_number, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_id_outputs_get_with_http_info( - self, id: "str", **kwargs: Any + def _get_jobs_with_http_info( + self, + job_type: "Optional[str]" = None, + status: "Optional[str]" = None, + name_filter: "Optional[str]" = None, + description_filter: "Optional[str]" = None, + submitter_name_filter: "Optional[str]" = None, + page_size: "Optional[int]" = None, + page_number: "Optional[int]" = None, + **kwargs: Any, ) -> Any: all_params = [ - "id", + "job_type", + "status", + "name_filter", + "description_filter", + "submitter_name_filter", + "page_size", + "page_number", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -593,23 +583,32 @@ def _v1alpha_job_queue_jobs_id_outputs_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_id_outputs_get" + f"Got an unexpected keyword argument '{key}' to method get_jobs" ) params[key] = val del params["kwargs"] - # verify the required parameter "id" is set - if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_outputs_get'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "id" in params and id is not None: - path_params["id"] = params["id"] query_params: List[Any] = [] + if "job_type" in params and job_type is not None: + query_params.append(("jobType", params["job_type"])) + if "status" in params and status is not None: + query_params.append(("status", params["status"])) + if "name_filter" in params and name_filter is not None: + query_params.append(("nameFilter", params["name_filter"])) + if "description_filter" in params and description_filter is not None: + query_params.append(("descriptionFilter", params["description_filter"])) + if "submitter_name_filter" in params and submitter_name_filter is not None: + query_params.append( + ("submitterNameFilter", params["submitter_name_filter"]) + ) + if "page_size" in params and page_size is not None: + query_params.append(("pageSize", params["page_size"])) + if "page_number" in params and page_number is not None: + query_params.append(("pageNumber", params["page_number"])) header_params: Dict[str, Any] = {} @@ -623,12 +622,11 @@ def _v1alpha_job_queue_jobs_id_outputs_get_with_http_info( ) response_type_map = { - 200: "list[str]", - 404: None, + 200: "GrantaServerApiAsyncJobsGetJobsResponse", } return self.api_client.call_api( - "/v1alpha/job-queue/jobs/{id}/outputs", + "/v1alpha/job-queue/jobs", "GET", path_params, query_params, @@ -643,33 +641,27 @@ def _v1alpha_job_queue_jobs_id_outputs_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_id_outputsexport_get( - self, *, id: "str", file_name: "str" - ) -> "Union[None, str]": - """Retrieve a job output file. + def get_output_filenames(self, *, id: "str") -> "Union[List[str], None]": + """Get a job's output filenames. This method makes a synchronous HTTP request. Parameters ---------- id: str - file_name: str Returns ------- - Union[None, str] + Union[List[str], None] """ - data = self._v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( - id, file_name, _return_http_data_only=True + data = self._get_output_filenames_with_http_info( + id, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( - self, id: "str", file_name: "str", **kwargs: Any - ) -> Any: + def _get_output_filenames_with_http_info(self, id: "str", **kwargs: Any) -> Any: all_params = [ "id", - "file_name", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -679,19 +671,14 @@ def _v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_id_outputsexport_get" + f"Got an unexpected keyword argument '{key}' to method get_output_filenames" ) params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_outputsexport_get'" - ) - # verify the required parameter "file_name" is set - if "file_name" not in params or params["file_name"] is None: - raise ValueError( - "Missing the required parameter 'file_name' when calling 'v1alpha_job_queue_jobs_id_outputsexport_get'" + "Missing the required parameter 'id' when calling 'get_output_filenames'" ) collection_formats: Dict[str, Any] = {} @@ -701,8 +688,6 @@ def _v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( path_params["id"] = params["id"] query_params: List[Any] = [] - if "file_name" in params and file_name is not None: - query_params.append(("fileName", params["file_name"])) header_params: Dict[str, Any] = {} @@ -712,16 +697,16 @@ def _v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( body_params = None # HTTP header 'Accept' header_params["Accept"] = self.api_client.select_header_accept( - ["application/octet-stream"] + ["text/plain", "application/json", "text/json"] ) response_type_map = { - 200: "file", + 200: "list[str]", 404: None, } return self.api_client.call_api( - "/v1alpha/job-queue/jobs/{id}/outputs:export", + "/v1alpha/job-queue/jobs/{id}/outputs", "GET", path_params, query_params, @@ -736,63 +721,33 @@ def _v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_id_patch( - self, - *, - id: "str", - body: "Optional[GrantaServerApiAsyncJobsUpdateJobRequest]" = None, - ) -> "Union[GrantaServerApiAsyncJobsJob, None]": - """Update a job. + def get_processing_config(self) -> "GrantaServerApiAsyncJobsProcessingConfig": + """Get the processing configuration. This method makes a synchronous HTTP request. - Parameters - ---------- - id: str - body: GrantaServerApiAsyncJobsUpdateJobRequest - Returns ------- - Union[GrantaServerApiAsyncJobsJob, None] + GrantaServerApiAsyncJobsProcessingConfig """ - data = self._v1alpha_job_queue_jobs_id_patch_with_http_info( - id, body, _return_http_data_only=True - ) + data = self._get_processing_config_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_id_patch_with_http_info( - self, - id: "str", - body: "Optional[GrantaServerApiAsyncJobsUpdateJobRequest]" = None, - **kwargs: Any, - ) -> Any: - all_params = [ - "id", - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_processing_config_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 v1alpha_job_queue_jobs_id_patch" + f"Got an unexpected keyword argument '{key}' to method get_processing_config" ) params[key] = val del params["kwargs"] - # verify the required parameter "id" is set - if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_patch'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "id" in params and id is not None: - path_params["id"] = params["id"] query_params: List[Any] = [] @@ -802,31 +757,18 @@ def _v1alpha_job_queue_jobs_id_patch_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiAsyncJobsJob", - 404: None, + 200: "GrantaServerApiAsyncJobsProcessingConfig", } return self.api_client.call_api( - "/v1alpha/job-queue/jobs/{id}", - "PATCH", + "/v1alpha/job-queue/processing-configuration", + "GET", path_params, query_params, header_params, @@ -840,7 +782,7 @@ def _v1alpha_job_queue_jobs_id_patch_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_idmove_to_top_post(self, *, id: "str") -> "None": + def move_to_top(self, *, id: "str") -> "None": """Move a job to the top of the queue (actually sets the scheduled execution date to now, could be done with patch method). This method makes a synchronous HTTP request. @@ -853,14 +795,10 @@ def v1alpha_job_queue_jobs_idmove_to_top_post(self, *, id: "str") -> "None": ------- None """ - data = self._v1alpha_job_queue_jobs_idmove_to_top_post_with_http_info( - id, _return_http_data_only=True - ) + data = self._move_to_top_with_http_info(id, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_idmove_to_top_post_with_http_info( - self, id: "str", **kwargs: Any - ) -> Any: + def _move_to_top_with_http_info(self, id: "str", **kwargs: Any) -> Any: all_params = [ "id", "_return_http_data_only", @@ -872,14 +810,14 @@ def _v1alpha_job_queue_jobs_idmove_to_top_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_idmove_to_top_post" + f"Got an unexpected keyword argument '{key}' to method move_to_top" ) params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_idmove_to_top_post'" + "Missing the required parameter 'id' when calling 'move_to_top'" ) collection_formats: Dict[str, Any] = {} @@ -918,39 +856,27 @@ def _v1alpha_job_queue_jobs_idmove_to_top_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_idresubmit_post( - self, - *, - id: "str", - body: "Optional[GrantaServerApiAsyncJobsResubmitJobRequest]" = None, - ) -> "Union[GrantaServerApiAsyncJobsJob, None]": - """Resubmit a job. + def restore_job( + self, *, id: "str" + ) -> "Union[GrantaServerApiAsyncJobsCreateJobRequest, None]": + """Get a job creation object based on an existing job. This method makes a synchronous HTTP request. Parameters ---------- id: str - body: GrantaServerApiAsyncJobsResubmitJobRequest Returns ------- - Union[GrantaServerApiAsyncJobsJob, None] + Union[GrantaServerApiAsyncJobsCreateJobRequest, None] """ - data = self._v1alpha_job_queue_jobs_idresubmit_post_with_http_info( - id, body, _return_http_data_only=True - ) + data = self._restore_job_with_http_info(id, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_idresubmit_post_with_http_info( - self, - id: "str", - body: "Optional[GrantaServerApiAsyncJobsResubmitJobRequest]" = None, - **kwargs: Any, - ) -> Any: + def _restore_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: all_params = [ "id", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -960,14 +886,14 @@ def _v1alpha_job_queue_jobs_idresubmit_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_idresubmit_post" + f"Got an unexpected keyword argument '{key}' to method restore_job" ) params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_idresubmit_post'" + "Missing the required parameter 'id' when calling 'restore_job'" ) collection_formats: Dict[str, Any] = {} @@ -984,31 +910,19 @@ def _v1alpha_job_queue_jobs_idresubmit_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiAsyncJobsJob", + 200: "GrantaServerApiAsyncJobsCreateJobRequest", 404: None, } return self.api_client.call_api( - "/v1alpha/job-queue/jobs/{id}:resubmit", - "POST", + "/v1alpha/job-queue/jobs/{id}:retrieve-definition", + "GET", path_params, query_params, header_params, @@ -1022,31 +936,37 @@ def _v1alpha_job_queue_jobs_idresubmit_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_idretrieve_definition_get( - self, *, id: "str" - ) -> "Union[GrantaServerApiAsyncJobsCreateJobRequest, None]": - """Get a job creation object based on an existing job. + def resubmit( + self, + *, + id: "str", + body: "Optional[GrantaServerApiAsyncJobsResubmitJobRequest]" = None, + ) -> "Union[GrantaServerApiAsyncJobsJob, None]": + """Resubmit a job. This method makes a synchronous HTTP request. Parameters ---------- id: str + body: GrantaServerApiAsyncJobsResubmitJobRequest Returns ------- - Union[GrantaServerApiAsyncJobsCreateJobRequest, None] + Union[GrantaServerApiAsyncJobsJob, None] """ - data = self._v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( - id, _return_http_data_only=True - ) + data = self._resubmit_with_http_info(id, body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( - self, id: "str", **kwargs: Any + def _resubmit_with_http_info( + self, + id: "str", + body: "Optional[GrantaServerApiAsyncJobsResubmitJobRequest]" = None, + **kwargs: Any, ) -> Any: all_params = [ "id", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1056,14 +976,14 @@ def _v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_idretrieve_definition_get" + f"Got an unexpected keyword argument '{key}' to method resubmit" ) params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: raise ValueError( - "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_idretrieve_definition_get'" + "Missing the required parameter 'id' when calling 'resubmit'" ) collection_formats: Dict[str, Any] = {} @@ -1080,19 +1000,31 @@ def _v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiAsyncJobsCreateJobRequest", + 200: "GrantaServerApiAsyncJobsJob", 404: None, } return self.api_client.call_api( - "/v1alpha/job-queue/jobs/{id}:retrieve-definition", - "GET", + "/v1alpha/job-queue/jobs/{id}:resubmit", + "POST", path_params, query_params, header_params, @@ -1106,32 +1038,36 @@ def _v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_jobs_post( - self, *, body: "Optional[GrantaServerApiAsyncJobsCreateJobRequest]" = None - ) -> "GrantaServerApiAsyncJobsJob": - """Create a new job. + def update_job( + self, + *, + id: "str", + body: "Optional[GrantaServerApiAsyncJobsUpdateJobRequest]" = None, + ) -> "Union[GrantaServerApiAsyncJobsJob, None]": + """Update a job. This method makes a synchronous HTTP request. Parameters ---------- - body: GrantaServerApiAsyncJobsCreateJobRequest + id: str + body: GrantaServerApiAsyncJobsUpdateJobRequest Returns ------- - GrantaServerApiAsyncJobsJob + Union[GrantaServerApiAsyncJobsJob, None] """ - data = self._v1alpha_job_queue_jobs_post_with_http_info( - body, _return_http_data_only=True - ) + data = self._update_job_with_http_info(id, body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_post_with_http_info( + def _update_job_with_http_info( self, - body: "Optional[GrantaServerApiAsyncJobsCreateJobRequest]" = None, + id: "str", + body: "Optional[GrantaServerApiAsyncJobsUpdateJobRequest]" = None, **kwargs: Any, ) -> Any: all_params = [ + "id", "body", "_return_http_data_only", "_preload_content", @@ -1142,14 +1078,21 @@ def _v1alpha_job_queue_jobs_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_jobs_post" + f"Got an unexpected keyword argument '{key}' to method update_job" ) params[key] = val del params["kwargs"] + # verify the required parameter "id" is set + if "id" not in params or params["id"] is None: + raise ValueError( + "Missing the required parameter 'id' when calling 'update_job'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "id" in params and id is not None: + path_params["id"] = params["id"] query_params: List[Any] = [] @@ -1177,12 +1120,13 @@ def _v1alpha_job_queue_jobs_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiAsyncJobsJob", + 200: "GrantaServerApiAsyncJobsJob", + 404: None, } return self.api_client.call_api( - "/v1alpha/job-queue/jobs", - "POST", + "/v1alpha/job-queue/jobs/{id}", + "PATCH", path_params, query_params, header_params, @@ -1196,32 +1140,39 @@ def _v1alpha_job_queue_jobs_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_job_queue_processing_configuration_get( - self, - ) -> "GrantaServerApiAsyncJobsProcessingConfig": - """Get the processing configuration. + def upload_file( + self, *, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None + ) -> "str": + """Uploads an ephemeral file and returns an ID which can subsequently be used to refer to that file in a job creation request. Ephemeral files have a short lifespan and should be used to provide file data to jobs only. They should not be used as file storage. This method makes a synchronous HTTP request. + Parameters + ---------- + file: Union[BinaryIO, pathlib.Path] + Returns ------- - GrantaServerApiAsyncJobsProcessingConfig + str """ - data = self._v1alpha_job_queue_processing_configuration_get_with_http_info( - _return_http_data_only=True - ) + data = self._upload_file_with_http_info(file, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_job_queue_processing_configuration_get_with_http_info( - self, **kwargs: Any + def _upload_file_with_http_info( + self, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, **kwargs: Any ) -> Any: - all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] + all_params = [ + "file", + "_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 v1alpha_job_queue_processing_configuration_get" + f"Got an unexpected keyword argument '{key}' to method upload_file" ) params[key] = val del params["kwargs"] @@ -1236,6 +1187,8 @@ def _v1alpha_job_queue_processing_configuration_get_with_http_info( form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} + if "file" in params and file is not None: + local_var_files["file"] = params["file"] body_params = None # HTTP header 'Accept' @@ -1243,13 +1196,16 @@ def _v1alpha_job_queue_processing_configuration_get_with_http_info( ["text/plain", "application/json", "text/json"] ) + # multipart/form-data request detected. Content-Type header will be + # populated by openapi-common based on request content. + response_type_map = { - 200: "GrantaServerApiAsyncJobsProcessingConfig", + 200: "str", } return self.api_client.call_api( - "/v1alpha/job-queue/processing-configuration", - "GET", + "/v1alpha/job-queue/files", + "POST", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py index 20794e05..574006ba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py @@ -33,7 +33,7 @@ class LicenseApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_license_server_licensesensure_checked_out_post( + def checkout_app_license( self, *, body: "Optional[GrantaServerApiAppNameLicenseCheckoutRequest]" = None ) -> "GrantaServerApiAppNameLicenseCheckoutResponse": """Checks out server wide licenses and returns a bool for each provided app name indicating if the relevant license(s) required have been checked out. @@ -48,14 +48,12 @@ def v1alpha_license_server_licensesensure_checked_out_post( ------- GrantaServerApiAppNameLicenseCheckoutResponse """ - data = ( - self._v1alpha_license_server_licensesensure_checked_out_post_with_http_info( - body, _return_http_data_only=True - ) + data = self._checkout_app_license_with_http_info( + body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_license_server_licensesensure_checked_out_post_with_http_info( + def _checkout_app_license_with_http_info( self, body: "Optional[GrantaServerApiAppNameLicenseCheckoutRequest]" = None, **kwargs: Any, @@ -71,7 +69,7 @@ def _v1alpha_license_server_licensesensure_checked_out_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_license_server_licensesensure_checked_out_post" + f"Got an unexpected keyword argument '{key}' to method checkout_app_license" ) params[key] = val del params["kwargs"] diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py index 951de33a..a5729735 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py @@ -33,7 +33,7 @@ class ListItemApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def api_v1_lists_list_list_identifier_items_add_post( + def add_items_to_list( self, *, list_identifier: "str", @@ -52,12 +52,12 @@ def api_v1_lists_list_list_identifier_items_add_post( ------- Union[GrantaServerApiListsDtoRecordListItemsInfo, None] """ - data = self._api_v1_lists_list_list_identifier_items_add_post_with_http_info( + data = self._add_items_to_list_with_http_info( list_identifier, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( + def _add_items_to_list_with_http_info( self, list_identifier: "str", body: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" = None, @@ -75,14 +75,14 @@ def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_items_add_post" + f"Got an unexpected keyword argument '{key}' to method add_items_to_list" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_items_add_post'" + "Missing the required parameter 'list_identifier' when calling 'add_items_to_list'" ) collection_formats: Dict[str, Any] = {} @@ -139,7 +139,7 @@ def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_items_get( + def get_list_items( self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoRecordListItemsInfo, None]": """Returns the items in the given list @@ -154,12 +154,12 @@ def api_v1_lists_list_list_identifier_items_get( ------- Union[GrantaServerApiListsDtoRecordListItemsInfo, None] """ - data = self._api_v1_lists_list_list_identifier_items_get_with_http_info( + data = self._get_list_items_with_http_info( list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_items_get_with_http_info( + def _get_list_items_with_http_info( self, list_identifier: "str", **kwargs: Any ) -> Any: all_params = [ @@ -173,14 +173,14 @@ def _api_v1_lists_list_list_identifier_items_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_items_get" + f"Got an unexpected keyword argument '{key}' to method get_list_items" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_items_get'" + "Missing the required parameter 'list_identifier' when calling 'get_list_items'" ) collection_formats: Dict[str, Any] = {} @@ -224,7 +224,7 @@ def _api_v1_lists_list_list_identifier_items_get_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_items_remove_post( + def remove_items_from_list( self, *, list_identifier: "str", @@ -243,12 +243,12 @@ def api_v1_lists_list_list_identifier_items_remove_post( ------- Union[GrantaServerApiListsDtoRecordListItemsInfo, None] """ - data = self._api_v1_lists_list_list_identifier_items_remove_post_with_http_info( + data = self._remove_items_from_list_with_http_info( list_identifier, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_items_remove_post_with_http_info( + def _remove_items_from_list_with_http_info( self, list_identifier: "str", body: "Optional[GrantaServerApiListsDtoDeleteRecordListItems]" = None, @@ -266,14 +266,14 @@ def _api_v1_lists_list_list_identifier_items_remove_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_items_remove_post" + f"Got an unexpected keyword argument '{key}' to method remove_items_from_list" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_items_remove_post'" + "Missing the required parameter 'list_identifier' when calling 'remove_items_from_list'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py index 7b8db9ba..82b9f03e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py @@ -33,35 +33,53 @@ class ListManagementApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def api_v1_lists_get( - self, - ) -> "Union[GrantaServerApiListsDtoRecordListHeadersInfo, None]": - """Returns all lists visible to the calling user + def copy_list( + self, *, list_identifier: "str" + ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": + """Creates a copy of the list and its items This method makes a synchronous HTTP request. + Parameters + ---------- + list_identifier: str + Returns ------- - Union[GrantaServerApiListsDtoRecordListHeadersInfo, None] + Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_get_with_http_info(_return_http_data_only=True) + data = self._copy_list_with_http_info( + list_identifier, _return_http_data_only=True + ) return data # type: ignore[no-any-return] - def _api_v1_lists_get_with_http_info(self, **kwargs: Any) -> Any: - all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] + def _copy_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: + all_params = [ + "list_identifier", + "_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 api_v1_lists_get" + f"Got an unexpected keyword argument '{key}' to method copy_list" ) params[key] = val del params["kwargs"] + # verify the required parameter "list_identifier" is set + if "list_identifier" not in params or params["list_identifier"] is None: + raise ValueError( + "Missing the required parameter 'list_identifier' when calling 'copy_list'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "list_identifier" in params and list_identifier is not None: + path_params["listIdentifier"] = params["list_identifier"] query_params: List[Any] = [] @@ -77,13 +95,14 @@ def _api_v1_lists_get_with_http_info(self, **kwargs: Any) -> Any: ) response_type_map = { - 200: "GrantaServerApiListsDtoRecordListHeadersInfo", + 201: "GrantaServerApiListsDtoRecordListHeader", 403: None, + 404: None, } return self.api_client.call_api( - "/api/v1/lists", - "GET", + "/api/v1/lists/list/{listIdentifier}/copy", + "POST", path_params, query_params, header_params, @@ -97,31 +116,31 @@ def _api_v1_lists_get_with_http_info(self, **kwargs: Any) -> Any: response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_copy_post( - self, *, list_identifier: "str" + def create_list( + self, *, body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Creates a copy of the list and its items + """Creates a new list with the specified properties and items. This method makes a synchronous HTTP request. Parameters ---------- - list_identifier: str + body: GrantaServerApiListsDtoCreateRecordList Returns ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_list_list_identifier_copy_post_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._create_list_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_copy_post_with_http_info( - self, list_identifier: "str", **kwargs: Any + def _create_list_with_http_info( + self, + body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None, + **kwargs: Any, ) -> Any: all_params = [ - "list_identifier", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -131,21 +150,14 @@ def _api_v1_lists_list_list_identifier_copy_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_copy_post" + f"Got an unexpected keyword argument '{key}' to method create_list" ) params[key] = val del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_copy_post'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] query_params: List[Any] = [] @@ -155,19 +167,31 @@ def _api_v1_lists_list_list_identifier_copy_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { 201: "GrantaServerApiListsDtoRecordListHeader", + 400: None, 403: None, - 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/copy", + "/api/v1/lists", "POST", path_params, query_params, @@ -182,9 +206,7 @@ def _api_v1_lists_list_list_identifier_copy_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_delete( - self, *, list_identifier: "str" - ) -> "None": + def delete_list(self, *, list_identifier: "str") -> "None": """Delete an existing list. This method makes a synchronous HTTP request. @@ -197,14 +219,12 @@ def api_v1_lists_list_list_identifier_delete( ------- None """ - data = self._api_v1_lists_list_list_identifier_delete_with_http_info( + data = self._delete_list_with_http_info( list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_delete_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _delete_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -216,14 +236,14 @@ def _api_v1_lists_list_list_identifier_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_delete" + f"Got an unexpected keyword argument '{key}' to method delete_list" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_delete'" + "Missing the required parameter 'list_identifier' when calling 'delete_list'" ) collection_formats: Dict[str, Any] = {} @@ -263,55 +283,35 @@ def _api_v1_lists_list_list_identifier_delete_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_get( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Returns the given list if it exists and the calling user has read access to it + def get_all_lists( + self, + ) -> "Union[GrantaServerApiListsDtoRecordListHeadersInfo, None]": + """Returns all lists visible to the calling user This method makes a synchronous HTTP request. - Parameters - ---------- - list_identifier: str - Returns ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] + Union[GrantaServerApiListsDtoRecordListHeadersInfo, None] """ - data = self._api_v1_lists_list_list_identifier_get_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._get_all_lists_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_get_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: - all_params = [ - "list_identifier", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_all_lists_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 api_v1_lists_list_list_identifier_get" + f"Got an unexpected keyword argument '{key}' to method get_all_lists" ) params[key] = val del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_get'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] query_params: List[Any] = [] @@ -327,13 +327,12 @@ def _api_v1_lists_list_list_identifier_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiListsDtoRecordListHeader", + 200: "GrantaServerApiListsDtoRecordListHeadersInfo", 403: None, - 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}", + "/api/v1/lists", "GET", path_params, query_params, @@ -348,39 +347,29 @@ def _api_v1_lists_list_list_identifier_get_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_patch( - self, - *, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, + def get_list( + self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Performs a partial update on the properties of a list. + """Returns the given list if it exists and the calling user has read access to it This method makes a synchronous HTTP request. Parameters ---------- list_identifier: str - body: GrantaServerApiListsDtoUpdateRecordListProperties Returns ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_list_list_identifier_patch_with_http_info( - list_identifier, body, _return_http_data_only=True + data = self._get_list_with_http_info( + list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_patch_with_http_info( - self, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, - **kwargs: Any, - ) -> Any: + def _get_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -390,14 +379,14 @@ def _api_v1_lists_list_list_identifier_patch_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_patch" + f"Got an unexpected keyword argument '{key}' to method get_list" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_patch'" + "Missing the required parameter 'list_identifier' when calling 'get_list'" ) collection_formats: Dict[str, Any] = {} @@ -414,33 +403,20 @@ def _api_v1_lists_list_list_identifier_patch_with_http_info( 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiListsDtoRecordListHeader", - 400: None, 403: None, 404: None, } return self.api_client.call_api( "/api/v1/lists/list/{listIdentifier}", - "PATCH", + "GET", path_params, query_params, header_params, @@ -454,31 +430,31 @@ def _api_v1_lists_list_list_identifier_patch_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_publish_post( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to \"published\". The list must be awaiting approval, and not already published. The \"awaiting approval\" flag will be reset to false. + def get_record_list_search_results( + self, *, result_resource_identifier: "str" + ) -> "Union[GrantaServerApiListsDtoRecordListSearchResultsInfo, None]": + """Returns the search results found in the specified resource This method makes a synchronous HTTP request. Parameters ---------- - list_identifier: str + result_resource_identifier: str Returns ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] + Union[GrantaServerApiListsDtoRecordListSearchResultsInfo, None] """ - data = self._api_v1_lists_list_list_identifier_publish_post_with_http_info( - list_identifier, _return_http_data_only=True + data = self._get_record_list_search_results_with_http_info( + result_resource_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_publish_post_with_http_info( - self, list_identifier: "str", **kwargs: Any + def _get_record_list_search_results_with_http_info( + self, result_resource_identifier: "str", **kwargs: Any ) -> Any: all_params = [ - "list_identifier", + "result_resource_identifier", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -488,21 +464,29 @@ def _api_v1_lists_list_list_identifier_publish_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_publish_post" + f"Got an unexpected keyword argument '{key}' to method get_record_list_search_results" ) params[key] = val del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: + # verify the required parameter "result_resource_identifier" is set + if ( + "result_resource_identifier" not in params + or params["result_resource_identifier"] is None + ): raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_publish_post'" + "Missing the required parameter 'result_resource_identifier' when calling 'get_record_list_search_results'" ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] + if ( + "result_resource_identifier" in params + and result_resource_identifier is not None + ): + path_params["resultResourceIdentifier"] = params[ + "result_resource_identifier" + ] query_params: List[Any] = [] @@ -518,15 +502,15 @@ def _api_v1_lists_list_list_identifier_publish_post_with_http_info( ) response_type_map = { - 200: "GrantaServerApiListsDtoRecordListHeader", - 400: None, + 200: "GrantaServerApiListsDtoRecordListSearchResultsInfo", 403: None, 404: None, + 410: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/publish", - "POST", + "/api/v1/lists/search/results/{resultResourceIdentifier}", + "GET", path_params, query_params, header_params, @@ -540,10 +524,10 @@ def _api_v1_lists_list_list_identifier_publish_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_request_approval_post( + def publish_list( self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to \"awaiting approval\". + """Update the status of an existing list to \"published\". The list must be awaiting approval, and not already published. The \"awaiting approval\" flag will be reset to false. This method makes a synchronous HTTP request. @@ -555,12 +539,12 @@ def api_v1_lists_list_list_identifier_request_approval_post( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_list_list_identifier_request_approval_post_with_http_info( + data = self._publish_list_with_http_info( list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_request_approval_post_with_http_info( + def _publish_list_with_http_info( self, list_identifier: "str", **kwargs: Any ) -> Any: all_params = [ @@ -574,14 +558,14 @@ def _api_v1_lists_list_list_identifier_request_approval_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_request_approval_post" + f"Got an unexpected keyword argument '{key}' to method publish_list" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_request_approval_post'" + "Missing the required parameter 'list_identifier' when calling 'publish_list'" ) collection_formats: Dict[str, Any] = {} @@ -611,7 +595,7 @@ def _api_v1_lists_list_list_identifier_request_approval_post_with_http_info( } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/request-approval", + "/api/v1/lists/list/{listIdentifier}/publish", "POST", path_params, query_params, @@ -626,10 +610,10 @@ def _api_v1_lists_list_list_identifier_request_approval_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_reset_post( + def request_approval( self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to not be \"awaiting approval\". + """Update the status of an existing list to \"awaiting approval\". This method makes a synchronous HTTP request. @@ -641,12 +625,12 @@ def api_v1_lists_list_list_identifier_reset_post( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_list_list_identifier_reset_post_with_http_info( + data = self._request_approval_with_http_info( list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_reset_post_with_http_info( + def _request_approval_with_http_info( self, list_identifier: "str", **kwargs: Any ) -> Any: all_params = [ @@ -660,14 +644,14 @@ def _api_v1_lists_list_list_identifier_reset_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_reset_post" + f"Got an unexpected keyword argument '{key}' to method request_approval" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_reset_post'" + "Missing the required parameter 'list_identifier' when calling 'request_approval'" ) collection_formats: Dict[str, Any] = {} @@ -697,7 +681,7 @@ def _api_v1_lists_list_list_identifier_reset_post_with_http_info( } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/reset", + "/api/v1/lists/list/{listIdentifier}/request-approval", "POST", path_params, query_params, @@ -712,10 +696,10 @@ def _api_v1_lists_list_list_identifier_reset_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_revise_post( + def reset_awaiting_approval( self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Creates a private copy of a list that can be revised. + """Update the status of an existing list to not be \"awaiting approval\". This method makes a synchronous HTTP request. @@ -727,12 +711,12 @@ def api_v1_lists_list_list_identifier_revise_post( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_list_list_identifier_revise_post_with_http_info( + data = self._reset_awaiting_approval_with_http_info( list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_revise_post_with_http_info( + def _reset_awaiting_approval_with_http_info( self, list_identifier: "str", **kwargs: Any ) -> Any: all_params = [ @@ -746,14 +730,14 @@ def _api_v1_lists_list_list_identifier_revise_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_revise_post" + f"Got an unexpected keyword argument '{key}' to method reset_awaiting_approval" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_revise_post'" + "Missing the required parameter 'list_identifier' when calling 'reset_awaiting_approval'" ) collection_formats: Dict[str, Any] = {} @@ -776,14 +760,14 @@ def _api_v1_lists_list_list_identifier_revise_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiListsDtoRecordListHeader", + 200: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/revise", + "/api/v1/lists/list/{listIdentifier}/reset", "POST", path_params, query_params, @@ -798,10 +782,10 @@ def _api_v1_lists_list_list_identifier_revise_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_unpublish_post( + def revise_list( self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to \"unpublished\". The list must be published, and awaiting approval. The \"awaiting approval\" flag will be reset to false. + """Creates a private copy of a list that can be revised. This method makes a synchronous HTTP request. @@ -813,14 +797,12 @@ def api_v1_lists_list_list_identifier_unpublish_post( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_list_list_identifier_unpublish_post_with_http_info( + data = self._revise_list_with_http_info( list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_unpublish_post_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _revise_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -832,14 +814,14 @@ def _api_v1_lists_list_list_identifier_unpublish_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_unpublish_post" + f"Got an unexpected keyword argument '{key}' to method revise_list" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_unpublish_post'" + "Missing the required parameter 'list_identifier' when calling 'revise_list'" ) collection_formats: Dict[str, Any] = {} @@ -862,14 +844,14 @@ def _api_v1_lists_list_list_identifier_unpublish_post_with_http_info( ) response_type_map = { - 200: "GrantaServerApiListsDtoRecordListHeader", + 201: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/unpublish", + "/api/v1/lists/list/{listIdentifier}/revise", "POST", path_params, query_params, @@ -884,27 +866,29 @@ def _api_v1_lists_list_list_identifier_unpublish_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_post( - self, *, body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Creates a new list with the specified properties and items. + def run_record_lists_search( + self, *, body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None + ) -> "Union[GrantaServerApiListsDtoRecordListSearchInfo, None]": + """Posts a search request, and returns an object containing search result identifier This method makes a synchronous HTTP request. Parameters ---------- - body: GrantaServerApiListsDtoCreateRecordList + body: GrantaServerApiListsDtoRecordListSearchRequest Returns ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] + Union[GrantaServerApiListsDtoRecordListSearchInfo, None] """ - data = self._api_v1_lists_post_with_http_info(body, _return_http_data_only=True) + data = self._run_record_lists_search_with_http_info( + body, _return_http_data_only=True + ) return data # type: ignore[no-any-return] - def _api_v1_lists_post_with_http_info( + def _run_record_lists_search_with_http_info( self, - body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None, + body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None, **kwargs: Any, ) -> Any: all_params = [ @@ -918,7 +902,7 @@ def _api_v1_lists_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_post" + f"Got an unexpected keyword argument '{key}' to method run_record_lists_search" ) params[key] = val del params["kwargs"] @@ -953,13 +937,13 @@ def _api_v1_lists_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiListsDtoRecordListHeader", + 201: "GrantaServerApiListsDtoRecordListSearchInfo", 400: None, 403: None, } return self.api_client.call_api( - "/api/v1/lists", + "/api/v1/lists/search", "POST", path_params, query_params, @@ -974,33 +958,31 @@ def _api_v1_lists_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_search_post( - self, *, body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None - ) -> "Union[GrantaServerApiListsDtoRecordListSearchInfo, None]": - """Posts a search request, and returns an object containing search result identifier + def unpublish_list( + self, *, list_identifier: "str" + ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": + """Update the status of an existing list to \"unpublished\". The list must be published, and awaiting approval. The \"awaiting approval\" flag will be reset to false. This method makes a synchronous HTTP request. Parameters ---------- - body: GrantaServerApiListsDtoRecordListSearchRequest + list_identifier: str Returns ------- - Union[GrantaServerApiListsDtoRecordListSearchInfo, None] + Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_search_post_with_http_info( - body, _return_http_data_only=True + data = self._unpublish_list_with_http_info( + list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_search_post_with_http_info( - self, - body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None, - **kwargs: Any, + def _unpublish_list_with_http_info( + self, list_identifier: "str", **kwargs: Any ) -> Any: all_params = [ - "body", + "list_identifier", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1010,14 +992,21 @@ def _api_v1_lists_search_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_search_post" + f"Got an unexpected keyword argument '{key}' to method unpublish_list" ) params[key] = val del params["kwargs"] + # verify the required parameter "list_identifier" is set + if "list_identifier" not in params or params["list_identifier"] is None: + raise ValueError( + "Missing the required parameter 'list_identifier' when calling 'unpublish_list'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "list_identifier" in params and list_identifier is not None: + path_params["listIdentifier"] = params["list_identifier"] query_params: List[Any] = [] @@ -1027,31 +1016,20 @@ def _api_v1_lists_search_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 201: "GrantaServerApiListsDtoRecordListSearchInfo", + 200: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, + 404: None, } return self.api_client.call_api( - "/api/v1/lists/search", + "/api/v1/lists/list/{listIdentifier}/unpublish", "POST", path_params, query_params, @@ -1066,31 +1044,39 @@ def _api_v1_lists_search_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_search_results_result_resource_identifier_get( - self, *, result_resource_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListSearchResultsInfo, None]": - """Returns the search results found in the specified resource + def update_list( + self, + *, + list_identifier: "str", + body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, + ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": + """Performs a partial update on the properties of a list. This method makes a synchronous HTTP request. Parameters ---------- - result_resource_identifier: str + list_identifier: str + body: GrantaServerApiListsDtoUpdateRecordListProperties Returns ------- - Union[GrantaServerApiListsDtoRecordListSearchResultsInfo, None] + Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._api_v1_lists_search_results_result_resource_identifier_get_with_http_info( - result_resource_identifier, _return_http_data_only=True + data = self._update_list_with_http_info( + list_identifier, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_search_results_result_resource_identifier_get_with_http_info( - self, result_resource_identifier: "str", **kwargs: Any + def _update_list_with_http_info( + self, + list_identifier: "str", + body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, + **kwargs: Any, ) -> Any: all_params = [ - "result_resource_identifier", + "list_identifier", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1100,29 +1086,21 @@ def _api_v1_lists_search_results_result_resource_identifier_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_search_results_result_resource_identifier_get" + f"Got an unexpected keyword argument '{key}' to method update_list" ) params[key] = val del params["kwargs"] - # verify the required parameter "result_resource_identifier" is set - if ( - "result_resource_identifier" not in params - or params["result_resource_identifier"] is None - ): + # verify the required parameter "list_identifier" is set + if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'result_resource_identifier' when calling 'api_v1_lists_search_results_result_resource_identifier_get'" + "Missing the required parameter 'list_identifier' when calling 'update_list'" ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if ( - "result_resource_identifier" in params - and result_resource_identifier is not None - ): - path_params["resultResourceIdentifier"] = params[ - "result_resource_identifier" - ] + if "list_identifier" in params and list_identifier is not None: + path_params["listIdentifier"] = params["list_identifier"] query_params: List[Any] = [] @@ -1132,21 +1110,33 @@ def _api_v1_lists_search_results_result_resource_identifier_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiListsDtoRecordListSearchResultsInfo", + 200: "GrantaServerApiListsDtoRecordListHeader", + 400: None, 403: None, 404: None, - 410: None, } return self.api_client.call_api( - "/api/v1/lists/search/results/{resultResourceIdentifier}", - "GET", + "/api/v1/lists/list/{listIdentifier}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py index 15628cda..4556dde2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py @@ -33,7 +33,7 @@ class ListPermissionsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def api_v1_lists_list_list_identifier_permissions_get( + def get_permissions( self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoUserPermissionsInfo, None]": """Gets all permissions associated with the specified list. @@ -48,12 +48,12 @@ def api_v1_lists_list_list_identifier_permissions_get( ------- Union[GrantaServerApiListsDtoUserPermissionsInfo, None] """ - data = self._api_v1_lists_list_list_identifier_permissions_get_with_http_info( + data = self._get_permissions_with_http_info( list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_permissions_get_with_http_info( + def _get_permissions_with_http_info( self, list_identifier: "str", **kwargs: Any ) -> Any: all_params = [ @@ -67,14 +67,14 @@ def _api_v1_lists_list_list_identifier_permissions_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_permissions_get" + f"Got an unexpected keyword argument '{key}' to method get_permissions" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_get'" + "Missing the required parameter 'list_identifier' when calling 'get_permissions'" ) collection_formats: Dict[str, Any] = {} @@ -118,39 +118,33 @@ def _api_v1_lists_list_list_identifier_permissions_get_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_permissions_post( - self, - *, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateUserPermissionsInfo]" = None, - ) -> "Union[GrantaServerApiListsDtoUserPermissionsInfo, None]": - """Sets permissions for the specified list. Returns a collection of the created/updated permissions. + def get_permissions_for_user( + self, *, list_identifier: "str", user_identifier: "str" + ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlags, None]": + """Gets the permission flags of the permission associating the specified list with the specified user. This method makes a synchronous HTTP request. Parameters ---------- list_identifier: str - body: GrantaServerApiListsDtoUpdateUserPermissionsInfo + user_identifier: str Returns ------- - Union[GrantaServerApiListsDtoUserPermissionsInfo, None] + Union[GrantaServerApiListsDtoRecordListPermissionFlags, None] """ - data = self._api_v1_lists_list_list_identifier_permissions_post_with_http_info( - list_identifier, body, _return_http_data_only=True + data = self._get_permissions_for_user_with_http_info( + list_identifier, user_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( - self, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateUserPermissionsInfo]" = None, - **kwargs: Any, + def _get_permissions_for_user_with_http_info( + self, list_identifier: "str", user_identifier: "str", **kwargs: Any ) -> Any: all_params = [ "list_identifier", - "body", + "user_identifier", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -160,14 +154,19 @@ def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_permissions_post" + f"Got an unexpected keyword argument '{key}' to method get_permissions_for_user" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_post'" + "Missing the required parameter 'list_identifier' when calling 'get_permissions_for_user'" + ) + # verify the required parameter "user_identifier" is set + if "user_identifier" not in params or params["user_identifier"] is None: + raise ValueError( + "Missing the required parameter 'user_identifier' when calling 'get_permissions_for_user'" ) collection_formats: Dict[str, Any] = {} @@ -175,6 +174,8 @@ def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] + if "user_identifier" in params and user_identifier is not None: + path_params["userIdentifier"] = params["user_identifier"] query_params: List[Any] = [] @@ -184,33 +185,20 @@ def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 202: "GrantaServerApiListsDtoUserPermissionsInfo", - 400: None, + 200: "GrantaServerApiListsDtoRecordListPermissionFlags", 403: None, 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/permissions", - "POST", + "/api/v1/lists/list/{listIdentifier}/permissions/user/{userIdentifier}", + "GET", path_params, query_params, header_params, @@ -224,31 +212,39 @@ def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_permissions_subscribe_post( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoUserPermission, None]": - """Subscribes the calling user to the specified list. + def set_permissions( + self, + *, + list_identifier: "str", + body: "Optional[GrantaServerApiListsDtoUpdateUserPermissionsInfo]" = None, + ) -> "Union[GrantaServerApiListsDtoUserPermissionsInfo, None]": + """Sets permissions for the specified list. Returns a collection of the created/updated permissions. This method makes a synchronous HTTP request. Parameters ---------- list_identifier: str + body: GrantaServerApiListsDtoUpdateUserPermissionsInfo Returns ------- - Union[GrantaServerApiListsDtoUserPermission, None] + Union[GrantaServerApiListsDtoUserPermissionsInfo, None] """ - data = self._api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info( - list_identifier, _return_http_data_only=True + data = self._set_permissions_with_http_info( + list_identifier, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info( - self, list_identifier: "str", **kwargs: Any + def _set_permissions_with_http_info( + self, + list_identifier: "str", + body: "Optional[GrantaServerApiListsDtoUpdateUserPermissionsInfo]" = None, + **kwargs: Any, ) -> Any: all_params = [ "list_identifier", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -258,14 +254,14 @@ def _api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_permissions_subscribe_post" + f"Got an unexpected keyword argument '{key}' to method set_permissions" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_subscribe_post'" + "Missing the required parameter 'list_identifier' when calling 'set_permissions'" ) collection_formats: Dict[str, Any] = {} @@ -282,20 +278,32 @@ def _api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info 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( ["text/plain", "application/json", "text/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 = { - 202: "GrantaServerApiListsDtoUserPermission", + 202: "GrantaServerApiListsDtoUserPermissionsInfo", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/permissions/subscribe", + "/api/v1/lists/list/{listIdentifier}/permissions", "POST", path_params, query_params, @@ -310,31 +318,43 @@ def _api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_permissions_unsubscribe_post( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoUserPermission, None]": - """Unsubscribes the calling user from the specified list. + def set_permissions_for_user( + self, + *, + list_identifier: "str", + user_identifier: "str", + body: "Optional[GrantaServerApiListsDtoUpdateRecordListPermissionFlags]" = None, + ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlags, None]": + """Sets the permission flags of the permission associating the specified list with the specified user. This method makes a synchronous HTTP request. Parameters ---------- list_identifier: str + user_identifier: str + body: GrantaServerApiListsDtoUpdateRecordListPermissionFlags Returns ------- - Union[GrantaServerApiListsDtoUserPermission, None] + Union[GrantaServerApiListsDtoRecordListPermissionFlags, None] """ - data = self._api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_info( - list_identifier, _return_http_data_only=True + data = self._set_permissions_for_user_with_http_info( + list_identifier, user_identifier, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_info( - self, list_identifier: "str", **kwargs: Any + def _set_permissions_for_user_with_http_info( + self, + list_identifier: "str", + user_identifier: "str", + body: "Optional[GrantaServerApiListsDtoUpdateRecordListPermissionFlags]" = None, + **kwargs: Any, ) -> Any: all_params = [ "list_identifier", + "user_identifier", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -344,14 +364,19 @@ def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_in for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_permissions_unsubscribe_post" + f"Got an unexpected keyword argument '{key}' to method set_permissions_for_user" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_unsubscribe_post'" + "Missing the required parameter 'list_identifier' when calling 'set_permissions_for_user'" + ) + # verify the required parameter "user_identifier" is set + if "user_identifier" not in params or params["user_identifier"] is None: + raise ValueError( + "Missing the required parameter 'user_identifier' when calling 'set_permissions_for_user'" ) collection_formats: Dict[str, Any] = {} @@ -359,6 +384,8 @@ def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_in path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] + if "user_identifier" in params and user_identifier is not None: + path_params["userIdentifier"] = params["user_identifier"] query_params: List[Any] = [] @@ -368,21 +395,33 @@ def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_in 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( ["text/plain", "application/json", "text/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 = { - 202: "GrantaServerApiListsDtoUserPermission", + 201: "GrantaServerApiListsDtoRecordListPermissionFlags", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/permissions/unsubscribe", - "POST", + "/api/v1/lists/list/{listIdentifier}/permissions/user/{userIdentifier}", + "PUT", path_params, query_params, header_params, @@ -396,33 +435,29 @@ def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_in response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_permissions_user_user_identifier_get( - self, *, list_identifier: "str", user_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlags, None]": - """Gets the permission flags of the permission associating the specified list with the specified user. + def subscribe( + self, *, list_identifier: "str" + ) -> "Union[GrantaServerApiListsDtoUserPermission, None]": + """Subscribes the calling user to the specified list. This method makes a synchronous HTTP request. Parameters ---------- list_identifier: str - user_identifier: str Returns ------- - Union[GrantaServerApiListsDtoRecordListPermissionFlags, None] + Union[GrantaServerApiListsDtoUserPermission, None] """ - data = self._api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with_http_info( - list_identifier, user_identifier, _return_http_data_only=True + data = self._subscribe_with_http_info( + list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with_http_info( - self, list_identifier: "str", user_identifier: "str", **kwargs: Any - ) -> Any: + def _subscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", - "user_identifier", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -432,19 +467,14 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_permissions_user_user_identifier_get" + f"Got an unexpected keyword argument '{key}' to method subscribe" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_user_user_identifier_get'" - ) - # verify the required parameter "user_identifier" is set - if "user_identifier" not in params or params["user_identifier"] is None: - raise ValueError( - "Missing the required parameter 'user_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_user_user_identifier_get'" + "Missing the required parameter 'list_identifier' when calling 'subscribe'" ) collection_formats: Dict[str, Any] = {} @@ -452,8 +482,6 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - if "user_identifier" in params and user_identifier is not None: - path_params["userIdentifier"] = params["user_identifier"] query_params: List[Any] = [] @@ -469,14 +497,15 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with ) response_type_map = { - 200: "GrantaServerApiListsDtoRecordListPermissionFlags", + 202: "GrantaServerApiListsDtoUserPermission", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/permissions/user/{userIdentifier}", - "GET", + "/api/v1/lists/list/{listIdentifier}/permissions/subscribe", + "POST", path_params, query_params, header_params, @@ -490,43 +519,29 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_permissions_user_user_identifier_put( - self, - *, - list_identifier: "str", - user_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateRecordListPermissionFlags]" = None, - ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlags, None]": - """Sets the permission flags of the permission associating the specified list with the specified user. + def unsubscribe( + self, *, list_identifier: "str" + ) -> "Union[GrantaServerApiListsDtoUserPermission, None]": + """Unsubscribes the calling user from the specified list. This method makes a synchronous HTTP request. Parameters ---------- list_identifier: str - user_identifier: str - body: GrantaServerApiListsDtoUpdateRecordListPermissionFlags Returns ------- - Union[GrantaServerApiListsDtoRecordListPermissionFlags, None] + Union[GrantaServerApiListsDtoUserPermission, None] """ - data = self._api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with_http_info( - list_identifier, user_identifier, body, _return_http_data_only=True + data = self._unsubscribe_with_http_info( + list_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with_http_info( - self, - list_identifier: "str", - user_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateRecordListPermissionFlags]" = None, - **kwargs: Any, - ) -> Any: + def _unsubscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", - "user_identifier", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -536,19 +551,14 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_permissions_user_user_identifier_put" + f"Got an unexpected keyword argument '{key}' to method unsubscribe" ) params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set if "list_identifier" not in params or params["list_identifier"] is None: raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_user_user_identifier_put'" - ) - # verify the required parameter "user_identifier" is set - if "user_identifier" not in params or params["user_identifier"] is None: - raise ValueError( - "Missing the required parameter 'user_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_user_user_identifier_put'" + "Missing the required parameter 'list_identifier' when calling 'unsubscribe'" ) collection_formats: Dict[str, Any] = {} @@ -556,8 +566,6 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - if "user_identifier" in params and user_identifier is not None: - path_params["userIdentifier"] = params["user_identifier"] query_params: List[Any] = [] @@ -567,33 +575,21 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with 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( ["text/plain", "application/json", "text/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 = { - 201: "GrantaServerApiListsDtoRecordListPermissionFlags", + 202: "GrantaServerApiListsDtoUserPermission", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/permissions/user/{userIdentifier}", - "PUT", + "/api/v1/lists/list/{listIdentifier}/permissions/unsubscribe", + "POST", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py index d51b2c96..811345de 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py @@ -33,15 +33,14 @@ class RecordsRecordHistoriesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_record_histories_record_history_guid_get( + def copy_record_history( self, *, database_key: "str", record_history_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": - """Get a record history with a specified guid for a given database. + body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, + ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Make a copy of a record history. This method makes a synchronous HTTP request. @@ -49,37 +48,28 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_get( ---------- database_key: str record_history_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. + body: GrantaServerApiRecordsRecordHistoriesCopyRecordHistory Returns ------- - Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ - data = self._v1alpha_databases_database_key_record_histories_record_history_guid_get_with_http_info( - database_key, - record_history_guid, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, + data = self._copy_record_history_with_http_info( + database_key, record_history_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_record_histories_record_history_guid_get_with_http_info( + def _copy_record_history_with_http_info( self, database_key: "str", record_history_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "record_history_guid", - "mode", - "x_ansys_vc_mode", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -89,19 +79,19 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_get_wit for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guid_get" + f"Got an unexpected keyword argument '{key}' to method copy_record_history" ) 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 'v1alpha_databases_database_key_record_histories_record_history_guid_get'" + "Missing the required parameter 'database_key' when calling 'copy_record_history'" ) # 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 'v1alpha_databases_database_key_record_histories_record_history_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'copy_record_history'" ) collection_formats: Dict[str, Any] = {} @@ -113,30 +103,40 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_get_wit path_params["record-history-guid"] = params["record_history_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 = { - 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}", - "GET", + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:copy", + "POST", path_params, query_params, header_params, @@ -150,53 +150,51 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_get_wit response_type_map=response_type_map, ) - def v1alpha_databases_database_key_record_histories_record_history_guid_latest_get( + def copy_record_history_in_table( self, *, database_key: "str", + table_guid: "str", record_history_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": - """Get the latest record version for a record history for a given database. + body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, + ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Make a copy of a record history. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + table_guid: str record_history_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. + body: GrantaServerApiRecordsRecordHistoriesCopyRecordHistory Returns ------- - Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] + Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ - data = self._v1alpha_databases_database_key_record_histories_record_history_guid_latest_get_with_http_info( + data = self._copy_record_history_in_table_with_http_info( database_key, + table_guid, record_history_guid, - mode, - x_ansys_vc_mode, + body, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_get_with_http_info( + def _copy_record_history_in_table_with_http_info( self, database_key: "str", + table_guid: "str", record_history_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", + "table_guid", "record_history_guid", - "mode", - "x_ansys_vc_mode", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -206,19 +204,24 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guid_latest_get" + f"Got an unexpected keyword argument '{key}' to method copy_record_history_in_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 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_get'" + "Missing the required parameter 'database_key' when calling 'copy_record_history_in_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 'copy_record_history_in_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 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_get'" + "Missing the required parameter 'record_history_guid' when calling 'copy_record_history_in_table'" ) collection_formats: Dict[str, Any] = {} @@ -226,34 +229,46 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ 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"] 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 = { - 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest", - "GET", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}:copy", + "POST", path_params, query_params, header_params, @@ -267,42 +282,42 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_record_histories_record_history_guidcopy_post( + def create_record_history( self, *, database_key: "str", - record_history_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, - ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": - """Make a copy of a record history. + table_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesCreateRecordHistory]" = None, + ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Create a new record history. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - record_history_guid: str - body: GrantaServerApiRecordsRecordHistoriesCopyRecordHistory + table_guid: str + body: GrantaServerApiRecordsRecordHistoriesCreateRecordHistory Returns ------- - Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ - data = self._v1alpha_databases_database_key_record_histories_record_history_guidcopy_post_with_http_info( - database_key, record_history_guid, body, _return_http_data_only=True + data = self._create_record_history_with_http_info( + database_key, table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_record_histories_record_history_guidcopy_post_with_http_info( + def _create_record_history_with_http_info( self, database_key: "str", - record_history_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, + table_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesCreateRecordHistory]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", - "record_history_guid", + "table_guid", "body", "_return_http_data_only", "_preload_content", @@ -313,19 +328,19 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidcopy_pos for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guidcopy_post" + f"Got an unexpected keyword argument '{key}' to method create_record_history" ) 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 'v1alpha_databases_database_key_record_histories_record_history_guidcopy_post'" + "Missing the required parameter 'database_key' when calling 'create_record_history'" ) - # verify the required parameter "record_history_guid" is set - if "record_history_guid" not in params or params["record_history_guid"] is None: + # 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 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guidcopy_post'" + "Missing the required parameter 'table_guid' when calling 'create_record_history'" ) collection_formats: Dict[str, Any] = {} @@ -333,8 +348,8 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidcopy_pos 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 "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] query_params: List[Any] = [] @@ -363,13 +378,13 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidcopy_pos response_type_map = { 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", - 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:copy", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories", "POST", path_params, query_params, @@ -384,14 +399,15 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidcopy_pos response_type_map=response_type_map, ) - def v1alpha_databases_database_key_record_histories_record_history_guidmove_post( + def get_latest_record_version( self, *, database_key: "str", record_history_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, - ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": - """Move a record history to be under a new parent. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Get the latest record version for a record history for a given database. This method makes a synchronous HTTP request. @@ -399,28 +415,37 @@ def v1alpha_databases_database_key_record_histories_record_history_guidmove_post ---------- database_key: str record_history_guid: str - body: GrantaServerApiRecordsRecordHistoriesMoveRecordHistory + 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[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ - data = self._v1alpha_databases_database_key_record_histories_record_history_guidmove_post_with_http_info( - database_key, record_history_guid, body, _return_http_data_only=True + data = self._get_latest_record_version_with_http_info( + database_key, + record_history_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_record_histories_record_history_guidmove_post_with_http_info( + def _get_latest_record_version_with_http_info( self, database_key: "str", record_history_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "record_history_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -430,19 +455,19 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidmove_pos for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method get_latest_record_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 'v1alpha_databases_database_key_record_histories_record_history_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'get_latest_record_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 'v1alpha_databases_database_key_record_histories_record_history_guidmove_post'" + "Missing the required parameter 'record_history_guid' when calling 'get_latest_record_version'" ) collection_formats: Dict[str, Any] = {} @@ -454,40 +479,30 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidmove_pos path_params["record-history-guid"] = params["record_history_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 = { - 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", - 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", - 403: None, + 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:move", - "POST", + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest", + "GET", path_params, query_params, header_params, @@ -501,14 +516,16 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidmove_pos response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_post( + def get_latest_record_version_from_table( self, *, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesCreateRecordHistory]" = None, - ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": - """Create a new record history. + record_history_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Get the latest record version for a record history for a given database and table. This method makes a synchronous HTTP request. @@ -516,28 +533,41 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_post( ---------- database_key: str table_guid: str - body: GrantaServerApiRecordsRecordHistoriesCreateRecordHistory + record_history_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[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_post_with_http_info( - database_key, table_guid, body, _return_http_data_only=True + data = self._get_latest_record_version_from_table_with_http_info( + database_key, + table_guid, + record_history_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_post_with_http_info( + def _get_latest_record_version_from_table_with_http_info( self, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesCreateRecordHistory]" = None, + record_history_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "body", + "record_history_guid", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -547,19 +577,24 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_post_with for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_post" + f"Got an unexpected keyword argument '{key}' to method get_latest_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_post'" + "Missing the required parameter 'database_key' when calling 'get_latest_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_post'" + "Missing the required parameter 'table_guid' when calling 'get_latest_record_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_latest_record_version_from_table'" ) collection_formats: Dict[str, Any] = {} @@ -569,42 +604,34 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_post_with 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"] 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 = { - 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", - 400: None, - 403: None, + 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest", + "GET", path_params, query_params, header_params, @@ -618,23 +645,21 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_post_with response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get( + def get_record_history( self, *, database_key: "str", - table_guid: "str", record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": - """Get a record history with a specified guid for a given database and table. + """Get a record history with a specified guid for a given database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_guid: str record_history_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. @@ -645,9 +670,8 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ------- Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get_with_http_info( + data = self._get_record_history_with_http_info( database_key, - table_guid, record_history_guid, mode, x_ansys_vc_mode, @@ -655,10 +679,9 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get_with_http_info( + def _get_record_history_with_http_info( self, database_key: "str", - table_guid: "str", record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, @@ -666,7 +689,6 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi ) -> Any: all_params = [ "database_key", - "table_guid", "record_history_guid", "mode", "x_ansys_vc_mode", @@ -679,24 +701,19 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_record_history" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_record_history'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'get_record_history'" ) collection_formats: Dict[str, Any] = {} @@ -704,8 +721,6 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi 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"] @@ -732,7 +747,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}", + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}", "GET", path_params, query_params, @@ -747,7 +762,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get( + def get_record_history_from_table( self, *, database_key: "str", @@ -755,8 +770,8 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": - """Get the latest record version for a record history for a given database and table. + ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Get a record history with a specified guid for a given database and table. This method makes a synchronous HTTP request. @@ -772,9 +787,9 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his Returns ------- - Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] + Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get_with_http_info( + data = self._get_record_history_from_table_with_http_info( database_key, table_guid, record_history_guid, @@ -784,7 +799,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get_with_http_info( + def _get_record_history_from_table_with_http_info( self, database_key: "str", table_guid: "str", @@ -808,24 +823,24 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get" + f"Got an unexpected keyword argument '{key}' to method get_record_history_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get'" + "Missing the required parameter 'database_key' when calling 'get_record_history_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get'" + "Missing the required parameter 'table_guid' when calling 'get_record_history_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get'" + "Missing the required parameter 'record_history_guid' when calling 'get_record_history_from_table'" ) collection_formats: Dict[str, Any] = {} @@ -856,12 +871,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi ) response_type_map = { - 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}", "GET", path_params, query_params, @@ -876,49 +891,41 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post( + def move_record_history( self, *, database_key: "str", - table_guid: "str", record_history_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, - ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": - """Make a copy of a record history. + body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, + ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Move a record history to be under a new parent. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_guid: str record_history_guid: str - body: GrantaServerApiRecordsRecordHistoriesCopyRecordHistory + body: GrantaServerApiRecordsRecordHistoriesMoveRecordHistory Returns ------- - Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post_with_http_info( - database_key, - table_guid, - record_history_guid, - body, - _return_http_data_only=True, + data = self._move_record_history_with_http_info( + database_key, record_history_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post_with_http_info( + def _move_record_history_with_http_info( self, database_key: "str", - table_guid: "str", record_history_guid: "str", - body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, + body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", - "table_guid", "record_history_guid", "body", "_return_http_data_only", @@ -930,24 +937,19 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post" + f"Got an unexpected keyword argument '{key}' to method move_record_history" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post'" + "Missing the required parameter 'database_key' when calling 'move_record_history'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post'" + "Missing the required parameter 'record_history_guid' when calling 'move_record_history'" ) collection_formats: Dict[str, Any] = {} @@ -955,8 +957,6 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi 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"] @@ -986,14 +986,14 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi ) response_type_map = { - 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", - 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}:copy", + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:move", "POST", path_params, query_params, @@ -1008,7 +1008,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post( + def move_record_history_in_table( self, *, database_key: "str", @@ -1031,7 +1031,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ------- Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post_with_http_info( + data = self._move_record_history_in_table_with_http_info( database_key, table_guid, record_history_guid, @@ -1040,7 +1040,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post_with_http_info( + def _move_record_history_in_table_with_http_info( self, database_key: "str", table_guid: "str", @@ -1062,24 +1062,24 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method move_record_history_in_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'move_record_history_in_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post'" + "Missing the required parameter 'table_guid' when calling 'move_record_history_in_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post'" + "Missing the required parameter 'record_history_guid' when calling 'move_record_history_in_table'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py index 4069c658..bd610a7f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py @@ -33,7 +33,7 @@ class RecordsRecordVersionsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete( + def delete_record_version( self, *, database_key: "str", @@ -56,7 +56,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ------- None """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete_with_http_info( + data = self._delete_record_version_with_http_info( database_key, table_guid, record_history_guid, @@ -65,7 +65,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete_with_http_info( + def _delete_record_version_with_http_info( self, database_key: "str", table_guid: "str", @@ -87,29 +87,29 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete" + f"Got an unexpected keyword argument '{key}' to method delete_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + "Missing the required parameter 'database_key' when calling 'delete_record_version'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'delete_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + "Missing the required parameter 'record_history_guid' when calling 'delete_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + "Missing the required parameter 'record_version_guid' when calling 'delete_record_version'" ) collection_formats: Dict[str, Any] = {} @@ -155,17 +155,15 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get( + def get_modifiable_record_version( self, *, database_key: "str", table_guid: "str", record_history_guid: "str", record_version_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": - """Get a record version with a specified guid for a given database, table and record history. + ) -> "Union[GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Gets the latest modifiable record version, or creates a new one if none exists. The record version must be the latest version, and must be either released or withdrawn. This method makes a synchronous HTTP request. @@ -175,34 +173,26 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his table_guid: str record_history_guid: str record_version_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[GrantaServerApiRecordsRecordVersionsRecordVersion, None] + Union[GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get_with_http_info( + data = self._get_modifiable_record_version_with_http_info( database_key, table_guid, record_history_guid, record_version_guid, - mode, - x_ansys_vc_mode, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get_with_http_info( + def _get_modifiable_record_version_with_http_info( self, database_key: "str", table_guid: "str", record_history_guid: "str", record_version_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ @@ -210,8 +200,6 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "table_guid", "record_history_guid", "record_version_guid", - "mode", - "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -221,29 +209,29 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_modifiable_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_modifiable_record_version'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get'" + "Missing the required parameter 'table_guid' when calling 'get_modifiable_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'get_modifiable_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get'" + "Missing the required parameter 'record_version_guid' when calling 'get_modifiable_record_version'" ) collection_formats: Dict[str, Any] = {} @@ -259,12 +247,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi path_params["record-version-guid"] = params["record_version_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] = {} @@ -276,13 +260,15 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi ) response_type_map = { - 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 201: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 400: "GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException", + 403: 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}", - "GET", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:get-modifiable-version", + "POST", path_params, query_params, header_params, @@ -296,15 +282,17 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post( + def get_record_version( self, *, database_key: "str", table_guid: "str", record_history_guid: "str", record_version_guid: "str", - ) -> "Union[GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None]": - """Create a new record version. The record version must be the latest version, and must be either released or withdrawn. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Get a record version with a specified guid for a given database, table and record history. This method makes a synchronous HTTP request. @@ -314,26 +302,34 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his table_guid: str record_history_guid: str record_version_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[GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None] + Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post_with_http_info( + data = self._get_record_version_with_http_info( database_key, table_guid, record_history_guid, record_version_guid, + mode, + x_ansys_vc_mode, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post_with_http_info( + def _get_record_version_with_http_info( self, database_key: "str", table_guid: "str", record_history_guid: "str", record_version_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ @@ -341,6 +337,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "table_guid", "record_history_guid", "record_version_guid", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -350,29 +348,29 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post" + f"Got an unexpected keyword argument '{key}' to method get_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + "Missing the required parameter 'database_key' when calling 'get_record_version'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + "Missing the required parameter 'table_guid' when calling 'get_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + "Missing the required parameter 'record_history_guid' when calling 'get_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + "Missing the required parameter 'record_version_guid' when calling 'get_record_version'" ) collection_formats: Dict[str, Any] = {} @@ -388,8 +386,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi path_params["record-version-guid"] = params["record_version_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] = {} @@ -401,15 +403,13 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi ) response_type_map = { - 201: "GrantaServerApiRecordsRecordVersionsRecordVersion", - 400: "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException", - 403: None, + 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 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}:create-new-version", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}", + "GET", path_params, query_params, header_params, @@ -423,7 +423,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post( + def release_record_version( self, *, database_key: "str", @@ -446,7 +446,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ------- Union[GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post_with_http_info( + data = self._release_record_version_with_http_info( database_key, table_guid, record_history_guid, @@ -455,7 +455,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post_with_http_info( + def _release_record_version_with_http_info( self, database_key: "str", table_guid: "str", @@ -477,29 +477,29 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post" + f"Got an unexpected keyword argument '{key}' to method release_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + "Missing the required parameter 'database_key' when calling 'release_record_version'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + "Missing the required parameter 'table_guid' when calling 'release_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + "Missing the required parameter 'record_history_guid' when calling 'release_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + "Missing the required parameter 'record_version_guid' when calling 'release_record_version'" ) collection_formats: Dict[str, Any] = {} @@ -550,7 +550,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post( + def withdraw_record_version( self, *, database_key: "str", @@ -573,7 +573,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ------- Union[GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post_with_http_info( + data = self._withdraw_record_version_with_http_info( database_key, table_guid, record_history_guid, @@ -582,7 +582,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post_with_http_info( + def _withdraw_record_version_with_http_info( self, database_key: "str", table_guid: "str", @@ -604,29 +604,29 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post" + f"Got an unexpected keyword argument '{key}' to method withdraw_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + "Missing the required parameter 'database_key' when calling 'withdraw_record_version'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + "Missing the required parameter 'table_guid' when calling 'withdraw_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + "Missing the required parameter 'record_history_guid' when calling 'withdraw_record_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 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + "Missing the required parameter 'record_version_guid' when calling 'withdraw_record_version'" ) collection_formats: Dict[str, Any] = {} 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 5e52205c..df87ed44 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 @@ -33,10 +33,14 @@ class SchemaAttributesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete( - self, *, database_key: "str", table_guid: "str", attribute_guid: "str" - ) -> "Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None]": - """Delete an attribute. + def create_attribute( + self, + *, + database_key: "str", + table_guid: "str", + body: "Optional[GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute]" = None, + ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": + """Create a new attribute. This method makes a synchronous HTTP request. @@ -44,28 +48,28 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_d ---------- database_key: str table_guid: str - attribute_guid: str + body: GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute Returns ------- - Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None] + Union[GrantaServerApiSchemaAttributesAttribute, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete_with_http_info( - database_key, table_guid, attribute_guid, _return_http_data_only=True + data = self._create_attribute_with_http_info( + database_key, table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete_with_http_info( + def _create_attribute_with_http_info( self, database_key: "str", table_guid: "str", - attribute_guid: "str", + body: "Optional[GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "attribute_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -75,24 +79,19 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'create_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -102,8 +101,6 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ 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 "attribute_guid" in params and attribute_guid is not None: - path_params["attribute-guid"] = params["attribute_guid"] query_params: List[Any] = [] @@ -113,21 +110,33 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ 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 = { - 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", - 200: None, + 201: "GrantaServerApiSchemaAttributesAttribute", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes", + "POST", path_params, query_params, header_params, @@ -141,16 +150,10 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get( - self, - *, - database_key: "str", - table_guid: "str", - attribute_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": - """Get attribute in table + def delete_attribute( + self, *, database_key: "str", table_guid: "str", attribute_guid: "str" + ) -> "Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None]": + """Delete an attribute. This method makes a synchronous HTTP request. @@ -159,40 +162,27 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_g database_key: str table_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[GrantaServerApiSchemaAttributesAttribute, None] + Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get_with_http_info( - database_key, - table_guid, - attribute_guid, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, + data = self._delete_attribute_with_http_info( + database_key, table_guid, attribute_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get_with_http_info( + def _delete_attribute_with_http_info( self, database_key: "str", table_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", "attribute_guid", - "mode", - "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -202,24 +192,24 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'table_guid' when calling 'delete_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get'" + "Missing the required parameter 'attribute_guid' when calling 'delete_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -233,12 +223,8 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ 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] = {} @@ -250,13 +236,15 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ ) response_type_map = { - 200: "GrantaServerApiSchemaAttributesAttribute", + 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -270,16 +258,10 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get( - self, - *, - database_key: "str", - table_guid: "str", - attribute_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaAttributesAttributesInfo, None]": - """Get meta-attributes for attribute + def delete_meta_attribute( + self, *, database_key: "str", table_guid: "str", meta_attribute_guid: "str" + ) -> "Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None]": + """Delete a meta-attribute. This method makes a synchronous HTTP request. @@ -287,41 +269,28 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_m ---------- database_key: str table_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. + meta_attribute_guid: str Returns ------- - Union[GrantaServerApiSchemaAttributesAttributesInfo, None] + Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get_with_http_info( - database_key, - table_guid, - attribute_guid, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, + data = self._delete_meta_attribute_with_http_info( + database_key, table_guid, meta_attribute_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get_with_http_info( + def _delete_meta_attribute_with_http_info( self, database_key: "str", table_guid: "str", - attribute_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + meta_attribute_guid: "str", **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "attribute_guid", - "mode", - "x_ansys_vc_mode", + "meta_attribute_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -331,24 +300,24 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get" + f"Got an unexpected keyword argument '{key}' to method delete_meta_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get'" + "Missing the required parameter 'database_key' when calling 'delete_meta_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get'" + "Missing the required parameter 'table_guid' when calling 'delete_meta_attribute'" ) - # verify the required parameter "attribute_guid" is set - if "attribute_guid" not in params or params["attribute_guid"] is None: + # verify the required parameter "meta_attribute_guid" is set + if "meta_attribute_guid" not in params or params["meta_attribute_guid"] is None: raise ValueError( - "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get'" + "Missing the required parameter 'meta_attribute_guid' when calling 'delete_meta_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -358,16 +327,12 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ 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 "attribute_guid" in params and attribute_guid is not None: - path_params["attribute-guid"] = params["attribute_guid"] + if "meta_attribute_guid" in params and meta_attribute_guid is not None: + path_params["meta-attribute-guid"] = params["meta_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] = {} @@ -379,13 +344,15 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ ) response_type_map = { - 200: "GrantaServerApiSchemaAttributesAttributesInfo", + 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}/meta-attributes", - "GET", + "/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes/{meta-attribute-guid}", + "DELETE", path_params, query_params, header_params, @@ -399,15 +366,16 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch( + def get_attribute( self, *, database_key: "str", table_guid: "str", attribute_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": - """Update attribute. + """Get attribute in table This method makes a synchronous HTTP request. @@ -416,30 +384,40 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_p database_key: str table_guid: str attribute_guid: str - body: GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute + 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[GrantaServerApiSchemaAttributesAttribute, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch_with_http_info( - database_key, table_guid, attribute_guid, body, _return_http_data_only=True + data = self._get_attribute_with_http_info( + database_key, + table_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch_with_http_info( + def _get_attribute_with_http_info( self, database_key: "str", table_guid: "str", attribute_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "attribute_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -449,24 +427,24 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch'" + "Missing the required parameter 'table_guid' when calling 'get_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch'" + "Missing the required parameter 'attribute_guid' when calling 'get_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -480,40 +458,30 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ 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 = { 200: "GrantaServerApiSchemaAttributesAttribute", - 400: None, - 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}", - "PATCH", + "GET", path_params, query_params, header_params, @@ -527,15 +495,15 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post( + def get_attributes( self, *, database_key: "str", table_guid: "str", - attribute_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesValidateAttributeRequest]" = None, - ) -> "Union[GrantaServerApiSchemaAttributesAttributeValidateResponse, None]": - """Validates the provided value against the attributes data rules. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaAttributesAttributesInfo, None]": + """Get all attributes in table This method makes a synchronous HTTP request. @@ -543,31 +511,33 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidva ---------- database_key: str table_guid: str - attribute_guid: str - body: GrantaServerApiSchemaAttributesValidateAttributeRequest + 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[GrantaServerApiSchemaAttributesAttributeValidateResponse, None] + Union[GrantaServerApiSchemaAttributesAttributesInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post_with_http_info( - database_key, table_guid, attribute_guid, body, _return_http_data_only=True + data = self._get_attributes_with_http_info( + database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post_with_http_info( + def _get_attributes_with_http_info( self, database_key: "str", table_guid: "str", - attribute_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesValidateAttributeRequest]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "attribute_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -577,24 +547,19 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidv for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post" + f"Got an unexpected keyword argument '{key}' to method get_attributes" ) 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post'" + "Missing the required parameter 'database_key' when calling 'get_attributes'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post'" + "Missing the required parameter 'table_guid' when calling 'get_attributes'" ) collection_formats: Dict[str, Any] = {} @@ -604,44 +569,32 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidv 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 "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 = { - 200: "GrantaServerApiSchemaAttributesAttributeValidateResponse", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaAttributesAttributesInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}:validate", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes", + "GET", path_params, query_params, header_params, @@ -655,15 +608,16 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidv response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_attributes_get( + def get_meta_attribute( self, *, database_key: "str", table_guid: "str", + meta_attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaAttributesAttributesInfo, None]": - """Get all attributes in table + ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": + """Get meta-attribute in table This method makes a synchronous HTTP request. @@ -671,6 +625,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_get( ---------- database_key: str table_guid: str + meta_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 @@ -678,17 +633,23 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_get( Returns ------- - Union[GrantaServerApiSchemaAttributesAttributesInfo, None] + Union[GrantaServerApiSchemaAttributesAttribute, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_info( - database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True + data = self._get_meta_attribute_with_http_info( + database_key, + table_guid, + meta_attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_info( + def _get_meta_attribute_with_http_info( self, database_key: "str", table_guid: "str", + meta_attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, @@ -696,6 +657,7 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_i all_params = [ "database_key", "table_guid", + "meta_attribute_guid", "mode", "x_ansys_vc_mode", "_return_http_data_only", @@ -707,19 +669,24 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_i for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_attributes_get" + f"Got an unexpected keyword argument '{key}' to method get_meta_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_attributes_get'" + "Missing the required parameter 'database_key' when calling 'get_meta_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_get'" + "Missing the required parameter 'table_guid' when calling 'get_meta_attribute'" + ) + # verify the required parameter "meta_attribute_guid" is set + if "meta_attribute_guid" not in params or params["meta_attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'meta_attribute_guid' when calling 'get_meta_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -729,6 +696,8 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_i 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 "meta_attribute_guid" in params and meta_attribute_guid is not None: + path_params["meta-attribute-guid"] = params["meta_attribute_guid"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -748,12 +717,12 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_i ) response_type_map = { - 200: "GrantaServerApiSchemaAttributesAttributesInfo", + 200: "GrantaServerApiSchemaAttributesAttribute", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes", + "/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes/{meta-attribute-guid}", "GET", path_params, query_params, @@ -768,14 +737,15 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_i response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_attributes_post( + def get_meta_attributes( self, *, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute]" = None, - ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": - """Create a new attribute. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaAttributesAttributesInfo, None]": + """Get all meta-attributes in table This method makes a synchronous HTTP request. @@ -783,28 +753,33 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_post( ---------- database_key: str table_guid: str - body: GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute + 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[GrantaServerApiSchemaAttributesAttribute, None] + Union[GrantaServerApiSchemaAttributesAttributesInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_info( - database_key, table_guid, body, _return_http_data_only=True + data = self._get_meta_attributes_with_http_info( + database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_info( + def _get_meta_attributes_with_http_info( self, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -814,19 +789,19 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_attributes_post" + f"Got an unexpected keyword argument '{key}' to method get_meta_attributes" ) 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 'v1alpha_databases_database_key_tables_table_guid_attributes_post'" + "Missing the required parameter 'database_key' when calling 'get_meta_attributes'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_attributes_post'" + "Missing the required parameter 'table_guid' when calling 'get_meta_attributes'" ) collection_formats: Dict[str, Any] = {} @@ -838,40 +813,30 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_ path_params["table-guid"] = params["table_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 = { - 201: "GrantaServerApiSchemaAttributesAttribute", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaAttributesAttributesInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes", + "GET", path_params, query_params, header_params, @@ -885,15 +850,16 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_meta_attributes_get( + def get_meta_attributes_for_attribute( self, *, database_key: "str", table_guid: "str", + attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, ) -> "Union[GrantaServerApiSchemaAttributesAttributesInfo, None]": - """Get all meta-attributes in table + """Get meta-attributes for attribute This method makes a synchronous HTTP request. @@ -901,6 +867,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_get( ---------- database_key: str table_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 @@ -910,15 +877,21 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_get( ------- Union[GrantaServerApiSchemaAttributesAttributesInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_http_info( - database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True + data = self._get_meta_attributes_for_attribute_with_http_info( + database_key, + table_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_http_info( + def _get_meta_attributes_for_attribute_with_http_info( self, database_key: "str", table_guid: "str", + attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, @@ -926,6 +899,7 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h all_params = [ "database_key", "table_guid", + "attribute_guid", "mode", "x_ansys_vc_mode", "_return_http_data_only", @@ -937,19 +911,24 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_meta_attributes_get" + f"Got an unexpected keyword argument '{key}' to method get_meta_attributes_for_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_get'" + "Missing the required parameter 'database_key' when calling 'get_meta_attributes_for_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_get'" + "Missing the required parameter 'table_guid' when calling 'get_meta_attributes_for_attribute'" + ) + # 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_meta_attributes_for_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -959,6 +938,8 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h 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 "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: @@ -983,7 +964,7 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes", + "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}/meta-attributes", "GET", path_params, query_params, @@ -998,10 +979,15 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete( - self, *, database_key: "str", table_guid: "str", meta_attribute_guid: "str" - ) -> "Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None]": - """Delete a meta-attribute. + def update_attribute( + self, + *, + database_key: "str", + table_guid: "str", + attribute_guid: "str", + body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, + ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": + """Update attribute. This method makes a synchronous HTTP request. @@ -1009,28 +995,31 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib ---------- database_key: str table_guid: str - meta_attribute_guid: str + attribute_guid: str + body: GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute Returns ------- - Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None] + Union[GrantaServerApiSchemaAttributesAttribute, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete_with_http_info( - database_key, table_guid, meta_attribute_guid, _return_http_data_only=True + data = self._update_attribute_with_http_info( + database_key, table_guid, attribute_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete_with_http_info( + def _update_attribute_with_http_info( self, database_key: "str", table_guid: "str", - meta_attribute_guid: "str", + attribute_guid: "str", + body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "meta_attribute_guid", + "attribute_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1040,24 +1029,24 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete" + f"Got an unexpected keyword argument '{key}' to method update_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete'" + "Missing the required parameter 'database_key' when calling 'update_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'update_attribute'" ) - # verify the required parameter "meta_attribute_guid" is set - if "meta_attribute_guid" not in params or params["meta_attribute_guid"] is None: + # 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 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete'" + "Missing the required parameter 'attribute_guid' when calling 'update_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -1067,8 +1056,8 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri 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 "meta_attribute_guid" in params and meta_attribute_guid is not None: - path_params["meta-attribute-guid"] = params["meta_attribute_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] query_params: List[Any] = [] @@ -1078,21 +1067,33 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri 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 = { - 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", - 200: None, + 200: "GrantaServerApiSchemaAttributesAttribute", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes/{meta-attribute-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}", + "PATCH", path_params, query_params, header_params, @@ -1106,16 +1107,15 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get( + def update_meta_attribute( self, *, database_key: "str", table_guid: "str", meta_attribute_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": - """Get meta-attribute in table + """Update meta-attribute. This method makes a synchronous HTTP request. @@ -1124,40 +1124,34 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib database_key: str table_guid: str meta_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. + body: GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute Returns ------- Union[GrantaServerApiSchemaAttributesAttribute, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get_with_http_info( + data = self._update_meta_attribute_with_http_info( database_key, table_guid, meta_attribute_guid, - mode, - x_ansys_vc_mode, + body, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get_with_http_info( + def _update_meta_attribute_with_http_info( self, database_key: "str", table_guid: "str", meta_attribute_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "meta_attribute_guid", - "mode", - "x_ansys_vc_mode", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1167,24 +1161,24 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get" + f"Got an unexpected keyword argument '{key}' to method update_meta_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get'" + "Missing the required parameter 'database_key' when calling 'update_meta_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get'" + "Missing the required parameter 'table_guid' when calling 'update_meta_attribute'" ) # verify the required parameter "meta_attribute_guid" is set if "meta_attribute_guid" not in params or params["meta_attribute_guid"] is None: raise ValueError( - "Missing the required parameter 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get'" + "Missing the required parameter 'meta_attribute_guid' when calling 'update_meta_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -1198,30 +1192,40 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri path_params["meta-attribute-guid"] = params["meta_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 = { 200: "GrantaServerApiSchemaAttributesAttribute", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes/{meta-attribute-guid}", - "GET", + "PATCH", path_params, query_params, header_params, @@ -1235,15 +1239,15 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch( + def validate_attribute( self, *, database_key: "str", table_guid: "str", - meta_attribute_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, - ) -> "Union[GrantaServerApiSchemaAttributesAttribute, None]": - """Update meta-attribute. + attribute_guid: "str", + body: "Optional[GrantaServerApiSchemaAttributesValidateAttributeRequest]" = None, + ) -> "Union[GrantaServerApiSchemaAttributesAttributeValidateResponse, None]": + """Validates the provided value against the attributes data rules. This method makes a synchronous HTTP request. @@ -1251,34 +1255,30 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib ---------- database_key: str table_guid: str - meta_attribute_guid: str - body: GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute + attribute_guid: str + body: GrantaServerApiSchemaAttributesValidateAttributeRequest Returns ------- - Union[GrantaServerApiSchemaAttributesAttribute, None] + Union[GrantaServerApiSchemaAttributesAttributeValidateResponse, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch_with_http_info( - database_key, - table_guid, - meta_attribute_guid, - body, - _return_http_data_only=True, + data = self._validate_attribute_with_http_info( + database_key, table_guid, attribute_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch_with_http_info( + def _validate_attribute_with_http_info( self, database_key: "str", table_guid: "str", - meta_attribute_guid: "str", - body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, + attribute_guid: "str", + body: "Optional[GrantaServerApiSchemaAttributesValidateAttributeRequest]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "meta_attribute_guid", + "attribute_guid", "body", "_return_http_data_only", "_preload_content", @@ -1289,24 +1289,24 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch" + f"Got an unexpected keyword argument '{key}' to method validate_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch'" + "Missing the required parameter 'database_key' when calling 'validate_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch'" + "Missing the required parameter 'table_guid' when calling 'validate_attribute'" ) - # verify the required parameter "meta_attribute_guid" is set - if "meta_attribute_guid" not in params or params["meta_attribute_guid"] is None: + # 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 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch'" + "Missing the required parameter 'attribute_guid' when calling 'validate_attribute'" ) collection_formats: Dict[str, Any] = {} @@ -1316,8 +1316,8 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri 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 "meta_attribute_guid" in params and meta_attribute_guid is not None: - path_params["meta-attribute-guid"] = params["meta_attribute_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] query_params: List[Any] = [] @@ -1345,15 +1345,15 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri ) response_type_map = { - 200: "GrantaServerApiSchemaAttributesAttribute", + 200: "GrantaServerApiSchemaAttributesAttributeValidateResponse", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes/{meta-attribute-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}:validate", + "POST", path_params, query_params, header_params, @@ -1367,7 +1367,7 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post( + def validate_meta_attribute( self, *, database_key: "str", @@ -1390,7 +1390,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib ------- Union[GrantaServerApiSchemaAttributesAttributeValidateResponse, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post_with_http_info( + data = self._validate_meta_attribute_with_http_info( database_key, table_guid, meta_attribute_guid, @@ -1399,7 +1399,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post_with_http_info( + def _validate_meta_attribute_with_http_info( self, database_key: "str", table_guid: "str", @@ -1421,24 +1421,24 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post" + f"Got an unexpected keyword argument '{key}' to method validate_meta_attribute" ) 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post'" + "Missing the required parameter 'database_key' when calling 'validate_meta_attribute'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post'" + "Missing the required parameter 'table_guid' when calling 'validate_meta_attribute'" ) # verify the required parameter "meta_attribute_guid" is set if "meta_attribute_guid" not in params or params["meta_attribute_guid"] is None: raise ValueError( - "Missing the required parameter 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post'" + "Missing the required parameter 'meta_attribute_guid' when calling 'validate_meta_attribute'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py index 7332e793..339095d8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py @@ -33,14 +33,14 @@ class SchemaConfigurationsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete( + def create_configuration( self, *, database_key: "str", configuration_type: "str", - configuration_guid: "str", - ) -> "None": - """Delete a configuration + body: "Optional[GrantaServerApiSchemaConfigurationsCreateConfiguration]" = None, + ) -> "Union[GrantaServerApiSchemaConfigurationsConfiguration, None]": + """Create a new configuration. This method makes a synchronous HTTP request. @@ -49,31 +49,28 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati database_key: str configuration_type: str The configuration type. - configuration_guid: str + body: GrantaServerApiSchemaConfigurationsCreateConfiguration Returns ------- - None + Union[GrantaServerApiSchemaConfigurationsConfiguration, None] """ - data = self._v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete_with_http_info( - database_key, - configuration_type, - configuration_guid, - _return_http_data_only=True, + data = self._create_configuration_with_http_info( + database_key, configuration_type, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete_with_http_info( + def _create_configuration_with_http_info( self, database_key: "str", configuration_type: "str", - configuration_guid: "str", + body: "Optional[GrantaServerApiSchemaConfigurationsCreateConfiguration]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "configuration_type", - "configuration_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -83,24 +80,19 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_configuration" ) 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 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_configuration'" ) # verify the required parameter "configuration_type" is set if "configuration_type" not in params or params["configuration_type"] is None: raise ValueError( - "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete'" - ) - # verify the required parameter "configuration_guid" is set - if "configuration_guid" not in params or params["configuration_guid"] is None: - raise ValueError( - "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete'" + "Missing the required parameter 'configuration_type' when calling 'create_configuration'" ) collection_formats: Dict[str, Any] = {} @@ -110,8 +102,6 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat path_params["database-key"] = params["database_key"] if "configuration_type" in params and configuration_type is not None: path_params["configuration-type"] = params["configuration_type"] - if "configuration_guid" in params and configuration_guid is not None: - path_params["configuration-guid"] = params["configuration_guid"] query_params: List[Any] = [] @@ -121,16 +111,33 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat 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 = { - 200: None, + 201: "GrantaServerApiSchemaConfigurationsConfiguration", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/configurations/{configuration-type}", + "POST", path_params, query_params, header_params, @@ -144,14 +151,14 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat response_type_map=response_type_map, ) - def v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get( + def delete_configuration( self, *, database_key: "str", configuration_type: "str", configuration_guid: "str", - ) -> "Union[GrantaServerApiSchemaConfigurationsConfiguration, None]": - """Get individual configuration + ) -> "None": + """Delete a configuration This method makes a synchronous HTTP request. @@ -164,9 +171,9 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati Returns ------- - Union[GrantaServerApiSchemaConfigurationsConfiguration, None] + None """ - data = self._v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get_with_http_info( + data = self._delete_configuration_with_http_info( database_key, configuration_type, configuration_guid, @@ -174,7 +181,7 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get_with_http_info( + def _delete_configuration_with_http_info( self, database_key: "str", configuration_type: "str", @@ -194,24 +201,24 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_configuration" ) 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 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_configuration'" ) # verify the required parameter "configuration_type" is set if "configuration_type" not in params or params["configuration_type"] is None: raise ValueError( - "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get'" + "Missing the required parameter 'configuration_type' when calling 'delete_configuration'" ) # verify the required parameter "configuration_guid" is set if "configuration_guid" not in params or params["configuration_guid"] is None: raise ValueError( - "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get'" + "Missing the required parameter 'configuration_guid' when calling 'delete_configuration'" ) collection_formats: Dict[str, Any] = {} @@ -232,19 +239,16 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat 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 = { - 200: "GrantaServerApiSchemaConfigurationsConfiguration", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -258,15 +262,14 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat response_type_map=response_type_map, ) - def v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch( + def export_configuration( self, *, database_key: "str", configuration_type: "str", configuration_guid: "str", - body: "Optional[GrantaServerApiSchemaConfigurationsUpdateConfiguration]" = None, - ) -> "Union[GrantaServerApiSchemaConfigurationsConfiguration, None]": - """Update a configuration. + ) -> "None": + """Get individual configuration as a file This method makes a synchronous HTTP request. @@ -276,34 +279,30 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati configuration_type: str The configuration type. configuration_guid: str - body: GrantaServerApiSchemaConfigurationsUpdateConfiguration Returns ------- - Union[GrantaServerApiSchemaConfigurationsConfiguration, None] + None """ - data = self._v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch_with_http_info( + data = self._export_configuration_with_http_info( database_key, configuration_type, configuration_guid, - body, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch_with_http_info( + def _export_configuration_with_http_info( self, database_key: "str", configuration_type: "str", configuration_guid: "str", - body: "Optional[GrantaServerApiSchemaConfigurationsUpdateConfiguration]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "configuration_type", "configuration_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -313,24 +312,24 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch" + f"Got an unexpected keyword argument '{key}' to method export_configuration" ) 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 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch'" + "Missing the required parameter 'database_key' when calling 'export_configuration'" ) # verify the required parameter "configuration_type" is set if "configuration_type" not in params or params["configuration_type"] is None: raise ValueError( - "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch'" + "Missing the required parameter 'configuration_type' when calling 'export_configuration'" ) # verify the required parameter "configuration_guid" is set if "configuration_guid" not in params or params["configuration_guid"] is None: raise ValueError( - "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch'" + "Missing the required parameter 'configuration_guid' when calling 'export_configuration'" ) collection_formats: Dict[str, Any] = {} @@ -351,33 +350,15 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat 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 = { - 200: "GrantaServerApiSchemaConfigurationsConfiguration", - 400: None, - 403: None, + 200: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}:export", + "GET", path_params, query_params, header_params, @@ -391,14 +372,14 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat response_type_map=response_type_map, ) - def v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get( + def get_configuration( self, *, database_key: "str", configuration_type: "str", configuration_guid: "str", - ) -> "None": - """Get individual configuration as a file + ) -> "Union[GrantaServerApiSchemaConfigurationsConfiguration, None]": + """Get individual configuration This method makes a synchronous HTTP request. @@ -411,9 +392,9 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati Returns ------- - None + Union[GrantaServerApiSchemaConfigurationsConfiguration, None] """ - data = self._v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get_with_http_info( + data = self._get_configuration_with_http_info( database_key, configuration_type, configuration_guid, @@ -421,7 +402,7 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get_with_http_info( + def _get_configuration_with_http_info( self, database_key: "str", configuration_type: "str", @@ -441,24 +422,24 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get" + f"Got an unexpected keyword argument '{key}' to method get_configuration" ) 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 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get'" + "Missing the required parameter 'database_key' when calling 'get_configuration'" ) # verify the required parameter "configuration_type" is set if "configuration_type" not in params or params["configuration_type"] is None: raise ValueError( - "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get'" + "Missing the required parameter 'configuration_type' when calling 'get_configuration'" ) # verify the required parameter "configuration_guid" is set if "configuration_guid" not in params or params["configuration_guid"] is None: raise ValueError( - "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get'" + "Missing the required parameter 'configuration_guid' when calling 'get_configuration'" ) collection_formats: Dict[str, Any] = {} @@ -479,14 +460,18 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat 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 = { - 200: None, + 200: "GrantaServerApiSchemaConfigurationsConfiguration", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}:export", + "/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}", "GET", path_params, query_params, @@ -501,7 +486,7 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat response_type_map=response_type_map, ) - def v1alpha_databases_database_key_configurations_configuration_type_get( + def get_configurations( self, *, database_key: "str", configuration_type: "str" ) -> "Union[GrantaServerApiSchemaConfigurationsConfigurationsInfo, None]": """Get all configurations of given type @@ -518,12 +503,12 @@ def v1alpha_databases_database_key_configurations_configuration_type_get( ------- Union[GrantaServerApiSchemaConfigurationsConfigurationsInfo, None] """ - data = self._v1alpha_databases_database_key_configurations_configuration_type_get_with_http_info( + data = self._get_configurations_with_http_info( database_key, configuration_type, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_configurations_configuration_type_get_with_http_info( + def _get_configurations_with_http_info( self, database_key: "str", configuration_type: "str", **kwargs: Any ) -> Any: all_params = [ @@ -538,19 +523,19 @@ def _v1alpha_databases_database_key_configurations_configuration_type_get_with_h for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_configurations_configuration_type_get" + f"Got an unexpected keyword argument '{key}' to method get_configurations" ) 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 'v1alpha_databases_database_key_configurations_configuration_type_get'" + "Missing the required parameter 'database_key' when calling 'get_configurations'" ) # verify the required parameter "configuration_type" is set if "configuration_type" not in params or params["configuration_type"] is None: raise ValueError( - "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_get'" + "Missing the required parameter 'configuration_type' when calling 'get_configurations'" ) collection_formats: Dict[str, Any] = {} @@ -595,14 +580,15 @@ def _v1alpha_databases_database_key_configurations_configuration_type_get_with_h response_type_map=response_type_map, ) - def v1alpha_databases_database_key_configurations_configuration_type_post( + def update_configuration( self, *, database_key: "str", configuration_type: "str", - body: "Optional[GrantaServerApiSchemaConfigurationsCreateConfiguration]" = None, + configuration_guid: "str", + body: "Optional[GrantaServerApiSchemaConfigurationsUpdateConfiguration]" = None, ) -> "Union[GrantaServerApiSchemaConfigurationsConfiguration, None]": - """Create a new configuration. + """Update a configuration. This method makes a synchronous HTTP request. @@ -611,27 +597,34 @@ def v1alpha_databases_database_key_configurations_configuration_type_post( database_key: str configuration_type: str The configuration type. - body: GrantaServerApiSchemaConfigurationsCreateConfiguration + configuration_guid: str + body: GrantaServerApiSchemaConfigurationsUpdateConfiguration Returns ------- Union[GrantaServerApiSchemaConfigurationsConfiguration, None] """ - data = self._v1alpha_databases_database_key_configurations_configuration_type_post_with_http_info( - database_key, configuration_type, body, _return_http_data_only=True + data = self._update_configuration_with_http_info( + database_key, + configuration_type, + configuration_guid, + body, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_configurations_configuration_type_post_with_http_info( + def _update_configuration_with_http_info( self, database_key: "str", configuration_type: "str", - body: "Optional[GrantaServerApiSchemaConfigurationsCreateConfiguration]" = None, + configuration_guid: "str", + body: "Optional[GrantaServerApiSchemaConfigurationsUpdateConfiguration]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "configuration_type", + "configuration_guid", "body", "_return_http_data_only", "_preload_content", @@ -642,19 +635,24 @@ def _v1alpha_databases_database_key_configurations_configuration_type_post_with_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_configurations_configuration_type_post" + f"Got an unexpected keyword argument '{key}' to method update_configuration" ) 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 'v1alpha_databases_database_key_configurations_configuration_type_post'" + "Missing the required parameter 'database_key' when calling 'update_configuration'" ) # verify the required parameter "configuration_type" is set if "configuration_type" not in params or params["configuration_type"] is None: raise ValueError( - "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_post'" + "Missing the required parameter 'configuration_type' when calling 'update_configuration'" + ) + # verify the required parameter "configuration_guid" is set + if "configuration_guid" not in params or params["configuration_guid"] is None: + raise ValueError( + "Missing the required parameter 'configuration_guid' when calling 'update_configuration'" ) collection_formats: Dict[str, Any] = {} @@ -664,6 +662,8 @@ def _v1alpha_databases_database_key_configurations_configuration_type_post_with_ path_params["database-key"] = params["database_key"] if "configuration_type" in params and configuration_type is not None: path_params["configuration-type"] = params["configuration_type"] + if "configuration_guid" in params and configuration_guid is not None: + path_params["configuration-guid"] = params["configuration_guid"] query_params: List[Any] = [] @@ -691,15 +691,15 @@ def _v1alpha_databases_database_key_configurations_configuration_type_post_with_ ) response_type_map = { - 201: "GrantaServerApiSchemaConfigurationsConfiguration", + 200: "GrantaServerApiSchemaConfigurationsConfiguration", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/configurations/{configuration-type}", - "POST", + "/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py index 440986ea..45d1833d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py @@ -33,35 +33,41 @@ class SchemaConstantsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_constants_constant_guid_delete( - self, *, database_key: "str", constant_guid: "str" - ) -> "Union[GrantaServerApiExceptionsDeletionConstantDeletionException, None]": - """Delete a constant + def create_constant( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaConstantsCreateConstant]" = None, + ) -> "Union[GrantaServerApiSchemaConstantsConstant, None]": + """Create a new constant. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - Database in which constant will be search for - constant_guid: str - Guid of constant to delete + Database in which constant will be created + body: GrantaServerApiSchemaConstantsCreateConstant + Constant to add to database Returns ------- - Union[GrantaServerApiExceptionsDeletionConstantDeletionException, None] + Union[GrantaServerApiSchemaConstantsConstant, None] """ - data = self._v1alpha_databases_database_key_constants_constant_guid_delete_with_http_info( - database_key, constant_guid, _return_http_data_only=True + data = self._create_constant_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_constants_constant_guid_delete_with_http_info( - self, database_key: "str", constant_guid: "str", **kwargs: Any + def _create_constant_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaConstantsCreateConstant]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "constant_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -71,19 +77,14 @@ def _v1alpha_databases_database_key_constants_constant_guid_delete_with_http_inf for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_constants_constant_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_constant" ) 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 'v1alpha_databases_database_key_constants_constant_guid_delete'" - ) - # verify the required parameter "constant_guid" is set - if "constant_guid" not in params or params["constant_guid"] is None: - raise ValueError( - "Missing the required parameter 'constant_guid' when calling 'v1alpha_databases_database_key_constants_constant_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_constant'" ) collection_formats: Dict[str, Any] = {} @@ -91,8 +92,6 @@ def _v1alpha_databases_database_key_constants_constant_guid_delete_with_http_inf path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "constant_guid" in params and constant_guid is not None: - path_params["constant-guid"] = params["constant_guid"] query_params: List[Any] = [] @@ -102,21 +101,33 @@ def _v1alpha_databases_database_key_constants_constant_guid_delete_with_http_inf 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 = { - 400: "GrantaServerApiExceptionsDeletionConstantDeletionException", - 200: None, + 201: "GrantaServerApiSchemaConstantsConstant", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/constants/{constant-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/constants", + "POST", path_params, query_params, header_params, @@ -130,10 +141,10 @@ def _v1alpha_databases_database_key_constants_constant_guid_delete_with_http_inf response_type_map=response_type_map, ) - def v1alpha_databases_database_key_constants_constant_guid_get( + def delete_constant( self, *, database_key: "str", constant_guid: "str" - ) -> "Union[GrantaServerApiSchemaConstantsConstant, None]": - """Get individual constant + ) -> "Union[GrantaServerApiExceptionsDeletionConstantDeletionException, None]": + """Delete a constant This method makes a synchronous HTTP request. @@ -142,18 +153,18 @@ def v1alpha_databases_database_key_constants_constant_guid_get( database_key: str Database in which constant will be search for constant_guid: str - Guid of requested constant + Guid of constant to delete Returns ------- - Union[GrantaServerApiSchemaConstantsConstant, None] + Union[GrantaServerApiExceptionsDeletionConstantDeletionException, None] """ - data = self._v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( + data = self._delete_constant_with_http_info( database_key, constant_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( + def _delete_constant_with_http_info( self, database_key: "str", constant_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -168,19 +179,19 @@ def _v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_constants_constant_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_constant" ) 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 'v1alpha_databases_database_key_constants_constant_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_constant'" ) # verify the required parameter "constant_guid" is set if "constant_guid" not in params or params["constant_guid"] is None: raise ValueError( - "Missing the required parameter 'constant_guid' when calling 'v1alpha_databases_database_key_constants_constant_guid_get'" + "Missing the required parameter 'constant_guid' when calling 'delete_constant'" ) collection_formats: Dict[str, Any] = {} @@ -205,13 +216,15 @@ def _v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiSchemaConstantsConstant", + 400: "GrantaServerApiExceptionsDeletionConstantDeletionException", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/constants/{constant-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -225,14 +238,10 @@ def _v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_constants_constant_guid_patch( - self, - *, - database_key: "str", - constant_guid: "str", - body: "Optional[GrantaServerApiSchemaConstantsUpdateConstant]" = None, + def get_constant( + self, *, database_key: "str", constant_guid: "str" ) -> "Union[GrantaServerApiSchemaConstantsConstant, None]": - """Update constant. + """Get individual constant This method makes a synchronous HTTP request. @@ -241,30 +250,23 @@ def v1alpha_databases_database_key_constants_constant_guid_patch( database_key: str Database in which constant will be search for constant_guid: str - Guid of constant to update - body: GrantaServerApiSchemaConstantsUpdateConstant - Constant data to be updated + Guid of requested constant Returns ------- Union[GrantaServerApiSchemaConstantsConstant, None] """ - data = self._v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info( - database_key, constant_guid, body, _return_http_data_only=True + data = self._get_constant_with_http_info( + database_key, constant_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info( - self, - database_key: "str", - constant_guid: "str", - body: "Optional[GrantaServerApiSchemaConstantsUpdateConstant]" = None, - **kwargs: Any, + def _get_constant_with_http_info( + self, database_key: "str", constant_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "constant_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -274,19 +276,19 @@ def _v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_constants_constant_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_constant" ) 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 'v1alpha_databases_database_key_constants_constant_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_constant'" ) # verify the required parameter "constant_guid" is set if "constant_guid" not in params or params["constant_guid"] is None: raise ValueError( - "Missing the required parameter 'constant_guid' when calling 'v1alpha_databases_database_key_constants_constant_guid_patch'" + "Missing the required parameter 'constant_guid' when calling 'get_constant'" ) collection_formats: Dict[str, Any] = {} @@ -305,33 +307,19 @@ def _v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info 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 = { 200: "GrantaServerApiSchemaConstantsConstant", - 400: None, - 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/constants/{constant-guid}", - "PATCH", + "GET", path_params, query_params, header_params, @@ -345,7 +333,7 @@ def _v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info response_type_map=response_type_map, ) - def v1alpha_databases_database_key_constants_get( + def get_constants( self, *, database_key: "str" ) -> "Union[GrantaServerApiSchemaConstantsConstantsInfo, None]": """Get all constants @@ -360,14 +348,12 @@ def v1alpha_databases_database_key_constants_get( ------- Union[GrantaServerApiSchemaConstantsConstantsInfo, None] """ - data = self._v1alpha_databases_database_key_constants_get_with_http_info( + data = self._get_constants_with_http_info( database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_constants_get_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_constants_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -379,14 +365,14 @@ def _v1alpha_databases_database_key_constants_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_constants_get" + f"Got an unexpected keyword argument '{key}' to method get_constants" ) 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 'v1alpha_databases_database_key_constants_get'" + "Missing the required parameter 'database_key' when calling 'get_constants'" ) collection_formats: Dict[str, Any] = {} @@ -429,40 +415,45 @@ def _v1alpha_databases_database_key_constants_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_constants_post( + def update_constant( self, *, database_key: "str", - body: "Optional[GrantaServerApiSchemaConstantsCreateConstant]" = None, + constant_guid: "str", + body: "Optional[GrantaServerApiSchemaConstantsUpdateConstant]" = None, ) -> "Union[GrantaServerApiSchemaConstantsConstant, None]": - """Create a new constant. + """Update constant. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - Database in which constant will be created - body: GrantaServerApiSchemaConstantsCreateConstant - Constant to add to database + Database in which constant will be search for + constant_guid: str + Guid of constant to update + body: GrantaServerApiSchemaConstantsUpdateConstant + Constant data to be updated Returns ------- Union[GrantaServerApiSchemaConstantsConstant, None] """ - data = self._v1alpha_databases_database_key_constants_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._update_constant_with_http_info( + database_key, constant_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_constants_post_with_http_info( + def _update_constant_with_http_info( self, database_key: "str", - body: "Optional[GrantaServerApiSchemaConstantsCreateConstant]" = None, + constant_guid: "str", + body: "Optional[GrantaServerApiSchemaConstantsUpdateConstant]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", + "constant_guid", "body", "_return_http_data_only", "_preload_content", @@ -473,14 +464,19 @@ def _v1alpha_databases_database_key_constants_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_constants_post" + f"Got an unexpected keyword argument '{key}' to method update_constant" ) 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 'v1alpha_databases_database_key_constants_post'" + "Missing the required parameter 'database_key' when calling 'update_constant'" + ) + # verify the required parameter "constant_guid" is set + if "constant_guid" not in params or params["constant_guid"] is None: + raise ValueError( + "Missing the required parameter 'constant_guid' when calling 'update_constant'" ) collection_formats: Dict[str, Any] = {} @@ -488,6 +484,8 @@ def _v1alpha_databases_database_key_constants_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "constant_guid" in params and constant_guid is not None: + path_params["constant-guid"] = params["constant_guid"] query_params: List[Any] = [] @@ -515,15 +513,15 @@ def _v1alpha_databases_database_key_constants_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiSchemaConstantsConstant", + 200: "GrantaServerApiSchemaConstantsConstant", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/constants", - "POST", + "/v1alpha/databases/{database-key}/constants/{constant-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py index 88e0cad5..eb3d9d54 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py @@ -33,33 +33,39 @@ class SchemaDataRulesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_data_rules_data_rule_guid_delete( - self, *, database_key: "str", data_rule_guid: "str" - ) -> "None": - """Delete a data rule. + def create_data_rule( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaDataRulesCreateDataRule]" = None, + ) -> "Union[GrantaServerApiSchemaDataRulesDataRule, None]": + """Create a new data rule This method makes a synchronous HTTP request. Parameters ---------- database_key: str - data_rule_guid: str + body: GrantaServerApiSchemaDataRulesCreateDataRule Returns ------- - None + Union[GrantaServerApiSchemaDataRulesDataRule, None] """ - data = self._v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_info( - database_key, data_rule_guid, _return_http_data_only=True + data = self._create_data_rule_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_info( - self, database_key: "str", data_rule_guid: "str", **kwargs: Any + def _create_data_rule_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaDataRulesCreateDataRule]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "data_rule_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -69,19 +75,14 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_i for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_data_rules_data_rule_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_data_rule" ) 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 'v1alpha_databases_database_key_data_rules_data_rule_guid_delete'" - ) - # verify the required parameter "data_rule_guid" is set - if "data_rule_guid" not in params or params["data_rule_guid"] is None: - raise ValueError( - "Missing the required parameter 'data_rule_guid' when calling 'v1alpha_databases_database_key_data_rules_data_rule_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_data_rule'" ) collection_formats: Dict[str, Any] = {} @@ -89,8 +90,6 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_i path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "data_rule_guid" in params and data_rule_guid is not None: - path_params["data-rule-guid"] = params["data_rule_guid"] query_params: List[Any] = [] @@ -100,17 +99,33 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_i 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 = { - 200: None, + 201: "GrantaServerApiSchemaDataRulesDataRule", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/data-rules/{data-rule-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/data-rules", + "POST", path_params, query_params, header_params, @@ -124,10 +139,8 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_i response_type_map=response_type_map, ) - def v1alpha_databases_database_key_data_rules_data_rule_guid_get( - self, *, database_key: "str", data_rule_guid: "str" - ) -> "Union[GrantaServerApiSchemaDataRulesDataRule, None]": - """Gets a data rule for a given database and guid. + def delete_data_rule(self, *, database_key: "str", data_rule_guid: "str") -> "None": + """Delete a data rule. This method makes a synchronous HTTP request. @@ -138,14 +151,14 @@ def v1alpha_databases_database_key_data_rules_data_rule_guid_get( Returns ------- - Union[GrantaServerApiSchemaDataRulesDataRule, None] + None """ - data = self._v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info( + data = self._delete_data_rule_with_http_info( database_key, data_rule_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info( + def _delete_data_rule_with_http_info( self, database_key: "str", data_rule_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -160,19 +173,19 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_data_rules_data_rule_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_data_rule" ) 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 'v1alpha_databases_database_key_data_rules_data_rule_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_data_rule'" ) # verify the required parameter "data_rule_guid" is set if "data_rule_guid" not in params or params["data_rule_guid"] is None: raise ValueError( - "Missing the required parameter 'data_rule_guid' when calling 'v1alpha_databases_database_key_data_rules_data_rule_guid_get'" + "Missing the required parameter 'data_rule_guid' when calling 'delete_data_rule'" ) collection_formats: Dict[str, Any] = {} @@ -191,19 +204,17 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info 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 = { - 200: "GrantaServerApiSchemaDataRulesDataRule", + 200: None, + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/data-rules/{data-rule-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -217,14 +228,10 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info response_type_map=response_type_map, ) - def v1alpha_databases_database_key_data_rules_data_rule_guid_patch( - self, - *, - database_key: "str", - data_rule_guid: "str", - body: "Optional[GrantaServerApiSchemaDataRulesUpdateDataRule]" = None, + def get_data_rule( + self, *, database_key: "str", data_rule_guid: "str" ) -> "Union[GrantaServerApiSchemaDataRulesDataRule, None]": - """Edit a data rule + """Gets a data rule for a given database and guid. This method makes a synchronous HTTP request. @@ -232,28 +239,22 @@ def v1alpha_databases_database_key_data_rules_data_rule_guid_patch( ---------- database_key: str data_rule_guid: str - body: GrantaServerApiSchemaDataRulesUpdateDataRule Returns ------- Union[GrantaServerApiSchemaDataRulesDataRule, None] """ - data = self._v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_info( - database_key, data_rule_guid, body, _return_http_data_only=True + data = self._get_data_rule_with_http_info( + database_key, data_rule_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_info( - self, - database_key: "str", - data_rule_guid: "str", - body: "Optional[GrantaServerApiSchemaDataRulesUpdateDataRule]" = None, - **kwargs: Any, + def _get_data_rule_with_http_info( + self, database_key: "str", data_rule_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "data_rule_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -263,19 +264,19 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_in for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_data_rules_data_rule_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_data_rule" ) 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 'v1alpha_databases_database_key_data_rules_data_rule_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_data_rule'" ) # verify the required parameter "data_rule_guid" is set if "data_rule_guid" not in params or params["data_rule_guid"] is None: raise ValueError( - "Missing the required parameter 'data_rule_guid' when calling 'v1alpha_databases_database_key_data_rules_data_rule_guid_patch'" + "Missing the required parameter 'data_rule_guid' when calling 'get_data_rule'" ) collection_formats: Dict[str, Any] = {} @@ -294,33 +295,19 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_in 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 = { 200: "GrantaServerApiSchemaDataRulesDataRule", - 400: None, - 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/data-rules/{data-rule-guid}", - "PATCH", + "GET", path_params, query_params, header_params, @@ -334,7 +321,7 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_in response_type_map=response_type_map, ) - def v1alpha_databases_database_key_data_rules_get( + def get_data_rules( self, *, database_key: "str" ) -> "Union[GrantaServerApiSchemaDataRulesDataRulesInfo, None]": """Gets all data rules for a given database. @@ -349,14 +336,12 @@ def v1alpha_databases_database_key_data_rules_get( ------- Union[GrantaServerApiSchemaDataRulesDataRulesInfo, None] """ - data = self._v1alpha_databases_database_key_data_rules_get_with_http_info( + data = self._get_data_rules_with_http_info( database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_data_rules_get_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_data_rules_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -368,14 +353,14 @@ def _v1alpha_databases_database_key_data_rules_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_data_rules_get" + f"Got an unexpected keyword argument '{key}' to method get_data_rules" ) 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 'v1alpha_databases_database_key_data_rules_get'" + "Missing the required parameter 'database_key' when calling 'get_data_rules'" ) collection_formats: Dict[str, Any] = {} @@ -418,38 +403,42 @@ def _v1alpha_databases_database_key_data_rules_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_data_rules_post( + def update_data_rule( self, *, database_key: "str", - body: "Optional[GrantaServerApiSchemaDataRulesCreateDataRule]" = None, + data_rule_guid: "str", + body: "Optional[GrantaServerApiSchemaDataRulesUpdateDataRule]" = None, ) -> "Union[GrantaServerApiSchemaDataRulesDataRule, None]": - """Create a new data rule + """Edit a data rule This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaDataRulesCreateDataRule + data_rule_guid: str + body: GrantaServerApiSchemaDataRulesUpdateDataRule Returns ------- Union[GrantaServerApiSchemaDataRulesDataRule, None] """ - data = self._v1alpha_databases_database_key_data_rules_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._update_data_rule_with_http_info( + database_key, data_rule_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_data_rules_post_with_http_info( + def _update_data_rule_with_http_info( self, database_key: "str", - body: "Optional[GrantaServerApiSchemaDataRulesCreateDataRule]" = None, + data_rule_guid: "str", + body: "Optional[GrantaServerApiSchemaDataRulesUpdateDataRule]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", + "data_rule_guid", "body", "_return_http_data_only", "_preload_content", @@ -460,14 +449,19 @@ def _v1alpha_databases_database_key_data_rules_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_data_rules_post" + f"Got an unexpected keyword argument '{key}' to method update_data_rule" ) 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 'v1alpha_databases_database_key_data_rules_post'" + "Missing the required parameter 'database_key' when calling 'update_data_rule'" + ) + # verify the required parameter "data_rule_guid" is set + if "data_rule_guid" not in params or params["data_rule_guid"] is None: + raise ValueError( + "Missing the required parameter 'data_rule_guid' when calling 'update_data_rule'" ) collection_formats: Dict[str, Any] = {} @@ -475,6 +469,8 @@ def _v1alpha_databases_database_key_data_rules_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "data_rule_guid" in params and data_rule_guid is not None: + path_params["data-rule-guid"] = params["data_rule_guid"] query_params: List[Any] = [] @@ -502,15 +498,15 @@ def _v1alpha_databases_database_key_data_rules_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiSchemaDataRulesDataRule", + 200: "GrantaServerApiSchemaDataRulesDataRule", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/data-rules", - "POST", + "/v1alpha/databases/{database-key}/data-rules/{data-rule-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py index 2fea4bbf..6c0c08ed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py @@ -33,55 +33,33 @@ class SchemaDatabasesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaDatabase, None]": - """Returns details for a given database. + def get_all_databases(self) -> "GrantaServerApiSchemaDatabasesInfo": + """Lists all databases that the user can see. This method makes a synchronous HTTP request. - Parameters - ---------- - database_key: str - Returns ------- - Union[GrantaServerApiSchemaDatabase, None] + GrantaServerApiSchemaDatabasesInfo """ - data = self._v1alpha_databases_database_key_get_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_all_databases_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_get_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: - all_params = [ - "database_key", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_all_databases_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 v1alpha_databases_database_key_get" + f"Got an unexpected keyword argument '{key}' to method get_all_databases" ) 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 'v1alpha_databases_database_key_get'" - ) 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"] query_params: List[Any] = [] @@ -97,12 +75,11 @@ def _v1alpha_databases_database_key_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiSchemaDatabase", - 404: None, + 200: "GrantaServerApiSchemaDatabasesInfo", } return self.api_client.call_api( - "/v1alpha/databases/{database-key}", + "/v1alpha/databases", "GET", path_params, query_params, @@ -117,39 +94,29 @@ def _v1alpha_databases_database_key_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_patch( - self, - *, - database_key: "str", - body: "Optional[GrantaServerApiSchemaUpdateDatabase]" = None, + def get_database( + self, *, database_key: "str" ) -> "Union[GrantaServerApiSchemaDatabase, None]": - """Update database details. + """Returns details for a given database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaUpdateDatabase Returns ------- Union[GrantaServerApiSchemaDatabase, None] """ - data = self._v1alpha_databases_database_key_patch_with_http_info( - database_key, body, _return_http_data_only=True + data = self._get_database_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_patch_with_http_info( - self, - database_key: "str", - body: "Optional[GrantaServerApiSchemaUpdateDatabase]" = None, - **kwargs: Any, - ) -> Any: + def _get_database_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -159,14 +126,14 @@ def _v1alpha_databases_database_key_patch_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_patch" + f"Got an unexpected keyword argument '{key}' to method get_database" ) 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 'v1alpha_databases_database_key_patch'" + "Missing the required parameter 'database_key' when calling 'get_database'" ) collection_formats: Dict[str, Any] = {} @@ -183,33 +150,19 @@ def _v1alpha_databases_database_key_patch_with_http_info( 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 = { 200: "GrantaServerApiSchemaDatabase", - 400: None, - 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}", - "PATCH", + "GET", path_params, query_params, header_params, @@ -223,7 +176,7 @@ def _v1alpha_databases_database_key_patch_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_keylock_post( + def lock_database( self, *, database_key: "str" ) -> "Union[GrantaServerApiSchemaDatabase, None]": """Lock database @@ -239,14 +192,12 @@ def v1alpha_databases_database_keylock_post( ------- Union[GrantaServerApiSchemaDatabase, None] """ - data = self._v1alpha_databases_database_keylock_post_with_http_info( + data = self._lock_database_with_http_info( database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_keylock_post_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _lock_database_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -258,14 +209,14 @@ def _v1alpha_databases_database_keylock_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_keylock_post" + f"Got an unexpected keyword argument '{key}' to method lock_database" ) 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 'v1alpha_databases_database_keylock_post'" + "Missing the required parameter 'database_key' when calling 'lock_database'" ) collection_formats: Dict[str, Any] = {} @@ -310,7 +261,7 @@ def _v1alpha_databases_database_keylock_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_keyunlock_post( + def unlock_database( self, *, database_key: "str" ) -> "Union[GrantaServerApiSchemaDatabase, None]": """Unlock database @@ -326,12 +277,12 @@ def v1alpha_databases_database_keyunlock_post( ------- Union[GrantaServerApiSchemaDatabase, None] """ - data = self._v1alpha_databases_database_keyunlock_post_with_http_info( + data = self._unlock_database_with_http_info( database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_keyunlock_post_with_http_info( + def _unlock_database_with_http_info( self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ @@ -345,14 +296,14 @@ def _v1alpha_databases_database_keyunlock_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_keyunlock_post" + f"Got an unexpected keyword argument '{key}' to method unlock_database" ) 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 'v1alpha_databases_database_keyunlock_post'" + "Missing the required parameter 'database_key' when calling 'unlock_database'" ) collection_formats: Dict[str, Any] = {} @@ -397,33 +348,63 @@ def _v1alpha_databases_database_keyunlock_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_get(self) -> "GrantaServerApiSchemaDatabasesInfo": - """Lists all databases that the user can see. + def update_database( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaUpdateDatabase]" = None, + ) -> "Union[GrantaServerApiSchemaDatabase, None]": + """Update database details. This method makes a synchronous HTTP request. + Parameters + ---------- + database_key: str + body: GrantaServerApiSchemaUpdateDatabase + Returns ------- - GrantaServerApiSchemaDatabasesInfo + Union[GrantaServerApiSchemaDatabase, None] """ - data = self._v1alpha_databases_get_with_http_info(_return_http_data_only=True) + data = self._update_database_with_http_info( + database_key, body, _return_http_data_only=True + ) return data # type: ignore[no-any-return] - def _v1alpha_databases_get_with_http_info(self, **kwargs: Any) -> Any: - all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] + def _update_database_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaUpdateDatabase]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "body", + "_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 v1alpha_databases_get" + f"Got an unexpected keyword argument '{key}' to method update_database" ) 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 'update_database'" + ) 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"] query_params: List[Any] = [] @@ -433,18 +414,33 @@ def _v1alpha_databases_get_with_http_info(self, **kwargs: Any) -> 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 = { - 200: "GrantaServerApiSchemaDatabasesInfo", + 200: "GrantaServerApiSchemaDatabase", + 400: None, + 403: None, + 404: None, } return self.api_client.call_api( - "/v1alpha/databases", - "GET", + "/v1alpha/databases/{database-key}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py index 336d2a59..3d037050 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py @@ -33,14 +33,14 @@ class SchemaDiscreteTypesDiscreteValuesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete( + def create_discrete_value( self, *, database_key: "str", discrete_type_guid: "str", - discrete_value_guid: "str", - ) -> "Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None]": - """Delete a single discrete value. It must not be used by any data, or the operation will fail. + body: "Optional[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]" = None, + ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None]": + """Create new discrete value. If it's ordered, it will be added at the end. This method makes a synchronous HTTP request. @@ -48,31 +48,28 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va ---------- database_key: str discrete_type_guid: str - discrete_value_guid: str + body: GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue Returns ------- - Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None] + Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete_with_http_info( - database_key, - discrete_type_guid, - discrete_value_guid, - _return_http_data_only=True, + data = self._create_discrete_value_with_http_info( + database_key, discrete_type_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete_with_http_info( + def _create_discrete_value_with_http_info( self, database_key: "str", discrete_type_guid: "str", - discrete_value_guid: "str", + body: "Optional[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "discrete_type_guid", - "discrete_value_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -82,24 +79,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_discrete_value" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_discrete_value'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete'" - ) - # verify the required parameter "discrete_value_guid" is set - if "discrete_value_guid" not in params or params["discrete_value_guid"] is None: - raise ValueError( - "Missing the required parameter 'discrete_value_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete'" + "Missing the required parameter 'discrete_type_guid' when calling 'create_discrete_value'" ) collection_formats: Dict[str, Any] = {} @@ -109,8 +101,6 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v path_params["database-key"] = params["database_key"] if "discrete_type_guid" in params and discrete_type_guid is not None: path_params["discrete-type-guid"] = params["discrete_type_guid"] - if "discrete_value_guid" in params and discrete_value_guid is not None: - path_params["discrete-value-guid"] = params["discrete_value_guid"] query_params: List[Any] = [] @@ -120,21 +110,33 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v 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 = { - 400: "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException", - 200: None, + 201: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values/{discrete-value-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values", + "POST", path_params, query_params, header_params, @@ -148,14 +150,14 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get( + def delete_discrete_value( self, *, database_key: "str", discrete_type_guid: "str", discrete_value_guid: "str", - ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None]": - """Gets specific discrete value for a given discreteType within a given database. + ) -> "Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None]": + """Delete a single discrete value. It must not be used by any data, or the operation will fail. This method makes a synchronous HTTP request. @@ -167,9 +169,9 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va Returns ------- - Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] + Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get_with_http_info( + data = self._delete_discrete_value_with_http_info( database_key, discrete_type_guid, discrete_value_guid, @@ -177,7 +179,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get_with_http_info( + def _delete_discrete_value_with_http_info( self, database_key: "str", discrete_type_guid: "str", @@ -197,24 +199,24 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_discrete_value" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_discrete_value'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get'" + "Missing the required parameter 'discrete_type_guid' when calling 'delete_discrete_value'" ) # verify the required parameter "discrete_value_guid" is set if "discrete_value_guid" not in params or params["discrete_value_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_value_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get'" + "Missing the required parameter 'discrete_value_guid' when calling 'delete_discrete_value'" ) collection_formats: Dict[str, Any] = {} @@ -241,13 +243,15 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v ) response_type_map = { - 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", + 400: "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values/{discrete-value-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -261,15 +265,10 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch( - self, - *, - database_key: "str", - discrete_type_guid: "str", - discrete_value_guid: "str", - body: "Optional[GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue]" = None, - ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None]": - """Update discrete value. + def find_unused_discrete_values( + self, *, database_key: "str", discrete_type_guid: "str" + ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None]": + """Find discrete values that are not in use by any data This method makes a synchronous HTTP request. @@ -277,35 +276,22 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va ---------- database_key: str discrete_type_guid: str - discrete_value_guid: str - body: GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue Returns ------- - Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] + Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch_with_http_info( - database_key, - discrete_type_guid, - discrete_value_guid, - body, - _return_http_data_only=True, + data = self._find_unused_discrete_values_with_http_info( + database_key, discrete_type_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch_with_http_info( - self, - database_key: "str", - discrete_type_guid: "str", - discrete_value_guid: "str", - body: "Optional[GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue]" = None, - **kwargs: Any, + def _find_unused_discrete_values_with_http_info( + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "discrete_type_guid", - "discrete_value_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -315,24 +301,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch" + f"Got an unexpected keyword argument '{key}' to method find_unused_discrete_values" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch'" + "Missing the required parameter 'database_key' when calling 'find_unused_discrete_values'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch'" - ) - # verify the required parameter "discrete_value_guid" is set - if "discrete_value_guid" not in params or params["discrete_value_guid"] is None: - raise ValueError( - "Missing the required parameter 'discrete_value_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch'" + "Missing the required parameter 'discrete_type_guid' when calling 'find_unused_discrete_values'" ) collection_formats: Dict[str, Any] = {} @@ -342,8 +323,6 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v path_params["database-key"] = params["database_key"] if "discrete_type_guid" in params and discrete_type_guid is not None: path_params["discrete-type-guid"] = params["discrete_type_guid"] - if "discrete_value_guid" in params and discrete_value_guid is not None: - path_params["discrete-value-guid"] = params["discrete_value_guid"] query_params: List[Any] = [] @@ -353,33 +332,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v 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 = { - 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", + 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", 400: None, - 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values/{discrete-value-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values:find-unused", + "GET", path_params, query_params, header_params, @@ -393,10 +359,14 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_get( - self, *, database_key: "str", discrete_type_guid: "str" - ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None]": - """Gets all discrete values for a given discreteType. If discreteType is ordered, then discreteValues will be return in order, otherwise order is not deterministic. + def get_discrete_value( + self, + *, + database_key: "str", + discrete_type_guid: "str", + discrete_value_guid: "str", + ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None]": + """Gets specific discrete value for a given discreteType within a given database. This method makes a synchronous HTTP request. @@ -404,22 +374,31 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va ---------- database_key: str discrete_type_guid: str + discrete_value_guid: str Returns ------- - Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None] + Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_get_with_http_info( - database_key, discrete_type_guid, _return_http_data_only=True + data = self._get_discrete_value_with_http_info( + database_key, + discrete_type_guid, + discrete_value_guid, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_get_with_http_info( - self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + def _get_discrete_value_with_http_info( + self, + database_key: "str", + discrete_type_guid: "str", + discrete_value_guid: "str", + **kwargs: Any, ) -> Any: all_params = [ "database_key", "discrete_type_guid", + "discrete_value_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -429,19 +408,24 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_get" + f"Got an unexpected keyword argument '{key}' to method get_discrete_value" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_get'" + "Missing the required parameter 'database_key' when calling 'get_discrete_value'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_get'" + "Missing the required parameter 'discrete_type_guid' when calling 'get_discrete_value'" + ) + # verify the required parameter "discrete_value_guid" is set + if "discrete_value_guid" not in params or params["discrete_value_guid"] is None: + raise ValueError( + "Missing the required parameter 'discrete_value_guid' when calling 'get_discrete_value'" ) collection_formats: Dict[str, Any] = {} @@ -451,6 +435,8 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v path_params["database-key"] = params["database_key"] if "discrete_type_guid" in params and discrete_type_guid is not None: path_params["discrete-type-guid"] = params["discrete_type_guid"] + if "discrete_value_guid" in params and discrete_value_guid is not None: + path_params["discrete-value-guid"] = params["discrete_value_guid"] query_params: List[Any] = [] @@ -466,12 +452,12 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v ) response_type_map = { - 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", + 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values", + "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values/{discrete-value-guid}", "GET", path_params, query_params, @@ -486,14 +472,10 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post( - self, - *, - database_key: "str", - discrete_type_guid: "str", - body: "Optional[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]" = None, - ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None]": - """Create new discrete value. If it's ordered, it will be added at the end. + def get_discrete_values( + self, *, database_key: "str", discrete_type_guid: "str" + ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None]": + """Gets all discrete values for a given discreteType. If discreteType is ordered, then discreteValues will be return in order, otherwise order is not deterministic. This method makes a synchronous HTTP request. @@ -501,28 +483,22 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va ---------- database_key: str discrete_type_guid: str - body: GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue Returns ------- - Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] + Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post_with_http_info( - database_key, discrete_type_guid, body, _return_http_data_only=True + data = self._get_discrete_values_with_http_info( + database_key, discrete_type_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post_with_http_info( - self, - database_key: "str", - discrete_type_guid: "str", - body: "Optional[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]" = None, - **kwargs: Any, + def _get_discrete_values_with_http_info( + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "discrete_type_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -532,19 +508,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post" + f"Got an unexpected keyword argument '{key}' to method get_discrete_values" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post'" + "Missing the required parameter 'database_key' when calling 'get_discrete_values'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post'" + "Missing the required parameter 'discrete_type_guid' when calling 'get_discrete_values'" ) collection_formats: Dict[str, Any] = {} @@ -563,33 +539,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v 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 = { - 201: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values", - "POST", + "GET", path_params, query_params, header_params, @@ -603,7 +565,7 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put( + def replace_discrete_values( self, *, database_key: "str", @@ -624,12 +586,12 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va ------- Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put_with_http_info( + data = self._replace_discrete_values_with_http_info( database_key, discrete_type_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put_with_http_info( + def _replace_discrete_values_with_http_info( self, database_key: "str", discrete_type_guid: "str", @@ -649,19 +611,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put" + f"Got an unexpected keyword argument '{key}' to method replace_discrete_values" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put'" + "Missing the required parameter 'database_key' when calling 'replace_discrete_values'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put'" + "Missing the required parameter 'discrete_type_guid' when calling 'replace_discrete_values'" ) collection_formats: Dict[str, Any] = {} @@ -720,10 +682,15 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_valuesfind_unused_get( - self, *, database_key: "str", discrete_type_guid: "str" - ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None]": - """Find discrete values that are not in use by any data + def update_discrete_value( + self, + *, + database_key: "str", + discrete_type_guid: "str", + discrete_value_guid: "str", + body: "Optional[GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue]" = None, + ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None]": + """Update discrete value. This method makes a synchronous HTTP request. @@ -731,22 +698,35 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va ---------- database_key: str discrete_type_guid: str + discrete_value_guid: str + body: GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue Returns ------- - Union[GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo, None] + Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_valuesfind_unused_get_with_http_info( - database_key, discrete_type_guid, _return_http_data_only=True + data = self._update_discrete_value_with_http_info( + database_key, + discrete_type_guid, + discrete_value_guid, + body, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_valuesfind_unused_get_with_http_info( - self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + def _update_discrete_value_with_http_info( + self, + database_key: "str", + discrete_type_guid: "str", + discrete_value_guid: "str", + body: "Optional[GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "discrete_type_guid", + "discrete_value_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -756,19 +736,24 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_valuesfind_unused_get" + f"Got an unexpected keyword argument '{key}' to method update_discrete_value" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_valuesfind_unused_get'" + "Missing the required parameter 'database_key' when calling 'update_discrete_value'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_valuesfind_unused_get'" + "Missing the required parameter 'discrete_type_guid' when calling 'update_discrete_value'" + ) + # verify the required parameter "discrete_value_guid" is set + if "discrete_value_guid" not in params or params["discrete_value_guid"] is None: + raise ValueError( + "Missing the required parameter 'discrete_value_guid' when calling 'update_discrete_value'" ) collection_formats: Dict[str, Any] = {} @@ -778,6 +763,8 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v path_params["database-key"] = params["database_key"] if "discrete_type_guid" in params and discrete_type_guid is not None: path_params["discrete-type-guid"] = params["discrete_type_guid"] + if "discrete_value_guid" in params and discrete_value_guid is not None: + path_params["discrete-value-guid"] = params["discrete_value_guid"] query_params: List[Any] = [] @@ -787,20 +774,33 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v 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 = { - 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", + 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values:find-unused", - "GET", + "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}/discrete-values/{discrete-value-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py index b66727c5..650a32a9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py @@ -33,33 +33,39 @@ class SchemaDiscreteTypesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete( - self, *, database_key: "str", discrete_type_guid: "str" - ) -> "Union[GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, None]": - """Delete discrete type, including all of its discrete values. + def create_discrete_type( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaDiscreteTypesCreateDiscreteType]" = None, + ) -> "Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None]": + """Create a new discrete type. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - discrete_type_guid: str + body: GrantaServerApiSchemaDiscreteTypesCreateDiscreteType Returns ------- - Union[GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, None] + Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_with_http_info( - database_key, discrete_type_guid, _return_http_data_only=True + data = self._create_discrete_type_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_with_http_info( - self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + def _create_discrete_type_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaDiscreteTypesCreateDiscreteType]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "discrete_type_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -69,19 +75,14 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_wit for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_discrete_type" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete'" - ) - # verify the required parameter "discrete_type_guid" is set - if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: - raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_discrete_type'" ) collection_formats: Dict[str, Any] = {} @@ -89,8 +90,6 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_wit path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "discrete_type_guid" in params and discrete_type_guid is not None: - path_params["discrete-type-guid"] = params["discrete_type_guid"] query_params: List[Any] = [] @@ -100,21 +99,33 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_wit 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 = { - 400: "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException", - 200: None, + 201: "GrantaServerApiSchemaDiscreteTypesDiscreteType", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/discrete-types", + "POST", path_params, query_params, header_params, @@ -128,10 +139,10 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_wit response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_get( + def delete_discrete_type( self, *, database_key: "str", discrete_type_guid: "str" - ) -> "Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None]": - """Gets a single discrete type. + ) -> "Union[GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, None]": + """Delete discrete type, including all of its discrete values. This method makes a synchronous HTTP request. @@ -142,14 +153,14 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_get( Returns ------- - Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None] + Union[GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_http_info( + data = self._delete_discrete_type_with_http_info( database_key, discrete_type_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_http_info( + def _delete_discrete_type_with_http_info( self, database_key: "str", discrete_type_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -164,19 +175,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_h for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_discrete_type" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_discrete_type'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_get'" + "Missing the required parameter 'discrete_type_guid' when calling 'delete_discrete_type'" ) collection_formats: Dict[str, Any] = {} @@ -201,13 +212,15 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_h ) response_type_map = { - 200: "GrantaServerApiSchemaDiscreteTypesDiscreteType", + 400: "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -221,14 +234,10 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_h response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch( - self, - *, - database_key: "str", - discrete_type_guid: "str", - body: "Optional[GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType]" = None, - ) -> "Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None]": - """Update discrete type. + def get_attributes_for_type( + self, *, database_key: "str", discrete_type_guid: "str" + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None]": + """Gets objects that are using this discrete type. This method makes a synchronous HTTP request. @@ -236,28 +245,22 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch( ---------- database_key: str discrete_type_guid: str - body: GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType Returns ------- - Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None] + Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch_with_http_info( - database_key, discrete_type_guid, body, _return_http_data_only=True + data = self._get_attributes_for_type_with_http_info( + database_key, discrete_type_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch_with_http_info( - self, - database_key: "str", - discrete_type_guid: "str", - body: "Optional[GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType]" = None, - **kwargs: Any, + def _get_attributes_for_type_with_http_info( + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "discrete_type_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -267,19 +270,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch_with for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_attributes_for_type" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_attributes_for_type'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch'" + "Missing the required parameter 'discrete_type_guid' when calling 'get_attributes_for_type'" ) collection_formats: Dict[str, Any] = {} @@ -298,33 +301,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch_with 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 = { - 200: "GrantaServerApiSchemaDiscreteTypesDiscreteType", + 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", 400: None, - 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}:usages", + "GET", path_params, query_params, header_params, @@ -338,10 +328,10 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch_with response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get( + def get_discrete_type( self, *, database_key: "str", discrete_type_guid: "str" - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None]": - """Gets objects that are using this discrete type. + ) -> "Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None]": + """Gets a single discrete type. This method makes a synchronous HTTP request. @@ -352,14 +342,14 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get( Returns ------- - Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None] + Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None] """ - data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_with_http_info( + data = self._get_discrete_type_with_http_info( database_key, discrete_type_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_with_http_info( + def _get_discrete_type_with_http_info( self, database_key: "str", discrete_type_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -374,19 +364,19 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get" + f"Got an unexpected keyword argument '{key}' to method get_discrete_type" ) 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 'v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get'" + "Missing the required parameter 'database_key' when calling 'get_discrete_type'" ) # verify the required parameter "discrete_type_guid" is set if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: raise ValueError( - "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get'" + "Missing the required parameter 'discrete_type_guid' when calling 'get_discrete_type'" ) collection_formats: Dict[str, Any] = {} @@ -411,13 +401,12 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_ ) response_type_map = { - 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", - 400: None, + 200: "GrantaServerApiSchemaDiscreteTypesDiscreteType", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}:usages", + "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}", "GET", path_params, query_params, @@ -432,7 +421,7 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_get( + def get_discrete_types( self, *, database_key: "str" ) -> "Union[GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo, None]": """Gets all discrete types for a given database. @@ -447,12 +436,12 @@ def v1alpha_databases_database_key_discrete_types_get( ------- Union[GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo, None] """ - data = self._v1alpha_databases_database_key_discrete_types_get_with_http_info( + data = self._get_discrete_types_with_http_info( database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_get_with_http_info( + def _get_discrete_types_with_http_info( self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ @@ -466,14 +455,14 @@ def _v1alpha_databases_database_key_discrete_types_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_get" + f"Got an unexpected keyword argument '{key}' to method get_discrete_types" ) 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 'v1alpha_databases_database_key_discrete_types_get'" + "Missing the required parameter 'database_key' when calling 'get_discrete_types'" ) collection_formats: Dict[str, Any] = {} @@ -517,38 +506,42 @@ def _v1alpha_databases_database_key_discrete_types_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_discrete_types_post( + def update_discrete_type( self, *, database_key: "str", - body: "Optional[GrantaServerApiSchemaDiscreteTypesCreateDiscreteType]" = None, + discrete_type_guid: "str", + body: "Optional[GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType]" = None, ) -> "Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None]": - """Create a new discrete type. + """Update discrete type. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaDiscreteTypesCreateDiscreteType + discrete_type_guid: str + body: GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType Returns ------- Union[GrantaServerApiSchemaDiscreteTypesDiscreteType, None] """ - data = self._v1alpha_databases_database_key_discrete_types_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._update_discrete_type_with_http_info( + database_key, discrete_type_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_discrete_types_post_with_http_info( + def _update_discrete_type_with_http_info( self, database_key: "str", - body: "Optional[GrantaServerApiSchemaDiscreteTypesCreateDiscreteType]" = None, + discrete_type_guid: "str", + body: "Optional[GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", + "discrete_type_guid", "body", "_return_http_data_only", "_preload_content", @@ -559,14 +552,19 @@ def _v1alpha_databases_database_key_discrete_types_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_discrete_types_post" + f"Got an unexpected keyword argument '{key}' to method update_discrete_type" ) 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 'v1alpha_databases_database_key_discrete_types_post'" + "Missing the required parameter 'database_key' when calling 'update_discrete_type'" + ) + # verify the required parameter "discrete_type_guid" is set + if "discrete_type_guid" not in params or params["discrete_type_guid"] is None: + raise ValueError( + "Missing the required parameter 'discrete_type_guid' when calling 'update_discrete_type'" ) collection_formats: Dict[str, Any] = {} @@ -574,6 +572,8 @@ def _v1alpha_databases_database_key_discrete_types_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "discrete_type_guid" in params and discrete_type_guid is not None: + path_params["discrete-type-guid"] = params["discrete_type_guid"] query_params: List[Any] = [] @@ -601,15 +601,15 @@ def _v1alpha_databases_database_key_discrete_types_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiSchemaDiscreteTypesDiscreteType", + 200: "GrantaServerApiSchemaDiscreteTypesDiscreteType", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/discrete-types", - "POST", + "/v1alpha/databases/{database-key}/discrete-types/{discrete-type-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py index 0f37cf15..72d10fa3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py @@ -33,10 +33,15 @@ class SchemaExportersApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_exporters_folder_guid_delete( - self, *, database_key: "str", folder_guid: "str" - ) -> "None": - """Delete an Exporter Folder. + def create_exporters_file( + self, + *, + database_key: "str", + folder_guid: "str", + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Create a new Exporter File. This method makes a synchronous HTTP request. @@ -44,22 +49,31 @@ def v1alpha_databases_database_key_exporters_folder_guid_delete( ---------- database_key: str folder_guid: str + file: Union[BinaryIO, pathlib.Path] + description: str Returns ------- - None + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_delete_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._create_exporters_file_with_http_info( + database_key, folder_guid, file, description, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_delete_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _create_exporters_file_with_http_info( + self, + database_key: "str", + folder_guid: "str", + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Optional[str]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "folder_guid", + "file", + "description", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -69,19 +83,19 @@ def _v1alpha_databases_database_key_exporters_folder_guid_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_exporters_file" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_exporters_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_delete'" + "Missing the required parameter 'folder_guid' when calling 'create_exporters_file'" ) collection_formats: Dict[str, Any] = {} @@ -98,18 +112,30 @@ def _v1alpha_databases_database_key_exporters_folder_guid_delete_with_http_info( form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} + if "file" in params and file is not None: + local_var_files["file"] = params["file"] + if "description" in params and description is not None: + form_params.append(("description", params["description"])) body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] + ) + + # multipart/form-data request detected. Content-Type header will be + # populated by openapi-common based on request content. response_type_map = { - 200: None, + 201: "GrantaServerApiSchemaFilesFileHeader", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files", + "POST", path_params, query_params, header_params, @@ -123,35 +149,39 @@ def _v1alpha_databases_database_key_exporters_folder_guid_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete( - self, *, database_key: "str", folder_guid: "str", file_guid: "str" - ) -> "None": - """Delete an Exporter File. + def create_exporters_folder( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Create a new Exporters Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str - file_guid: str + body: GrantaServerApiSchemaFilesCreateFolder Returns ------- - None + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete_with_http_info( - database_key, folder_guid, file_guid, _return_http_data_only=True + data = self._create_exporters_folder_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + def _create_exporters_folder_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "folder_guid", - "file_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -161,24 +191,14 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_exporters_folder" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_exporters_folder'" ) collection_formats: Dict[str, Any] = {} @@ -186,10 +206,6 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -199,16 +215,33 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete 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( + ["text/plain", "application/json", "text/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 = { - 200: None, + 201: "GrantaServerApiSchemaFilesFolder", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files/{file-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/exporters", + "POST", path_params, query_params, header_params, @@ -222,10 +255,10 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get( + def delete_exporters_file( self, *, database_key: "str", folder_guid: "str", file_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Get the header information for an Exporter File + ) -> "None": + """Delete an Exporter File. This method makes a synchronous HTTP request. @@ -237,14 +270,14 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get( Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + None """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_with_http_info( + data = self._delete_exporters_file_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_with_http_info( + def _delete_exporters_file_with_http_info( self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -260,24 +293,24 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_wi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_exporters_file" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_exporters_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get'" + "Missing the required parameter 'folder_guid' when calling 'delete_exporters_file'" ) # verify the required parameter "file_guid" is set if "file_guid" not in params or params["file_guid"] is None: raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get'" + "Missing the required parameter 'file_guid' when calling 'delete_exporters_file'" ) collection_formats: Dict[str, Any] = {} @@ -298,19 +331,16 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_wi local_var_files: Dict[str, Any] = {} body_params = None - # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["text/plain", "application/json", "text/json"] - ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFileHeader", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files/{file-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -324,15 +354,10 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_wi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch( - self, - *, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Update an existing Exporter File. + def delete_exporters_folder( + self, *, database_key: "str", folder_guid: "str" + ) -> "None": + """Delete an Exporter Folder. This method makes a synchronous HTTP request. @@ -340,31 +365,22 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch( ---------- database_key: str folder_guid: str - file_guid: str - body: GrantaServerApiSchemaFilesUpdateFile Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + None """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_with_http_info( - database_key, folder_guid, file_guid, body, _return_http_data_only=True + data = self._delete_exporters_folder_with_http_info( + database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - **kwargs: Any, + def _delete_exporters_folder_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -374,24 +390,19 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch" + f"Got an unexpected keyword argument '{key}' to method delete_exporters_folder" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch'" + "Missing the required parameter 'database_key' when calling 'delete_exporters_folder'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch'" + "Missing the required parameter 'folder_guid' when calling 'delete_exporters_folder'" ) collection_formats: Dict[str, Any] = {} @@ -401,8 +412,6 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_ path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -412,33 +421,16 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_ 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( - ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFileHeader", - 400: None, + 200: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files/{file-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}", + "DELETE", path_params, query_params, header_params, @@ -452,7 +444,7 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get( + def export_exporters_file( self, *, database_key: "str", folder_guid: "str", file_guid: "str" ) -> "None": """Get Exporter File as a file @@ -469,12 +461,12 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_g ------- None """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get_with_http_info( + data = self._export_exporters_file_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get_with_http_info( + def _export_exporters_file_with_http_info( self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -490,24 +482,24 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get" + f"Got an unexpected keyword argument '{key}' to method export_exporters_file" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'database_key' when calling 'export_exporters_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'folder_guid' when calling 'export_exporters_file'" ) # verify the required parameter "file_guid" is set if "file_guid" not in params or params["file_guid"] is None: raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'file_guid' when calling 'export_exporters_file'" ) collection_formats: Dict[str, Any] = {} @@ -550,15 +542,10 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post( - self, - *, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, + def get_exporter_file( + self, *, database_key: "str", folder_guid: "str", file_guid: "str" ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Move an existing Exporter File. + """Get the header information for an Exporter File This method makes a synchronous HTTP request. @@ -567,30 +554,23 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_pos database_key: str folder_guid: str file_guid: str - body: GrantaServerApiSchemaFilesMoveFile Returns ------- Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post_with_http_info( - database_key, folder_guid, file_guid, body, _return_http_data_only=True + data = self._get_exporter_file_with_http_info( + database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - **kwargs: Any, + def _get_exporter_file_with_http_info( + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", "file_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -600,24 +580,24 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_po for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method get_exporter_file" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'get_exporter_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post'" + "Missing the required parameter 'folder_guid' when calling 'get_exporter_file'" ) # verify the required parameter "file_guid" is set if "file_guid" not in params or params["file_guid"] is None: raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post'" + "Missing the required parameter 'file_guid' when calling 'get_exporter_file'" ) collection_formats: Dict[str, Any] = {} @@ -638,33 +618,19 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_po 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiSchemaFilesFileHeader", - 400: None, - 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files/{file-guid}:move", - "POST", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files/{file-guid}", + "GET", path_params, query_params, header_params, @@ -678,10 +644,10 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_po response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_files_get( + def get_exporters_child_folders( self, *, database_key: "str", folder_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFilesInfo, None]": - """Get the Exporter Files in a Folder + ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": + """Get Child Exporters Folders This method makes a synchronous HTTP request. @@ -692,14 +658,14 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_get( Returns ------- - Union[GrantaServerApiSchemaFilesFilesInfo, None] + Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_info( + data = self._get_exporters_child_folders_with_http_info( database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_info( + def _get_exporters_child_folders_with_http_info( self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -714,19 +680,19 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_in for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_files_get" + f"Got an unexpected keyword argument '{key}' to method get_exporters_child_folders" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_files_get'" + "Missing the required parameter 'database_key' when calling 'get_exporters_child_folders'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_get'" + "Missing the required parameter 'folder_guid' when calling 'get_exporters_child_folders'" ) collection_formats: Dict[str, Any] = {} @@ -751,12 +717,12 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_in ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFilesInfo", + 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}:child-folders", "GET", path_params, query_params, @@ -771,15 +737,10 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_in response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_files_post( - self, - *, - database_key: "str", - folder_guid: "str", - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, - description: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Create a new Exporter File. + def get_exporters_files( + self, *, database_key: "str", folder_guid: "str" + ) -> "Union[GrantaServerApiSchemaFilesFilesInfo, None]": + """Get the Exporter Files in a Folder This method makes a synchronous HTTP request. @@ -787,31 +748,22 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_post( ---------- database_key: str folder_guid: str - file: Union[BinaryIO, pathlib.Path] - description: str Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + Union[GrantaServerApiSchemaFilesFilesInfo, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_files_post_with_http_info( - database_key, folder_guid, file, description, _return_http_data_only=True + data = self._get_exporters_files_with_http_info( + database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_files_post_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, - description: "Optional[str]" = None, - **kwargs: Any, + def _get_exporters_files_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file", - "description", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -821,19 +773,19 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_post_with_http_i for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_files_post" + f"Got an unexpected keyword argument '{key}' to method get_exporters_files" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_files_post'" + "Missing the required parameter 'database_key' when calling 'get_exporters_files'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_post'" + "Missing the required parameter 'folder_guid' when calling 'get_exporters_files'" ) collection_formats: Dict[str, Any] = {} @@ -850,10 +802,6 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_post_with_http_i form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} - if "file" in params and file is not None: - local_var_files["file"] = params["file"] - if "description" in params and description is not None: - form_params.append(("description", params["description"])) body_params = None # HTTP header 'Accept' @@ -861,19 +809,14 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_post_with_http_i ["text/plain", "application/json", "text/json"] ) - # multipart/form-data request detected. Content-Type header will be - # populated by openapi-common based on request content. - response_type_map = { - 201: "GrantaServerApiSchemaFilesFileHeader", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFilesInfo", 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files", - "POST", + "GET", path_params, query_params, header_params, @@ -887,7 +830,7 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_post_with_http_i response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_get( + def get_exporters_folder( self, *, database_key: "str", folder_guid: "str" ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": """Get Exporters Folder @@ -903,12 +846,12 @@ def v1alpha_databases_database_key_exporters_folder_guid_get( ------- Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_get_with_http_info( + data = self._get_exporters_folder_with_http_info( database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_get_with_http_info( + def _get_exporters_folder_with_http_info( self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -923,19 +866,19 @@ def _v1alpha_databases_database_key_exporters_folder_guid_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_exporters_folder" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_exporters_folder'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_get'" + "Missing the required parameter 'folder_guid' when calling 'get_exporters_folder'" ) collection_formats: Dict[str, Any] = {} @@ -980,43 +923,31 @@ def _v1alpha_databases_database_key_exporters_folder_guid_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guid_patch( - self, - *, - database_key: "str", - folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Update an existing Exporters Folder. + def get_exporters_folders( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": + """Get All Exporter Folders This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str - body: GrantaServerApiSchemaFilesUpdateFolder Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( - database_key, folder_guid, body, _return_http_data_only=True + data = self._get_exporters_folders_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( - self, - database_key: "str", - folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, - **kwargs: Any, + def _get_exporters_folders_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "folder_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1026,19 +957,14 @@ def _v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_exporters_folders" ) 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 'v1alpha_databases_database_key_exporters_folder_guid_patch'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_exporters_folders'" ) collection_formats: Dict[str, Any] = {} @@ -1046,8 +972,6 @@ def _v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1057,33 +981,19 @@ def _v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFolder", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/exporters", + "GET", path_params, query_params, header_params, @@ -1097,33 +1007,31 @@ def _v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guidchild_folders_get( - self, *, database_key: "str", folder_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": - """Get Child Exporters Folders + def get_exporters_root_folder( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Get Root Exporters Folder This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str Returns ------- - Union[GrantaServerApiSchemaFilesFoldersInfo, None] + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._get_exporters_root_folder_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _get_exporters_root_folder_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "folder_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1133,19 +1041,14 @@ def _v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guidchild_folders_get" + f"Got an unexpected keyword argument '{key}' to method get_exporters_root_folder" ) 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 'v1alpha_databases_database_key_exporters_folder_guidchild_folders_get'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guidchild_folders_get'" + "Missing the required parameter 'database_key' when calling 'get_exporters_root_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1153,8 +1056,6 @@ def _v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_ path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1170,12 +1071,12 @@ def _v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_ ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFoldersInfo", + 200: "GrantaServerApiSchemaFilesFolder", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}:child-folders", + "/v1alpha/databases/{database-key}/exporters:root-folder", "GET", path_params, query_params, @@ -1190,14 +1091,15 @@ def _v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_folder_guidmove_post( + def move_exporters_file( self, *, database_key: "str", folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Move an existing Exporter Folder. + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Move an existing Exporter File. This method makes a synchronous HTTP request. @@ -1205,27 +1107,30 @@ def v1alpha_databases_database_key_exporters_folder_guidmove_post( ---------- database_key: str folder_guid: str - body: GrantaServerApiSchemaFilesMoveFolder + file_guid: str + body: GrantaServerApiSchemaFilesMoveFile Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_info( - database_key, folder_guid, body, _return_http_data_only=True + data = self._move_exporters_file_with_http_info( + database_key, folder_guid, file_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_info( + def _move_exporters_file_with_http_info( self, database_key: "str", folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "folder_guid", + "file_guid", "body", "_return_http_data_only", "_preload_content", @@ -1236,19 +1141,24 @@ def _v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_inf for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_folder_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method move_exporters_file" ) 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 'v1alpha_databases_database_key_exporters_folder_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'move_exporters_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guidmove_post'" + "Missing the required parameter 'folder_guid' when calling 'move_exporters_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'move_exporters_file'" ) collection_formats: Dict[str, Any] = {} @@ -1258,6 +1168,8 @@ def _v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_inf path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -1285,14 +1197,14 @@ def _v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_inf ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFolder", + 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters/{folder-guid}:move", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files/{file-guid}:move", "POST", path_params, query_params, @@ -1307,31 +1219,43 @@ def _v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_inf response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": - """Get All Exporter Folders + def move_exporters_folder( + self, + *, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Move an existing Exporter Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + folder_guid: str + body: GrantaServerApiSchemaFilesMoveFolder Returns ------- - Union[GrantaServerApiSchemaFilesFoldersInfo, None] + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_exporters_get_with_http_info( - database_key, _return_http_data_only=True + data = self._move_exporters_folder_with_http_info( + database_key, folder_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _move_exporters_folder_with_http_info( + self, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1341,14 +1265,19 @@ def _v1alpha_databases_database_key_exporters_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_get" + f"Got an unexpected keyword argument '{key}' to method move_exporters_folder" ) 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 'v1alpha_databases_database_key_exporters_get'" + "Missing the required parameter 'database_key' when calling 'move_exporters_folder'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'move_exporters_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1356,6 +1285,8 @@ def _v1alpha_databases_database_key_exporters_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1365,19 +1296,33 @@ def _v1alpha_databases_database_key_exporters_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFoldersInfo", + 200: "GrantaServerApiSchemaFilesFolder", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters", - "GET", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}:move", + "POST", path_params, query_params, header_params, @@ -1391,39 +1336,31 @@ def _v1alpha_databases_database_key_exporters_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exporters_post( - self, - *, - database_key: "str", - body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Create a new Exporters Folder. + def refetch_exporters( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaFilesExporterRefetchInfo, None]": + """Re-fetch the Exporter Files. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaFilesCreateFolder Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesExporterRefetchInfo, None] """ - data = self._v1alpha_databases_database_key_exporters_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._refetch_exporters_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exporters_post_with_http_info( - self, - database_key: "str", - body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, - **kwargs: Any, + def _refetch_exporters_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1433,14 +1370,14 @@ def _v1alpha_databases_database_key_exporters_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exporters_post" + f"Got an unexpected keyword argument '{key}' to method refetch_exporters" ) 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 'v1alpha_databases_database_key_exporters_post'" + "Missing the required parameter 'database_key' when calling 'refetch_exporters'" ) collection_formats: Dict[str, Any] = {} @@ -1457,32 +1394,20 @@ def _v1alpha_databases_database_key_exporters_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 201: "GrantaServerApiSchemaFilesFolder", + 200: "GrantaServerApiSchemaFilesExporterRefetchInfo", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters", + "/v1alpha/databases/{database-key}/exporters:re-fetch", "POST", path_params, query_params, @@ -1497,33 +1422,47 @@ def _v1alpha_databases_database_key_exporters_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exportersre_fetch_post( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaFilesExporterRefetchInfo, None]": - """Re-fetch the Exporter Files. + def update_exporters_file( + self, + *, + database_key: "str", + folder_guid: "str", + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Update an existing Exporter File. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + folder_guid: str + file_guid: str + body: GrantaServerApiSchemaFilesUpdateFile Returns ------- - Union[GrantaServerApiSchemaFilesExporterRefetchInfo, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = ( - self._v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._update_exporters_file_with_http_info( + database_key, folder_guid, file_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( - self, database_key: "str", **kwargs: Any + def _update_exporters_file_with_http_info( + self, + database_key: "str", + folder_guid: "str", + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "file_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1533,14 +1472,24 @@ def _v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exportersre_fetch_post" + f"Got an unexpected keyword argument '{key}' to method update_exporters_file" ) 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 'v1alpha_databases_database_key_exportersre_fetch_post'" + "Missing the required parameter 'database_key' when calling 'update_exporters_file'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'update_exporters_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'update_exporters_file'" ) collection_formats: Dict[str, Any] = {} @@ -1548,6 +1497,10 @@ def _v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -1557,21 +1510,33 @@ def _v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesExporterRefetchInfo", + 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters:re-fetch", - "POST", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}/files/{file-guid}", + "PATCH", path_params, query_params, header_params, @@ -1585,31 +1550,43 @@ def _v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_exportersroot_folder_get( - self, *, database_key: "str" + def update_exporters_folder( + self, + *, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Get Root Exporters Folder + """Update an existing Exporters Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + folder_guid: str + body: GrantaServerApiSchemaFilesUpdateFolder Returns ------- Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( - database_key, _return_http_data_only=True + data = self._update_exporters_folder_with_http_info( + database_key, folder_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _update_exporters_folder_with_http_info( + self, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1619,14 +1596,19 @@ def _v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_exportersroot_folder_get" + f"Got an unexpected keyword argument '{key}' to method update_exporters_folder" ) 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 'v1alpha_databases_database_key_exportersroot_folder_get'" + "Missing the required parameter 'database_key' when calling 'update_exporters_folder'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'update_exporters_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1634,6 +1616,8 @@ def _v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1643,19 +1627,33 @@ def _v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiSchemaFilesFolder", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/exporters:root-folder", - "GET", + "/v1alpha/databases/{database-key}/exporters/{folder-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py index b7e2c131..ab81709b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py @@ -33,10 +33,14 @@ class SchemaExpressionsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete( - self, *, database_key: "str", table_guid: "str", expression_guid: "str" - ) -> "None": - """Delete an expression. + def create_expression( + self, + *, + database_key: "str", + table_guid: "str", + body: "Optional[GrantaServerApiSchemaExpressionsCreateExpression]" = None, + ) -> "Union[GrantaServerApiSchemaExpressionsExpression, None]": + """Create a new expression. This method makes a synchronous HTTP request. @@ -44,28 +48,28 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid ---------- database_key: str table_guid: str - expression_guid: str + body: GrantaServerApiSchemaExpressionsCreateExpression Returns ------- - None + Union[GrantaServerApiSchemaExpressionsExpression, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete_with_http_info( - database_key, table_guid, expression_guid, _return_http_data_only=True + data = self._create_expression_with_http_info( + database_key, table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete_with_http_info( + def _create_expression_with_http_info( self, database_key: "str", table_guid: "str", - expression_guid: "str", + body: "Optional[GrantaServerApiSchemaExpressionsCreateExpression]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "expression_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -75,24 +79,19 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_expression" ) 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 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_expression'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete'" - ) - # verify the required parameter "expression_guid" is set - if "expression_guid" not in params or params["expression_guid"] is None: - raise ValueError( - "Missing the required parameter 'expression_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'create_expression'" ) collection_formats: Dict[str, Any] = {} @@ -102,8 +101,6 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui 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 "expression_guid" in params and expression_guid is not None: - path_params["expression-guid"] = params["expression_guid"] query_params: List[Any] = [] @@ -113,17 +110,33 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui 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 = { - 200: None, + 201: "GrantaServerApiSchemaExpressionsExpression", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/expressions/{expression-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/tables/{table-guid}/expressions", + "POST", path_params, query_params, header_params, @@ -137,16 +150,10 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get( - self, - *, - database_key: "str", - table_guid: "str", - expression_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaExpressionsExpression, None]": - """Get an expression with a specified guid for a given database and table. + def delete_expression( + self, *, database_key: "str", table_guid: "str", expression_guid: "str" + ) -> "None": + """Delete an expression. This method makes a synchronous HTTP request. @@ -155,40 +162,27 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid database_key: str table_guid: str expression_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[GrantaServerApiSchemaExpressionsExpression, None] + None """ - data = self._v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get_with_http_info( - database_key, - table_guid, - expression_guid, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, + data = self._delete_expression_with_http_info( + database_key, table_guid, expression_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get_with_http_info( + def _delete_expression_with_http_info( self, database_key: "str", table_guid: "str", expression_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "expression_guid", - "mode", - "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -198,24 +192,24 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_expression" ) 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 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_expression'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get'" + "Missing the required parameter 'table_guid' when calling 'delete_expression'" ) # verify the required parameter "expression_guid" is set if "expression_guid" not in params or params["expression_guid"] is None: raise ValueError( - "Missing the required parameter 'expression_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get'" + "Missing the required parameter 'expression_guid' when calling 'delete_expression'" ) collection_formats: Dict[str, Any] = {} @@ -229,30 +223,24 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui path_params["expression-guid"] = params["expression_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 = { - 200: "GrantaServerApiSchemaExpressionsExpression", + 200: None, + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/expressions/{expression-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -266,15 +254,16 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch( + def get_expression( self, *, database_key: "str", table_guid: "str", expression_guid: "str", - body: "Optional[GrantaServerApiSchemaExpressionsUpdateExpression]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, ) -> "Union[GrantaServerApiSchemaExpressionsExpression, None]": - """Update an expression. + """Get an expression with a specified guid for a given database and table. This method makes a synchronous HTTP request. @@ -283,30 +272,40 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid database_key: str table_guid: str expression_guid: str - body: GrantaServerApiSchemaExpressionsUpdateExpression + 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[GrantaServerApiSchemaExpressionsExpression, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch_with_http_info( - database_key, table_guid, expression_guid, body, _return_http_data_only=True + data = self._get_expression_with_http_info( + database_key, + table_guid, + expression_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch_with_http_info( + def _get_expression_with_http_info( self, database_key: "str", table_guid: "str", expression_guid: "str", - body: "Optional[GrantaServerApiSchemaExpressionsUpdateExpression]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "expression_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -316,24 +315,24 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_expression" ) 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 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_expression'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch'" + "Missing the required parameter 'table_guid' when calling 'get_expression'" ) # verify the required parameter "expression_guid" is set if "expression_guid" not in params or params["expression_guid"] is None: raise ValueError( - "Missing the required parameter 'expression_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch'" + "Missing the required parameter 'expression_guid' when calling 'get_expression'" ) collection_formats: Dict[str, Any] = {} @@ -347,40 +346,30 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui path_params["expression-guid"] = params["expression_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 = { 200: "GrantaServerApiSchemaExpressionsExpression", - 400: None, - 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/expressions/{expression-guid}", - "PATCH", + "GET", path_params, query_params, header_params, @@ -394,7 +383,7 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_expressions_get( + def get_expressions( self, *, database_key: "str", @@ -419,12 +408,12 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_get( ------- Union[GrantaServerApiSchemaExpressionsExpressionsInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_info( + data = self._get_expressions_with_http_info( database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_info( + def _get_expressions_with_http_info( self, database_key: "str", table_guid: "str", @@ -446,19 +435,19 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_expressions_get" + f"Got an unexpected keyword argument '{key}' to method get_expressions" ) 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 'v1alpha_databases_database_key_tables_table_guid_expressions_get'" + "Missing the required parameter 'database_key' when calling 'get_expressions'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_expressions_get'" + "Missing the required parameter 'table_guid' when calling 'get_expressions'" ) collection_formats: Dict[str, Any] = {} @@ -507,14 +496,15 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_expressions_post( + def update_expression( self, *, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaExpressionsCreateExpression]" = None, + expression_guid: "str", + body: "Optional[GrantaServerApiSchemaExpressionsUpdateExpression]" = None, ) -> "Union[GrantaServerApiSchemaExpressionsExpression, None]": - """Create a new expression. + """Update an expression. This method makes a synchronous HTTP request. @@ -522,27 +512,30 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_post( ---------- database_key: str table_guid: str - body: GrantaServerApiSchemaExpressionsCreateExpression + expression_guid: str + body: GrantaServerApiSchemaExpressionsUpdateExpression Returns ------- Union[GrantaServerApiSchemaExpressionsExpression, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_info( - database_key, table_guid, body, _return_http_data_only=True + data = self._update_expression_with_http_info( + database_key, table_guid, expression_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_info( + def _update_expression_with_http_info( self, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaExpressionsCreateExpression]" = None, + expression_guid: "str", + body: "Optional[GrantaServerApiSchemaExpressionsUpdateExpression]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", + "expression_guid", "body", "_return_http_data_only", "_preload_content", @@ -553,19 +546,24 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_expressions_post" + f"Got an unexpected keyword argument '{key}' to method update_expression" ) 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 'v1alpha_databases_database_key_tables_table_guid_expressions_post'" + "Missing the required parameter 'database_key' when calling 'update_expression'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_expressions_post'" + "Missing the required parameter 'table_guid' when calling 'update_expression'" + ) + # verify the required parameter "expression_guid" is set + if "expression_guid" not in params or params["expression_guid"] is None: + raise ValueError( + "Missing the required parameter 'expression_guid' when calling 'update_expression'" ) collection_formats: Dict[str, Any] = {} @@ -575,6 +573,8 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http 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 "expression_guid" in params and expression_guid is not None: + path_params["expression-guid"] = params["expression_guid"] query_params: List[Any] = [] @@ -602,15 +602,15 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http ) response_type_map = { - 201: "GrantaServerApiSchemaExpressionsExpression", + 200: "GrantaServerApiSchemaExpressionsExpression", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/expressions", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/expressions/{expression-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py index 8c389c3d..9e8b15e1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py @@ -33,10 +33,15 @@ class SchemaHelpFilesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_help_folders_folder_guid_delete( - self, *, database_key: "str", folder_guid: "str" - ) -> "None": - """Delete a Help File Folder. + def create_help_file( + self, + *, + database_key: "str", + folder_guid: "str", + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Create a new Help File. This method makes a synchronous HTTP request. @@ -44,22 +49,31 @@ def v1alpha_databases_database_key_help_folders_folder_guid_delete( ---------- database_key: str folder_guid: str + file: Union[BinaryIO, pathlib.Path] + description: str Returns ------- - None + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._create_help_file_with_http_info( + database_key, folder_guid, file, description, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _create_help_file_with_http_info( + self, + database_key: "str", + folder_guid: "str", + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Optional[str]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "folder_guid", + "file", + "description", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -69,19 +83,19 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_in for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_help_file" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_help_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_delete'" + "Missing the required parameter 'folder_guid' when calling 'create_help_file'" ) collection_formats: Dict[str, Any] = {} @@ -98,18 +112,30 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_in form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} + if "file" in params and file is not None: + local_var_files["file"] = params["file"] + if "description" in params and description is not None: + form_params.append(("description", params["description"])) body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] + ) + + # multipart/form-data request detected. Content-Type header will be + # populated by openapi-common based on request content. response_type_map = { - 200: None, + 201: "GrantaServerApiSchemaFilesFileHeader", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files", + "POST", path_params, query_params, header_params, @@ -123,35 +149,39 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_in response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete( - self, *, database_key: "str", folder_guid: "str", file_guid: "str" - ) -> "None": - """Delete a Help File. + def create_help_folder( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Create a new Help File Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str - file_guid: str + body: GrantaServerApiSchemaFilesCreateFolder Returns ------- - None + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete_with_http_info( - database_key, folder_guid, file_guid, _return_http_data_only=True + data = self._create_help_folder_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + def _create_help_folder_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "folder_guid", - "file_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -161,24 +191,14 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_del for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_help_folder" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_help_folder'" ) collection_formats: Dict[str, Any] = {} @@ -186,10 +206,6 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_del path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -199,16 +215,33 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_del 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( + ["text/plain", "application/json", "text/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 = { - 200: None, + 201: "GrantaServerApiSchemaFilesFolder", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/help-folders", + "POST", path_params, query_params, header_params, @@ -222,10 +255,10 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_del response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get( + def delete_help_file( self, *, database_key: "str", folder_guid: "str", file_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Get header information for a help file + ) -> "None": + """Delete a Help File. This method makes a synchronous HTTP request. @@ -237,14 +270,14 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get( Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + None """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get_with_http_info( + data = self._delete_help_file_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get_with_http_info( + def _delete_help_file_with_http_info( self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -260,24 +293,24 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_help_file" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_help_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get'" + "Missing the required parameter 'folder_guid' when calling 'delete_help_file'" ) # verify the required parameter "file_guid" is set if "file_guid" not in params or params["file_guid"] is None: raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get'" + "Missing the required parameter 'file_guid' when calling 'delete_help_file'" ) collection_formats: Dict[str, Any] = {} @@ -298,19 +331,16 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get local_var_files: Dict[str, Any] = {} body_params = None - # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["text/plain", "application/json", "text/json"] - ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFileHeader", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -324,15 +354,8 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch( - self, - *, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Update an existing Help File. + def delete_help_folder(self, *, database_key: "str", folder_guid: "str") -> "None": + """Delete a Help File Folder. This method makes a synchronous HTTP request. @@ -340,31 +363,22 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patc ---------- database_key: str folder_guid: str - file_guid: str - body: GrantaServerApiSchemaFilesUpdateFile Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + None """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch_with_http_info( - database_key, folder_guid, file_guid, body, _return_http_data_only=True + data = self._delete_help_folder_with_http_info( + database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - **kwargs: Any, + def _delete_help_folder_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -374,24 +388,19 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_pat for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch" + f"Got an unexpected keyword argument '{key}' to method delete_help_folder" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch'" + "Missing the required parameter 'database_key' when calling 'delete_help_folder'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch'" + "Missing the required parameter 'folder_guid' when calling 'delete_help_folder'" ) collection_formats: Dict[str, Any] = {} @@ -401,8 +410,6 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_pat path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -412,33 +419,16 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_pat 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( - ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFileHeader", - 400: None, + 200: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}", + "DELETE", path_params, query_params, header_params, @@ -452,7 +442,7 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_pat response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get( + def export_help_file( self, *, database_key: "str", folder_guid: "str", file_guid: "str" ) -> "None": """Get help file as a file @@ -469,12 +459,12 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexpor ------- None """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get_with_http_info( + data = self._export_help_file_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get_with_http_info( + def _export_help_file_with_http_info( self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -490,24 +480,24 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexpo for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get" + f"Got an unexpected keyword argument '{key}' to method export_help_file" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'database_key' when calling 'export_help_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'folder_guid' when calling 'export_help_file'" ) # verify the required parameter "file_guid" is set if "file_guid" not in params or params["file_guid"] is None: raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'file_guid' when calling 'export_help_file'" ) collection_formats: Dict[str, Any] = {} @@ -550,15 +540,10 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexpo response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post( - self, - *, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Move an existing Help File. + def get_help_child_folders( + self, *, database_key: "str", folder_guid: "str" + ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": + """Get Child Help File Folders This method makes a synchronous HTTP request. @@ -566,31 +551,22 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_ ---------- database_key: str folder_guid: str - file_guid: str - body: GrantaServerApiSchemaFilesMoveFile Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post_with_http_info( - database_key, folder_guid, file_guid, body, _return_http_data_only=True + data = self._get_help_child_folders_with_http_info( + database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - **kwargs: Any, + def _get_help_child_folders_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -600,24 +576,19 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method get_help_child_folders" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'get_help_child_folders'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post'" + "Missing the required parameter 'folder_guid' when calling 'get_help_child_folders'" ) collection_formats: Dict[str, Any] = {} @@ -627,8 +598,6 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -638,33 +607,19 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFileHeader", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}:move", - "POST", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}:child-folders", + "GET", path_params, query_params, header_params, @@ -678,10 +633,10 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_files_get( - self, *, database_key: "str", folder_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFilesInfo, None]": - """Get Files in a Folder + def get_help_file( + self, *, database_key: "str", folder_guid: "str", file_guid: "str" + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Get header information for a help file This method makes a synchronous HTTP request. @@ -689,22 +644,24 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_get( ---------- database_key: str folder_guid: str + file_guid: str Returns ------- - Union[GrantaServerApiSchemaFilesFilesInfo, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._get_help_file_with_http_info( + database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _get_help_file_with_http_info( + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", + "file_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -714,19 +671,24 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_get" + f"Got an unexpected keyword argument '{key}' to method get_help_file" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_files_get'" + "Missing the required parameter 'database_key' when calling 'get_help_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_get'" + "Missing the required parameter 'folder_guid' when calling 'get_help_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'get_help_file'" ) collection_formats: Dict[str, Any] = {} @@ -736,6 +698,8 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -751,12 +715,12 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFilesInfo", + 200: "GrantaServerApiSchemaFilesFileHeader", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}", "GET", path_params, query_params, @@ -771,15 +735,10 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_files_post( - self, - *, - database_key: "str", - folder_guid: "str", - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, - description: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Create a new Help File. + def get_help_files( + self, *, database_key: "str", folder_guid: "str" + ) -> "Union[GrantaServerApiSchemaFilesFilesInfo, None]": + """Get Files in a Folder This method makes a synchronous HTTP request. @@ -787,31 +746,22 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_post( ---------- database_key: str folder_guid: str - file: Union[BinaryIO, pathlib.Path] - description: str Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + Union[GrantaServerApiSchemaFilesFilesInfo, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_post_with_http_info( - database_key, folder_guid, file, description, _return_http_data_only=True - ) - return data # type: ignore[no-any-return] - - def _v1alpha_databases_database_key_help_folders_folder_guid_files_post_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, - description: "Optional[str]" = None, - **kwargs: Any, + data = self._get_help_files_with_http_info( + database_key, folder_guid, _return_http_data_only=True + ) + return data # type: ignore[no-any-return] + + def _get_help_files_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file", - "description", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -821,19 +771,19 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_post_with_htt for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_post" + f"Got an unexpected keyword argument '{key}' to method get_help_files" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_files_post'" + "Missing the required parameter 'database_key' when calling 'get_help_files'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_post'" + "Missing the required parameter 'folder_guid' when calling 'get_help_files'" ) collection_formats: Dict[str, Any] = {} @@ -850,10 +800,6 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_post_with_htt form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} - if "file" in params and file is not None: - local_var_files["file"] = params["file"] - if "description" in params and description is not None: - form_params.append(("description", params["description"])) body_params = None # HTTP header 'Accept' @@ -861,19 +807,14 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_post_with_htt ["text/plain", "application/json", "text/json"] ) - # multipart/form-data request detected. Content-Type header will be - # populated by openapi-common based on request content. - response_type_map = { - 201: "GrantaServerApiSchemaFilesFileHeader", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFilesInfo", 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files", - "POST", + "GET", path_params, query_params, header_params, @@ -887,7 +828,7 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_post_with_htt response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_get( + def get_help_folder( self, *, database_key: "str", folder_guid: "str" ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": """Get Help File Folder @@ -903,12 +844,12 @@ def v1alpha_databases_database_key_help_folders_folder_guid_get( ------- Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info( + data = self._get_help_folder_with_http_info( database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info( + def _get_help_folder_with_http_info( self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -923,19 +864,19 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_help_folder" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_help_folder'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_get'" + "Missing the required parameter 'folder_guid' when calling 'get_help_folder'" ) collection_formats: Dict[str, Any] = {} @@ -980,43 +921,31 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guid_patch( - self, - *, - database_key: "str", - folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Update an existing Help File Folder. + def get_help_folders( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": + """Get All Help File Folders This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str - body: GrantaServerApiSchemaFilesUpdateFolder Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_info( - database_key, folder_guid, body, _return_http_data_only=True + data = self._get_help_folders_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_info( - self, - database_key: "str", - folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, - **kwargs: Any, + def _get_help_folders_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "folder_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1026,19 +955,14 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_inf for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_help_folders" ) 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 'v1alpha_databases_database_key_help_folders_folder_guid_patch'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_help_folders'" ) collection_formats: Dict[str, Any] = {} @@ -1046,8 +970,6 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_inf path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1057,33 +979,19 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_inf 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFolder", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/help-folders", + "GET", path_params, query_params, header_params, @@ -1097,33 +1005,31 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_inf response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get( - self, *, database_key: "str", folder_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": - """Get Child Help File Folders + def get_help_root_folder( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Get Root Help File Folder This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str Returns ------- - Union[GrantaServerApiSchemaFilesFoldersInfo, None] + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._get_help_root_folder_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _get_help_root_folder_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "folder_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1133,19 +1039,14 @@ def _v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_wi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get" + f"Got an unexpected keyword argument '{key}' to method get_help_root_folder" ) 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 'v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get'" + "Missing the required parameter 'database_key' when calling 'get_help_root_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1153,8 +1054,6 @@ def _v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_wi path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1170,12 +1069,12 @@ def _v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_wi ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFoldersInfo", + 200: "GrantaServerApiSchemaFilesFolder", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}:child-folders", + "/v1alpha/databases/{database-key}/help-folders/:root-folder", "GET", path_params, query_params, @@ -1190,14 +1089,15 @@ def _v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_wi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_folder_guidmove_post( + def move_help_file( self, *, database_key: "str", folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Move an existing Help File Folder. + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Move an existing Help File. This method makes a synchronous HTTP request. @@ -1205,27 +1105,30 @@ def v1alpha_databases_database_key_help_folders_folder_guidmove_post( ---------- database_key: str folder_guid: str - body: GrantaServerApiSchemaFilesMoveFolder + file_guid: str + body: GrantaServerApiSchemaFilesMoveFile Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_info( - database_key, folder_guid, body, _return_http_data_only=True + data = self._move_help_file_with_http_info( + database_key, folder_guid, file_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_info( + def _move_help_file_with_http_info( self, database_key: "str", folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "folder_guid", + "file_guid", "body", "_return_http_data_only", "_preload_content", @@ -1236,19 +1139,24 @@ def _v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_folder_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method move_help_file" ) 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 'v1alpha_databases_database_key_help_folders_folder_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'move_help_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guidmove_post'" + "Missing the required parameter 'folder_guid' when calling 'move_help_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'move_help_file'" ) collection_formats: Dict[str, Any] = {} @@ -1258,6 +1166,8 @@ def _v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_ path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -1285,14 +1195,14 @@ def _v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_ ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFolder", + 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/{folder-guid}:move", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}:move", "POST", path_params, query_params, @@ -1307,31 +1217,43 @@ def _v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": - """Get All Help File Folders + def move_help_folder( + self, + *, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Move an existing Help File Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + folder_guid: str + body: GrantaServerApiSchemaFilesMoveFolder Returns ------- - Union[GrantaServerApiSchemaFilesFoldersInfo, None] + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_help_folders_get_with_http_info( - database_key, _return_http_data_only=True + data = self._move_help_folder_with_http_info( + database_key, folder_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _move_help_folder_with_http_info( + self, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1341,14 +1263,19 @@ def _v1alpha_databases_database_key_help_folders_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_get" + f"Got an unexpected keyword argument '{key}' to method move_help_folder" ) 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 'v1alpha_databases_database_key_help_folders_get'" + "Missing the required parameter 'database_key' when calling 'move_help_folder'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'move_help_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1356,6 +1283,8 @@ def _v1alpha_databases_database_key_help_folders_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1365,19 +1294,33 @@ def _v1alpha_databases_database_key_help_folders_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFoldersInfo", + 200: "GrantaServerApiSchemaFilesFolder", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders", - "GET", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}:move", + "POST", path_params, query_params, header_params, @@ -1391,38 +1334,46 @@ def _v1alpha_databases_database_key_help_folders_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_folders_post( + def update_help_file( self, *, database_key: "str", - body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Create a new Help File Folder. + folder_guid: "str", + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Update an existing Help File. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaFilesCreateFolder + folder_guid: str + file_guid: str + body: GrantaServerApiSchemaFilesUpdateFile Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_help_folders_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._update_help_file_with_http_info( + database_key, folder_guid, file_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_folders_post_with_http_info( + def _update_help_file_with_http_info( self, database_key: "str", - body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + folder_guid: "str", + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "file_guid", "body", "_return_http_data_only", "_preload_content", @@ -1433,14 +1384,24 @@ def _v1alpha_databases_database_key_help_folders_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_folders_post" + f"Got an unexpected keyword argument '{key}' to method update_help_file" ) 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 'v1alpha_databases_database_key_help_folders_post'" + "Missing the required parameter 'database_key' when calling 'update_help_file'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'update_help_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'update_help_file'" ) collection_formats: Dict[str, Any] = {} @@ -1448,6 +1409,10 @@ def _v1alpha_databases_database_key_help_folders_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -1475,15 +1440,15 @@ def _v1alpha_databases_database_key_help_folders_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiSchemaFilesFolder", + 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders", - "POST", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}", + "PATCH", path_params, query_params, header_params, @@ -1497,31 +1462,43 @@ def _v1alpha_databases_database_key_help_folders_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_help_foldersroot_folder_get( - self, *, database_key: "str" + def update_help_folder( + self, + *, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Get Root Help File Folder + """Update an existing Help File Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + folder_guid: str + body: GrantaServerApiSchemaFilesUpdateFolder Returns ------- Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( - database_key, _return_http_data_only=True + data = self._update_help_folder_with_http_info( + database_key, folder_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _update_help_folder_with_http_info( + self, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1531,14 +1508,19 @@ def _v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_help_foldersroot_folder_get" + f"Got an unexpected keyword argument '{key}' to method update_help_folder" ) 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 'v1alpha_databases_database_key_help_foldersroot_folder_get'" + "Missing the required parameter 'database_key' when calling 'update_help_folder'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'update_help_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1546,6 +1528,8 @@ def _v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1555,19 +1539,33 @@ def _v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiSchemaFilesFolder", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/help-folders/:root-folder", - "GET", + "/v1alpha/databases/{database-key}/help-folders/{folder-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py index 2845a5e7..4777e03b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py @@ -33,10 +33,15 @@ class SchemaHomePagesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_home_page_folders_folder_guid_delete( - self, *, database_key: "str", folder_guid: "str" - ) -> "None": - """Delete a Home Page Folder. + def create_home_page_file( + self, + *, + database_key: "str", + folder_guid: "str", + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Create a new Home Page File. This method makes a synchronous HTTP request. @@ -44,22 +49,31 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_delete( ---------- database_key: str folder_guid: str + file: Union[BinaryIO, pathlib.Path] + description: str Returns ------- - None + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_delete_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._create_home_page_file_with_http_info( + database_key, folder_guid, file, description, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_delete_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _create_home_page_file_with_http_info( + self, + database_key: "str", + folder_guid: "str", + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Optional[str]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "folder_guid", + "file", + "description", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -69,19 +83,19 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_delete_with_ht for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_home_page_file" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_home_page_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_delete'" + "Missing the required parameter 'folder_guid' when calling 'create_home_page_file'" ) collection_formats: Dict[str, Any] = {} @@ -98,18 +112,30 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_delete_with_ht form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} + if "file" in params and file is not None: + local_var_files["file"] = params["file"] + if "description" in params and description is not None: + form_params.append(("description", params["description"])) body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] + ) + + # multipart/form-data request detected. Content-Type header will be + # populated by openapi-common based on request content. response_type_map = { - 200: None, + 201: "GrantaServerApiSchemaFilesFileHeader", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files", + "POST", path_params, query_params, header_params, @@ -123,35 +149,39 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_delete_with_ht response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete( - self, *, database_key: "str", folder_guid: "str", file_guid: "str" - ) -> "None": - """Delete a Home Page File. + def create_home_page_folder( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Create a new Home Page Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str - file_guid: str + body: GrantaServerApiSchemaFilesCreateFolder Returns ------- - None + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete_with_http_info( - database_key, folder_guid, file_guid, _return_http_data_only=True + data = self._create_home_page_folder_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + def _create_home_page_folder_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "folder_guid", - "file_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -161,24 +191,14 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_home_page_folder" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_home_page_folder'" ) collection_formats: Dict[str, Any] = {} @@ -186,10 +206,6 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -199,16 +215,33 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui 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( + ["text/plain", "application/json", "text/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 = { - 200: None, + 201: "GrantaServerApiSchemaFilesFolder", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files/{file-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/home-page-folders", + "POST", path_params, query_params, header_params, @@ -222,10 +255,10 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get( + def delete_home_page_file( self, *, database_key: "str", folder_guid: "str", file_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Get the header information for a Home Page File + ) -> "None": + """Delete a Home Page File. This method makes a synchronous HTTP request. @@ -237,14 +270,14 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + None """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get_with_http_info( + data = self._delete_home_page_file_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get_with_http_info( + def _delete_home_page_file_with_http_info( self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -260,24 +293,24 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_home_page_file" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_home_page_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get'" + "Missing the required parameter 'folder_guid' when calling 'delete_home_page_file'" ) # verify the required parameter "file_guid" is set if "file_guid" not in params or params["file_guid"] is None: raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get'" + "Missing the required parameter 'file_guid' when calling 'delete_home_page_file'" ) collection_formats: Dict[str, Any] = {} @@ -298,19 +331,16 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui local_var_files: Dict[str, Any] = {} body_params = None - # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["text/plain", "application/json", "text/json"] - ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFileHeader", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files/{file-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -324,15 +354,10 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch( - self, - *, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Update an existing Home Page File. + def delete_home_page_folder( + self, *, database_key: "str", folder_guid: "str" + ) -> "None": + """Delete a Home Page Folder. This method makes a synchronous HTTP request. @@ -340,31 +365,22 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid ---------- database_key: str folder_guid: str - file_guid: str - body: GrantaServerApiSchemaFilesUpdateFile Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + None """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch_with_http_info( - database_key, folder_guid, file_guid, body, _return_http_data_only=True + data = self._delete_home_page_folder_with_http_info( + database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - **kwargs: Any, + def _delete_home_page_folder_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -374,24 +390,19 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch" + f"Got an unexpected keyword argument '{key}' to method delete_home_page_folder" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch'" + "Missing the required parameter 'database_key' when calling 'delete_home_page_folder'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch'" + "Missing the required parameter 'folder_guid' when calling 'delete_home_page_folder'" ) collection_formats: Dict[str, Any] = {} @@ -401,8 +412,6 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -412,33 +421,16 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui 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( - ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFileHeader", - 400: None, + 200: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files/{file-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}", + "DELETE", path_params, query_params, header_params, @@ -452,7 +444,7 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get( + def export_home_page_file( self, *, database_key: "str", folder_guid: "str", file_guid: "str" ) -> "None": """Get Home Page File as a file @@ -469,12 +461,12 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid ------- None """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get_with_http_info( + data = self._export_home_page_file_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get_with_http_info( + def _export_home_page_file_with_http_info( self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -490,24 +482,24 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get" + f"Got an unexpected keyword argument '{key}' to method export_home_page_file" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'database_key' when calling 'export_home_page_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'folder_guid' when calling 'export_home_page_file'" ) # verify the required parameter "file_guid" is set if "file_guid" not in params or params["file_guid"] is None: raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get'" + "Missing the required parameter 'file_guid' when calling 'export_home_page_file'" ) collection_formats: Dict[str, Any] = {} @@ -550,15 +542,10 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post( - self, - *, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Move an existing Home Page File. + def get_home_page_child_folders( + self, *, database_key: "str", folder_guid: "str" + ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": + """Get Child Home Page Folders This method makes a synchronous HTTP request. @@ -566,31 +553,22 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid ---------- database_key: str folder_guid: str - file_guid: str - body: GrantaServerApiSchemaFilesMoveFile Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post_with_http_info( - database_key, folder_guid, file_guid, body, _return_http_data_only=True + data = self._get_home_page_child_folders_with_http_info( + database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - **kwargs: Any, + def _get_home_page_child_folders_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -600,24 +578,19 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method get_home_page_child_folders" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'get_home_page_child_folders'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post'" - ) - # verify the required parameter "file_guid" is set - if "file_guid" not in params or params["file_guid"] is None: - raise ValueError( - "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post'" + "Missing the required parameter 'folder_guid' when calling 'get_home_page_child_folders'" ) collection_formats: Dict[str, Any] = {} @@ -627,8 +600,6 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] - if "file_guid" in params and file_guid is not None: - path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -638,33 +609,19 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFileHeader", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files/{file-guid}:move", - "POST", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}:child-folders", + "GET", path_params, query_params, header_params, @@ -678,10 +635,10 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_files_get( - self, *, database_key: "str", folder_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFilesInfo, None]": - """Get the Home Page Files in a Folder + def get_home_page_file( + self, *, database_key: "str", folder_guid: "str", file_guid: "str" + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Get the header information for a Home Page File This method makes a synchronous HTTP request. @@ -689,22 +646,24 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_get( ---------- database_key: str folder_guid: str + file_guid: str Returns ------- - Union[GrantaServerApiSchemaFilesFilesInfo, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_get_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._get_home_page_file_with_http_info( + database_key, folder_guid, file_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _get_home_page_file_with_http_info( + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", + "file_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -714,19 +673,24 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_get_with for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_files_get" + f"Got an unexpected keyword argument '{key}' to method get_home_page_file" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_get'" + "Missing the required parameter 'database_key' when calling 'get_home_page_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_get'" + "Missing the required parameter 'folder_guid' when calling 'get_home_page_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'get_home_page_file'" ) collection_formats: Dict[str, Any] = {} @@ -736,6 +700,8 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_get_with path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -751,12 +717,12 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_get_with ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFilesInfo", + 200: "GrantaServerApiSchemaFilesFileHeader", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files/{file-guid}", "GET", path_params, query_params, @@ -771,15 +737,10 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_get_with response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_files_post( - self, - *, - database_key: "str", - folder_guid: "str", - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, - description: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": - """Create a new Home Page File. + def get_home_page_files( + self, *, database_key: "str", folder_guid: "str" + ) -> "Union[GrantaServerApiSchemaFilesFilesInfo, None]": + """Get the Home Page Files in a Folder This method makes a synchronous HTTP request. @@ -787,31 +748,22 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_post( ---------- database_key: str folder_guid: str - file: Union[BinaryIO, pathlib.Path] - description: str Returns ------- - Union[GrantaServerApiSchemaFilesFileHeader, None] + Union[GrantaServerApiSchemaFilesFilesInfo, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_post_with_http_info( - database_key, folder_guid, file, description, _return_http_data_only=True - ) - return data # type: ignore[no-any-return] - - def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_post_with_http_info( - self, - database_key: "str", - folder_guid: "str", - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, - description: "Optional[str]" = None, - **kwargs: Any, + data = self._get_home_page_files_with_http_info( + database_key, folder_guid, _return_http_data_only=True + ) + return data # type: ignore[no-any-return] + + def _get_home_page_files_with_http_info( + self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "folder_guid", - "file", - "description", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -821,19 +773,19 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_post_wit for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_files_post" + f"Got an unexpected keyword argument '{key}' to method get_home_page_files" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_post'" + "Missing the required parameter 'database_key' when calling 'get_home_page_files'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_post'" + "Missing the required parameter 'folder_guid' when calling 'get_home_page_files'" ) collection_formats: Dict[str, Any] = {} @@ -850,10 +802,6 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_post_wit form_params: List[Any] = [] local_var_files: Dict[str, Any] = {} - if "file" in params and file is not None: - local_var_files["file"] = params["file"] - if "description" in params and description is not None: - form_params.append(("description", params["description"])) body_params = None # HTTP header 'Accept' @@ -861,19 +809,14 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_post_wit ["text/plain", "application/json", "text/json"] ) - # multipart/form-data request detected. Content-Type header will be - # populated by openapi-common based on request content. - response_type_map = { - 201: "GrantaServerApiSchemaFilesFileHeader", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFilesInfo", 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files", - "POST", + "GET", path_params, query_params, header_params, @@ -887,7 +830,7 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_post_wit response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_get( + def get_home_page_folder( self, *, database_key: "str", folder_guid: "str" ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": """Get Home Page Folder @@ -903,12 +846,12 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_get( ------- Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_get_with_http_info( + data = self._get_home_page_folder_with_http_info( database_key, folder_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_get_with_http_info( + def _get_home_page_folder_with_http_info( self, database_key: "str", folder_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -923,19 +866,19 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_get_with_http_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_home_page_folder" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_home_page_folder'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_get'" + "Missing the required parameter 'folder_guid' when calling 'get_home_page_folder'" ) collection_formats: Dict[str, Any] = {} @@ -980,43 +923,31 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_get_with_http_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guid_patch( - self, - *, - database_key: "str", - folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Update an existing Home Page Folder. + def get_home_page_folders( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": + """Get All Home Page Folders This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str - body: GrantaServerApiSchemaFilesUpdateFolder Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_patch_with_http_info( - database_key, folder_guid, body, _return_http_data_only=True + data = self._get_home_page_folders_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guid_patch_with_http_info( - self, - database_key: "str", - folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, - **kwargs: Any, + def _get_home_page_folders_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "folder_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1026,19 +957,14 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_patch_with_htt for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_home_page_folders" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guid_patch'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_home_page_folders'" ) collection_formats: Dict[str, Any] = {} @@ -1046,8 +972,6 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_patch_with_htt path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1057,33 +981,19 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_patch_with_htt 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFolder", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/home-page-folders", + "GET", path_params, query_params, header_params, @@ -1097,33 +1007,31 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_patch_with_htt response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_get( - self, *, database_key: "str", folder_guid: "str" - ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": - """Get Child Home Page Folders + def get_home_page_root_folder( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Get Root Home Page Folder This method makes a synchronous HTTP request. Parameters ---------- database_key: str - folder_guid: str Returns ------- - Union[GrantaServerApiSchemaFilesFoldersInfo, None] + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_get_with_http_info( - database_key, folder_guid, _return_http_data_only=True + data = self._get_home_page_root_folder_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs: Any + def _get_home_page_root_folder_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "folder_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1133,19 +1041,14 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_g for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_get" + f"Got an unexpected keyword argument '{key}' to method get_home_page_root_folder" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_get'" - ) - # verify the required parameter "folder_guid" is set - if "folder_guid" not in params or params["folder_guid"] is None: - raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_get'" + "Missing the required parameter 'database_key' when calling 'get_home_page_root_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1153,8 +1056,6 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_g path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "folder_guid" in params and folder_guid is not None: - path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1170,12 +1071,12 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_g ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFoldersInfo", + 200: "GrantaServerApiSchemaFilesFolder", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}:child-folders", + "/v1alpha/databases/{database-key}/home-page-folders:root-folder", "GET", path_params, query_params, @@ -1190,14 +1091,15 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_g response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_folder_guidmove_post( + def move_home_page_file( self, *, database_key: "str", folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Move an existing Home Page Folder. + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Move an existing Home Page File. This method makes a synchronous HTTP request. @@ -1205,27 +1107,30 @@ def v1alpha_databases_database_key_home_page_folders_folder_guidmove_post( ---------- database_key: str folder_guid: str - body: GrantaServerApiSchemaFilesMoveFolder + file_guid: str + body: GrantaServerApiSchemaFilesMoveFile Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = self._v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_http_info( - database_key, folder_guid, body, _return_http_data_only=True + data = self._move_home_page_file_with_http_info( + database_key, folder_guid, file_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_http_info( + def _move_home_page_file_with_http_info( self, database_key: "str", folder_guid: "str", - body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "folder_guid", + "file_guid", "body", "_return_http_data_only", "_preload_content", @@ -1236,19 +1141,24 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_folder_guidmove_post" + f"Got an unexpected keyword argument '{key}' to method move_home_page_file" ) 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 'v1alpha_databases_database_key_home_page_folders_folder_guidmove_post'" + "Missing the required parameter 'database_key' when calling 'move_home_page_file'" ) # verify the required parameter "folder_guid" is set if "folder_guid" not in params or params["folder_guid"] is None: raise ValueError( - "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guidmove_post'" + "Missing the required parameter 'folder_guid' when calling 'move_home_page_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'move_home_page_file'" ) collection_formats: Dict[str, Any] = {} @@ -1258,6 +1168,8 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_ path_params["database-key"] = params["database_key"] if "folder_guid" in params and folder_guid is not None: path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -1285,14 +1197,14 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_ ) response_type_map = { - 200: "GrantaServerApiSchemaFilesFolder", + 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}:move", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files/{file-guid}:move", "POST", path_params, query_params, @@ -1307,33 +1219,43 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaFilesFoldersInfo, None]": - """Get All Home Page Folders + def move_home_page_folder( + self, + *, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": + """Move an existing Home Page Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + folder_guid: str + body: GrantaServerApiSchemaFilesMoveFolder Returns ------- - Union[GrantaServerApiSchemaFilesFoldersInfo, None] + Union[GrantaServerApiSchemaFilesFolder, None] """ - data = ( - self._v1alpha_databases_database_key_home_page_folders_get_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._move_home_page_folder_with_http_info( + database_key, folder_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _move_home_page_folder_with_http_info( + self, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1343,14 +1265,19 @@ def _v1alpha_databases_database_key_home_page_folders_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_get" + f"Got an unexpected keyword argument '{key}' to method move_home_page_folder" ) 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 'v1alpha_databases_database_key_home_page_folders_get'" + "Missing the required parameter 'database_key' when calling 'move_home_page_folder'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'move_home_page_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1358,6 +1285,8 @@ def _v1alpha_databases_database_key_home_page_folders_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1367,19 +1296,33 @@ def _v1alpha_databases_database_key_home_page_folders_get_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSchemaFilesFoldersInfo", + 200: "GrantaServerApiSchemaFilesFolder", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders", - "GET", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}:move", + "POST", path_params, query_params, header_params, @@ -1393,40 +1336,46 @@ def _v1alpha_databases_database_key_home_page_folders_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_folders_post( + def update_home_page_file( self, *, database_key: "str", - body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, - ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Create a new Home Page Folder. + folder_guid: "str", + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, + ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": + """Update an existing Home Page File. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaFilesCreateFolder + folder_guid: str + file_guid: str + body: GrantaServerApiSchemaFilesUpdateFile Returns ------- - Union[GrantaServerApiSchemaFilesFolder, None] + Union[GrantaServerApiSchemaFilesFileHeader, None] """ - data = ( - self._v1alpha_databases_database_key_home_page_folders_post_with_http_info( - database_key, body, _return_http_data_only=True - ) + data = self._update_home_page_file_with_http_info( + database_key, folder_guid, file_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_folders_post_with_http_info( + def _update_home_page_file_with_http_info( self, database_key: "str", - body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, + folder_guid: "str", + file_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "file_guid", "body", "_return_http_data_only", "_preload_content", @@ -1437,14 +1386,24 @@ def _v1alpha_databases_database_key_home_page_folders_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_folders_post" + f"Got an unexpected keyword argument '{key}' to method update_home_page_file" ) 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 'v1alpha_databases_database_key_home_page_folders_post'" + "Missing the required parameter 'database_key' when calling 'update_home_page_file'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'update_home_page_file'" + ) + # verify the required parameter "file_guid" is set + if "file_guid" not in params or params["file_guid"] is None: + raise ValueError( + "Missing the required parameter 'file_guid' when calling 'update_home_page_file'" ) collection_formats: Dict[str, Any] = {} @@ -1452,6 +1411,10 @@ def _v1alpha_databases_database_key_home_page_folders_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] + if "file_guid" in params and file_guid is not None: + path_params["file-guid"] = params["file_guid"] query_params: List[Any] = [] @@ -1479,15 +1442,15 @@ def _v1alpha_databases_database_key_home_page_folders_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiSchemaFilesFolder", + 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders", - "POST", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}/files/{file-guid}", + "PATCH", path_params, query_params, header_params, @@ -1501,31 +1464,43 @@ def _v1alpha_databases_database_key_home_page_folders_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_home_page_foldersroot_folder_get( - self, *, database_key: "str" + def update_home_page_folder( + self, + *, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, ) -> "Union[GrantaServerApiSchemaFilesFolder, None]": - """Get Root Home Page Folder + """Update an existing Home Page Folder. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + folder_guid: str + body: GrantaServerApiSchemaFilesUpdateFolder Returns ------- Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._v1alpha_databases_database_key_home_page_foldersroot_folder_get_with_http_info( - database_key, _return_http_data_only=True + data = self._update_home_page_folder_with_http_info( + database_key, folder_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_home_page_foldersroot_folder_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _update_home_page_folder_with_http_info( + self, + database_key: "str", + folder_guid: "str", + body: "Optional[GrantaServerApiSchemaFilesUpdateFolder]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "folder_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1535,14 +1510,19 @@ def _v1alpha_databases_database_key_home_page_foldersroot_folder_get_with_http_i for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_home_page_foldersroot_folder_get" + f"Got an unexpected keyword argument '{key}' to method update_home_page_folder" ) 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 'v1alpha_databases_database_key_home_page_foldersroot_folder_get'" + "Missing the required parameter 'database_key' when calling 'update_home_page_folder'" + ) + # verify the required parameter "folder_guid" is set + if "folder_guid" not in params or params["folder_guid"] is None: + raise ValueError( + "Missing the required parameter 'folder_guid' when calling 'update_home_page_folder'" ) collection_formats: Dict[str, Any] = {} @@ -1550,6 +1530,8 @@ def _v1alpha_databases_database_key_home_page_foldersroot_folder_get_with_http_i path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "folder_guid" in params and folder_guid is not None: + path_params["folder-guid"] = params["folder_guid"] query_params: List[Any] = [] @@ -1559,19 +1541,33 @@ def _v1alpha_databases_database_key_home_page_foldersroot_folder_get_with_http_i 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( ["text/plain", "application/json", "text/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 = { 200: "GrantaServerApiSchemaFilesFolder", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/home-page-folders:root-folder", - "GET", + "/v1alpha/databases/{database-key}/home-page-folders/{folder-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py index 5c711c3f..59c902f8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py @@ -33,17 +33,16 @@ class SchemaLayoutSectionsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get( + def create_layout_item( self, *, database_key: "str", table_guid: "str", layout_guid: "str", - show_full_detail: "Optional[bool]" = None, - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None]": - """Get all sections for a layout + section_guid: "str", + body: "Optional[GrantaServerApiSchemaLayoutsNewLayoutItem]" = None, + ) -> "Union[GrantaServerApiSchemaLayoutsNewLayoutItem, None]": + """Add a new layout item. This method makes a synchronous HTTP request. @@ -52,44 +51,38 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section database_key: str table_guid: str layout_guid: str - show_full_detail: bool - 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. + section_guid: str + body: GrantaServerApiSchemaLayoutsNewLayoutItem Returns ------- - Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None] + Union[GrantaServerApiSchemaLayoutsNewLayoutItem, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get_with_http_info( + data = self._create_layout_item_with_http_info( database_key, table_guid, layout_guid, - show_full_detail, - mode, - x_ansys_vc_mode, + section_guid, + body, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get_with_http_info( + def _create_layout_item_with_http_info( self, database_key: "str", table_guid: "str", layout_guid: "str", - show_full_detail: "Optional[bool]" = None, - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + section_guid: "str", + body: "Optional[GrantaServerApiSchemaLayoutsNewLayoutItem]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "layout_guid", - "show_full_detail", - "mode", - "x_ansys_vc_mode", + "section_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -99,24 +92,29 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get" + f"Got an unexpected keyword argument '{key}' to method create_layout_item" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get'" + "Missing the required parameter 'database_key' when calling 'create_layout_item'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get'" + "Missing the required parameter 'table_guid' when calling 'create_layout_item'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get'" + "Missing the required parameter 'layout_guid' when calling 'create_layout_item'" + ) + # verify the required parameter "section_guid" is set + if "section_guid" not in params or params["section_guid"] is None: + raise ValueError( + "Missing the required parameter 'section_guid' when calling 'create_layout_item'" ) collection_formats: Dict[str, Any] = {} @@ -128,34 +126,44 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio path_params["table-guid"] = params["table_guid"] if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] + if "section_guid" in params and section_guid is not None: + path_params["section-guid"] = params["section_guid"] query_params: List[Any] = [] - if "show_full_detail" in params and show_full_detail is not None: - query_params.append(("showFullDetail", params["show_full_detail"])) - 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 = { - 200: "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", + 201: "GrantaServerApiSchemaLayoutsNewLayoutItem", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections", - "GET", + "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections/{section-guid}/items", + "POST", path_params, query_params, header_params, @@ -169,7 +177,7 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post( + def create_section( self, *, database_key: "str", @@ -192,12 +200,12 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section ------- Union[GrantaServerApiSchemaSlimEntitiesSlimLayoutSection, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post_with_http_info( + data = self._create_section_with_http_info( database_key, table_guid, layout_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post_with_http_info( + def _create_section_with_http_info( self, database_key: "str", table_guid: "str", @@ -219,24 +227,24 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post" + f"Got an unexpected keyword argument '{key}' to method create_section" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post'" + "Missing the required parameter 'database_key' when calling 'create_section'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post'" + "Missing the required parameter 'table_guid' when calling 'create_section'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post'" + "Missing the required parameter 'layout_guid' when calling 'create_section'" ) collection_formats: Dict[str, Any] = {} @@ -297,15 +305,16 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put( + def delete_item( self, *, database_key: "str", table_guid: "str", layout_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsReorderSectionsInfo]" = None, - ) -> "Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None]": - """Reorder the list of layout sections for a layout. + section_guid: "str", + item_guid: "str", + ) -> "None": + """Delete a layout item. This method makes a synchronous HTTP request. @@ -314,30 +323,38 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section database_key: str table_guid: str layout_guid: str - body: GrantaServerApiSchemaLayoutsReorderSectionsInfo + section_guid: str + item_guid: str Returns ------- - Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None] + None """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put_with_http_info( - database_key, table_guid, layout_guid, body, _return_http_data_only=True + data = self._delete_item_with_http_info( + database_key, + table_guid, + layout_guid, + section_guid, + item_guid, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put_with_http_info( + def _delete_item_with_http_info( self, database_key: "str", table_guid: "str", layout_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsReorderSectionsInfo]" = None, + section_guid: "str", + item_guid: "str", **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "layout_guid", - "body", + "section_guid", + "item_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -347,24 +364,34 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put" + f"Got an unexpected keyword argument '{key}' to method delete_item" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put'" + "Missing the required parameter 'database_key' when calling 'delete_item'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put'" + "Missing the required parameter 'table_guid' when calling 'delete_item'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put'" + "Missing the required parameter 'layout_guid' when calling 'delete_item'" + ) + # verify the required parameter "section_guid" is set + if "section_guid" not in params or params["section_guid"] is None: + raise ValueError( + "Missing the required parameter 'section_guid' when calling 'delete_item'" + ) + # verify the required parameter "item_guid" is set + if "item_guid" not in params or params["item_guid"] is None: + raise ValueError( + "Missing the required parameter 'item_guid' when calling 'delete_item'" ) collection_formats: Dict[str, Any] = {} @@ -376,6 +403,10 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio path_params["table-guid"] = params["table_guid"] if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] + if "section_guid" in params and section_guid is not None: + path_params["section-guid"] = params["section_guid"] + if "item_guid" in params and item_guid is not None: + path_params["item-guid"] = params["item_guid"] query_params: List[Any] = [] @@ -385,33 +416,17 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio 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 = { - 200: "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", + 200: None, 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections", - "PUT", + "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections/{section-guid}/items/{item-guid}", + "DELETE", path_params, query_params, header_params, @@ -425,7 +440,7 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete( + def delete_section( self, *, database_key: "str", @@ -448,7 +463,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section ------- None """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete_with_http_info( + data = self._delete_section_with_http_info( database_key, table_guid, layout_guid, @@ -457,7 +472,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete_with_http_info( + def _delete_section_with_http_info( self, database_key: "str", table_guid: "str", @@ -479,29 +494,29 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete" + f"Got an unexpected keyword argument '{key}' to method delete_section" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete'" + "Missing the required parameter 'database_key' when calling 'delete_section'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'delete_section'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete'" + "Missing the required parameter 'layout_guid' when calling 'delete_section'" ) # verify the required parameter "section_guid" is set if "section_guid" not in params or params["section_guid"] is None: raise ValueError( - "Missing the required parameter 'section_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete'" + "Missing the required parameter 'section_guid' when calling 'delete_section'" ) collection_formats: Dict[str, Any] = {} @@ -548,7 +563,7 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get( + def get_layout_section( self, *, database_key: "str", @@ -579,7 +594,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section ------- Union[GrantaServerApiSchemaLayoutsLayoutSection, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get_with_http_info( + data = self._get_layout_section_with_http_info( database_key, table_guid, layout_guid, @@ -591,7 +606,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get_with_http_info( + def _get_layout_section_with_http_info( self, database_key: "str", table_guid: "str", @@ -619,29 +634,29 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_layout_section" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_layout_section'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get'" + "Missing the required parameter 'table_guid' when calling 'get_layout_section'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get'" + "Missing the required parameter 'layout_guid' when calling 'get_layout_section'" ) # verify the required parameter "section_guid" is set if "section_guid" not in params or params["section_guid"] is None: raise ValueError( - "Missing the required parameter 'section_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get'" + "Missing the required parameter 'section_guid' when calling 'get_layout_section'" ) collection_formats: Dict[str, Any] = {} @@ -696,16 +711,17 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete( + def get_layout_sections( self, *, database_key: "str", table_guid: "str", layout_guid: "str", - section_guid: "str", - item_guid: "str", - ) -> "None": - """Delete a layout item. + show_full_detail: "Optional[bool]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None]": + """Get all sections for a layout This method makes a synchronous HTTP request. @@ -714,38 +730,44 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section database_key: str table_guid: str layout_guid: str - section_guid: str - item_guid: str + show_full_detail: bool + 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 ------- - None + Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete_with_http_info( + data = self._get_layout_sections_with_http_info( database_key, table_guid, layout_guid, - section_guid, - item_guid, + show_full_detail, + mode, + x_ansys_vc_mode, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete_with_http_info( + def _get_layout_sections_with_http_info( self, database_key: "str", table_guid: "str", layout_guid: "str", - section_guid: "str", - item_guid: "str", + show_full_detail: "Optional[bool]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "layout_guid", - "section_guid", - "item_guid", + "show_full_detail", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -755,34 +777,24 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete" + f"Got an unexpected keyword argument '{key}' to method get_layout_sections" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete'" + "Missing the required parameter 'database_key' when calling 'get_layout_sections'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'get_layout_sections'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete'" - ) - # verify the required parameter "section_guid" is set - if "section_guid" not in params or params["section_guid"] is None: - raise ValueError( - "Missing the required parameter 'section_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete'" - ) - # verify the required parameter "item_guid" is set - if "item_guid" not in params or params["item_guid"] is None: - raise ValueError( - "Missing the required parameter 'item_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_item_guid_delete'" + "Missing the required parameter 'layout_guid' when calling 'get_layout_sections'" ) collection_formats: Dict[str, Any] = {} @@ -794,30 +806,34 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio path_params["table-guid"] = params["table_guid"] if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - if "section_guid" in params and section_guid is not None: - path_params["section-guid"] = params["section_guid"] - if "item_guid" in params and item_guid is not None: - path_params["item-guid"] = params["item_guid"] query_params: List[Any] = [] + if "show_full_detail" in params and show_full_detail is not None: + query_params.append(("showFullDetail", params["show_full_detail"])) + 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 = { - 200: None, - 400: None, - 403: None, + 200: "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections/{section-guid}/items/{item-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections", + "GET", path_params, query_params, header_params, @@ -831,16 +847,15 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post( + def reorder_sections( self, *, database_key: "str", table_guid: "str", layout_guid: "str", - section_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsNewLayoutItem]" = None, - ) -> "Union[GrantaServerApiSchemaLayoutsNewLayoutItem, None]": - """Add a new layout item. + body: "Optional[GrantaServerApiSchemaLayoutsReorderSectionsInfo]" = None, + ) -> "Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None]": + """Reorder the list of layout sections for a layout. This method makes a synchronous HTTP request. @@ -849,37 +864,29 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section database_key: str table_guid: str layout_guid: str - section_guid: str - body: GrantaServerApiSchemaLayoutsNewLayoutItem + body: GrantaServerApiSchemaLayoutsReorderSectionsInfo Returns ------- - Union[GrantaServerApiSchemaLayoutsNewLayoutItem, None] + Union[GrantaServerApiSchemaLayoutsLayoutSectionsInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post_with_http_info( - database_key, - table_guid, - layout_guid, - section_guid, - body, - _return_http_data_only=True, + data = self._reorder_sections_with_http_info( + database_key, table_guid, layout_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post_with_http_info( + def _reorder_sections_with_http_info( self, database_key: "str", table_guid: "str", layout_guid: "str", - section_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsNewLayoutItem]" = None, + body: "Optional[GrantaServerApiSchemaLayoutsReorderSectionsInfo]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", "layout_guid", - "section_guid", "body", "_return_http_data_only", "_preload_content", @@ -890,29 +897,24 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post" + f"Got an unexpected keyword argument '{key}' to method reorder_sections" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post'" + "Missing the required parameter 'database_key' when calling 'reorder_sections'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post'" + "Missing the required parameter 'table_guid' when calling 'reorder_sections'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post'" - ) - # verify the required parameter "section_guid" is set - if "section_guid" not in params or params["section_guid"] is None: - raise ValueError( - "Missing the required parameter 'section_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post'" + "Missing the required parameter 'layout_guid' when calling 'reorder_sections'" ) collection_formats: Dict[str, Any] = {} @@ -924,8 +926,6 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio path_params["table-guid"] = params["table_guid"] if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - if "section_guid" in params and section_guid is not None: - path_params["section-guid"] = params["section_guid"] query_params: List[Any] = [] @@ -953,15 +953,15 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio ) response_type_map = { - 201: "GrantaServerApiSchemaLayoutsNewLayoutItem", + 200: "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections/{section-guid}/items", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}/sections", + "PUT", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py index 17bb805d..8c59c636 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py @@ -33,15 +33,14 @@ class SchemaLayoutsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guid_layouts_get( + def create_layout( self, *, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaLayoutsLayoutsInfo, None]": - """Get all layouts for table + body: "Optional[GrantaServerApiSchemaLayoutsCreateLayout]" = None, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, None]": + """Create a new layout. This method makes a synchronous HTTP request. @@ -49,33 +48,28 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_get( ---------- database_key: str table_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. + body: GrantaServerApiSchemaLayoutsCreateLayout Returns ------- - Union[GrantaServerApiSchemaLayoutsLayoutsInfo, None] + Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info( - database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True + data = self._create_layout_with_http_info( + database_key, table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info( + def _create_layout_with_http_info( self, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + body: "Optional[GrantaServerApiSchemaLayoutsCreateLayout]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "mode", - "x_ansys_vc_mode", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -85,19 +79,19 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_get" + f"Got an unexpected keyword argument '{key}' to method create_layout" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_get'" + "Missing the required parameter 'database_key' when calling 'create_layout'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_get'" + "Missing the required parameter 'table_guid' when calling 'create_layout'" ) collection_formats: Dict[str, Any] = {} @@ -109,30 +103,40 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info path_params["table-guid"] = params["table_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 = { - 200: "GrantaServerApiSchemaLayoutsLayoutsInfo", + 201: "GrantaServerApiSchemaSlimEntitiesSlimLayout", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts", - "GET", + "POST", path_params, query_params, header_params, @@ -146,7 +150,7 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete( + def delete_layout( self, *, database_key: "str", table_guid: "str", layout_guid: "str" ) -> "None": """Delete a layout. @@ -163,12 +167,12 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete( ------- None """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete_with_http_info( + data = self._delete_layout_with_http_info( database_key, table_guid, layout_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete_with_http_info( + def _delete_layout_with_http_info( self, database_key: "str", table_guid: "str", layout_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -184,24 +188,24 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete" + f"Got an unexpected keyword argument '{key}' to method delete_layout" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete'" + "Missing the required parameter 'database_key' when calling 'delete_layout'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'delete_layout'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete'" + "Missing the required parameter 'layout_guid' when calling 'delete_layout'" ) collection_formats: Dict[str, Any] = {} @@ -246,7 +250,7 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get( + def get_layout( self, *, database_key: "str", @@ -275,7 +279,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get( ------- Union[GrantaServerApiSchemaLayoutsLayout, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_with_http_info( + data = self._get_layout_with_http_info( database_key, table_guid, layout_guid, @@ -286,7 +290,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get( ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_with_http_info( + def _get_layout_with_http_info( self, database_key: "str", table_guid: "str", @@ -312,24 +316,24 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_wi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_layout" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_layout'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get'" + "Missing the required parameter 'table_guid' when calling 'get_layout'" ) # verify the required parameter "layout_guid" is set if "layout_guid" not in params or params["layout_guid"] is None: raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get'" + "Missing the required parameter 'layout_guid' when calling 'get_layout'" ) collection_formats: Dict[str, Any] = {} @@ -382,15 +386,15 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_wi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch( + def get_layouts( self, *, database_key: "str", table_guid: "str", - layout_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsUpdateLayout]" = None, - ) -> "Union[GrantaServerApiSchemaLayoutsLayout, None]": - """Update a layout. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaLayoutsLayoutsInfo, None]": + """Get all layouts for table This method makes a synchronous HTTP request. @@ -398,31 +402,33 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch( ---------- database_key: str table_guid: str - layout_guid: str - body: GrantaServerApiSchemaLayoutsUpdateLayout + 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[GrantaServerApiSchemaLayoutsLayout, None] + Union[GrantaServerApiSchemaLayoutsLayoutsInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_with_http_info( - database_key, table_guid, layout_guid, body, _return_http_data_only=True + data = self._get_layouts_with_http_info( + database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_with_http_info( + def _get_layouts_with_http_info( self, database_key: "str", table_guid: "str", - layout_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsUpdateLayout]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "layout_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -432,24 +438,19 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_layouts" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_layouts'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch'" - ) - # verify the required parameter "layout_guid" is set - if "layout_guid" not in params or params["layout_guid"] is None: - raise ValueError( - "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch'" + "Missing the required parameter 'table_guid' when calling 'get_layouts'" ) collection_formats: Dict[str, Any] = {} @@ -459,44 +460,32 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_ 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 "layout_guid" in params and layout_guid is not None: - path_params["layout-guid"] = params["layout_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 = { - 200: "GrantaServerApiSchemaLayoutsLayout", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaLayoutsLayoutsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts", + "GET", path_params, query_params, header_params, @@ -510,14 +499,15 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_layouts_post( + def update_layout( self, *, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsCreateLayout]" = None, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, None]": - """Create a new layout. + layout_guid: "str", + body: "Optional[GrantaServerApiSchemaLayoutsUpdateLayout]" = None, + ) -> "Union[GrantaServerApiSchemaLayoutsLayout, None]": + """Update a layout. This method makes a synchronous HTTP request. @@ -525,27 +515,30 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_post( ---------- database_key: str table_guid: str - body: GrantaServerApiSchemaLayoutsCreateLayout + layout_guid: str + body: GrantaServerApiSchemaLayoutsUpdateLayout Returns ------- - Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, None] + Union[GrantaServerApiSchemaLayoutsLayout, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_info( - database_key, table_guid, body, _return_http_data_only=True + data = self._update_layout_with_http_info( + database_key, table_guid, layout_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_info( + def _update_layout_with_http_info( self, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaLayoutsCreateLayout]" = None, + layout_guid: "str", + body: "Optional[GrantaServerApiSchemaLayoutsUpdateLayout]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", + "layout_guid", "body", "_return_http_data_only", "_preload_content", @@ -556,19 +549,24 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_inf for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_layouts_post" + f"Got an unexpected keyword argument '{key}' to method update_layout" ) 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 'v1alpha_databases_database_key_tables_table_guid_layouts_post'" + "Missing the required parameter 'database_key' when calling 'update_layout'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_layouts_post'" + "Missing the required parameter 'table_guid' when calling 'update_layout'" + ) + # verify the required parameter "layout_guid" is set + if "layout_guid" not in params or params["layout_guid"] is None: + raise ValueError( + "Missing the required parameter 'layout_guid' when calling 'update_layout'" ) collection_formats: Dict[str, Any] = {} @@ -578,6 +576,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_inf 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 "layout_guid" in params and layout_guid is not None: + path_params["layout-guid"] = params["layout_guid"] query_params: List[Any] = [] @@ -605,15 +605,15 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_inf ) response_type_map = { - 201: "GrantaServerApiSchemaSlimEntitiesSlimLayout", + 200: "GrantaServerApiSchemaLayoutsLayout", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/layouts/{layout-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py index 8fde2655..dc5f1d9c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py @@ -33,31 +33,39 @@ class SchemaParametersApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_parameters_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaParametersParametersInfo, None]": - """Get all parameters for a given database. + def create_parameter( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaParametersCreateParameter]" = None, + ) -> "Union[GrantaServerApiSchemaParametersParameter, None]": + """Create a new parameter. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + body: GrantaServerApiSchemaParametersCreateParameter Returns ------- - Union[GrantaServerApiSchemaParametersParametersInfo, None] + Union[GrantaServerApiSchemaParametersParameter, None] """ - data = self._v1alpha_databases_database_key_parameters_get_with_http_info( - database_key, _return_http_data_only=True + data = self._create_parameter_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _create_parameter_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaParametersCreateParameter]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -67,14 +75,14 @@ def _v1alpha_databases_database_key_parameters_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_get" + f"Got an unexpected keyword argument '{key}' to method create_parameter" ) 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 'v1alpha_databases_database_key_parameters_get'" + "Missing the required parameter 'database_key' when calling 'create_parameter'" ) collection_formats: Dict[str, Any] = {} @@ -91,19 +99,33 @@ def _v1alpha_databases_database_key_parameters_get_with_http_info( 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 = { - 200: "GrantaServerApiSchemaParametersParametersInfo", + 201: "GrantaServerApiSchemaParametersParameter", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/parameters", - "GET", + "POST", path_params, query_params, header_params, @@ -117,10 +139,14 @@ def _v1alpha_databases_database_key_parameters_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guid_delete( - self, *, database_key: "str", parameter_guid: "str" - ) -> "Union[GrantaServerApiExceptionsDeletionParameterDeletionException, None]": - """Delete a parameter. + def create_parameter_value( + self, + *, + database_key: "str", + parameter_guid: "str", + body: "Optional[GrantaServerApiSchemaParametersCreateParameterValue]" = None, + ) -> "Union[GrantaServerApiSchemaParametersParameterValue, None]": + """Create a new parameter value. This method makes a synchronous HTTP request. @@ -128,22 +154,28 @@ def v1alpha_databases_database_key_parameters_parameter_guid_delete( ---------- database_key: str parameter_guid: str + body: GrantaServerApiSchemaParametersCreateParameterValue Returns ------- - Union[GrantaServerApiExceptionsDeletionParameterDeletionException, None] + Union[GrantaServerApiSchemaParametersParameterValue, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_info( - database_key, parameter_guid, _return_http_data_only=True + data = self._create_parameter_value_with_http_info( + database_key, parameter_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_info( - self, database_key: "str", parameter_guid: "str", **kwargs: Any + def _create_parameter_value_with_http_info( + self, + database_key: "str", + parameter_guid: "str", + body: "Optional[GrantaServerApiSchemaParametersCreateParameterValue]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "parameter_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -153,19 +185,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_i for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guid_delete" + f"Got an unexpected keyword argument '{key}' to method create_parameter_value" ) 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 'v1alpha_databases_database_key_parameters_parameter_guid_delete'" + "Missing the required parameter 'database_key' when calling 'create_parameter_value'" ) # verify the required parameter "parameter_guid" is set if "parameter_guid" not in params or params["parameter_guid"] is None: raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_delete'" + "Missing the required parameter 'parameter_guid' when calling 'create_parameter_value'" ) collection_formats: Dict[str, Any] = {} @@ -184,21 +216,33 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_i 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 = { - 400: "GrantaServerApiExceptionsDeletionParameterDeletionException", - 200: None, + 201: "GrantaServerApiSchemaParametersParameterValue", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/parameters/{parameter-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/parameters/{parameter-guid}/parameter-values", + "POST", path_params, query_params, header_params, @@ -212,10 +256,10 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_i response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guid_get( + def delete_parameter( self, *, database_key: "str", parameter_guid: "str" - ) -> "Union[GrantaServerApiSchemaParametersParameter, None]": - """Get a parameter with a specified guid for a given database. + ) -> "Union[GrantaServerApiExceptionsDeletionParameterDeletionException, None]": + """Delete a parameter. This method makes a synchronous HTTP request. @@ -226,14 +270,14 @@ def v1alpha_databases_database_key_parameters_parameter_guid_get( Returns ------- - Union[GrantaServerApiSchemaParametersParameter, None] + Union[GrantaServerApiExceptionsDeletionParameterDeletionException, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info( + data = self._delete_parameter_with_http_info( database_key, parameter_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info( + def _delete_parameter_with_http_info( self, database_key: "str", parameter_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -248,19 +292,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_parameter" ) 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 'v1alpha_databases_database_key_parameters_parameter_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_parameter'" ) # verify the required parameter "parameter_guid" is set if "parameter_guid" not in params or params["parameter_guid"] is None: raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_get'" + "Missing the required parameter 'parameter_guid' when calling 'delete_parameter'" ) collection_formats: Dict[str, Any] = {} @@ -285,13 +329,15 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info ) response_type_map = { - 200: "GrantaServerApiSchemaParametersParameter", + 400: "GrantaServerApiExceptionsDeletionParameterDeletionException", + 200: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/parameters/{parameter-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -305,7 +351,7 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete( + def delete_parameter_value( self, *, database_key: "str", parameter_guid: "str", parameter_value_guid: "str" ) -> ( "Union[GrantaServerApiExceptionsDeletionParameterValueDeletionException, None]" @@ -324,7 +370,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa ------- Union[GrantaServerApiExceptionsDeletionParameterValueDeletionException, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete_with_http_info( + data = self._delete_parameter_value_with_http_info( database_key, parameter_guid, parameter_value_guid, @@ -332,7 +378,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete_with_http_info( + def _delete_parameter_value_with_http_info( self, database_key: "str", parameter_guid: "str", @@ -352,19 +398,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete" + f"Got an unexpected keyword argument '{key}' to method delete_parameter_value" ) 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 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete'" + "Missing the required parameter 'database_key' when calling 'delete_parameter_value'" ) # verify the required parameter "parameter_guid" is set if "parameter_guid" not in params or params["parameter_guid"] is None: raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete'" + "Missing the required parameter 'parameter_guid' when calling 'delete_parameter_value'" ) # verify the required parameter "parameter_value_guid" is set if ( @@ -372,7 +418,7 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p or params["parameter_value_guid"] is None ): raise ValueError( - "Missing the required parameter 'parameter_value_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete'" + "Missing the required parameter 'parameter_value_guid' when calling 'delete_parameter_value'" ) collection_formats: Dict[str, Any] = {} @@ -421,10 +467,10 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get( - self, *, database_key: "str", parameter_guid: "str", parameter_value_guid: "str" - ) -> "Union[GrantaServerApiSchemaParametersParameterValue, None]": - """Get a parameter value with a specified guid for a given database for a given parameter. + def get_objects_using_parameter( + self, *, database_key: "str", parameter_guid: "str" + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None]": + """Get attributes which currently use the given parameter. This method makes a synchronous HTTP request. @@ -432,31 +478,22 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa ---------- database_key: str parameter_guid: str - parameter_value_guid: str Returns ------- - Union[GrantaServerApiSchemaParametersParameterValue, None] + Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get_with_http_info( - database_key, - parameter_guid, - parameter_value_guid, - _return_http_data_only=True, + data = self._get_objects_using_parameter_with_http_info( + database_key, parameter_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get_with_http_info( - self, - database_key: "str", - parameter_guid: "str", - parameter_value_guid: "str", - **kwargs: Any, + def _get_objects_using_parameter_with_http_info( + self, database_key: "str", parameter_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "parameter_guid", - "parameter_value_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -466,27 +503,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_objects_using_parameter" ) 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 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_objects_using_parameter'" ) # verify the required parameter "parameter_guid" is set if "parameter_guid" not in params or params["parameter_guid"] is None: raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get'" - ) - # verify the required parameter "parameter_value_guid" is set - if ( - "parameter_value_guid" not in params - or params["parameter_value_guid"] is None - ): - raise ValueError( - "Missing the required parameter 'parameter_value_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get'" + "Missing the required parameter 'parameter_guid' when calling 'get_objects_using_parameter'" ) collection_formats: Dict[str, Any] = {} @@ -496,8 +525,6 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p path_params["database-key"] = params["database_key"] if "parameter_guid" in params and parameter_guid is not None: path_params["parameter-guid"] = params["parameter_guid"] - if "parameter_value_guid" in params and parameter_value_guid is not None: - path_params["parameter-value-guid"] = params["parameter_value_guid"] query_params: List[Any] = [] @@ -513,12 +540,12 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p ) response_type_map = { - 200: "GrantaServerApiSchemaParametersParameterValue", + 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/parameters/{parameter-guid}/parameter-values/{parameter-value-guid}", + "/v1alpha/databases/{database-key}/parameters/{parameter-guid}:usages", "GET", path_params, query_params, @@ -533,15 +560,10 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch( - self, - *, - database_key: "str", - parameter_guid: "str", - parameter_value_guid: "str", - body: "Optional[GrantaServerApiSchemaParametersUpdateParameterValue]" = None, - ) -> "Union[GrantaServerApiSchemaParametersParameterValue, None]": - """Update a parameter value. + def get_parameter( + self, *, database_key: "str", parameter_guid: "str" + ) -> "Union[GrantaServerApiSchemaParametersParameter, None]": + """Get a parameter with a specified guid for a given database. This method makes a synchronous HTTP request. @@ -549,35 +571,22 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa ---------- database_key: str parameter_guid: str - parameter_value_guid: str - body: GrantaServerApiSchemaParametersUpdateParameterValue Returns ------- - Union[GrantaServerApiSchemaParametersParameterValue, None] + Union[GrantaServerApiSchemaParametersParameter, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch_with_http_info( - database_key, - parameter_guid, - parameter_value_guid, - body, - _return_http_data_only=True, + data = self._get_parameter_with_http_info( + database_key, parameter_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch_with_http_info( - self, - database_key: "str", - parameter_guid: "str", - parameter_value_guid: "str", - body: "Optional[GrantaServerApiSchemaParametersUpdateParameterValue]" = None, - **kwargs: Any, + def _get_parameter_with_http_info( + self, database_key: "str", parameter_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "parameter_guid", - "parameter_value_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -587,27 +596,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_parameter" ) 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 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_parameter'" ) # verify the required parameter "parameter_guid" is set if "parameter_guid" not in params or params["parameter_guid"] is None: raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch'" - ) - # verify the required parameter "parameter_value_guid" is set - if ( - "parameter_value_guid" not in params - or params["parameter_value_guid"] is None - ): - raise ValueError( - "Missing the required parameter 'parameter_value_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch'" + "Missing the required parameter 'parameter_guid' when calling 'get_parameter'" ) collection_formats: Dict[str, Any] = {} @@ -617,8 +618,6 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p path_params["database-key"] = params["database_key"] if "parameter_guid" in params and parameter_guid is not None: path_params["parameter-guid"] = params["parameter_guid"] - if "parameter_value_guid" in params and parameter_value_guid is not None: - path_params["parameter-value-guid"] = params["parameter_value_guid"] query_params: List[Any] = [] @@ -628,33 +627,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p 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 = { - 200: "GrantaServerApiSchemaParametersParameterValue", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaParametersParameter", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/parameters/{parameter-guid}/parameter-values/{parameter-value-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/parameters/{parameter-guid}", + "GET", path_params, query_params, header_params, @@ -668,14 +653,10 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post( - self, - *, - database_key: "str", - parameter_guid: "str", - body: "Optional[GrantaServerApiSchemaParametersCreateParameterValue]" = None, + def get_parameter_value( + self, *, database_key: "str", parameter_guid: "str", parameter_value_guid: "str" ) -> "Union[GrantaServerApiSchemaParametersParameterValue, None]": - """Create a new parameter value. + """Get a parameter value with a specified guid for a given database for a given parameter. This method makes a synchronous HTTP request. @@ -683,28 +664,31 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_po ---------- database_key: str parameter_guid: str - body: GrantaServerApiSchemaParametersCreateParameterValue + parameter_value_guid: str Returns ------- Union[GrantaServerApiSchemaParametersParameterValue, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post_with_http_info( - database_key, parameter_guid, body, _return_http_data_only=True + data = self._get_parameter_value_with_http_info( + database_key, + parameter_guid, + parameter_value_guid, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post_with_http_info( + def _get_parameter_value_with_http_info( self, database_key: "str", parameter_guid: "str", - body: "Optional[GrantaServerApiSchemaParametersCreateParameterValue]" = None, + parameter_value_guid: "str", **kwargs: Any, ) -> Any: all_params = [ "database_key", "parameter_guid", - "body", + "parameter_value_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -714,19 +698,27 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post" + f"Got an unexpected keyword argument '{key}' to method get_parameter_value" ) 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 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post'" + "Missing the required parameter 'database_key' when calling 'get_parameter_value'" ) # verify the required parameter "parameter_guid" is set if "parameter_guid" not in params or params["parameter_guid"] is None: raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post'" + "Missing the required parameter 'parameter_guid' when calling 'get_parameter_value'" + ) + # verify the required parameter "parameter_value_guid" is set + if ( + "parameter_value_guid" not in params + or params["parameter_value_guid"] is None + ): + raise ValueError( + "Missing the required parameter 'parameter_value_guid' when calling 'get_parameter_value'" ) collection_formats: Dict[str, Any] = {} @@ -736,6 +728,8 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p path_params["database-key"] = params["database_key"] if "parameter_guid" in params and parameter_guid is not None: path_params["parameter-guid"] = params["parameter_guid"] + if "parameter_value_guid" in params and parameter_value_guid is not None: + path_params["parameter-value-guid"] = params["parameter_value_guid"] query_params: List[Any] = [] @@ -745,33 +739,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p 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 = { - 201: "GrantaServerApiSchemaParametersParameterValue", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaParametersParameterValue", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/parameters/{parameter-guid}/parameter-values", - "POST", + "/v1alpha/databases/{database-key}/parameters/{parameter-guid}/parameter-values/{parameter-value-guid}", + "GET", path_params, query_params, header_params, @@ -785,43 +765,29 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guid_patch( - self, - *, - database_key: "str", - parameter_guid: "str", - body: "Optional[GrantaServerApiSchemaParametersUpdateParameter]" = None, - ) -> "Union[GrantaServerApiSchemaParametersParameter, None]": - """Update a parameter. + def get_parameters( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaParametersParametersInfo, None]": + """Get all parameters for a given database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - parameter_guid: str - body: GrantaServerApiSchemaParametersUpdateParameter Returns ------- - Union[GrantaServerApiSchemaParametersParameter, None] + Union[GrantaServerApiSchemaParametersParametersInfo, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_info( - database_key, parameter_guid, body, _return_http_data_only=True + data = self._get_parameters_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_info( - self, - database_key: "str", - parameter_guid: "str", - body: "Optional[GrantaServerApiSchemaParametersUpdateParameter]" = None, - **kwargs: Any, - ) -> Any: + def _get_parameters_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", - "parameter_guid", - "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -831,19 +797,14 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_in for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_parameters" ) 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 'v1alpha_databases_database_key_parameters_parameter_guid_patch'" - ) - # verify the required parameter "parameter_guid" is set - if "parameter_guid" not in params or params["parameter_guid"] is None: - raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_parameters'" ) collection_formats: Dict[str, Any] = {} @@ -851,8 +812,6 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_in path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "parameter_guid" in params and parameter_guid is not None: - path_params["parameter-guid"] = params["parameter_guid"] query_params: List[Any] = [] @@ -862,33 +821,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_in 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 = { - 200: "GrantaServerApiSchemaParametersParameter", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaParametersParametersInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/parameters/{parameter-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/parameters", + "GET", path_params, query_params, header_params, @@ -902,10 +847,14 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_in response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_parameter_guidusages_get( - self, *, database_key: "str", parameter_guid: "str" - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None]": - """Get attributes which currently use the given parameter. + def update_parameter( + self, + *, + database_key: "str", + parameter_guid: "str", + body: "Optional[GrantaServerApiSchemaParametersUpdateParameter]" = None, + ) -> "Union[GrantaServerApiSchemaParametersParameter, None]": + """Update a parameter. This method makes a synchronous HTTP request. @@ -913,22 +862,28 @@ def v1alpha_databases_database_key_parameters_parameter_guidusages_get( ---------- database_key: str parameter_guid: str + body: GrantaServerApiSchemaParametersUpdateParameter Returns ------- - Union[GrantaServerApiSchemaSlimEntitiesSlimObjects, None] + Union[GrantaServerApiSchemaParametersParameter, None] """ - data = self._v1alpha_databases_database_key_parameters_parameter_guidusages_get_with_http_info( - database_key, parameter_guid, _return_http_data_only=True + data = self._update_parameter_with_http_info( + database_key, parameter_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_parameter_guidusages_get_with_http_info( - self, database_key: "str", parameter_guid: "str", **kwargs: Any + def _update_parameter_with_http_info( + self, + database_key: "str", + parameter_guid: "str", + body: "Optional[GrantaServerApiSchemaParametersUpdateParameter]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "parameter_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -938,19 +893,19 @@ def _v1alpha_databases_database_key_parameters_parameter_guidusages_get_with_htt for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_parameter_guidusages_get" + f"Got an unexpected keyword argument '{key}' to method update_parameter" ) 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 'v1alpha_databases_database_key_parameters_parameter_guidusages_get'" + "Missing the required parameter 'database_key' when calling 'update_parameter'" ) # verify the required parameter "parameter_guid" is set if "parameter_guid" not in params or params["parameter_guid"] is None: raise ValueError( - "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guidusages_get'" + "Missing the required parameter 'parameter_guid' when calling 'update_parameter'" ) collection_formats: Dict[str, Any] = {} @@ -969,19 +924,33 @@ def _v1alpha_databases_database_key_parameters_parameter_guidusages_get_with_htt 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 = { - 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", + 200: "GrantaServerApiSchemaParametersParameter", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/parameters/{parameter-guid}:usages", - "GET", + "/v1alpha/databases/{database-key}/parameters/{parameter-guid}", + "PATCH", path_params, query_params, header_params, @@ -995,38 +964,50 @@ def _v1alpha_databases_database_key_parameters_parameter_guidusages_get_with_htt response_type_map=response_type_map, ) - def v1alpha_databases_database_key_parameters_post( + def update_parameter_value( self, *, database_key: "str", - body: "Optional[GrantaServerApiSchemaParametersCreateParameter]" = None, - ) -> "Union[GrantaServerApiSchemaParametersParameter, None]": - """Create a new parameter. + parameter_guid: "str", + parameter_value_guid: "str", + body: "Optional[GrantaServerApiSchemaParametersUpdateParameterValue]" = None, + ) -> "Union[GrantaServerApiSchemaParametersParameterValue, None]": + """Update a parameter value. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaParametersCreateParameter + parameter_guid: str + parameter_value_guid: str + body: GrantaServerApiSchemaParametersUpdateParameterValue Returns ------- - Union[GrantaServerApiSchemaParametersParameter, None] + Union[GrantaServerApiSchemaParametersParameterValue, None] """ - data = self._v1alpha_databases_database_key_parameters_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._update_parameter_value_with_http_info( + database_key, + parameter_guid, + parameter_value_guid, + body, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_parameters_post_with_http_info( + def _update_parameter_value_with_http_info( self, database_key: "str", - body: "Optional[GrantaServerApiSchemaParametersCreateParameter]" = None, + parameter_guid: "str", + parameter_value_guid: "str", + body: "Optional[GrantaServerApiSchemaParametersUpdateParameterValue]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", + "parameter_guid", + "parameter_value_guid", "body", "_return_http_data_only", "_preload_content", @@ -1037,14 +1018,27 @@ def _v1alpha_databases_database_key_parameters_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_parameters_post" + f"Got an unexpected keyword argument '{key}' to method update_parameter_value" ) 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 'v1alpha_databases_database_key_parameters_post'" + "Missing the required parameter 'database_key' when calling 'update_parameter_value'" + ) + # verify the required parameter "parameter_guid" is set + if "parameter_guid" not in params or params["parameter_guid"] is None: + raise ValueError( + "Missing the required parameter 'parameter_guid' when calling 'update_parameter_value'" + ) + # verify the required parameter "parameter_value_guid" is set + if ( + "parameter_value_guid" not in params + or params["parameter_value_guid"] is None + ): + raise ValueError( + "Missing the required parameter 'parameter_value_guid' when calling 'update_parameter_value'" ) collection_formats: Dict[str, Any] = {} @@ -1052,6 +1046,10 @@ def _v1alpha_databases_database_key_parameters_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "parameter_guid" in params and parameter_guid is not None: + path_params["parameter-guid"] = params["parameter_guid"] + if "parameter_value_guid" in params and parameter_value_guid is not None: + path_params["parameter-value-guid"] = params["parameter_value_guid"] query_params: List[Any] = [] @@ -1079,15 +1077,15 @@ def _v1alpha_databases_database_key_parameters_post_with_http_info( ) response_type_map = { - 201: "GrantaServerApiSchemaParametersParameter", + 200: "GrantaServerApiSchemaParametersParameterValue", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/parameters", - "POST", + "/v1alpha/databases/{database-key}/parameters/{parameter-guid}/parameter-values/{parameter-value-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py index 65b5a449..0699d08c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py @@ -33,31 +33,39 @@ class SchemaProfileTablesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_profiles_profile_guid_profile_tables_get( - self, *, profile_guid: "str" - ) -> "Union[GrantaServerApiSchemaProfileTablesProfileTablesInfo, None]": - """Get all profile tables of given profile + def create_profile_table( + self, + *, + profile_guid: "str", + body: "Optional[GrantaServerApiSchemaProfileTablesCreateProfileTable]" = None, + ) -> "Union[GrantaServerApiSchemaProfileTablesProfileTable, None]": + """Create a new profile table This method makes a synchronous HTTP request. Parameters ---------- profile_guid: str + body: GrantaServerApiSchemaProfileTablesCreateProfileTable Returns ------- - Union[GrantaServerApiSchemaProfileTablesProfileTablesInfo, None] + Union[GrantaServerApiSchemaProfileTablesProfileTable, None] """ - data = self._v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( - profile_guid, _return_http_data_only=True + data = self._create_profile_table_with_http_info( + profile_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( - self, profile_guid: "str", **kwargs: Any + def _create_profile_table_with_http_info( + self, + profile_guid: "str", + body: "Optional[GrantaServerApiSchemaProfileTablesCreateProfileTable]" = None, + **kwargs: Any, ) -> Any: all_params = [ "profile_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -67,14 +75,14 @@ def _v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_profile_guid_profile_tables_get" + f"Got an unexpected keyword argument '{key}' to method create_profile_table" ) params[key] = val del params["kwargs"] # verify the required parameter "profile_guid" is set if "profile_guid" not in params or params["profile_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_get'" + "Missing the required parameter 'profile_guid' when calling 'create_profile_table'" ) collection_formats: Dict[str, Any] = {} @@ -91,20 +99,33 @@ def _v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( 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 = { - 200: "GrantaServerApiSchemaProfileTablesProfileTablesInfo", + 201: "GrantaServerApiSchemaProfileTablesProfileTable", + 400: None, 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/profiles/{profile-guid}/profile-tables", - "GET", + "POST", path_params, query_params, header_params, @@ -118,39 +139,33 @@ def _v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_profiles_profile_guid_profile_tables_post( - self, - *, - profile_guid: "str", - body: "Optional[GrantaServerApiSchemaProfileTablesCreateProfileTable]" = None, - ) -> "Union[GrantaServerApiSchemaProfileTablesProfileTable, None]": - """Create a new profile table + def delete_profile_table( + self, *, profile_guid: "str", profile_table_guid: "str" + ) -> "None": + """Delete a profile table This method makes a synchronous HTTP request. Parameters ---------- profile_guid: str - body: GrantaServerApiSchemaProfileTablesCreateProfileTable + profile_table_guid: str Returns ------- - Union[GrantaServerApiSchemaProfileTablesProfileTable, None] + None """ - data = self._v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( - profile_guid, body, _return_http_data_only=True + data = self._delete_profile_table_with_http_info( + profile_guid, profile_table_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( - self, - profile_guid: "str", - body: "Optional[GrantaServerApiSchemaProfileTablesCreateProfileTable]" = None, - **kwargs: Any, + def _delete_profile_table_with_http_info( + self, profile_guid: "str", profile_table_guid: "str", **kwargs: Any ) -> Any: all_params = [ "profile_guid", - "body", + "profile_table_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -160,14 +175,19 @@ def _v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_profile_guid_profile_tables_post" + f"Got an unexpected keyword argument '{key}' to method delete_profile_table" ) params[key] = val del params["kwargs"] # verify the required parameter "profile_guid" is set if "profile_guid" not in params or params["profile_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_post'" + "Missing the required parameter 'profile_guid' when calling 'delete_profile_table'" + ) + # verify the required parameter "profile_table_guid" is set + if "profile_table_guid" not in params or params["profile_table_guid"] is None: + raise ValueError( + "Missing the required parameter 'profile_table_guid' when calling 'delete_profile_table'" ) collection_formats: Dict[str, Any] = {} @@ -175,6 +195,8 @@ def _v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( path_params: Dict[str, Any] = {} if "profile_guid" in params and profile_guid is not None: path_params["profile-guid"] = params["profile_guid"] + if "profile_table_guid" in params and profile_table_guid is not None: + path_params["profile-table-guid"] = params["profile_table_guid"] query_params: List[Any] = [] @@ -184,33 +206,16 @@ def _v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( 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 = { - 201: "GrantaServerApiSchemaProfileTablesProfileTable", - 400: None, + 200: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/profiles/{profile-guid}/profile-tables", - "POST", + "/v1alpha/profiles/{profile-guid}/profile-tables/{profile-table-guid}", + "DELETE", path_params, query_params, header_params, @@ -224,10 +229,10 @@ def _v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete( + def get_profile_table( self, *, profile_guid: "str", profile_table_guid: "str" - ) -> "None": - """Delete a profile table + ) -> "Union[GrantaServerApiSchemaProfileTablesProfileTable, None]": + """Get individual profile table This method makes a synchronous HTTP request. @@ -238,14 +243,14 @@ def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete( Returns ------- - None + Union[GrantaServerApiSchemaProfileTablesProfileTable, None] """ - data = self._v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with_http_info( + data = self._get_profile_table_with_http_info( profile_guid, profile_table_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with_http_info( + def _get_profile_table_with_http_info( self, profile_guid: "str", profile_table_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -260,19 +265,19 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete" + f"Got an unexpected keyword argument '{key}' to method get_profile_table" ) params[key] = val del params["kwargs"] # verify the required parameter "profile_guid" is set if "profile_guid" not in params or params["profile_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete'" + "Missing the required parameter 'profile_guid' when calling 'get_profile_table'" ) # verify the required parameter "profile_table_guid" is set if "profile_table_guid" not in params or params["profile_table_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_table_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete'" + "Missing the required parameter 'profile_table_guid' when calling 'get_profile_table'" ) collection_formats: Dict[str, Any] = {} @@ -291,16 +296,20 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with 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 = { - 200: None, + 200: "GrantaServerApiSchemaProfileTablesProfileTable", 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/profiles/{profile-guid}/profile-tables/{profile-table-guid}", - "DELETE", + "GET", path_params, query_params, header_params, @@ -314,33 +323,31 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with response_type_map=response_type_map, ) - def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get( - self, *, profile_guid: "str", profile_table_guid: "str" - ) -> "Union[GrantaServerApiSchemaProfileTablesProfileTable, None]": - """Get individual profile table + def get_profile_tables( + self, *, profile_guid: "str" + ) -> "Union[GrantaServerApiSchemaProfileTablesProfileTablesInfo, None]": + """Get all profile tables of given profile This method makes a synchronous HTTP request. Parameters ---------- profile_guid: str - profile_table_guid: str Returns ------- - Union[GrantaServerApiSchemaProfileTablesProfileTable, None] + Union[GrantaServerApiSchemaProfileTablesProfileTablesInfo, None] """ - data = self._v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get_with_http_info( - profile_guid, profile_table_guid, _return_http_data_only=True + data = self._get_profile_tables_with_http_info( + profile_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get_with_http_info( - self, profile_guid: "str", profile_table_guid: "str", **kwargs: Any + def _get_profile_tables_with_http_info( + self, profile_guid: "str", **kwargs: Any ) -> Any: all_params = [ "profile_guid", - "profile_table_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -350,19 +357,14 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get_with_ht for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_profile_tables" ) params[key] = val del params["kwargs"] # verify the required parameter "profile_guid" is set if "profile_guid" not in params or params["profile_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get'" - ) - # verify the required parameter "profile_table_guid" is set - if "profile_table_guid" not in params or params["profile_table_guid"] is None: - raise ValueError( - "Missing the required parameter 'profile_table_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get'" + "Missing the required parameter 'profile_guid' when calling 'get_profile_tables'" ) collection_formats: Dict[str, Any] = {} @@ -370,8 +372,6 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get_with_ht path_params: Dict[str, Any] = {} if "profile_guid" in params and profile_guid is not None: path_params["profile-guid"] = params["profile_guid"] - if "profile_table_guid" in params and profile_table_guid is not None: - path_params["profile-table-guid"] = params["profile_table_guid"] query_params: List[Any] = [] @@ -387,13 +387,13 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get_with_ht ) response_type_map = { - 200: "GrantaServerApiSchemaProfileTablesProfileTable", + 200: "GrantaServerApiSchemaProfileTablesProfileTablesInfo", 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/profiles/{profile-guid}/profile-tables/{profile-table-guid}", + "/v1alpha/profiles/{profile-guid}/profile-tables", "GET", path_params, query_params, @@ -408,7 +408,7 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get_with_ht response_type_map=response_type_map, ) - def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch( + def update_profile_table( self, *, profile_guid: "str", @@ -429,12 +429,12 @@ def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch( ------- Union[GrantaServerApiSchemaProfileTablesProfileTable, None] """ - data = self._v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch_with_http_info( + data = self._update_profile_table_with_http_info( profile_guid, profile_table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch_with_http_info( + def _update_profile_table_with_http_info( self, profile_guid: "str", profile_table_guid: "str", @@ -454,19 +454,19 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch_with_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch" + f"Got an unexpected keyword argument '{key}' to method update_profile_table" ) params[key] = val del params["kwargs"] # verify the required parameter "profile_guid" is set if "profile_guid" not in params or params["profile_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch'" + "Missing the required parameter 'profile_guid' when calling 'update_profile_table'" ) # verify the required parameter "profile_table_guid" is set if "profile_table_guid" not in params or params["profile_table_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_table_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch'" + "Missing the required parameter 'profile_table_guid' when calling 'update_profile_table'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py index 717f50ef..4a3b7cf2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py @@ -33,28 +33,41 @@ class SchemaProfilesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_profiles_get( - self, - ) -> "Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None]": - """Get AllProfilesInfo + def create_profile( + self, *, body: "Optional[GrantaServerApiSchemaProfilesCreateProfile]" = None + ) -> "Union[GrantaServerApiSchemaProfilesProfile, None]": + """Create a new profile This method makes a synchronous HTTP request. + Parameters + ---------- + body: GrantaServerApiSchemaProfilesCreateProfile + Returns ------- - Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None] + Union[GrantaServerApiSchemaProfilesProfile, None] """ - data = self._v1alpha_profiles_get_with_http_info(_return_http_data_only=True) + data = self._create_profile_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_profiles_get_with_http_info(self, **kwargs: Any) -> Any: - all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] + def _create_profile_with_http_info( + self, + body: "Optional[GrantaServerApiSchemaProfilesCreateProfile]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "body", + "_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 v1alpha_profiles_get" + f"Got an unexpected keyword argument '{key}' to method create_profile" ) params[key] = val del params["kwargs"] @@ -71,19 +84,32 @@ def _v1alpha_profiles_get_with_http_info(self, **kwargs: Any) -> 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 = { - 200: "GrantaServerApiSchemaProfilesAllProfilesInfo", + 201: "GrantaServerApiSchemaProfilesProfile", + 400: None, 403: None, } return self.api_client.call_api( "/v1alpha/profiles", - "GET", + "POST", path_params, query_params, header_params, @@ -97,35 +123,27 @@ def _v1alpha_profiles_get_with_http_info(self, **kwargs: Any) -> Any: response_type_map=response_type_map, ) - def v1alpha_profiles_patch( - self, - *, - body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None, - ) -> "Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None]": - """Update AllProfilesInfo + def delete_profile(self, *, profile_guid: "str") -> "None": + """Delete a profile This method makes a synchronous HTTP request. Parameters ---------- - body: GrantaServerApiSchemaProfilesUpdateAllProfilesInfo + profile_guid: str Returns ------- - Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None] + None """ - data = self._v1alpha_profiles_patch_with_http_info( - body, _return_http_data_only=True + data = self._delete_profile_with_http_info( + profile_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_patch_with_http_info( - self, - body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None, - **kwargs: Any, - ) -> Any: + def _delete_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any: all_params = [ - "body", + "profile_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -135,14 +153,21 @@ def _v1alpha_profiles_patch_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_patch" + f"Got an unexpected keyword argument '{key}' to method delete_profile" ) params[key] = val del params["kwargs"] + # verify the required parameter "profile_guid" is set + if "profile_guid" not in params or params["profile_guid"] is None: + raise ValueError( + "Missing the required parameter 'profile_guid' when calling 'delete_profile'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "profile_guid" in params and profile_guid is not None: + path_params["profile-guid"] = params["profile_guid"] query_params: List[Any] = [] @@ -152,33 +177,17 @@ def _v1alpha_profiles_patch_with_http_info( 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 = { - 200: "GrantaServerApiSchemaProfilesAllProfilesInfo", + 200: None, 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/profiles", - "PATCH", + "/v1alpha/profiles/{profile-guid}", + "DELETE", path_params, query_params, header_params, @@ -192,33 +201,29 @@ def _v1alpha_profiles_patch_with_http_info( response_type_map=response_type_map, ) - def v1alpha_profiles_post( - self, *, body: "Optional[GrantaServerApiSchemaProfilesCreateProfile]" = None + def get_profile( + self, *, profile_guid: "str" ) -> "Union[GrantaServerApiSchemaProfilesProfile, None]": - """Create a new profile + """Get individual profile This method makes a synchronous HTTP request. Parameters ---------- - body: GrantaServerApiSchemaProfilesCreateProfile + profile_guid: str Returns ------- Union[GrantaServerApiSchemaProfilesProfile, None] """ - data = self._v1alpha_profiles_post_with_http_info( - body, _return_http_data_only=True + data = self._get_profile_with_http_info( + profile_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_post_with_http_info( - self, - body: "Optional[GrantaServerApiSchemaProfilesCreateProfile]" = None, - **kwargs: Any, - ) -> Any: + def _get_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any: all_params = [ - "body", + "profile_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -228,14 +233,21 @@ def _v1alpha_profiles_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_post" + f"Got an unexpected keyword argument '{key}' to method get_profile" ) params[key] = val del params["kwargs"] + # verify the required parameter "profile_guid" is set + if "profile_guid" not in params or params["profile_guid"] is None: + raise ValueError( + "Missing the required parameter 'profile_guid' when calling 'get_profile'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "profile_guid" in params and profile_guid is not None: + path_params["profile-guid"] = params["profile_guid"] query_params: List[Any] = [] @@ -245,32 +257,20 @@ def _v1alpha_profiles_post_with_http_info( 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 = { - 201: "GrantaServerApiSchemaProfilesProfile", - 400: None, + 200: "GrantaServerApiSchemaProfilesProfile", 403: None, + 404: None, } return self.api_client.call_api( - "/v1alpha/profiles", - "POST", + "/v1alpha/profiles/{profile-guid}", + "GET", path_params, query_params, header_params, @@ -284,53 +284,35 @@ def _v1alpha_profiles_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_profiles_profile_guid_delete(self, *, profile_guid: "str") -> "None": - """Delete a profile + def get_profiles( + self, + ) -> "Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None]": + """Get AllProfilesInfo This method makes a synchronous HTTP request. - Parameters - ---------- - profile_guid: str - Returns ------- - None + Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None] """ - data = self._v1alpha_profiles_profile_guid_delete_with_http_info( - profile_guid, _return_http_data_only=True - ) + data = self._get_profiles_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_delete_with_http_info( - self, profile_guid: "str", **kwargs: Any - ) -> Any: - all_params = [ - "profile_guid", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_profiles_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 v1alpha_profiles_profile_guid_delete" + f"Got an unexpected keyword argument '{key}' to method get_profiles" ) params[key] = val del params["kwargs"] - # verify the required parameter "profile_guid" is set - if "profile_guid" not in params or params["profile_guid"] is None: - raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_delete'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "profile_guid" in params and profile_guid is not None: - path_params["profile-guid"] = params["profile_guid"] query_params: List[Any] = [] @@ -340,17 +322,19 @@ def _v1alpha_profiles_profile_guid_delete_with_http_info( 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 = { - 200: None, - 400: None, + 200: "GrantaServerApiSchemaProfilesAllProfilesInfo", 403: None, - 404: None, } return self.api_client.call_api( - "/v1alpha/profiles/{profile-guid}", - "DELETE", + "/v1alpha/profiles", + "GET", path_params, query_params, header_params, @@ -364,31 +348,35 @@ def _v1alpha_profiles_profile_guid_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_profiles_profile_guid_get( - self, *, profile_guid: "str" - ) -> "Union[GrantaServerApiSchemaProfilesProfile, None]": - """Get individual profile + def update_all_profiles_info( + self, + *, + body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None, + ) -> "Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None]": + """Update AllProfilesInfo This method makes a synchronous HTTP request. Parameters ---------- - profile_guid: str + body: GrantaServerApiSchemaProfilesUpdateAllProfilesInfo Returns ------- - Union[GrantaServerApiSchemaProfilesProfile, None] + Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None] """ - data = self._v1alpha_profiles_profile_guid_get_with_http_info( - profile_guid, _return_http_data_only=True + data = self._update_all_profiles_info_with_http_info( + body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_get_with_http_info( - self, profile_guid: "str", **kwargs: Any + def _update_all_profiles_info_with_http_info( + self, + body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None, + **kwargs: Any, ) -> Any: all_params = [ - "profile_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -398,21 +386,14 @@ def _v1alpha_profiles_profile_guid_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_profile_guid_get" + f"Got an unexpected keyword argument '{key}' to method update_all_profiles_info" ) params[key] = val del params["kwargs"] - # verify the required parameter "profile_guid" is set - if "profile_guid" not in params or params["profile_guid"] is None: - raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_get'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "profile_guid" in params and profile_guid is not None: - path_params["profile-guid"] = params["profile_guid"] query_params: List[Any] = [] @@ -422,20 +403,33 @@ def _v1alpha_profiles_profile_guid_get_with_http_info( 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 = { - 200: "GrantaServerApiSchemaProfilesProfile", + 200: "GrantaServerApiSchemaProfilesAllProfilesInfo", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/profiles/{profile-guid}", - "GET", + "/v1alpha/profiles", + "PATCH", path_params, query_params, header_params, @@ -449,7 +443,7 @@ def _v1alpha_profiles_profile_guid_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_profiles_profile_guid_patch( + def update_profile( self, *, profile_guid: "str", @@ -468,12 +462,12 @@ def v1alpha_profiles_profile_guid_patch( ------- Union[GrantaServerApiSchemaProfilesProfile, None] """ - data = self._v1alpha_profiles_profile_guid_patch_with_http_info( + data = self._update_profile_with_http_info( profile_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_profiles_profile_guid_patch_with_http_info( + def _update_profile_with_http_info( self, profile_guid: "str", body: "Optional[GrantaServerApiSchemaProfilesUpdateProfile]" = None, @@ -491,14 +485,14 @@ def _v1alpha_profiles_profile_guid_patch_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_profiles_profile_guid_patch" + f"Got an unexpected keyword argument '{key}' to method update_profile" ) params[key] = val del params["kwargs"] # verify the required parameter "profile_guid" is set if "profile_guid" not in params or params["profile_guid"] is None: raise ValueError( - "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_patch'" + "Missing the required parameter 'profile_guid' when calling 'update_profile'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py index 01bc00e4..91137eff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py @@ -33,15 +33,14 @@ class SchemaRecordLinkGroupsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guid_record_link_groups_get( + def create_record_link_group( self, *, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None]": - """Get all record link groups + body: "Optional[GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup]" = None, + ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None]": + """Create a new record link group. This method makes a synchronous HTTP request. @@ -49,33 +48,28 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_get( ---------- database_key: str table_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. + body: GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup Returns ------- - Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None] + Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_with_http_info( - database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True + data = self._create_record_link_group_with_http_info( + database_key, table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_with_http_info( + def _create_record_link_group_with_http_info( self, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + body: "Optional[GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "mode", - "x_ansys_vc_mode", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -85,19 +79,19 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_wit for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_get" + f"Got an unexpected keyword argument '{key}' to method create_record_link_group" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_get'" + "Missing the required parameter 'database_key' when calling 'create_record_link_group'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_get'" + "Missing the required parameter 'table_guid' when calling 'create_record_link_group'" ) collection_formats: Dict[str, Any] = {} @@ -109,30 +103,40 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_wit path_params["table-guid"] = params["table_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 = { - 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", + 201: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups", - "GET", + "POST", path_params, query_params, header_params, @@ -146,14 +150,15 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_wit response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_link_groups_post( + def delete_record_link_group( self, *, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup]" = None, - ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None]": - """Create a new record link group. + record_link_group_guid: "str", + record_link_group_type: "str", + ) -> "None": + """Delete a record link group. This method makes a synchronous HTTP request. @@ -161,28 +166,36 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_post( ---------- database_key: str table_guid: str - body: GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup + record_link_group_guid: str + record_link_group_type: str + The record link group type. Returns ------- - Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None] + None """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_with_http_info( - database_key, table_guid, body, _return_http_data_only=True + data = self._delete_record_link_group_with_http_info( + database_key, + table_guid, + record_link_group_guid, + record_link_group_type, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_with_http_info( + def _delete_record_link_group_with_http_info( self, database_key: "str", table_guid: "str", - body: "Optional[GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup]" = None, + record_link_group_guid: "str", + record_link_group_type: "str", **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "body", + "record_link_group_guid", + "record_link_group_type", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -192,19 +205,35 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_wi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_post" + f"Got an unexpected keyword argument '{key}' to method delete_record_link_group" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_post'" + "Missing the required parameter 'database_key' when calling 'delete_record_link_group'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_post'" + "Missing the required parameter 'table_guid' when calling 'delete_record_link_group'" + ) + # verify the required parameter "record_link_group_guid" is set + if ( + "record_link_group_guid" not in params + or params["record_link_group_guid"] is None + ): + raise ValueError( + "Missing the required parameter 'record_link_group_guid' when calling 'delete_record_link_group'" + ) + # verify the required parameter "record_link_group_type" is set + if ( + "record_link_group_type" not in params + or params["record_link_group_type"] is None + ): + raise ValueError( + "Missing the required parameter 'record_link_group_type' when calling 'delete_record_link_group'" ) collection_formats: Dict[str, Any] = {} @@ -214,6 +243,10 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_wi 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_link_group_guid" in params and record_link_group_guid is not None: + path_params["record-link-group-guid"] = params["record_link_group_guid"] + if "record_link_group_type" in params and record_link_group_type is not None: + path_params["record-link-group-type"] = params["record_link_group_type"] query_params: List[Any] = [] @@ -223,33 +256,16 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_wi 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 = { - 201: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", - 400: None, + 200: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}/{record-link-group-type}", + "DELETE", path_params, query_params, header_params, @@ -263,15 +279,15 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_wi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch( + def get_inbound_record_link_groups( self, *, database_key: "str", table_guid: "str", - record_link_group_guid: "str", - body: "Optional[GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup]" = None, - ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None]": - """Update record link group. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None]": + """Get all record link groups pointing towards provided table This method makes a synchronous HTTP request. @@ -279,35 +295,33 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_l ---------- database_key: str table_guid: str - record_link_group_guid: str - body: GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup + 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[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None] + Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch_with_http_info( - database_key, - table_guid, - record_link_group_guid, - body, - _return_http_data_only=True, + data = self._get_inbound_record_link_groups_with_http_info( + database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch_with_http_info( + def _get_inbound_record_link_groups_with_http_info( self, database_key: "str", table_guid: "str", - record_link_group_guid: "str", - body: "Optional[GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "record_link_group_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -317,27 +331,19 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_inbound_record_link_groups" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_inbound_record_link_groups'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch'" - ) - # verify the required parameter "record_link_group_guid" is set - if ( - "record_link_group_guid" not in params - or params["record_link_group_guid"] is None - ): - raise ValueError( - "Missing the required parameter 'record_link_group_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch'" + "Missing the required parameter 'table_guid' when calling 'get_inbound_record_link_groups'" ) collection_formats: Dict[str, Any] = {} @@ -347,44 +353,32 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ 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_link_group_guid" in params and record_link_group_guid is not None: - path_params["record-link-group-guid"] = params["record_link_group_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 = { - 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups:inbound-link-groups", + "GET", path_params, query_params, header_params, @@ -398,15 +392,17 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete( + def get_record_link_group( self, *, database_key: "str", table_guid: "str", record_link_group_guid: "str", record_link_group_type: "str", - ) -> "None": - """Delete a record link group. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None]": + """Get individual record link group This method makes a synchronous HTTP request. @@ -417,26 +413,34 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_l record_link_group_guid: str record_link_group_type: str The record link group type. + 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 ------- - None + Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete_with_http_info( + data = self._get_record_link_group_with_http_info( database_key, table_guid, record_link_group_guid, record_link_group_type, + mode, + x_ansys_vc_mode, _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete_with_http_info( + def _get_record_link_group_with_http_info( self, database_key: "str", table_guid: "str", record_link_group_guid: "str", record_link_group_type: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ @@ -444,6 +448,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ "table_guid", "record_link_group_guid", "record_link_group_type", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -453,19 +459,19 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete" + f"Got an unexpected keyword argument '{key}' to method get_record_link_group" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete'" + "Missing the required parameter 'database_key' when calling 'get_record_link_group'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete'" + "Missing the required parameter 'table_guid' when calling 'get_record_link_group'" ) # verify the required parameter "record_link_group_guid" is set if ( @@ -473,7 +479,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ or params["record_link_group_guid"] is None ): raise ValueError( - "Missing the required parameter 'record_link_group_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete'" + "Missing the required parameter 'record_link_group_guid' when calling 'get_record_link_group'" ) # verify the required parameter "record_link_group_type" is set if ( @@ -481,7 +487,7 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ or params["record_link_group_type"] is None ): raise ValueError( - "Missing the required parameter 'record_link_group_type' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete'" + "Missing the required parameter 'record_link_group_type' when calling 'get_record_link_group'" ) collection_formats: Dict[str, Any] = {} @@ -497,23 +503,30 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ path_params["record-link-group-type"] = params["record_link_group_type"] 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 = { - 200: None, - 403: None, + 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}/{record-link-group-type}", - "DELETE", + "GET", path_params, query_params, header_params, @@ -527,17 +540,15 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get( + def get_record_link_groups( self, *, database_key: "str", table_guid: "str", - record_link_group_guid: "str", - record_link_group_type: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None]": - """Get individual record link group + ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None]": + """Get all record link groups This method makes a synchronous HTTP request. @@ -545,9 +556,6 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_l ---------- database_key: str table_guid: str - record_link_group_guid: str - record_link_group_type: str - The record link group type. 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 @@ -555,25 +563,17 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_l Returns ------- - Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None] + Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get_with_http_info( - database_key, - table_guid, - record_link_group_guid, - record_link_group_type, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, + data = self._get_record_link_groups_with_http_info( + database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get_with_http_info( + def _get_record_link_groups_with_http_info( self, database_key: "str", table_guid: "str", - record_link_group_guid: "str", - record_link_group_type: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, @@ -581,8 +581,6 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ all_params = [ "database_key", "table_guid", - "record_link_group_guid", - "record_link_group_type", "mode", "x_ansys_vc_mode", "_return_http_data_only", @@ -594,35 +592,19 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get" + f"Got an unexpected keyword argument '{key}' to method get_record_link_groups" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get'" + "Missing the required parameter 'database_key' when calling 'get_record_link_groups'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get'" - ) - # verify the required parameter "record_link_group_guid" is set - if ( - "record_link_group_guid" not in params - or params["record_link_group_guid"] is None - ): - raise ValueError( - "Missing the required parameter 'record_link_group_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get'" - ) - # verify the required parameter "record_link_group_type" is set - if ( - "record_link_group_type" not in params - or params["record_link_group_type"] is None - ): - raise ValueError( - "Missing the required parameter 'record_link_group_type' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get'" + "Missing the required parameter 'table_guid' when calling 'get_record_link_groups'" ) collection_formats: Dict[str, Any] = {} @@ -632,10 +614,6 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ 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_link_group_guid" in params and record_link_group_guid is not None: - path_params["record-link-group-guid"] = params["record_link_group_guid"] - if "record_link_group_type" in params and record_link_group_type is not None: - path_params["record-link-group-type"] = params["record_link_group_type"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -655,12 +633,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ ) response_type_map = { - 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", + 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}/{record-link-group-type}", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups", "GET", path_params, query_params, @@ -675,15 +653,15 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get( + def update_record_link_group( self, *, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None]": - """Get all record link groups pointing towards provided table + record_link_group_guid: "str", + body: "Optional[GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup]" = None, + ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None]": + """Update record link group. This method makes a synchronous HTTP request. @@ -691,33 +669,35 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_l ---------- database_key: str table_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. + record_link_group_guid: str + body: GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup Returns ------- - Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, None] + Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get_with_http_info( - database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True + data = self._update_record_link_group_with_http_info( + database_key, + table_guid, + record_link_group_guid, + body, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get_with_http_info( + def _update_record_link_group_with_http_info( self, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + record_link_group_guid: "str", + body: "Optional[GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "mode", - "x_ansys_vc_mode", + "record_link_group_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -727,19 +707,27 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get" + f"Got an unexpected keyword argument '{key}' to method update_record_link_group" ) 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get'" + "Missing the required parameter 'database_key' when calling 'update_record_link_group'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get'" + "Missing the required parameter 'table_guid' when calling 'update_record_link_group'" + ) + # verify the required parameter "record_link_group_guid" is set + if ( + "record_link_group_guid" not in params + or params["record_link_group_guid"] is None + ): + raise ValueError( + "Missing the required parameter 'record_link_group_guid' when calling 'update_record_link_group'" ) collection_formats: Dict[str, Any] = {} @@ -749,32 +737,44 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_ 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_link_group_guid" in params and record_link_group_guid is not None: + path_params["record-link-group-guid"] = params["record_link_group_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 = { - 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", + 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups:inbound-link-groups", - "GET", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py index c4be718a..f8c348ef 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py @@ -33,31 +33,39 @@ class SchemaStandardNamesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_standard_names_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaStandardNamesStandardNamesInfo, None]": - """Gets all standard names for a given database. + def create_standard_name( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaStandardNamesCreateStandardName]" = None, + ) -> "Union[GrantaServerApiSchemaStandardNamesStandardName, None]": + """Create a new standard name This method makes a synchronous HTTP request. Parameters ---------- database_key: str + body: GrantaServerApiSchemaStandardNamesCreateStandardName Returns ------- - Union[GrantaServerApiSchemaStandardNamesStandardNamesInfo, None] + Union[GrantaServerApiSchemaStandardNamesStandardName, None] """ - data = self._v1alpha_databases_database_key_standard_names_get_with_http_info( - database_key, _return_http_data_only=True + data = self._create_standard_name_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_standard_names_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _create_standard_name_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaStandardNamesCreateStandardName]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -67,14 +75,14 @@ def _v1alpha_databases_database_key_standard_names_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_standard_names_get" + f"Got an unexpected keyword argument '{key}' to method create_standard_name" ) 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 'v1alpha_databases_database_key_standard_names_get'" + "Missing the required parameter 'database_key' when calling 'create_standard_name'" ) collection_formats: Dict[str, Any] = {} @@ -91,19 +99,33 @@ def _v1alpha_databases_database_key_standard_names_get_with_http_info( 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 = { - 200: "GrantaServerApiSchemaStandardNamesStandardNamesInfo", + 201: "GrantaServerApiSchemaStandardNamesStandardName", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/standard-names", - "GET", + "POST", path_params, query_params, header_params, @@ -117,39 +139,33 @@ def _v1alpha_databases_database_key_standard_names_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_standard_names_post( - self, - *, - database_key: "str", - body: "Optional[GrantaServerApiSchemaStandardNamesCreateStandardName]" = None, - ) -> "Union[GrantaServerApiSchemaStandardNamesStandardName, None]": - """Create a new standard name + def delete_standard_name( + self, *, database_key: "str", standard_name_guid: "str" + ) -> "None": + """Delete a standard name. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaStandardNamesCreateStandardName + standard_name_guid: str Returns ------- - Union[GrantaServerApiSchemaStandardNamesStandardName, None] + None """ - data = self._v1alpha_databases_database_key_standard_names_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._delete_standard_name_with_http_info( + database_key, standard_name_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_standard_names_post_with_http_info( - self, - database_key: "str", - body: "Optional[GrantaServerApiSchemaStandardNamesCreateStandardName]" = None, - **kwargs: Any, + def _delete_standard_name_with_http_info( + self, database_key: "str", standard_name_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "body", + "standard_name_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -159,14 +175,19 @@ def _v1alpha_databases_database_key_standard_names_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_standard_names_post" + f"Got an unexpected keyword argument '{key}' to method delete_standard_name" ) 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 'v1alpha_databases_database_key_standard_names_post'" + "Missing the required parameter 'database_key' when calling 'delete_standard_name'" + ) + # verify the required parameter "standard_name_guid" is set + if "standard_name_guid" not in params or params["standard_name_guid"] is None: + raise ValueError( + "Missing the required parameter 'standard_name_guid' when calling 'delete_standard_name'" ) collection_formats: Dict[str, Any] = {} @@ -174,6 +195,8 @@ def _v1alpha_databases_database_key_standard_names_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "standard_name_guid" in params and standard_name_guid is not None: + path_params["standard-name-guid"] = params["standard_name_guid"] query_params: List[Any] = [] @@ -183,33 +206,17 @@ def _v1alpha_databases_database_key_standard_names_post_with_http_info( 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 = { - 201: "GrantaServerApiSchemaStandardNamesStandardName", + 200: None, 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/standard-names", - "POST", + "/v1alpha/databases/{database-key}/standard-names/{standard-name-guid}", + "DELETE", path_params, query_params, header_params, @@ -223,10 +230,10 @@ def _v1alpha_databases_database_key_standard_names_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_standard_names_standard_name_guid_delete( + def get_standard_name( self, *, database_key: "str", standard_name_guid: "str" - ) -> "None": - """Delete a standard name. + ) -> "Union[GrantaServerApiSchemaStandardNamesStandardName, None]": + """Gets a standard name for a given database and guid. This method makes a synchronous HTTP request. @@ -237,14 +244,14 @@ def v1alpha_databases_database_key_standard_names_standard_name_guid_delete( Returns ------- - None + Union[GrantaServerApiSchemaStandardNamesStandardName, None] """ - data = self._v1alpha_databases_database_key_standard_names_standard_name_guid_delete_with_http_info( + data = self._get_standard_name_with_http_info( database_key, standard_name_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_standard_names_standard_name_guid_delete_with_http_info( + def _get_standard_name_with_http_info( self, database_key: "str", standard_name_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -259,19 +266,19 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_delete_wit for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_standard_names_standard_name_guid_delete" + f"Got an unexpected keyword argument '{key}' to method get_standard_name" ) 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 'v1alpha_databases_database_key_standard_names_standard_name_guid_delete'" + "Missing the required parameter 'database_key' when calling 'get_standard_name'" ) # verify the required parameter "standard_name_guid" is set if "standard_name_guid" not in params or params["standard_name_guid"] is None: raise ValueError( - "Missing the required parameter 'standard_name_guid' when calling 'v1alpha_databases_database_key_standard_names_standard_name_guid_delete'" + "Missing the required parameter 'standard_name_guid' when calling 'get_standard_name'" ) collection_formats: Dict[str, Any] = {} @@ -290,17 +297,19 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_delete_wit 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 = { - 200: None, - 400: None, - 403: None, + 200: "GrantaServerApiSchemaStandardNamesStandardName", 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/standard-names/{standard-name-guid}", - "DELETE", + "GET", path_params, query_params, header_params, @@ -314,33 +323,31 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_delete_wit response_type_map=response_type_map, ) - def v1alpha_databases_database_key_standard_names_standard_name_guid_get( - self, *, database_key: "str", standard_name_guid: "str" - ) -> "Union[GrantaServerApiSchemaStandardNamesStandardName, None]": - """Gets a standard name for a given database and guid. + def get_standard_names( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaStandardNamesStandardNamesInfo, None]": + """Gets all standard names for a given database. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - standard_name_guid: str Returns ------- - Union[GrantaServerApiSchemaStandardNamesStandardName, None] + Union[GrantaServerApiSchemaStandardNamesStandardNamesInfo, None] """ - data = self._v1alpha_databases_database_key_standard_names_standard_name_guid_get_with_http_info( - database_key, standard_name_guid, _return_http_data_only=True + data = self._get_standard_names_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_standard_names_standard_name_guid_get_with_http_info( - self, database_key: "str", standard_name_guid: "str", **kwargs: Any + def _get_standard_names_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "standard_name_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -350,19 +357,14 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_get_with_h for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_standard_names_standard_name_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_standard_names" ) 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 'v1alpha_databases_database_key_standard_names_standard_name_guid_get'" - ) - # verify the required parameter "standard_name_guid" is set - if "standard_name_guid" not in params or params["standard_name_guid"] is None: - raise ValueError( - "Missing the required parameter 'standard_name_guid' when calling 'v1alpha_databases_database_key_standard_names_standard_name_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_standard_names'" ) collection_formats: Dict[str, Any] = {} @@ -370,8 +372,6 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_get_with_h path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "standard_name_guid" in params and standard_name_guid is not None: - path_params["standard-name-guid"] = params["standard_name_guid"] query_params: List[Any] = [] @@ -387,12 +387,12 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_get_with_h ) response_type_map = { - 200: "GrantaServerApiSchemaStandardNamesStandardName", + 200: "GrantaServerApiSchemaStandardNamesStandardNamesInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/standard-names/{standard-name-guid}", + "/v1alpha/databases/{database-key}/standard-names", "GET", path_params, query_params, @@ -407,7 +407,7 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_get_with_h response_type_map=response_type_map, ) - def v1alpha_databases_database_key_standard_names_standard_name_guid_patch( + def update_standard_name( self, *, database_key: "str", @@ -428,12 +428,12 @@ def v1alpha_databases_database_key_standard_names_standard_name_guid_patch( ------- Union[GrantaServerApiSchemaStandardNamesStandardName, None] """ - data = self._v1alpha_databases_database_key_standard_names_standard_name_guid_patch_with_http_info( + data = self._update_standard_name_with_http_info( database_key, standard_name_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_standard_names_standard_name_guid_patch_with_http_info( + def _update_standard_name_with_http_info( self, database_key: "str", standard_name_guid: "str", @@ -453,19 +453,19 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_patch_with for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_standard_names_standard_name_guid_patch" + f"Got an unexpected keyword argument '{key}' to method update_standard_name" ) 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 'v1alpha_databases_database_key_standard_names_standard_name_guid_patch'" + "Missing the required parameter 'database_key' when calling 'update_standard_name'" ) # verify the required parameter "standard_name_guid" is set if "standard_name_guid" not in params or params["standard_name_guid"] is None: raise ValueError( - "Missing the required parameter 'standard_name_guid' when calling 'v1alpha_databases_database_key_standard_names_standard_name_guid_patch'" + "Missing the required parameter 'standard_name_guid' when calling 'update_standard_name'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py index a645d664..162e3346 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py @@ -33,15 +33,15 @@ class SchemaSubsetsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guid_subsets_get( + def add_to_subset( self, *, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaSubsetsSubsetsInfo, None]": - """Get all subsets for table + subset_guid: "str", + body: "Optional[GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset]" = None, + ) -> "None": + """Add a record history to a subset. This method makes a synchronous HTTP request. @@ -49,33 +49,31 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_get( ---------- database_key: str table_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. + subset_guid: str + body: GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset Returns ------- - Union[GrantaServerApiSchemaSubsetsSubsetsInfo, None] + None """ - data = self._v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info( - database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True + data = self._add_to_subset_with_http_info( + database_key, table_guid, subset_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info( + def _add_to_subset_with_http_info( self, database_key: "str", table_guid: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + subset_guid: "str", + body: "Optional[GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "mode", - "x_ansys_vc_mode", + "subset_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -85,19 +83,24 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_get" + f"Got an unexpected keyword argument '{key}' to method add_to_subset" ) 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 'v1alpha_databases_database_key_tables_table_guid_subsets_get'" + "Missing the required parameter 'database_key' when calling 'add_to_subset'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_subsets_get'" + "Missing the required parameter 'table_guid' when calling 'add_to_subset'" + ) + # verify the required parameter "subset_guid" is set + if "subset_guid" not in params or params["subset_guid"] is None: + raise ValueError( + "Missing the required parameter 'subset_guid' when calling 'add_to_subset'" ) collection_formats: Dict[str, Any] = {} @@ -107,32 +110,39 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info 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 "subset_guid" in params and subset_guid is not None: + path_params["subset-guid"] = params["subset_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"] + if "body" in params and body is not None: + body_params = params["body"] + # 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 = { - 200: "GrantaServerApiSchemaSubsetsSubsetsInfo", + 200: None, + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets", - "GET", + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:add-to-subset", + "POST", path_params, query_params, header_params, @@ -146,7 +156,7 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_subsets_post( + def create_subset( self, *, database_key: "str", @@ -167,12 +177,12 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_post( ------- Union[GrantaServerApiSchemaSubsetsSubset, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_info( + data = self._create_subset_with_http_info( database_key, table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_info( + def _create_subset_with_http_info( self, database_key: "str", table_guid: "str", @@ -192,19 +202,19 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_inf for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_post" + f"Got an unexpected keyword argument '{key}' to method create_subset" ) 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 'v1alpha_databases_database_key_tables_table_guid_subsets_post'" + "Missing the required parameter 'database_key' when calling 'create_subset'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_subsets_post'" + "Missing the required parameter 'table_guid' when calling 'create_subset'" ) collection_formats: Dict[str, Any] = {} @@ -263,7 +273,7 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_inf response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete( + def delete_subset( self, *, database_key: "str", table_guid: "str", subset_guid: "str" ) -> "None": """Delete a subset. @@ -280,12 +290,12 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete( ------- None """ - data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete_with_http_info( + data = self._delete_subset_with_http_info( database_key, table_guid, subset_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete_with_http_info( + def _delete_subset_with_http_info( self, database_key: "str", table_guid: "str", subset_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -301,24 +311,24 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete" + f"Got an unexpected keyword argument '{key}' to method delete_subset" ) 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete'" + "Missing the required parameter 'database_key' when calling 'delete_subset'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'delete_subset'" ) # verify the required parameter "subset_guid" is set if "subset_guid" not in params or params["subset_guid"] is None: raise ValueError( - "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete'" + "Missing the required parameter 'subset_guid' when calling 'delete_subset'" ) collection_formats: Dict[str, Any] = {} @@ -363,7 +373,7 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get( + def get_subset( self, *, database_key: "str", @@ -390,7 +400,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get( ------- Union[GrantaServerApiSchemaSubsetsSubset, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_with_http_info( + data = self._get_subset_with_http_info( database_key, table_guid, subset_guid, @@ -400,7 +410,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get( ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_with_http_info( + def _get_subset_with_http_info( self, database_key: "str", table_guid: "str", @@ -424,24 +434,24 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_wi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_subset" ) 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_subset'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get'" + "Missing the required parameter 'table_guid' when calling 'get_subset'" ) # verify the required parameter "subset_guid" is set if "subset_guid" not in params or params["subset_guid"] is None: raise ValueError( - "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get'" + "Missing the required parameter 'subset_guid' when calling 'get_subset'" ) collection_formats: Dict[str, Any] = {} @@ -492,15 +502,15 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_wi response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch( + def get_subsets( self, *, database_key: "str", table_guid: "str", - subset_guid: "str", - body: "Optional[GrantaServerApiSchemaSubsetsUpdateSubset]" = None, - ) -> "Union[GrantaServerApiSchemaSubsetsSubset, None]": - """Update a subset. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaSubsetsSubsetsInfo, None]": + """Get all subsets for table This method makes a synchronous HTTP request. @@ -508,31 +518,33 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch( ---------- database_key: str table_guid: str - subset_guid: str - body: GrantaServerApiSchemaSubsetsUpdateSubset + 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[GrantaServerApiSchemaSubsetsSubset, None] + Union[GrantaServerApiSchemaSubsetsSubsetsInfo, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_with_http_info( - database_key, table_guid, subset_guid, body, _return_http_data_only=True + data = self._get_subsets_with_http_info( + database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_with_http_info( + def _get_subsets_with_http_info( self, database_key: "str", table_guid: "str", - subset_guid: "str", - body: "Optional[GrantaServerApiSchemaSubsetsUpdateSubset]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", - "subset_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -542,24 +554,19 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_subsets" ) 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_subsets'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch'" - ) - # verify the required parameter "subset_guid" is set - if "subset_guid" not in params or params["subset_guid"] is None: - raise ValueError( - "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch'" + "Missing the required parameter 'table_guid' when calling 'get_subsets'" ) collection_formats: Dict[str, Any] = {} @@ -569,44 +576,32 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_ 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 "subset_guid" in params and subset_guid is not None: - path_params["subset-guid"] = params["subset_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 = { - 200: "GrantaServerApiSchemaSubsetsSubset", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaSubsetsSubsetsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets", + "GET", path_params, query_params, header_params, @@ -620,15 +615,15 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post( + def remove_from_subset( self, *, database_key: "str", table_guid: "str", subset_guid: "str", - body: "Optional[GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset]" = None, + body: "Optional[GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset]" = None, ) -> "None": - """Add a record history to a subset. + """Remove a record history, and all of its descendants, from a subset. This method makes a synchronous HTTP request. @@ -637,23 +632,23 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_s database_key: str table_guid: str subset_guid: str - body: GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset + body: GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset Returns ------- None """ - data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post_with_http_info( + data = self._remove_from_subset_with_http_info( database_key, table_guid, subset_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post_with_http_info( + def _remove_from_subset_with_http_info( self, database_key: "str", table_guid: "str", subset_guid: "str", - body: "Optional[GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset]" = None, + body: "Optional[GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset]" = None, **kwargs: Any, ) -> Any: all_params = [ @@ -670,24 +665,24 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post" + f"Got an unexpected keyword argument '{key}' to method remove_from_subset" ) 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post'" + "Missing the required parameter 'database_key' when calling 'remove_from_subset'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post'" + "Missing the required parameter 'table_guid' when calling 'remove_from_subset'" ) # verify the required parameter "subset_guid" is set if "subset_guid" not in params or params["subset_guid"] is None: raise ValueError( - "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post'" + "Missing the required parameter 'subset_guid' when calling 'remove_from_subset'" ) collection_formats: Dict[str, Any] = {} @@ -728,7 +723,7 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_ } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:add-to-subset", + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:remove-from-subset", "POST", path_params, query_params, @@ -743,15 +738,15 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post( + def update_subset( self, *, database_key: "str", table_guid: "str", subset_guid: "str", - body: "Optional[GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset]" = None, - ) -> "None": - """Remove a record history, and all of its descendants, from a subset. + body: "Optional[GrantaServerApiSchemaSubsetsUpdateSubset]" = None, + ) -> "Union[GrantaServerApiSchemaSubsetsSubset, None]": + """Update a subset. This method makes a synchronous HTTP request. @@ -760,23 +755,23 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_f database_key: str table_guid: str subset_guid: str - body: GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset + body: GrantaServerApiSchemaSubsetsUpdateSubset Returns ------- - None + Union[GrantaServerApiSchemaSubsetsSubset, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post_with_http_info( + data = self._update_subset_with_http_info( database_key, table_guid, subset_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post_with_http_info( + def _update_subset_with_http_info( self, database_key: "str", table_guid: "str", subset_guid: "str", - body: "Optional[GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset]" = None, + body: "Optional[GrantaServerApiSchemaSubsetsUpdateSubset]" = None, **kwargs: Any, ) -> Any: all_params = [ @@ -793,24 +788,24 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post" + f"Got an unexpected keyword argument '{key}' to method update_subset" ) 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post'" + "Missing the required parameter 'database_key' when calling 'update_subset'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post'" + "Missing the required parameter 'table_guid' when calling 'update_subset'" ) # verify the required parameter "subset_guid" is set if "subset_guid" not in params or params["subset_guid"] is None: raise ValueError( - "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post'" + "Missing the required parameter 'subset_guid' when calling 'update_subset'" ) collection_formats: Dict[str, Any] = {} @@ -833,6 +828,11 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_ 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( [ @@ -844,15 +844,15 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_ ) response_type_map = { - 200: None, + 200: "GrantaServerApiSchemaSubsetsSubset", 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:remove-from-subset", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py index de232213..b1d02025 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py @@ -33,45 +33,39 @@ class SchemaTablesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_get( + def create_table( self, *, database_key: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiSchemaTablesTablesInfo, None]": - """Get all tables + body: "Optional[GrantaServerApiSchemaTablesCreateTable]" = None, + ) -> "Union[GrantaServerApiSchemaTablesTable, None]": + """Create a new table. This method makes a synchronous HTTP request. Parameters ---------- database_key: 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. + body: GrantaServerApiSchemaTablesCreateTable Returns ------- - Union[GrantaServerApiSchemaTablesTablesInfo, None] + Union[GrantaServerApiSchemaTablesTable, None] """ - data = self._v1alpha_databases_database_key_tables_get_with_http_info( - database_key, mode, x_ansys_vc_mode, _return_http_data_only=True + data = self._create_table_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_get_with_http_info( + def _create_table_with_http_info( self, database_key: "str", - mode: "Optional[str]" = None, - x_ansys_vc_mode: "Optional[str]" = None, + body: "Optional[GrantaServerApiSchemaTablesCreateTable]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", - "mode", - "x_ansys_vc_mode", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -81,14 +75,14 @@ def _v1alpha_databases_database_key_tables_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_get" + f"Got an unexpected keyword argument '{key}' to method create_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 'v1alpha_databases_database_key_tables_get'" + "Missing the required parameter 'database_key' when calling 'create_table'" ) collection_formats: Dict[str, Any] = {} @@ -98,30 +92,40 @@ def _v1alpha_databases_database_key_tables_get_with_http_info( path_params["database-key"] = params["database_key"] 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 = { - 200: "GrantaServerApiSchemaTablesTablesInfo", + 201: "GrantaServerApiSchemaTablesTable", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/tables", - "GET", + "POST", path_params, query_params, header_params, @@ -135,39 +139,33 @@ def _v1alpha_databases_database_key_tables_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_post( - self, - *, - database_key: "str", - body: "Optional[GrantaServerApiSchemaTablesCreateTable]" = None, - ) -> "Union[GrantaServerApiSchemaTablesTable, None]": - """Create a new table. + def delete_table( + self, *, database_key: "str", table_guid: "str" + ) -> "Union[GrantaServerApiExceptionsDeletionTableDeletionException, None]": + """Delete a table. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaTablesCreateTable + table_guid: str Returns ------- - Union[GrantaServerApiSchemaTablesTable, None] + Union[GrantaServerApiExceptionsDeletionTableDeletionException, None] """ - data = self._v1alpha_databases_database_key_tables_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._delete_table_with_http_info( + database_key, table_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_post_with_http_info( - self, - database_key: "str", - body: "Optional[GrantaServerApiSchemaTablesCreateTable]" = None, - **kwargs: Any, + def _delete_table_with_http_info( + self, database_key: "str", table_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "body", + "table_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -177,14 +175,19 @@ def _v1alpha_databases_database_key_tables_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_post" + f"Got an unexpected keyword argument '{key}' to method delete_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 'v1alpha_databases_database_key_tables_post'" + "Missing the required parameter 'database_key' when calling 'delete_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 'delete_table'" ) collection_formats: Dict[str, Any] = {} @@ -192,6 +195,8 @@ def _v1alpha_databases_database_key_tables_post_with_http_info( 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"] query_params: List[Any] = [] @@ -201,33 +206,21 @@ def _v1alpha_databases_database_key_tables_post_with_http_info( 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 = { - 201: "GrantaServerApiSchemaTablesTable", - 400: None, + 400: "GrantaServerApiExceptionsDeletionTableDeletionException", + 200: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}", + "DELETE", path_params, query_params, header_params, @@ -241,10 +234,10 @@ def _v1alpha_databases_database_key_tables_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_delete( + def enable_version_control( self, *, database_key: "str", table_guid: "str" - ) -> "Union[GrantaServerApiExceptionsDeletionTableDeletionException, None]": - """Delete a table. + ) -> "Union[GrantaServerApiSchemaTablesTable, None]": + """Enable version control on the table. This cannot be undone. After this method has been called all records and data in the table are in an unreleased state. This means that read users will not be able to see any records unless they are subsequently released. This method makes a synchronous HTTP request. @@ -255,14 +248,14 @@ def v1alpha_databases_database_key_tables_table_guid_delete( Returns ------- - Union[GrantaServerApiExceptionsDeletionTableDeletionException, None] + Union[GrantaServerApiSchemaTablesTable, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( + data = self._enable_version_control_with_http_info( database_key, table_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( + def _enable_version_control_with_http_info( self, database_key: "str", table_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -277,19 +270,19 @@ def _v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_delete" + f"Got an unexpected keyword argument '{key}' to method enable_version_control" ) 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 'v1alpha_databases_database_key_tables_table_guid_delete'" + "Missing the required parameter 'database_key' when calling 'enable_version_control'" ) # 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 'v1alpha_databases_database_key_tables_table_guid_delete'" + "Missing the required parameter 'table_guid' when calling 'enable_version_control'" ) collection_formats: Dict[str, Any] = {} @@ -314,15 +307,15 @@ def _v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( ) response_type_map = { - 400: "GrantaServerApiExceptionsDeletionTableDeletionException", - 200: None, + 200: "GrantaServerApiSchemaTablesTable", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/tables/{table-guid}:enable-version-control", + "POST", path_params, query_params, header_params, @@ -336,7 +329,7 @@ def _v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_get( + def get_table( self, *, database_key: "str", @@ -361,18 +354,12 @@ def v1alpha_databases_database_key_tables_table_guid_get( ------- Union[GrantaServerApiSchemaTablesTable, None] """ - data = ( - self._v1alpha_databases_database_key_tables_table_guid_get_with_http_info( - database_key, - table_guid, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, - ) + data = self._get_table_with_http_info( + database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_get_with_http_info( + def _get_table_with_http_info( self, database_key: "str", table_guid: "str", @@ -394,19 +381,19 @@ def _v1alpha_databases_database_key_tables_table_guid_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_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 'v1alpha_databases_database_key_tables_table_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_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 'v1alpha_databases_database_key_tables_table_guid_get'" + "Missing the required parameter 'table_guid' when calling 'get_table'" ) collection_formats: Dict[str, Any] = {} @@ -455,45 +442,45 @@ def _v1alpha_databases_database_key_tables_table_guid_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guid_patch( + def get_tables( self, *, database_key: "str", - table_guid: "str", - body: "Optional[GrantaServerApiSchemaTablesUpdateTable]" = None, - ) -> "Union[GrantaServerApiSchemaTablesTable, None]": - """Update a table. + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiSchemaTablesTablesInfo, None]": + """Get all tables This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_guid: str - body: GrantaServerApiSchemaTablesUpdateTable + 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[GrantaServerApiSchemaTablesTable, None] + Union[GrantaServerApiSchemaTablesTablesInfo, None] """ - data = ( - self._v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( - database_key, table_guid, body, _return_http_data_only=True - ) + data = self._get_tables_with_http_info( + database_key, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( + def _get_tables_with_http_info( self, database_key: "str", - table_guid: "str", - body: "Optional[GrantaServerApiSchemaTablesUpdateTable]" = None, + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, **kwargs: Any, ) -> Any: all_params = [ "database_key", - "table_guid", - "body", + "mode", + "x_ansys_vc_mode", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -503,19 +490,14 @@ def _v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_tables" ) 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 'v1alpha_databases_database_key_tables_table_guid_patch'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_tables'" ) collection_formats: Dict[str, Any] = {} @@ -523,44 +505,32 @@ def _v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( 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"] 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 = { - 200: "GrantaServerApiSchemaTablesTable", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaTablesTablesInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/tables", + "GET", path_params, query_params, header_params, @@ -574,10 +544,10 @@ def _v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guidenable_version_control_post( + def release_table( self, *, database_key: "str", table_guid: "str" - ) -> "Union[GrantaServerApiSchemaTablesTable, None]": - """Enable version control on the table. This cannot be undone. After this method has been called all records and data in the table are in an unreleased state. This means that read users will not be able to see any records unless they are subsequently released. + ) -> "Union[GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, GrantaServerApiSchemaTablesTable, None]": + """Releases the table. Table must be version-controlled and unreleased. This method makes a synchronous HTTP request. @@ -588,14 +558,14 @@ def v1alpha_databases_database_key_tables_table_guidenable_version_control_post( Returns ------- - Union[GrantaServerApiSchemaTablesTable, None] + Union[GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, GrantaServerApiSchemaTablesTable, None] """ - data = self._v1alpha_databases_database_key_tables_table_guidenable_version_control_post_with_http_info( + data = self._release_table_with_http_info( database_key, table_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guidenable_version_control_post_with_http_info( + def _release_table_with_http_info( self, database_key: "str", table_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -610,19 +580,19 @@ def _v1alpha_databases_database_key_tables_table_guidenable_version_control_post for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guidenable_version_control_post" + f"Got an unexpected keyword argument '{key}' to method release_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 'v1alpha_databases_database_key_tables_table_guidenable_version_control_post'" + "Missing the required parameter 'database_key' when calling 'release_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 'v1alpha_databases_database_key_tables_table_guidenable_version_control_post'" + "Missing the required parameter 'table_guid' when calling 'release_table'" ) collection_formats: Dict[str, Any] = {} @@ -648,13 +618,13 @@ def _v1alpha_databases_database_key_tables_table_guidenable_version_control_post response_type_map = { 200: "GrantaServerApiSchemaTablesTable", - 400: None, + 400: "GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException", 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}:enable-version-control", + "/v1alpha/databases/{database-key}/tables/{table-guid}:release", "POST", path_params, query_params, @@ -669,10 +639,14 @@ def _v1alpha_databases_database_key_tables_table_guidenable_version_control_post response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_guidrelease_post( - self, *, database_key: "str", table_guid: "str" - ) -> "Union[GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, GrantaServerApiSchemaTablesTable, None]": - """Releases the table. Table must be version-controlled and unreleased. + def update_table( + self, + *, + database_key: "str", + table_guid: "str", + body: "Optional[GrantaServerApiSchemaTablesUpdateTable]" = None, + ) -> "Union[GrantaServerApiSchemaTablesTable, None]": + """Update a table. This method makes a synchronous HTTP request. @@ -680,22 +654,28 @@ def v1alpha_databases_database_key_tables_table_guidrelease_post( ---------- database_key: str table_guid: str + body: GrantaServerApiSchemaTablesUpdateTable Returns ------- - Union[GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, GrantaServerApiSchemaTablesTable, None] + Union[GrantaServerApiSchemaTablesTable, None] """ - data = self._v1alpha_databases_database_key_tables_table_guidrelease_post_with_http_info( - database_key, table_guid, _return_http_data_only=True + data = self._update_table_with_http_info( + database_key, table_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guidrelease_post_with_http_info( - self, database_key: "str", table_guid: "str", **kwargs: Any + def _update_table_with_http_info( + self, + database_key: "str", + table_guid: "str", + body: "Optional[GrantaServerApiSchemaTablesUpdateTable]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "table_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -705,19 +685,19 @@ def _v1alpha_databases_database_key_tables_table_guidrelease_post_with_http_info for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guidrelease_post" + f"Got an unexpected keyword argument '{key}' to method update_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 'v1alpha_databases_database_key_tables_table_guidrelease_post'" + "Missing the required parameter 'database_key' when calling 'update_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 'v1alpha_databases_database_key_tables_table_guidrelease_post'" + "Missing the required parameter 'table_guid' when calling 'update_table'" ) collection_formats: Dict[str, Any] = {} @@ -736,21 +716,33 @@ def _v1alpha_databases_database_key_tables_table_guidrelease_post_with_http_info 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 = { 200: "GrantaServerApiSchemaTablesTable", - 400: "GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException", + 400: None, 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}:release", - "POST", + "/v1alpha/databases/{database-key}/tables/{table-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py index 2032c5e5..60124241 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py @@ -33,31 +33,39 @@ class SchemaUnitsApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_unit_systems_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaUnitsUnitSystemsInfo, None]": - """Get all unit systems in the database + def create_unit( + self, + *, + database_key: "str", + body: "Optional[GrantaServerApiSchemaUnitsCreateUnit]" = None, + ) -> "Union[GrantaServerApiSchemaUnitsUnit, None]": + """Create a new unit. This method makes a synchronous HTTP request. Parameters ---------- database_key: str + body: GrantaServerApiSchemaUnitsCreateUnit Returns ------- - Union[GrantaServerApiSchemaUnitsUnitSystemsInfo, None] + Union[GrantaServerApiSchemaUnitsUnit, None] """ - data = self._v1alpha_databases_database_key_unit_systems_get_with_http_info( - database_key, _return_http_data_only=True + data = self._create_unit_with_http_info( + database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_unit_systems_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _create_unit_with_http_info( + self, + database_key: "str", + body: "Optional[GrantaServerApiSchemaUnitsCreateUnit]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -67,14 +75,14 @@ def _v1alpha_databases_database_key_unit_systems_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_unit_systems_get" + f"Got an unexpected keyword argument '{key}' to method create_unit" ) 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 'v1alpha_databases_database_key_unit_systems_get'" + "Missing the required parameter 'database_key' when calling 'create_unit'" ) collection_formats: Dict[str, Any] = {} @@ -91,19 +99,33 @@ def _v1alpha_databases_database_key_unit_systems_get_with_http_info( 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 = { - 200: "GrantaServerApiSchemaUnitsUnitSystemsInfo", + 201: "GrantaServerApiSchemaUnitsUnit", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/unit-systems", - "GET", + "/v1alpha/databases/{database-key}/units", + "POST", path_params, query_params, header_params, @@ -117,7 +139,7 @@ def _v1alpha_databases_database_key_unit_systems_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_unit_systems_post( + def create_unit_system( self, *, database_key: "str", @@ -136,12 +158,12 @@ def v1alpha_databases_database_key_unit_systems_post( ------- Union[GrantaServerApiSchemaUnitsUnitSystem, None] """ - data = self._v1alpha_databases_database_key_unit_systems_post_with_http_info( + data = self._create_unit_system_with_http_info( database_key, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_unit_systems_post_with_http_info( + def _create_unit_system_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaUnitsCreateUnitSystem]" = None, @@ -159,14 +181,14 @@ def _v1alpha_databases_database_key_unit_systems_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_unit_systems_post" + f"Got an unexpected keyword argument '{key}' to method create_unit_system" ) 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 'v1alpha_databases_database_key_unit_systems_post'" + "Missing the required parameter 'database_key' when calling 'create_unit_system'" ) collection_formats: Dict[str, Any] = {} @@ -223,33 +245,31 @@ def _v1alpha_databases_database_key_unit_systems_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_unit_systems_unit_system_guid_delete( - self, *, database_key: "str", unit_system_guid: "str" - ) -> "None": - """Delete a unit system. + def delete_unit(self, *, database_key: "str", unit_guid: "str") -> "None": + """Delete unit. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - unit_system_guid: str + unit_guid: str Returns ------- None """ - data = self._v1alpha_databases_database_key_unit_systems_unit_system_guid_delete_with_http_info( - database_key, unit_system_guid, _return_http_data_only=True + data = self._delete_unit_with_http_info( + database_key, unit_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_unit_systems_unit_system_guid_delete_with_http_info( - self, database_key: "str", unit_system_guid: "str", **kwargs: Any + def _delete_unit_with_http_info( + self, database_key: "str", unit_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "unit_system_guid", + "unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -259,19 +279,19 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_delete_with_ht for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_unit_systems_unit_system_guid_delete" + f"Got an unexpected keyword argument '{key}' to method delete_unit" ) 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 'v1alpha_databases_database_key_unit_systems_unit_system_guid_delete'" + "Missing the required parameter 'database_key' when calling 'delete_unit'" ) - # verify the required parameter "unit_system_guid" is set - if "unit_system_guid" not in params or params["unit_system_guid"] is None: + # verify the required parameter "unit_guid" is set + if "unit_guid" not in params or params["unit_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_system_guid' when calling 'v1alpha_databases_database_key_unit_systems_unit_system_guid_delete'" + "Missing the required parameter 'unit_guid' when calling 'delete_unit'" ) collection_formats: Dict[str, Any] = {} @@ -279,8 +299,8 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_delete_with_ht path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "unit_system_guid" in params and unit_system_guid is not None: - path_params["unit-system-guid"] = params["unit_system_guid"] + if "unit_guid" in params and unit_guid is not None: + path_params["unit-guid"] = params["unit_guid"] query_params: List[Any] = [] @@ -299,7 +319,7 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_delete_with_ht } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/unit-systems/{unit-system-guid}", + "/v1alpha/databases/{database-key}/units/{unit-guid}", "DELETE", path_params, query_params, @@ -314,10 +334,10 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_delete_with_ht response_type_map=response_type_map, ) - def v1alpha_databases_database_key_unit_systems_unit_system_guid_get( + def delete_unit_system( self, *, database_key: "str", unit_system_guid: "str" - ) -> "Union[GrantaServerApiSchemaUnitsUnitSystem, None]": - """Get an individual unit system + ) -> "None": + """Delete a unit system. This method makes a synchronous HTTP request. @@ -328,14 +348,14 @@ def v1alpha_databases_database_key_unit_systems_unit_system_guid_get( Returns ------- - Union[GrantaServerApiSchemaUnitsUnitSystem, None] + None """ - data = self._v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_info( + data = self._delete_unit_system_with_http_info( database_key, unit_system_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_info( + def _delete_unit_system_with_http_info( self, database_key: "str", unit_system_guid: "str", **kwargs: Any ) -> Any: all_params = [ @@ -350,19 +370,19 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_ for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_unit_systems_unit_system_guid_get" + f"Got an unexpected keyword argument '{key}' to method delete_unit_system" ) 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 'v1alpha_databases_database_key_unit_systems_unit_system_guid_get'" + "Missing the required parameter 'database_key' when calling 'delete_unit_system'" ) # verify the required parameter "unit_system_guid" is set if "unit_system_guid" not in params or params["unit_system_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_system_guid' when calling 'v1alpha_databases_database_key_unit_systems_unit_system_guid_get'" + "Missing the required parameter 'unit_system_guid' when calling 'delete_unit_system'" ) collection_formats: Dict[str, Any] = {} @@ -381,19 +401,17 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_ 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 = { - 200: "GrantaServerApiSchemaUnitsUnitSystem", + 200: None, + 400: None, + 403: None, 404: None, } return self.api_client.call_api( "/v1alpha/databases/{database-key}/unit-systems/{unit-system-guid}", - "GET", + "DELETE", path_params, query_params, header_params, @@ -407,43 +425,33 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_ response_type_map=response_type_map, ) - def v1alpha_databases_database_key_unit_systems_unit_system_guid_patch( - self, - *, - database_key: "str", - unit_system_guid: "str", - body: "Optional[GrantaServerApiSchemaUnitsUpdateUnitSystem]" = None, - ) -> "Union[GrantaServerApiSchemaUnitsUnitSystem, None]": - """Update a unit system. + def get_compatible_units( + self, *, database_key: "str", unit_guid: "str" + ) -> "Union[GrantaServerApiSchemaUnitsUnitsInfo, None]": + """Get compatible units for unit This method makes a synchronous HTTP request. Parameters ---------- database_key: str - unit_system_guid: str - body: GrantaServerApiSchemaUnitsUpdateUnitSystem + unit_guid: str Returns ------- - Union[GrantaServerApiSchemaUnitsUnitSystem, None] + Union[GrantaServerApiSchemaUnitsUnitsInfo, None] """ - data = self._v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_http_info( - database_key, unit_system_guid, body, _return_http_data_only=True + data = self._get_compatible_units_with_http_info( + database_key, unit_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_http_info( - self, - database_key: "str", - unit_system_guid: "str", - body: "Optional[GrantaServerApiSchemaUnitsUpdateUnitSystem]" = None, - **kwargs: Any, + def _get_compatible_units_with_http_info( + self, database_key: "str", unit_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "unit_system_guid", - "body", + "unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -453,19 +461,19 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_htt for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_unit_systems_unit_system_guid_patch" + f"Got an unexpected keyword argument '{key}' to method get_compatible_units" ) 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 'v1alpha_databases_database_key_unit_systems_unit_system_guid_patch'" + "Missing the required parameter 'database_key' when calling 'get_compatible_units'" ) - # verify the required parameter "unit_system_guid" is set - if "unit_system_guid" not in params or params["unit_system_guid"] is None: + # verify the required parameter "unit_guid" is set + if "unit_guid" not in params or params["unit_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_system_guid' when calling 'v1alpha_databases_database_key_unit_systems_unit_system_guid_patch'" + "Missing the required parameter 'unit_guid' when calling 'get_compatible_units'" ) collection_formats: Dict[str, Any] = {} @@ -473,8 +481,8 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_htt path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "unit_system_guid" in params and unit_system_guid is not None: - path_params["unit-system-guid"] = params["unit_system_guid"] + if "unit_guid" in params and unit_guid is not None: + path_params["unit-guid"] = params["unit_guid"] query_params: List[Any] = [] @@ -484,33 +492,19 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_htt 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 = { - 200: "GrantaServerApiSchemaUnitsUnitSystem", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaUnitsUnitsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/unit-systems/{unit-system-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/units/{unit-guid}:compatible-units", + "GET", path_params, query_params, header_params, @@ -524,31 +518,33 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_htt response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_get( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaUnitsUnitsInfo, None]": - """Get all units + def get_unit( + self, *, database_key: "str", unit_guid: "str" + ) -> "Union[GrantaServerApiSchemaUnitsUnit, None]": + """Get individual units This method makes a synchronous HTTP request. Parameters ---------- database_key: str + unit_guid: str Returns ------- - Union[GrantaServerApiSchemaUnitsUnitsInfo, None] + Union[GrantaServerApiSchemaUnitsUnit, None] """ - data = self._v1alpha_databases_database_key_units_get_with_http_info( - database_key, _return_http_data_only=True + data = self._get_unit_with_http_info( + database_key, unit_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_get_with_http_info( - self, database_key: "str", **kwargs: Any + def _get_unit_with_http_info( + self, database_key: "str", unit_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", + "unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -558,14 +554,19 @@ def _v1alpha_databases_database_key_units_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_get" + f"Got an unexpected keyword argument '{key}' to method get_unit" ) 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 'v1alpha_databases_database_key_units_get'" + "Missing the required parameter 'database_key' when calling 'get_unit'" + ) + # verify the required parameter "unit_guid" is set + if "unit_guid" not in params or params["unit_guid"] is None: + raise ValueError( + "Missing the required parameter 'unit_guid' when calling 'get_unit'" ) collection_formats: Dict[str, Any] = {} @@ -573,6 +574,8 @@ def _v1alpha_databases_database_key_units_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "unit_guid" in params and unit_guid is not None: + path_params["unit-guid"] = params["unit_guid"] query_params: List[Any] = [] @@ -588,12 +591,12 @@ def _v1alpha_databases_database_key_units_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiSchemaUnitsUnitsInfo", + 200: "GrantaServerApiSchemaUnitsUnit", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units", + "/v1alpha/databases/{database-key}/units/{unit-guid}", "GET", path_params, query_params, @@ -608,39 +611,33 @@ def _v1alpha_databases_database_key_units_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_post( - self, - *, - database_key: "str", - body: "Optional[GrantaServerApiSchemaUnitsCreateUnit]" = None, - ) -> "Union[GrantaServerApiSchemaUnitsUnit, None]": - """Create a new unit. + def get_unit_equivalents( + self, *, database_key: "str", unit_guid: "str" + ) -> "Union[GrantaServerApiSchemaUnitsUnitEquivalentsInfo, None]": + """Get equivalent units (one per unit system) This method makes a synchronous HTTP request. Parameters ---------- database_key: str - body: GrantaServerApiSchemaUnitsCreateUnit + unit_guid: str Returns ------- - Union[GrantaServerApiSchemaUnitsUnit, None] + Union[GrantaServerApiSchemaUnitsUnitEquivalentsInfo, None] """ - data = self._v1alpha_databases_database_key_units_post_with_http_info( - database_key, body, _return_http_data_only=True + data = self._get_unit_equivalents_with_http_info( + database_key, unit_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_post_with_http_info( - self, - database_key: "str", - body: "Optional[GrantaServerApiSchemaUnitsCreateUnit]" = None, - **kwargs: Any, + def _get_unit_equivalents_with_http_info( + self, database_key: "str", unit_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "body", + "unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -650,14 +647,19 @@ def _v1alpha_databases_database_key_units_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_post" + f"Got an unexpected keyword argument '{key}' to method get_unit_equivalents" ) 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 'v1alpha_databases_database_key_units_post'" + "Missing the required parameter 'database_key' when calling 'get_unit_equivalents'" + ) + # verify the required parameter "unit_guid" is set + if "unit_guid" not in params or params["unit_guid"] is None: + raise ValueError( + "Missing the required parameter 'unit_guid' when calling 'get_unit_equivalents'" ) collection_formats: Dict[str, Any] = {} @@ -665,6 +667,8 @@ def _v1alpha_databases_database_key_units_post_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] + if "unit_guid" in params and unit_guid is not None: + path_params["unit-guid"] = params["unit_guid"] query_params: List[Any] = [] @@ -674,33 +678,19 @@ def _v1alpha_databases_database_key_units_post_with_http_info( 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 = { - 201: "GrantaServerApiSchemaUnitsUnit", - 400: None, - 403: None, + 200: "GrantaServerApiSchemaUnitsUnitEquivalentsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units", - "POST", + "/v1alpha/databases/{database-key}/units/{unit-guid}/equivalent-units", + "GET", path_params, query_params, header_params, @@ -714,35 +704,33 @@ def _v1alpha_databases_database_key_units_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_unit_guid_delete( - self, *, database_key: "str", unit_guid: "str" - ) -> "None": - """Delete unit. + def get_unit_system( + self, *, database_key: "str", unit_system_guid: "str" + ) -> "Union[GrantaServerApiSchemaUnitsUnitSystem, None]": + """Get an individual unit system This method makes a synchronous HTTP request. Parameters ---------- database_key: str - unit_guid: str + unit_system_guid: str Returns ------- - None + Union[GrantaServerApiSchemaUnitsUnitSystem, None] """ - data = ( - self._v1alpha_databases_database_key_units_unit_guid_delete_with_http_info( - database_key, unit_guid, _return_http_data_only=True - ) + data = self._get_unit_system_with_http_info( + database_key, unit_system_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_unit_guid_delete_with_http_info( - self, database_key: "str", unit_guid: "str", **kwargs: Any + def _get_unit_system_with_http_info( + self, database_key: "str", unit_system_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "unit_guid", + "unit_system_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -752,19 +740,19 @@ def _v1alpha_databases_database_key_units_unit_guid_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_unit_guid_delete" + f"Got an unexpected keyword argument '{key}' to method get_unit_system" ) 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 'v1alpha_databases_database_key_units_unit_guid_delete'" + "Missing the required parameter 'database_key' when calling 'get_unit_system'" ) - # verify the required parameter "unit_guid" is set - if "unit_guid" not in params or params["unit_guid"] is None: + # verify the required parameter "unit_system_guid" is set + if "unit_system_guid" not in params or params["unit_system_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_delete'" + "Missing the required parameter 'unit_system_guid' when calling 'get_unit_system'" ) collection_formats: Dict[str, Any] = {} @@ -772,8 +760,8 @@ def _v1alpha_databases_database_key_units_unit_guid_delete_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "unit_guid" in params and unit_guid is not None: - path_params["unit-guid"] = params["unit_guid"] + if "unit_system_guid" in params and unit_system_guid is not None: + path_params["unit-system-guid"] = params["unit_system_guid"] query_params: List[Any] = [] @@ -783,17 +771,19 @@ def _v1alpha_databases_database_key_units_unit_guid_delete_with_http_info( 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 = { - 200: None, - 400: None, - 403: None, + 200: "GrantaServerApiSchemaUnitsUnitSystem", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units/{unit-guid}", - "DELETE", + "/v1alpha/databases/{database-key}/unit-systems/{unit-system-guid}", + "GET", path_params, query_params, header_params, @@ -807,33 +797,31 @@ def _v1alpha_databases_database_key_units_unit_guid_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_unit_guid_equivalent_units_get( - self, *, database_key: "str", unit_guid: "str" - ) -> "Union[GrantaServerApiSchemaUnitsUnitEquivalentsInfo, None]": - """Get equivalent units (one per unit system) + def get_unit_systems( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaUnitsUnitSystemsInfo, None]": + """Get all unit systems in the database This method makes a synchronous HTTP request. Parameters ---------- database_key: str - unit_guid: str Returns ------- - Union[GrantaServerApiSchemaUnitsUnitEquivalentsInfo, None] + Union[GrantaServerApiSchemaUnitsUnitSystemsInfo, None] """ - data = self._v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_http_info( - database_key, unit_guid, _return_http_data_only=True + data = self._get_unit_systems_with_http_info( + database_key, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_http_info( - self, database_key: "str", unit_guid: "str", **kwargs: Any + def _get_unit_systems_with_http_info( + self, database_key: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", - "unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -843,19 +831,14 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_ht for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_unit_guid_equivalent_units_get" + f"Got an unexpected keyword argument '{key}' to method get_unit_systems" ) 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 'v1alpha_databases_database_key_units_unit_guid_equivalent_units_get'" - ) - # verify the required parameter "unit_guid" is set - if "unit_guid" not in params or params["unit_guid"] is None: - raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_equivalent_units_get'" + "Missing the required parameter 'database_key' when calling 'get_unit_systems'" ) collection_formats: Dict[str, Any] = {} @@ -863,8 +846,6 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_ht path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "unit_guid" in params and unit_guid is not None: - path_params["unit-guid"] = params["unit_guid"] query_params: List[Any] = [] @@ -880,12 +861,12 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_ht ) response_type_map = { - 200: "GrantaServerApiSchemaUnitsUnitEquivalentsInfo", + 200: "GrantaServerApiSchemaUnitsUnitSystemsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units/{unit-guid}/equivalent-units", + "/v1alpha/databases/{database-key}/unit-systems", "GET", path_params, query_params, @@ -900,15 +881,10 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_ht response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post( - self, - *, - database_key: "str", - unit_guid: "str", - unit_system_guid: "str", - equivalent_unit_guid: "str", - ) -> "None": - """Set the equivalent unit for a given unit system + def get_unit_usages( + self, *, database_key: "str", unit_guid: "str" + ) -> "Union[GrantaServerApiSchemaUnitsUnitUsage, None]": + """Get all usages of unit This method makes a synchronous HTTP request. @@ -916,35 +892,22 @@ def v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_ ---------- database_key: str unit_guid: str - unit_system_guid: str - equivalent_unit_guid: str Returns ------- - None + Union[GrantaServerApiSchemaUnitsUnitUsage, None] """ - data = self._v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post_with_http_info( - database_key, - unit_guid, - unit_system_guid, - equivalent_unit_guid, - _return_http_data_only=True, + data = self._get_unit_usages_with_http_info( + database_key, unit_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post_with_http_info( - self, - database_key: "str", - unit_guid: "str", - unit_system_guid: "str", - equivalent_unit_guid: "str", - **kwargs: Any, + def _get_unit_usages_with_http_info( + self, database_key: "str", unit_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", "unit_guid", - "unit_system_guid", - "equivalent_unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -954,32 +917,19 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post" + f"Got an unexpected keyword argument '{key}' to method get_unit_usages" ) 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 'v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post'" + "Missing the required parameter 'database_key' when calling 'get_unit_usages'" ) # verify the required parameter "unit_guid" is set if "unit_guid" not in params or params["unit_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post'" - ) - # verify the required parameter "unit_system_guid" is set - if "unit_system_guid" not in params or params["unit_system_guid"] is None: - raise ValueError( - "Missing the required parameter 'unit_system_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post'" - ) - # verify the required parameter "equivalent_unit_guid" is set - if ( - "equivalent_unit_guid" not in params - or params["equivalent_unit_guid"] is None - ): - raise ValueError( - "Missing the required parameter 'equivalent_unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_unit_system_guid_equivalent_unit_equivalent_unit_guidset_equivalent_unit_post'" + "Missing the required parameter 'unit_guid' when calling 'get_unit_usages'" ) collection_formats: Dict[str, Any] = {} @@ -989,10 +939,6 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system path_params["database-key"] = params["database_key"] if "unit_guid" in params and unit_guid is not None: path_params["unit-guid"] = params["unit_guid"] - if "unit_system_guid" in params and unit_system_guid is not None: - path_params["unit-system-guid"] = params["unit_system_guid"] - if "equivalent_unit_guid" in params and equivalent_unit_guid is not None: - path_params["equivalent-unit-guid"] = params["equivalent_unit_guid"] query_params: List[Any] = [] @@ -1002,15 +948,19 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system 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 = { - 200: None, + 200: "GrantaServerApiSchemaUnitsUnitUsage", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units/{unit-guid}/equivalent-units/unit-system/{unit-system-guid}/equivalent-unit/{equivalent-unit-guid}:set-equivalent-unit", - "POST", + "/v1alpha/databases/{database-key}/units/{unit-guid}:usages", + "GET", path_params, query_params, header_params, @@ -1024,33 +974,27 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_unit_guid_get( - self, *, database_key: "str", unit_guid: "str" - ) -> "Union[GrantaServerApiSchemaUnitsUnit, None]": - """Get individual units + def get_units( + self, *, database_key: "str" + ) -> "Union[GrantaServerApiSchemaUnitsUnitsInfo, None]": + """Get all units This method makes a synchronous HTTP request. Parameters ---------- database_key: str - unit_guid: str Returns ------- - Union[GrantaServerApiSchemaUnitsUnit, None] + Union[GrantaServerApiSchemaUnitsUnitsInfo, None] """ - data = self._v1alpha_databases_database_key_units_unit_guid_get_with_http_info( - database_key, unit_guid, _return_http_data_only=True - ) + data = self._get_units_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_unit_guid_get_with_http_info( - self, database_key: "str", unit_guid: "str", **kwargs: Any - ) -> Any: + def _get_units_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", - "unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1060,19 +1004,14 @@ def _v1alpha_databases_database_key_units_unit_guid_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_unit_guid_get" + f"Got an unexpected keyword argument '{key}' to method get_units" ) 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 'v1alpha_databases_database_key_units_unit_guid_get'" - ) - # verify the required parameter "unit_guid" is set - if "unit_guid" not in params or params["unit_guid"] is None: - raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_get'" + "Missing the required parameter 'database_key' when calling 'get_units'" ) collection_formats: Dict[str, Any] = {} @@ -1080,8 +1019,6 @@ def _v1alpha_databases_database_key_units_unit_guid_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "unit_guid" in params and unit_guid is not None: - path_params["unit-guid"] = params["unit_guid"] query_params: List[Any] = [] @@ -1097,12 +1034,12 @@ def _v1alpha_databases_database_key_units_unit_guid_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiSchemaUnitsUnit", + 200: "GrantaServerApiSchemaUnitsUnitsInfo", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units/{unit-guid}", + "/v1alpha/databases/{database-key}/units", "GET", path_params, query_params, @@ -1117,14 +1054,15 @@ def _v1alpha_databases_database_key_units_unit_guid_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_unit_guid_patch( + def set_unit_equivalent( self, *, database_key: "str", unit_guid: "str", - body: "Optional[GrantaServerApiSchemaUnitsUpdateUnit]" = None, - ) -> "Union[GrantaServerApiSchemaUnitsUnit, None]": - """Update unit. + unit_system_guid: "str", + equivalent_unit_guid: "str", + ) -> "None": + """Set the equivalent unit for a given unit system This method makes a synchronous HTTP request. @@ -1132,30 +1070,35 @@ def v1alpha_databases_database_key_units_unit_guid_patch( ---------- database_key: str unit_guid: str - body: GrantaServerApiSchemaUnitsUpdateUnit + unit_system_guid: str + equivalent_unit_guid: str Returns ------- - Union[GrantaServerApiSchemaUnitsUnit, None] + None """ - data = ( - self._v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( - database_key, unit_guid, body, _return_http_data_only=True - ) + data = self._set_unit_equivalent_with_http_info( + database_key, + unit_guid, + unit_system_guid, + equivalent_unit_guid, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( + def _set_unit_equivalent_with_http_info( self, database_key: "str", unit_guid: "str", - body: "Optional[GrantaServerApiSchemaUnitsUpdateUnit]" = None, + unit_system_guid: "str", + equivalent_unit_guid: "str", **kwargs: Any, ) -> Any: all_params = [ "database_key", "unit_guid", - "body", + "unit_system_guid", + "equivalent_unit_guid", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1165,19 +1108,32 @@ def _v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_unit_guid_patch" + f"Got an unexpected keyword argument '{key}' to method set_unit_equivalent" ) 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 'v1alpha_databases_database_key_units_unit_guid_patch'" + "Missing the required parameter 'database_key' when calling 'set_unit_equivalent'" ) # verify the required parameter "unit_guid" is set if "unit_guid" not in params or params["unit_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_patch'" + "Missing the required parameter 'unit_guid' when calling 'set_unit_equivalent'" + ) + # verify the required parameter "unit_system_guid" is set + if "unit_system_guid" not in params or params["unit_system_guid"] is None: + raise ValueError( + "Missing the required parameter 'unit_system_guid' when calling 'set_unit_equivalent'" + ) + # verify the required parameter "equivalent_unit_guid" is set + if ( + "equivalent_unit_guid" not in params + or params["equivalent_unit_guid"] is None + ): + raise ValueError( + "Missing the required parameter 'equivalent_unit_guid' when calling 'set_unit_equivalent'" ) collection_formats: Dict[str, Any] = {} @@ -1187,6 +1143,10 @@ def _v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( path_params["database-key"] = params["database_key"] if "unit_guid" in params and unit_guid is not None: path_params["unit-guid"] = params["unit_guid"] + if "unit_system_guid" in params and unit_system_guid is not None: + path_params["unit-system-guid"] = params["unit_system_guid"] + if "equivalent_unit_guid" in params and equivalent_unit_guid is not None: + path_params["equivalent-unit-guid"] = params["equivalent_unit_guid"] query_params: List[Any] = [] @@ -1196,33 +1156,15 @@ def _v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( 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 = { - 200: "GrantaServerApiSchemaUnitsUnit", - 400: None, - 403: None, + 200: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units/{unit-guid}", - "PATCH", + "/v1alpha/databases/{database-key}/units/{unit-guid}/equivalent-units/unit-system/{unit-system-guid}/equivalent-unit/{equivalent-unit-guid}:set-equivalent-unit", + "POST", path_params, query_params, header_params, @@ -1236,10 +1178,14 @@ def _v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_unit_guidcompatible_units_get( - self, *, database_key: "str", unit_guid: "str" - ) -> "Union[GrantaServerApiSchemaUnitsUnitsInfo, None]": - """Get compatible units for unit + def update_unit( + self, + *, + database_key: "str", + unit_guid: "str", + body: "Optional[GrantaServerApiSchemaUnitsUpdateUnit]" = None, + ) -> "Union[GrantaServerApiSchemaUnitsUnit, None]": + """Update unit. This method makes a synchronous HTTP request. @@ -1247,22 +1193,28 @@ def v1alpha_databases_database_key_units_unit_guidcompatible_units_get( ---------- database_key: str unit_guid: str + body: GrantaServerApiSchemaUnitsUpdateUnit Returns ------- - Union[GrantaServerApiSchemaUnitsUnitsInfo, None] + Union[GrantaServerApiSchemaUnitsUnit, None] """ - data = self._v1alpha_databases_database_key_units_unit_guidcompatible_units_get_with_http_info( - database_key, unit_guid, _return_http_data_only=True + data = self._update_unit_with_http_info( + database_key, unit_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_unit_guidcompatible_units_get_with_http_info( - self, database_key: "str", unit_guid: "str", **kwargs: Any + def _update_unit_with_http_info( + self, + database_key: "str", + unit_guid: "str", + body: "Optional[GrantaServerApiSchemaUnitsUpdateUnit]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", "unit_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1272,19 +1224,19 @@ def _v1alpha_databases_database_key_units_unit_guidcompatible_units_get_with_htt for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_unit_guidcompatible_units_get" + f"Got an unexpected keyword argument '{key}' to method update_unit" ) 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 'v1alpha_databases_database_key_units_unit_guidcompatible_units_get'" + "Missing the required parameter 'database_key' when calling 'update_unit'" ) # verify the required parameter "unit_guid" is set if "unit_guid" not in params or params["unit_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guidcompatible_units_get'" + "Missing the required parameter 'unit_guid' when calling 'update_unit'" ) collection_formats: Dict[str, Any] = {} @@ -1303,19 +1255,33 @@ def _v1alpha_databases_database_key_units_unit_guidcompatible_units_get_with_htt 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 = { - 200: "GrantaServerApiSchemaUnitsUnitsInfo", + 200: "GrantaServerApiSchemaUnitsUnit", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units/{unit-guid}:compatible-units", - "GET", + "/v1alpha/databases/{database-key}/units/{unit-guid}", + "PATCH", path_params, query_params, header_params, @@ -1329,33 +1295,43 @@ def _v1alpha_databases_database_key_units_unit_guidcompatible_units_get_with_htt response_type_map=response_type_map, ) - def v1alpha_databases_database_key_units_unit_guidusages_get( - self, *, database_key: "str", unit_guid: "str" - ) -> "Union[GrantaServerApiSchemaUnitsUnitUsage, None]": - """Get all usages of unit + def update_unit_system( + self, + *, + database_key: "str", + unit_system_guid: "str", + body: "Optional[GrantaServerApiSchemaUnitsUpdateUnitSystem]" = None, + ) -> "Union[GrantaServerApiSchemaUnitsUnitSystem, None]": + """Update a unit system. This method makes a synchronous HTTP request. Parameters ---------- database_key: str - unit_guid: str + unit_system_guid: str + body: GrantaServerApiSchemaUnitsUpdateUnitSystem Returns ------- - Union[GrantaServerApiSchemaUnitsUnitUsage, None] + Union[GrantaServerApiSchemaUnitsUnitSystem, None] """ - data = self._v1alpha_databases_database_key_units_unit_guidusages_get_with_http_info( - database_key, unit_guid, _return_http_data_only=True + data = self._update_unit_system_with_http_info( + database_key, unit_system_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_units_unit_guidusages_get_with_http_info( - self, database_key: "str", unit_guid: "str", **kwargs: Any + def _update_unit_system_with_http_info( + self, + database_key: "str", + unit_system_guid: "str", + body: "Optional[GrantaServerApiSchemaUnitsUpdateUnitSystem]" = None, + **kwargs: Any, ) -> Any: all_params = [ "database_key", - "unit_guid", + "unit_system_guid", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -1365,19 +1341,19 @@ def _v1alpha_databases_database_key_units_unit_guidusages_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_units_unit_guidusages_get" + f"Got an unexpected keyword argument '{key}' to method update_unit_system" ) 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 'v1alpha_databases_database_key_units_unit_guidusages_get'" + "Missing the required parameter 'database_key' when calling 'update_unit_system'" ) - # verify the required parameter "unit_guid" is set - if "unit_guid" not in params or params["unit_guid"] is None: + # verify the required parameter "unit_system_guid" is set + if "unit_system_guid" not in params or params["unit_system_guid"] is None: raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guidusages_get'" + "Missing the required parameter 'unit_system_guid' when calling 'update_unit_system'" ) collection_formats: Dict[str, Any] = {} @@ -1385,8 +1361,8 @@ def _v1alpha_databases_database_key_units_unit_guidusages_get_with_http_info( path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] - if "unit_guid" in params and unit_guid is not None: - path_params["unit-guid"] = params["unit_guid"] + if "unit_system_guid" in params and unit_system_guid is not None: + path_params["unit-system-guid"] = params["unit_system_guid"] query_params: List[Any] = [] @@ -1396,19 +1372,33 @@ def _v1alpha_databases_database_key_units_unit_guidusages_get_with_http_info( 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 = { - 200: "GrantaServerApiSchemaUnitsUnitUsage", + 200: "GrantaServerApiSchemaUnitsUnitSystem", + 400: None, + 403: None, 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/units/{unit-guid}:usages", - "GET", + "/v1alpha/databases/{database-key}/unit-systems/{unit-system-guid}", + "PATCH", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py index 9c011883..bbb24366 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py @@ -33,7 +33,7 @@ class SchemaApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_schema_mi_version_get(self) -> "GrantaServerApiAdminMiVersion": + def get_version(self) -> "GrantaServerApiAdminMiVersion": """Returns the currently running MI version to the caller. This method makes a synchronous HTTP request. @@ -42,19 +42,17 @@ def v1alpha_schema_mi_version_get(self) -> "GrantaServerApiAdminMiVersion": ------- GrantaServerApiAdminMiVersion """ - data = self._v1alpha_schema_mi_version_get_with_http_info( - _return_http_data_only=True - ) + data = self._get_version_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_schema_mi_version_get_with_http_info(self, **kwargs: Any) -> Any: + def _get_version_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_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 v1alpha_schema_mi_version_get" + f"Got an unexpected keyword argument '{key}' to method get_version" ) params[key] = val del params["kwargs"] diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py index 7eb821b5..d5c9c5f0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py @@ -33,23 +33,21 @@ class SearchApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_databases_database_key_tables_table_guidsearch_post( + def database_search( self, *, database_key: "str", - table_guid: "str", body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, ) -> "GrantaServerApiSearchSearchResponse": - """v1alpha_databases_database_key_tables_table_guidsearch_post + """database_search This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_guid: str body: GrantaServerApiSearchSearchRequest 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. @@ -60,20 +58,14 @@ def v1alpha_databases_database_key_tables_table_guidsearch_post( ------- GrantaServerApiSearchSearchResponse """ - data = self._v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( - database_key, - table_guid, - body, - x_ansys_vc_mode, - mode, - _return_http_data_only=True, + data = self._database_search_with_http_info( + database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( + def _database_search_with_http_info( self, database_key: "str", - table_guid: "str", body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, @@ -81,7 +73,6 @@ def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( ) -> Any: all_params = [ "database_key", - "table_guid", "body", "x_ansys_vc_mode", "mode", @@ -94,19 +85,14 @@ def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guidsearch_post" + f"Got an unexpected keyword argument '{key}' to method database_search" ) 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 'v1alpha_databases_database_key_tables_table_guidsearch_post'" - ) - # 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 'v1alpha_databases_database_key_tables_table_guidsearch_post'" + "Missing the required parameter 'database_key' when calling 'database_search'" ) collection_formats: Dict[str, Any] = {} @@ -114,8 +100,6 @@ def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( 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"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -151,7 +135,7 @@ def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}:search", + "/v1alpha/databases/{database-key}:search", "POST", path_params, query_params, @@ -166,23 +150,23 @@ def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_databases_database_key_tables_table_identitysearch_post( + def database_search_in_table_with_guid( self, *, database_key: "str", - table_identity: "int", + table_guid: "str", body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, ) -> "GrantaServerApiSearchSearchResponse": - """v1alpha_databases_database_key_tables_table_identitysearch_post + """database_search_in_table_with_guid This method makes a synchronous HTTP request. Parameters ---------- database_key: str - table_identity: int + table_guid: str body: GrantaServerApiSearchSearchRequest 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. @@ -193,9 +177,9 @@ def v1alpha_databases_database_key_tables_table_identitysearch_post( ------- GrantaServerApiSearchSearchResponse """ - data = self._v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_info( + data = self._database_search_in_table_with_guid_with_http_info( database_key, - table_identity, + table_guid, body, x_ansys_vc_mode, mode, @@ -203,10 +187,10 @@ def v1alpha_databases_database_key_tables_table_identitysearch_post( ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_info( + def _database_search_in_table_with_guid_with_http_info( self, database_key: "str", - table_identity: "int", + table_guid: "str", body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, @@ -214,7 +198,7 @@ def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_i ) -> Any: all_params = [ "database_key", - "table_identity", + "table_guid", "body", "x_ansys_vc_mode", "mode", @@ -227,19 +211,19 @@ def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_i for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_identitysearch_post" + f"Got an unexpected keyword argument '{key}' to method database_search_in_table_with_guid" ) 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 'v1alpha_databases_database_key_tables_table_identitysearch_post'" + "Missing the required parameter 'database_key' when calling 'database_search_in_table_with_guid'" ) - # verify the required parameter "table_identity" is set - if "table_identity" not in params or params["table_identity"] is None: + # 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_identity' when calling 'v1alpha_databases_database_key_tables_table_identitysearch_post'" + "Missing the required parameter 'table_guid' when calling 'database_search_in_table_with_guid'" ) collection_formats: Dict[str, Any] = {} @@ -247,8 +231,8 @@ def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_i 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_identity" in params and table_identity is not None: - path_params["table-identity"] = params["table_identity"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -284,7 +268,7 @@ def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_i } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-identity}:search", + "/v1alpha/databases/{database-key}/tables/{table-guid}:search", "POST", path_params, query_params, @@ -299,21 +283,23 @@ def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_i response_type_map=response_type_map, ) - def v1alpha_databases_database_keysearch_post( + def database_search_in_table_with_identity( self, *, database_key: "str", + table_identity: "int", body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, ) -> "GrantaServerApiSearchSearchResponse": - """v1alpha_databases_database_keysearch_post + """database_search_in_table_with_identity This method makes a synchronous HTTP request. Parameters ---------- database_key: str + table_identity: int body: GrantaServerApiSearchSearchRequest 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. @@ -324,14 +310,20 @@ def v1alpha_databases_database_keysearch_post( ------- GrantaServerApiSearchSearchResponse """ - data = self._v1alpha_databases_database_keysearch_post_with_http_info( - database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True + data = self._database_search_in_table_with_identity_with_http_info( + database_key, + table_identity, + body, + x_ansys_vc_mode, + mode, + _return_http_data_only=True, ) return data # type: ignore[no-any-return] - def _v1alpha_databases_database_keysearch_post_with_http_info( + def _database_search_in_table_with_identity_with_http_info( self, database_key: "str", + table_identity: "int", body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, @@ -339,6 +331,7 @@ def _v1alpha_databases_database_keysearch_post_with_http_info( ) -> Any: all_params = [ "database_key", + "table_identity", "body", "x_ansys_vc_mode", "mode", @@ -351,14 +344,19 @@ def _v1alpha_databases_database_keysearch_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_keysearch_post" + f"Got an unexpected keyword argument '{key}' to method database_search_in_table_with_identity" ) 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 'v1alpha_databases_database_keysearch_post'" + "Missing the required parameter 'database_key' when calling 'database_search_in_table_with_identity'" + ) + # verify the required parameter "table_identity" is set + if "table_identity" not in params or params["table_identity"] is None: + raise ValueError( + "Missing the required parameter 'table_identity' when calling 'database_search_in_table_with_identity'" ) collection_formats: Dict[str, Any] = {} @@ -366,6 +364,8 @@ def _v1alpha_databases_database_keysearch_post_with_http_info( 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_identity" in params and table_identity is not None: + path_params["table-identity"] = params["table_identity"] query_params: List[Any] = [] if "mode" in params and mode is not None: @@ -401,7 +401,7 @@ def _v1alpha_databases_database_keysearch_post_with_http_info( } return self.api_client.call_api( - "/v1alpha/databases/{database-key}:search", + "/v1alpha/databases/{database-key}/tables/{table-identity}:search", "POST", path_params, query_params, @@ -416,39 +416,29 @@ def _v1alpha_databases_database_keysearch_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_integration_schemas_schemasearch_post( - self, - *, - schema: "str", - body: "Optional[GrantaServerApiSearchSearchRequest]" = None, - ) -> "Union[GrantaServerApiSearchSearchResponse, None]": - """Runs a search against the integration schema. + def delete_search_results(self, *, search_identifier: "str") -> "None": + """delete_search_results This method makes a synchronous HTTP request. Parameters ---------- - schema: str - body: GrantaServerApiSearchSearchRequest + search_identifier: str Returns ------- - Union[GrantaServerApiSearchSearchResponse, None] + None """ - data = self._v1alpha_integration_schemas_schemasearch_post_with_http_info( - schema, body, _return_http_data_only=True + data = self._delete_search_results_with_http_info( + search_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_schemasearch_post_with_http_info( - self, - schema: "str", - body: "Optional[GrantaServerApiSearchSearchRequest]" = None, - **kwargs: Any, + def _delete_search_results_with_http_info( + self, search_identifier: "str", **kwargs: Any ) -> Any: all_params = [ - "schema", - "body", + "search_identifier", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -458,21 +448,21 @@ def _v1alpha_integration_schemas_schemasearch_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_integration_schemas_schemasearch_post" + f"Got an unexpected keyword argument '{key}' to method delete_search_results" ) params[key] = val del params["kwargs"] - # verify the required parameter "schema" is set - if "schema" not in params or params["schema"] is None: + # verify the required parameter "search_identifier" is set + if "search_identifier" not in params or params["search_identifier"] is None: raise ValueError( - "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemasearch_post'" + "Missing the required parameter 'search_identifier' when calling 'delete_search_results'" ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "schema" in params and schema is not None: - path_params["schema"] = params["schema"] + if "search_identifier" in params and search_identifier is not None: + path_params["searchIdentifier"] = params["search_identifier"] query_params: List[Any] = [] @@ -482,31 +472,15 @@ def _v1alpha_integration_schemas_schemasearch_post_with_http_info( 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( - ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSearchSearchResponse", + 200: None, 404: None, } return self.api_client.call_api( - "/v1alpha/integration-schemas/{schema}:search", - "POST", + "/v1alpha/searches/{searchIdentifier}", + "DELETE", path_params, query_params, header_params, @@ -520,31 +494,39 @@ def _v1alpha_integration_schemas_schemasearch_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_searches_search_identifier_delete( - self, *, search_identifier: "str" - ) -> "None": - """v1alpha_searches_search_identifier_delete + def get_search_results( + self, + *, + search_identifier: "str", + body: "Optional[GrantaServerApiSearchSearchResultsRequest]" = None, + ) -> "Union[GrantaServerApiSearchSearchResponse, None]": + """get_search_results This method makes a synchronous HTTP request. Parameters ---------- search_identifier: str + body: GrantaServerApiSearchSearchResultsRequest Returns ------- - None + Union[GrantaServerApiSearchSearchResponse, None] """ - data = self._v1alpha_searches_search_identifier_delete_with_http_info( - search_identifier, _return_http_data_only=True + data = self._get_search_results_with_http_info( + search_identifier, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_searches_search_identifier_delete_with_http_info( - self, search_identifier: "str", **kwargs: Any + def _get_search_results_with_http_info( + self, + search_identifier: "str", + body: "Optional[GrantaServerApiSearchSearchResultsRequest]" = None, + **kwargs: Any, ) -> Any: all_params = [ "search_identifier", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -554,14 +536,14 @@ def _v1alpha_searches_search_identifier_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_searches_search_identifier_delete" + f"Got an unexpected keyword argument '{key}' to method get_search_results" ) params[key] = val del params["kwargs"] # verify the required parameter "search_identifier" is set if "search_identifier" not in params or params["search_identifier"] is None: raise ValueError( - "Missing the required parameter 'search_identifier' when calling 'v1alpha_searches_search_identifier_delete'" + "Missing the required parameter 'search_identifier' when calling 'get_search_results'" ) collection_formats: Dict[str, Any] = {} @@ -578,15 +560,31 @@ def _v1alpha_searches_search_identifier_delete_with_http_info( 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( + ["text/plain", "application/json", "text/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 = { - 200: None, + 200: "GrantaServerApiSearchSearchResponse", 404: None, } return self.api_client.call_api( - "/v1alpha/searches/{searchIdentifier}", - "DELETE", + "/v1alpha/searches/{searchIdentifier}/results", + "POST", path_params, query_params, header_params, @@ -600,38 +598,38 @@ def _v1alpha_searches_search_identifier_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_searches_search_identifier_results_post( + def integration_search( self, *, - search_identifier: "str", - body: "Optional[GrantaServerApiSearchSearchResultsRequest]" = None, + schema: "str", + body: "Optional[GrantaServerApiSearchSearchRequest]" = None, ) -> "Union[GrantaServerApiSearchSearchResponse, None]": - """v1alpha_searches_search_identifier_results_post + """Runs a search against the integration schema. This method makes a synchronous HTTP request. Parameters ---------- - search_identifier: str - body: GrantaServerApiSearchSearchResultsRequest + schema: str + body: GrantaServerApiSearchSearchRequest Returns ------- Union[GrantaServerApiSearchSearchResponse, None] """ - data = self._v1alpha_searches_search_identifier_results_post_with_http_info( - search_identifier, body, _return_http_data_only=True + data = self._integration_search_with_http_info( + schema, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_searches_search_identifier_results_post_with_http_info( + def _integration_search_with_http_info( self, - search_identifier: "str", - body: "Optional[GrantaServerApiSearchSearchResultsRequest]" = None, + schema: "str", + body: "Optional[GrantaServerApiSearchSearchRequest]" = None, **kwargs: Any, ) -> Any: all_params = [ - "search_identifier", + "schema", "body", "_return_http_data_only", "_preload_content", @@ -642,21 +640,21 @@ def _v1alpha_searches_search_identifier_results_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_searches_search_identifier_results_post" + f"Got an unexpected keyword argument '{key}' to method integration_search" ) params[key] = val del params["kwargs"] - # verify the required parameter "search_identifier" is set - if "search_identifier" not in params or params["search_identifier"] is None: + # verify the required parameter "schema" is set + if "schema" not in params or params["schema"] is None: raise ValueError( - "Missing the required parameter 'search_identifier' when calling 'v1alpha_searches_search_identifier_results_post'" + "Missing the required parameter 'schema' when calling 'integration_search'" ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "search_identifier" in params and search_identifier is not None: - path_params["searchIdentifier"] = params["search_identifier"] + if "schema" in params and schema is not None: + path_params["schema"] = params["schema"] query_params: List[Any] = [] @@ -689,7 +687,7 @@ def _v1alpha_searches_search_identifier_results_post_with_http_info( } return self.api_client.call_api( - "/v1alpha/searches/{searchIdentifier}/results", + "/v1alpha/integration-schemas/{schema}:search", "POST", path_params, query_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py index c88f4339..9ae96d8d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py @@ -33,30 +33,43 @@ class SelectionSearchesApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_selection_searches_get( + def create_search( self, - ) -> "Union[List[GrantaServerApiSelectionSearchesSelectionSearch], None]": - """Returns all searches visible to the calling user. + *, + body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None, + ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": + """Creates a new search with the specified properties. This method makes a synchronous HTTP request. + Parameters + ---------- + body: GrantaServerApiSelectionSearchesCreateSearchRequest + Returns ------- - Union[List[GrantaServerApiSelectionSearchesSelectionSearch], None] + Union[GrantaServerApiSelectionSearchesSelectionSearch, None] """ - data = self._v1alpha_selection_searches_get_with_http_info( - _return_http_data_only=True - ) + data = self._create_search_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_selection_searches_get_with_http_info(self, **kwargs: Any) -> Any: - all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] + def _create_search_with_http_info( + self, + body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "body", + "_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 v1alpha_selection_searches_get" + f"Got an unexpected keyword argument '{key}' to method create_search" ) params[key] = val del params["kwargs"] @@ -73,19 +86,32 @@ def _v1alpha_selection_searches_get_with_http_info(self, **kwargs: Any) -> 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( ["text/plain", "application/json", "text/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 = { - 200: "list[GrantaServerApiSelectionSearchesSelectionSearch]", + 201: "GrantaServerApiSelectionSearchesSelectionSearch", + 400: None, 403: None, } return self.api_client.call_api( "/v1alpha/selection-searches", - "GET", + "POST", path_params, query_params, header_params, @@ -99,35 +125,29 @@ def _v1alpha_selection_searches_get_with_http_info(self, **kwargs: Any) -> Any: response_type_map=response_type_map, ) - def v1alpha_selection_searches_post( - self, - *, - body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None, - ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": - """Creates a new search with the specified properties. + def delete_search(self, *, search_identifier: "str") -> "None": + """Delete an existing selection search. This method makes a synchronous HTTP request. Parameters ---------- - body: GrantaServerApiSelectionSearchesCreateSearchRequest + search_identifier: str Returns ------- - Union[GrantaServerApiSelectionSearchesSelectionSearch, None] + None """ - data = self._v1alpha_selection_searches_post_with_http_info( - body, _return_http_data_only=True + data = self._delete_search_with_http_info( + search_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_selection_searches_post_with_http_info( - self, - body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None, - **kwargs: Any, + def _delete_search_with_http_info( + self, search_identifier: "str", **kwargs: Any ) -> Any: all_params = [ - "body", + "search_identifier", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -137,14 +157,21 @@ def _v1alpha_selection_searches_post_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_selection_searches_post" + f"Got an unexpected keyword argument '{key}' to method delete_search" ) params[key] = val del params["kwargs"] + # verify the required parameter "search_identifier" is set + if "search_identifier" not in params or params["search_identifier"] is None: + raise ValueError( + "Missing the required parameter 'search_identifier' when calling 'delete_search'" + ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} + if "search_identifier" in params and search_identifier is not None: + path_params["searchIdentifier"] = params["search_identifier"] query_params: List[Any] = [] @@ -154,32 +181,16 @@ def _v1alpha_selection_searches_post_with_http_info( 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( - ["text/plain", "application/json", "text/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 = { - 201: "GrantaServerApiSelectionSearchesSelectionSearch", - 400: None, + 200: None, 403: None, + 404: None, } return self.api_client.call_api( - "/v1alpha/selection-searches", - "POST", + "/v1alpha/selection-searches/search/{searchIdentifier}", + "DELETE", path_params, query_params, header_params, @@ -193,45 +204,28 @@ def _v1alpha_selection_searches_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_selection_searches_search_post( + def get_all( self, - *, - body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None, - ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": - """Retrieves a collection of searches that match the specified criteria. + ) -> "Union[List[GrantaServerApiSelectionSearchesSelectionSearch], None]": + """Returns all searches visible to the calling user. This method makes a synchronous HTTP request. - Parameters - ---------- - body: GrantaServerApiSelectionSearchesFindSearchRequest - Returns ------- - Union[GrantaServerApiSelectionSearchesSelectionSearch, None] + Union[List[GrantaServerApiSelectionSearchesSelectionSearch], None] """ - data = self._v1alpha_selection_searches_search_post_with_http_info( - body, _return_http_data_only=True - ) + data = self._get_all_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_selection_searches_search_post_with_http_info( - self, - body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None, - **kwargs: Any, - ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_all_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 v1alpha_selection_searches_search_post" + f"Got an unexpected keyword argument '{key}' to method get_all" ) params[key] = val del params["kwargs"] @@ -248,32 +242,19 @@ def _v1alpha_selection_searches_search_post_with_http_info( 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( ["text/plain", "application/json", "text/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 = { - 200: "GrantaServerApiSelectionSearchesSelectionSearch", - 400: None, + 200: "list[GrantaServerApiSelectionSearchesSelectionSearch]", 403: None, } return self.api_client.call_api( - "/v1alpha/selection-searches/search", - "POST", + "/v1alpha/selection-searches", + "GET", path_params, query_params, header_params, @@ -287,10 +268,10 @@ def _v1alpha_selection_searches_search_post_with_http_info( response_type_map=response_type_map, ) - def v1alpha_selection_searches_search_search_identifier_delete( + def get_search( self, *, search_identifier: "str" - ) -> "None": - """Delete an existing selection search. + ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": + """Returns the given search if it exists and the calling user has access to it This method makes a synchronous HTTP request. @@ -300,14 +281,14 @@ def v1alpha_selection_searches_search_search_identifier_delete( Returns ------- - None + Union[GrantaServerApiSelectionSearchesSelectionSearch, None] """ - data = self._v1alpha_selection_searches_search_search_identifier_delete_with_http_info( + data = self._get_search_with_http_info( search_identifier, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_selection_searches_search_search_identifier_delete_with_http_info( + def _get_search_with_http_info( self, search_identifier: "str", **kwargs: Any ) -> Any: all_params = [ @@ -321,14 +302,14 @@ def _v1alpha_selection_searches_search_search_identifier_delete_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_selection_searches_search_search_identifier_delete" + f"Got an unexpected keyword argument '{key}' to method get_search" ) params[key] = val del params["kwargs"] # verify the required parameter "search_identifier" is set if "search_identifier" not in params or params["search_identifier"] is None: raise ValueError( - "Missing the required parameter 'search_identifier' when calling 'v1alpha_selection_searches_search_search_identifier_delete'" + "Missing the required parameter 'search_identifier' when calling 'get_search'" ) collection_formats: Dict[str, Any] = {} @@ -345,16 +326,21 @@ def _v1alpha_selection_searches_search_search_identifier_delete_with_http_info( local_var_files: Dict[str, Any] = {} body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] + ) response_type_map = { - 200: None, + 200: "GrantaServerApiSelectionSearchesSelectionSearch", 403: None, 404: None, + 410: None, } return self.api_client.call_api( "/v1alpha/selection-searches/search/{searchIdentifier}", - "DELETE", + "GET", path_params, query_params, header_params, @@ -368,31 +354,39 @@ def _v1alpha_selection_searches_search_search_identifier_delete_with_http_info( response_type_map=response_type_map, ) - def v1alpha_selection_searches_search_search_identifier_get( - self, *, search_identifier: "str" - ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": - """Returns the given search if it exists and the calling user has access to it + def save_search( + self, + *, + search_identifier: "str", + body: "Optional[GrantaServerApiSelectionSearchesSaveSearchRequest]" = None, + ) -> "None": + """If the search exists, updates the properties of the search. This will overwrite all current properties. If the search does not exist or the calling user does not have access to it, returns '404 not found' response. This method makes a synchronous HTTP request. Parameters ---------- search_identifier: str + body: GrantaServerApiSelectionSearchesSaveSearchRequest Returns ------- - Union[GrantaServerApiSelectionSearchesSelectionSearch, None] + None """ - data = self._v1alpha_selection_searches_search_search_identifier_get_with_http_info( - search_identifier, _return_http_data_only=True + data = self._save_search_with_http_info( + search_identifier, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _v1alpha_selection_searches_search_search_identifier_get_with_http_info( - self, search_identifier: "str", **kwargs: Any + def _save_search_with_http_info( + self, + search_identifier: "str", + body: "Optional[GrantaServerApiSelectionSearchesSaveSearchRequest]" = None, + **kwargs: Any, ) -> Any: all_params = [ "search_identifier", + "body", "_return_http_data_only", "_preload_content", "_request_timeout", @@ -402,14 +396,14 @@ def _v1alpha_selection_searches_search_search_identifier_get_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_selection_searches_search_search_identifier_get" + f"Got an unexpected keyword argument '{key}' to method save_search" ) params[key] = val del params["kwargs"] # verify the required parameter "search_identifier" is set if "search_identifier" not in params or params["search_identifier"] is None: raise ValueError( - "Missing the required parameter 'search_identifier' when calling 'v1alpha_selection_searches_search_search_identifier_get'" + "Missing the required parameter 'search_identifier' when calling 'save_search'" ) collection_formats: Dict[str, Any] = {} @@ -426,21 +420,28 @@ def _v1alpha_selection_searches_search_search_identifier_get_with_http_info( local_var_files: Dict[str, Any] = {} body_params = None - # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["text/plain", "application/json", "text/json"] + if "body" in params and body is not None: + body_params = params["body"] + # 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 = { - 200: "GrantaServerApiSelectionSearchesSelectionSearch", + 200: None, + 400: None, 403: None, 404: None, - 410: None, } return self.api_client.call_api( "/v1alpha/selection-searches/search/{searchIdentifier}", - "GET", + "PUT", path_params, query_params, header_params, @@ -454,38 +455,32 @@ def _v1alpha_selection_searches_search_search_identifier_get_with_http_info( response_type_map=response_type_map, ) - def v1alpha_selection_searches_search_search_identifier_put( + def search( self, *, - search_identifier: "str", - body: "Optional[GrantaServerApiSelectionSearchesSaveSearchRequest]" = None, - ) -> "None": - """If the search exists, updates the properties of the search. This will overwrite all current properties. If the search does not exist or the calling user does not have access to it, returns '404 not found' response. + body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None, + ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": + """Retrieves a collection of searches that match the specified criteria. This method makes a synchronous HTTP request. Parameters ---------- - search_identifier: str - body: GrantaServerApiSelectionSearchesSaveSearchRequest + body: GrantaServerApiSelectionSearchesFindSearchRequest Returns ------- - None + Union[GrantaServerApiSelectionSearchesSelectionSearch, None] """ - data = self._v1alpha_selection_searches_search_search_identifier_put_with_http_info( - search_identifier, body, _return_http_data_only=True - ) + data = self._search_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_selection_searches_search_search_identifier_put_with_http_info( + def _search_with_http_info( self, - search_identifier: "str", - body: "Optional[GrantaServerApiSelectionSearchesSaveSearchRequest]" = None, + body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None, **kwargs: Any, ) -> Any: all_params = [ - "search_identifier", "body", "_return_http_data_only", "_preload_content", @@ -496,21 +491,14 @@ def _v1alpha_selection_searches_search_search_identifier_put_with_http_info( for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_selection_searches_search_search_identifier_put" + f"Got an unexpected keyword argument '{key}' to method search" ) params[key] = val del params["kwargs"] - # verify the required parameter "search_identifier" is set - if "search_identifier" not in params or params["search_identifier"] is None: - raise ValueError( - "Missing the required parameter 'search_identifier' when calling 'v1alpha_selection_searches_search_search_identifier_put'" - ) collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if "search_identifier" in params and search_identifier is not None: - path_params["searchIdentifier"] = params["search_identifier"] query_params: List[Any] = [] @@ -522,6 +510,11 @@ def _v1alpha_selection_searches_search_search_identifier_put_with_http_info( 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( + ["text/plain", "application/json", "text/json"] + ) + # HTTP header 'Content-Type' header_params["Content-Type"] = self.api_client.select_header_content_type( [ @@ -533,15 +526,14 @@ def _v1alpha_selection_searches_search_search_identifier_put_with_http_info( ) response_type_map = { - 200: None, + 200: "GrantaServerApiSelectionSearchesSelectionSearch", 400: None, 403: None, - 404: None, } return self.api_client.call_api( - "/v1alpha/selection-searches/search/{searchIdentifier}", - "PUT", + "/v1alpha/selection-searches/search", + "POST", path_params, query_params, header_params, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py index c8dfda5f..80428830 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py @@ -33,7 +33,7 @@ class StatusApi(ApiBase): # type: ignore[misc] Ref: https://github.com/swagger-api/swagger-codegen """ - def v1alpha_status_get(self) -> "None": + def get(self) -> "None": """Check whether the API is available This method makes a synchronous HTTP request. @@ -42,17 +42,17 @@ def v1alpha_status_get(self) -> "None": ------- None """ - data = self._v1alpha_status_get_with_http_info(_return_http_data_only=True) + data = self._get_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] - def _v1alpha_status_get_with_http_info(self, **kwargs: Any) -> Any: + def _get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_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 v1alpha_status_get" + f"Got an unexpected keyword argument '{key}' to method get" ) params[key] = val del params["kwargs"] 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 952aec5d..73f6accb 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 @@ -246,6 +246,9 @@ from .granta_server_api_data_datum import GrantaServerApiDataDatum from .granta_server_api_data_datum_type import GrantaServerApiDataDatumType from .granta_server_api_data_discrete_datum import GrantaServerApiDataDiscreteDatum +from .granta_server_api_data_discrete_parameter_with_value import ( + GrantaServerApiDataDiscreteParameterWithValue, +) from .granta_server_api_data_export_attribute_to_export import ( GrantaServerApiDataExportAttributeToExport, ) @@ -500,6 +503,14 @@ from .granta_server_api_data_not_applicable_datum import ( GrantaServerApiDataNotApplicableDatum, ) +from .granta_server_api_data_numeric_parameter_with_value import ( + GrantaServerApiDataNumericParameterWithValue, +) +from .granta_server_api_data_parameter_with_value import ( + GrantaServerApiDataParameterWithValue, +) +from .granta_server_api_data_point_data_value import GrantaServerApiDataPointDataValue +from .granta_server_api_data_point_datum import GrantaServerApiDataPointDatum from .granta_server_api_data_range_datum import GrantaServerApiDataRangeDatum from .granta_server_api_data_rich_text_type import GrantaServerApiDataRichTextType from .granta_server_api_data_rich_text_value import GrantaServerApiDataRichTextValue @@ -548,8 +559,8 @@ from .granta_server_api_exceptions_record_history_record_history_move_exception import ( GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, ) -from .granta_server_api_exceptions_version_control_create_record_version_control_exception import ( - GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, +from .granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException, ) from .granta_server_api_exceptions_version_control_invalid_parent_state_error_detail import ( GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail, @@ -745,6 +756,9 @@ from .granta_server_api_records_record_histories_record_history import ( GrantaServerApiRecordsRecordHistoriesRecordHistory, ) +from .granta_server_api_records_record_histories_record_property_inheritance_type import ( + GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType, +) from .granta_server_api_records_record_histories_slim_record_history import ( GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, ) @@ -1658,30 +1672,9 @@ from .granta_server_api_search_float_functional_graph_datum_criterion import ( GrantaServerApiSearchFloatFunctionalGraphDatumCriterion, ) -from .granta_server_api_search_free_text_all_attributes_criterion import ( - GrantaServerApiSearchFreeTextAllAttributesCriterion, -) -from .granta_server_api_search_free_text_all_criterion import ( - GrantaServerApiSearchFreeTextAllCriterion, -) -from .granta_server_api_search_free_text_all_local_columns_criterion import ( - GrantaServerApiSearchFreeTextAllLocalColumnsCriterion, -) from .granta_server_api_search_free_text_criterion import ( GrantaServerApiSearchFreeTextCriterion, ) -from .granta_server_api_search_free_text_excluding_attributes_criterion import ( - GrantaServerApiSearchFreeTextExcludingAttributesCriterion, -) -from .granta_server_api_search_free_text_excluding_local_columns_criterion import ( - GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion, -) -from .granta_server_api_search_free_text_specified_attributes_criterion import ( - GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion, -) -from .granta_server_api_search_free_text_specified_local_columns_criterion import ( - GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion, -) from .granta_server_api_search_hyperlink_datum_criterion import ( GrantaServerApiSearchHyperlinkDatumCriterion, ) @@ -1911,6 +1904,7 @@ "GrantaServerApiDataDatum", "GrantaServerApiDataDatumType", "GrantaServerApiDataDiscreteDatum", + "GrantaServerApiDataDiscreteParameterWithValue", "GrantaServerApiDataExportAttributeToExport", "GrantaServerApiDataExportDataExportRequest", "GrantaServerApiDataExportDataExportResponse", @@ -1999,6 +1993,10 @@ "GrantaServerApiDataLogicalDatum", "GrantaServerApiDataLongTextDatum", "GrantaServerApiDataNotApplicableDatum", + "GrantaServerApiDataNumericParameterWithValue", + "GrantaServerApiDataParameterWithValue", + "GrantaServerApiDataPointDataValue", + "GrantaServerApiDataPointDatum", "GrantaServerApiDataRangeDatum", "GrantaServerApiDataRichTextType", "GrantaServerApiDataRichTextValue", @@ -2019,7 +2017,7 @@ "GrantaServerApiExceptionsErrorDetail", "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", - "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException", + "GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException", "GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail", "GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail", "GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail", @@ -2092,6 +2090,7 @@ "GrantaServerApiRecordsRecordHistoriesCreateRecordHistory", "GrantaServerApiRecordsRecordHistoriesMoveRecordHistory", "GrantaServerApiRecordsRecordHistoriesRecordHistory", + "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", "GrantaServerApiRecordsRecordVersionsRecordVersion", "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", @@ -2403,14 +2402,7 @@ "GrantaServerApiSearchFileDatumCriterion", "GrantaServerApiSearchFloatFunctionalDatumCriterion", "GrantaServerApiSearchFloatFunctionalGraphDatumCriterion", - "GrantaServerApiSearchFreeTextAllAttributesCriterion", - "GrantaServerApiSearchFreeTextAllCriterion", - "GrantaServerApiSearchFreeTextAllLocalColumnsCriterion", "GrantaServerApiSearchFreeTextCriterion", - "GrantaServerApiSearchFreeTextExcludingAttributesCriterion", - "GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion", - "GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion", - "GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion", "GrantaServerApiSearchHyperlinkDatumCriterion", "GrantaServerApiSearchIndexStatus", "GrantaServerApiSearchIntegerDatumCriterion", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py index 0b04748b..8f843cf8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py @@ -70,6 +70,7 @@ class GrantaServerApiDataApplicableDatum(GrantaServerApiDataDatum): "dateTime".lower(): "#/components/schemas/GrantaServerApiDataDateTimeDatum", "discrete".lower(): "#/components/schemas/GrantaServerApiDataDiscreteDatum", "range".lower(): "#/components/schemas/GrantaServerApiDataRangeDatum", + "point".lower(): "#/components/schemas/GrantaServerApiDataPointDatum", } discriminator: Optional[str] = "datum_type" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py index 8c5fef9d..bad3f287 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py @@ -28,3 +28,4 @@ class GrantaServerApiDataDatumType(Enum): DATETIME = "dateTime" DISCRETE = "discrete" RANGE = "range" + POINT = "point" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py new file mode 100644 index 00000000..f5c9c2ca --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py @@ -0,0 +1,175 @@ +""" + 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, + Dict, + List, + BinaryIO, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( + GrantaServerApiDataParameterWithValue, +) # noqa: F401 + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDataDiscreteParameterWithValue( + GrantaServerApiDataParameterWithValue +): + """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": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + "parameter_value": "GrantaServerApiSchemaParametersDiscreteParameterValue", + "type": "str", + } + + attribute_map: Dict[str, str] = { + "parameter": "parameter", + "parameter_value": "parameterValue", + "type": "type", + } + + subtype_mapping: Dict[str, str] = { + "parameterValue": "GrantaServerApiSchemaParametersDiscreteParameterValue", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + parameter_value: "GrantaServerApiSchemaParametersDiscreteParameterValue", + type: "str" = "discrete", + ) -> None: + """GrantaServerApiDataDiscreteParameterWithValue - a model defined in Swagger + + Parameters + ---------- + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue + type: str + """ + super().__init__(parameter=parameter) + self._type: str = None # type: ignore[assignment] + self._parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue = None # type: ignore[assignment] + + self.type = type + self.parameter_value = parameter_value + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiDataDiscreteParameterWithValue. + + Returns + ------- + str + The type of this GrantaServerApiDataDiscreteParameterWithValue. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiDataDiscreteParameterWithValue. + + Parameters + ---------- + type: str + The type of this GrantaServerApiDataDiscreteParameterWithValue. + """ + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + self._type = type + + @property + def parameter_value( + self, + ) -> "GrantaServerApiSchemaParametersDiscreteParameterValue": + """Gets the parameter_value of this GrantaServerApiDataDiscreteParameterWithValue. + + Returns + ------- + GrantaServerApiSchemaParametersDiscreteParameterValue + The parameter_value of this GrantaServerApiDataDiscreteParameterWithValue. + """ + return self._parameter_value + + @parameter_value.setter + def parameter_value( + self, parameter_value: "GrantaServerApiSchemaParametersDiscreteParameterValue" + ) -> None: + """Sets the parameter_value of this GrantaServerApiDataDiscreteParameterWithValue. + + Parameters + ---------- + parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue + The parameter_value of this GrantaServerApiDataDiscreteParameterWithValue. + """ + if parameter_value is None: + raise ValueError("Invalid value for 'parameter_value', must not be 'None'") + self._parameter_value = parameter_value + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataDiscreteParameterWithValue): + 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/granta_server_api_data_numeric_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py new file mode 100644 index 00000000..3e3cc536 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py @@ -0,0 +1,200 @@ +""" + 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, + Dict, + List, + BinaryIO, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( + GrantaServerApiDataParameterWithValue, +) # noqa: F401 + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDataNumericParameterWithValue( + GrantaServerApiDataParameterWithValue +): + """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": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + "parameter_value": "float", + "type": "str", + "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + } + + attribute_map: Dict[str, str] = { + "parameter": "parameter", + "parameter_value": "parameterValue", + "type": "type", + "unit": "unit", + } + + subtype_mapping: Dict[str, str] = { + "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + parameter_value: "float", + type: "str" = "numeric", + unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + ) -> None: + """GrantaServerApiDataNumericParameterWithValue - a model defined in Swagger + + Parameters + ---------- + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter_value: float + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + """ + super().__init__(parameter=parameter) + self._type: str = None # type: ignore[assignment] + self._parameter_value: float = None # type: ignore[assignment] + self._unit = None + + self.type = type + self.parameter_value = parameter_value + if unit is not None: + self.unit = unit + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiDataNumericParameterWithValue. + + Returns + ------- + str + The type of this GrantaServerApiDataNumericParameterWithValue. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiDataNumericParameterWithValue. + + Parameters + ---------- + type: str + The type of this GrantaServerApiDataNumericParameterWithValue. + """ + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + self._type = type + + @property + def parameter_value(self) -> "float": + """Gets the parameter_value of this GrantaServerApiDataNumericParameterWithValue. + + Returns + ------- + float + The parameter_value of this GrantaServerApiDataNumericParameterWithValue. + """ + return self._parameter_value + + @parameter_value.setter + def parameter_value(self, parameter_value: "float") -> None: + """Sets the parameter_value of this GrantaServerApiDataNumericParameterWithValue. + + Parameters + ---------- + parameter_value: float + The parameter_value of this GrantaServerApiDataNumericParameterWithValue. + """ + if parameter_value is None: + raise ValueError("Invalid value for 'parameter_value', must not be 'None'") + self._parameter_value = parameter_value + + @property + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + """Gets the unit of this GrantaServerApiDataNumericParameterWithValue. + + Returns + ------- + GrantaServerApiSchemaSlimEntitiesSlimUnit + The unit of this GrantaServerApiDataNumericParameterWithValue. + """ + return self._unit + + @unit.setter + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + """Sets the unit of this GrantaServerApiDataNumericParameterWithValue. + + Parameters + ---------- + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + The unit of this GrantaServerApiDataNumericParameterWithValue. + """ + self._unit = unit + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataNumericParameterWithValue): + 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/granta_server_api_data_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py new file mode 100644 index 00000000..81270bd7 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py @@ -0,0 +1,145 @@ +""" + 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, + Dict, + List, + BinaryIO, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDataParameterWithValue(ModelBase): # type: ignore[misc] + """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": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + } + + attribute_map: Dict[str, str] = { + "parameter": "parameter", + } + + subtype_mapping: Dict[str, str] = { + "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + } + + discriminator_value_class_map = { + "discrete".lower(): "#/components/schemas/GrantaServerApiDataDiscreteParameterWithValue", + "numeric".lower(): "#/components/schemas/GrantaServerApiDataNumericParameterWithValue", + } + + discriminator: Optional[str] = "type" + + def __init__( + self, + *, + parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + ) -> None: + """GrantaServerApiDataParameterWithValue - a model defined in Swagger + + Parameters + ---------- + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] + + self.parameter = parameter + + @property + def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + """Gets the parameter of this GrantaServerApiDataParameterWithValue. + + Returns + ------- + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + The parameter of this GrantaServerApiDataParameterWithValue. + """ + return self._parameter + + @parameter.setter + def parameter( + self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + ) -> None: + """Sets the parameter of this GrantaServerApiDataParameterWithValue. + + Parameters + ---------- + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + The parameter of this GrantaServerApiDataParameterWithValue. + """ + if parameter is None: + raise ValueError("Invalid value for 'parameter', must not be 'None'") + self._parameter = parameter + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataParameterWithValue): + 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/granta_server_api_data_point_data_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py new file mode 100644 index 00000000..69f5e22f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py @@ -0,0 +1,230 @@ +""" + 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, + Dict, + List, + BinaryIO, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDataPointDataValue(ModelBase): # type: ignore[misc] + """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_and_values": "list[GrantaServerApiDataParameterWithValue]", + "point_value": "float", + "significant_figures_info": "GrantaServerApiDataSignificantFiguresInfo", + "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + } + + attribute_map: Dict[str, str] = { + "parameter_and_values": "parameterAndValues", + "point_value": "pointValue", + "significant_figures_info": "significantFiguresInfo", + "unit": "unit", + } + + subtype_mapping: Dict[str, str] = { + "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + "significantFiguresInfo": "GrantaServerApiDataSignificantFiguresInfo", + "parameterAndValues": "GrantaServerApiDataParameterWithValue", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + parameter_and_values: "List[GrantaServerApiDataParameterWithValue]", + point_value: "float", + significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]" = None, + unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + ) -> None: + """GrantaServerApiDataPointDataValue - a model defined in Swagger + + Parameters + ---------- + parameter_and_values: List[GrantaServerApiDataParameterWithValue] + point_value: float + significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + """ + self._point_value: float = None # type: ignore[assignment] + self._unit = None + self._significant_figures_info = None + self._parameter_and_values: List[GrantaServerApiDataParameterWithValue] = None # type: ignore[assignment] + + self.point_value = point_value + if unit is not None: + self.unit = unit + if significant_figures_info is not None: + self.significant_figures_info = significant_figures_info + self.parameter_and_values = parameter_and_values + + @property + def point_value(self) -> "float": + """Gets the point_value of this GrantaServerApiDataPointDataValue. + + Returns + ------- + float + The point_value of this GrantaServerApiDataPointDataValue. + """ + return self._point_value + + @point_value.setter + def point_value(self, point_value: "float") -> None: + """Sets the point_value of this GrantaServerApiDataPointDataValue. + + Parameters + ---------- + point_value: float + The point_value of this GrantaServerApiDataPointDataValue. + """ + if point_value is None: + raise ValueError("Invalid value for 'point_value', must not be 'None'") + self._point_value = point_value + + @property + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + """Gets the unit of this GrantaServerApiDataPointDataValue. + + Returns + ------- + GrantaServerApiSchemaSlimEntitiesSlimUnit + The unit of this GrantaServerApiDataPointDataValue. + """ + return self._unit + + @unit.setter + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + """Sets the unit of this GrantaServerApiDataPointDataValue. + + Parameters + ---------- + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + The unit of this GrantaServerApiDataPointDataValue. + """ + self._unit = unit + + @property + def significant_figures_info( + self, + ) -> "Optional[GrantaServerApiDataSignificantFiguresInfo]": + """Gets the significant_figures_info of this GrantaServerApiDataPointDataValue. + + Returns + ------- + GrantaServerApiDataSignificantFiguresInfo + The significant_figures_info of this GrantaServerApiDataPointDataValue. + """ + return self._significant_figures_info + + @significant_figures_info.setter + def significant_figures_info( + self, + significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]", + ) -> None: + """Sets the significant_figures_info of this GrantaServerApiDataPointDataValue. + + Parameters + ---------- + significant_figures_info: GrantaServerApiDataSignificantFiguresInfo + The significant_figures_info of this GrantaServerApiDataPointDataValue. + """ + self._significant_figures_info = significant_figures_info + + @property + def parameter_and_values(self) -> "List[GrantaServerApiDataParameterWithValue]": + """Gets the parameter_and_values of this GrantaServerApiDataPointDataValue. + + Returns + ------- + list[GrantaServerApiDataParameterWithValue] + The parameter_and_values of this GrantaServerApiDataPointDataValue. + """ + return self._parameter_and_values + + @parameter_and_values.setter + def parameter_and_values( + self, parameter_and_values: "List[GrantaServerApiDataParameterWithValue]" + ) -> None: + """Sets the parameter_and_values of this GrantaServerApiDataPointDataValue. + + Parameters + ---------- + parameter_and_values: List[GrantaServerApiDataParameterWithValue] + The parameter_and_values of this GrantaServerApiDataPointDataValue. + """ + if parameter_and_values is None: + raise ValueError( + "Invalid value for 'parameter_and_values', must not be 'None'" + ) + self._parameter_and_values = parameter_and_values + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataPointDataValue): + 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/granta_server_api_data_point_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py new file mode 100644 index 00000000..8d9ad8df --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py @@ -0,0 +1,199 @@ +""" + 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, + Dict, + List, + BinaryIO, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDataPointDatum(GrantaServerApiDataApplicableDatum): + """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", + "values": "list[GrantaServerApiDataPointDataValue]", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map: Dict[str, str] = { + "estimated": "estimated", + "values": "values", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping: Dict[str, str] = { + "values": "GrantaServerApiDataPointDataValue", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + estimated: "bool", + values: "List[GrantaServerApiDataPointDataValue]", + datum_type: "str" = "point", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataPointDatum - a model defined in Swagger + + Parameters + ---------- + estimated: bool + values: List[GrantaServerApiDataPointDataValue] + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type: str = None # type: ignore[assignment] + self._estimated: bool = None # type: ignore[assignment] + self._values: List[GrantaServerApiDataPointDataValue] = None # type: ignore[assignment] + + self.datum_type = datum_type + self.estimated = estimated + self.values = values + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataPointDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataPointDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataPointDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataPointDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def estimated(self) -> "bool": + """Gets the estimated of this GrantaServerApiDataPointDatum. + + Returns + ------- + bool + The estimated of this GrantaServerApiDataPointDatum. + """ + return self._estimated + + @estimated.setter + def estimated(self, estimated: "bool") -> None: + """Sets the estimated of this GrantaServerApiDataPointDatum. + + Parameters + ---------- + estimated: bool + The estimated of this GrantaServerApiDataPointDatum. + """ + if estimated is None: + raise ValueError("Invalid value for 'estimated', must not be 'None'") + self._estimated = estimated + + @property + def values(self) -> "List[GrantaServerApiDataPointDataValue]": + """Gets the values of this GrantaServerApiDataPointDatum. + + Returns + ------- + list[GrantaServerApiDataPointDataValue] + The values of this GrantaServerApiDataPointDatum. + """ + return self._values + + @values.setter + def values(self, values: "List[GrantaServerApiDataPointDataValue]") -> None: + """Sets the values of this GrantaServerApiDataPointDatum. + + Parameters + ---------- + values: List[GrantaServerApiDataPointDataValue] + The values of this GrantaServerApiDataPointDatum. + """ + if values is None: + raise ValueError("Invalid value for 'values', must not be 'None'") + self._values = values + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataPointDatum): + 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/granta_server_api_exceptions_version_control_create_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py similarity index 85% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_create_record_version_control_exception.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py index 672075b7..83a635c7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_create_record_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,7 +72,7 @@ def __init__( errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, message: "Optional[str]" = None, ) -> None: - """GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException - a model defined in Swagger + """GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException - a model defined in Swagger Parameters ---------- @@ -93,45 +93,45 @@ def __init__( @property def message(self) -> "Optional[str]": - """Gets the message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """Gets the message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Returns ------- str - The message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + The message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ return self._message @message.setter def message(self, message: "Optional[str]") -> None: - """Sets the message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """Sets the message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Parameters ---------- message: str - The message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + The message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ self._message = message @property def code(self) -> "Optional[SystemNetHttpStatusCode]": - """Gets the code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """Gets the code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Returns ------- SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + The code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ return self._code @code.setter def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: - """Sets the code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """Sets the code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Parameters ---------- code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + The code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ self._code = code @@ -139,12 +139,12 @@ def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: def errors( self, ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": - """Gets the errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """Gets the errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Returns ------- list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] - The errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + The errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ return self._errors @@ -153,12 +153,12 @@ def errors( self, errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", ) -> None: - """Sets the errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """Sets the errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Parameters ---------- errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] - The errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + The errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ self._errors = errors @@ -186,7 +186,7 @@ def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( other, - GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, + GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException, ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py index 5eabca44..72d9fa4e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py @@ -47,17 +47,20 @@ class GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): # type Name of the property used as discriminator for subtypes. """ swagger_types: Dict[str, str] = { + "subset_option": "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", "new_parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", "new_short_name": "str", } attribute_map: Dict[str, str] = { + "subset_option": "subsetOption", "new_parent": "newParent", "new_short_name": "newShortName", } subtype_mapping: Dict[str, str] = { "newParent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", + "subsetOption": "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", } discriminator: Optional[str] = None @@ -65,6 +68,7 @@ class GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): # type def __init__( self, *, + subset_option: "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", new_parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, new_short_name: "Optional[str]" = None, ) -> None: @@ -72,14 +76,17 @@ def __init__( Parameters ---------- + subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType new_parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional new_short_name: str, optional """ self._new_parent = None + self._subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType = None # type: ignore[assignment] self._new_short_name = None if new_parent is not None: self.new_parent = new_parent + self.subset_option = subset_option if new_short_name is not None: self.new_short_name = new_short_name @@ -110,6 +117,35 @@ def new_parent( """ self._new_parent = new_parent + @property + def subset_option( + self, + ) -> "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType": + """Gets the subset_option of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + + Returns + ------- + GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType + The subset_option of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + """ + return self._subset_option + + @subset_option.setter + def subset_option( + self, + subset_option: "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", + ) -> None: + """Sets the subset_option of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + + Parameters + ---------- + subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType + The subset_option of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + """ + if subset_option is None: + raise ValueError("Invalid value for 'subset_option', must not be 'None'") + self._subset_option = subset_option + @property def new_short_name(self) -> "Optional[str]": """Gets the new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py index 19536c9c..a1f03300 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py @@ -47,24 +47,27 @@ class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): # ty Name of the property used as discriminator for subtypes. """ swagger_types: Dict[str, str] = { - "full_name": "str", + "name": "str", "record_type": "GrantaServerApiRecordType", "guid": "str", "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", - "tree_name": "str", + "record_color": "GrantaServerApiRecordColor", + "short_name": "str", } attribute_map: Dict[str, str] = { - "full_name": "fullName", + "name": "name", "record_type": "recordType", "guid": "guid", "parent": "parent", - "tree_name": "treeName", + "record_color": "recordColor", + "short_name": "shortName", } subtype_mapping: Dict[str, str] = { "recordType": "GrantaServerApiRecordType", "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", + "recordColor": "GrantaServerApiRecordColor", } discriminator: Optional[str] = None @@ -72,34 +75,39 @@ class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): # ty def __init__( self, *, - full_name: "str", + name: "str", record_type: "GrantaServerApiRecordType", guid: "Optional[str]" = None, parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, - tree_name: "Optional[str]" = None, + record_color: "Optional[GrantaServerApiRecordColor]" = None, + short_name: "Optional[str]" = None, ) -> None: """GrantaServerApiRecordsRecordHistoriesCreateRecordHistory - a model defined in Swagger Parameters ---------- - full_name: str + name: str record_type: GrantaServerApiRecordType guid: str, optional parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional - tree_name: str, optional + record_color: GrantaServerApiRecordColor, optional + short_name: str, optional """ self._record_type: GrantaServerApiRecordType = None # type: ignore[assignment] - self._full_name: str = None # type: ignore[assignment] - self._tree_name = None + self._name: str = None # type: ignore[assignment] + self._short_name = None self._parent = None + self._record_color = None self._guid = None self.record_type = record_type - self.full_name = full_name - if tree_name is not None: - self.tree_name = tree_name + self.name = name + if short_name is not None: + self.short_name = short_name if parent is not None: self.parent = parent + if record_color is not None: + self.record_color = record_color if guid is not None: self.guid = guid @@ -128,50 +136,50 @@ def record_type(self, record_type: "GrantaServerApiRecordType") -> None: self._record_type = record_type @property - def full_name(self) -> "str": - """Gets the full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + def name(self) -> "str": + """Gets the name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns ------- str - The full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + The name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ - return self._full_name + return self._name - @full_name.setter - def full_name(self, full_name: "str") -> None: - """Sets the full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + @name.setter + def name(self, name: "str") -> None: + """Sets the name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters ---------- - full_name: str - The full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + name: str + The name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ - if full_name is None: - raise ValueError("Invalid value for 'full_name', must not be 'None'") - self._full_name = full_name + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") + self._name = name @property - def tree_name(self) -> "Optional[str]": - """Gets the tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + def short_name(self) -> "Optional[str]": + """Gets the short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns ------- str - The tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + The short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ - return self._tree_name + return self._short_name - @tree_name.setter - def tree_name(self, tree_name: "Optional[str]") -> None: - """Sets the tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + @short_name.setter + def short_name(self, short_name: "Optional[str]") -> None: + """Sets the short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters ---------- - tree_name: str - The tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + short_name: str + The short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ - self._tree_name = tree_name + self._short_name = short_name @property def parent( @@ -199,6 +207,30 @@ def parent( """ self._parent = parent + @property + def record_color(self) -> "Optional[GrantaServerApiRecordColor]": + """Gets the record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Returns + ------- + GrantaServerApiRecordColor + The record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + return self._record_color + + @record_color.setter + def record_color( + self, record_color: "Optional[GrantaServerApiRecordColor]" + ) -> None: + """Sets the record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Parameters + ---------- + record_color: GrantaServerApiRecordColor + The record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + self._record_color = record_color + @property def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py new file mode 100644 index 00000000..7745242b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py @@ -0,0 +1,25 @@ +""" + 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 GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + NONE = "none" + FROMPARENT = "fromParent" + FROMORIGINALRECORD = "fromOriginalRecord" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_attributes_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_attributes_criterion.py deleted file mode 100644 index 074d9b9c..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_attributes_criterion.py +++ /dev/null @@ -1,213 +0,0 @@ -""" - 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, - Dict, - List, - BinaryIO, - Optional, - Union, -) # noqa: F401 - -from . import ModelBase -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) # noqa: F401 - - -if TYPE_CHECKING: - from datetime import datetime - import pathlib - from . import * - - -class GrantaServerApiSearchFreeTextAllAttributesCriterion( - GrantaServerApiSearchFreeTextCriterion -): - """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] = { - "free_text_criterion_type": "str", - "guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "type": "str", - "value": "str", - } - - attribute_map: Dict[str, str] = { - "free_text_criterion_type": "freeTextCriterionType", - "guids_to_boost": "guidsToBoost", - "identities_to_boost": "identitiesToBoost", - "type": "type", - "value": "value", - } - - subtype_mapping: Dict[str, str] = { - "identitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "guidsToBoost": "GrantaServerApiSearchBoostByGuid", - } - - discriminator: Optional[str] = None - - def __init__( - self, - *, - free_text_criterion_type: "str" = "allAttributes", - guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - type: "str" = "text", - value: "Optional[str]" = None, - ) -> None: - """GrantaServerApiSearchFreeTextAllAttributesCriterion - a model defined in Swagger - - Parameters - ---------- - free_text_criterion_type: str - guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - type: str - value: str, optional - """ - super().__init__(type=type, value=value) - self._identities_to_boost = None - self._guids_to_boost = None - self._free_text_criterion_type: str = None # type: ignore[assignment] - - if identities_to_boost is not None: - self.identities_to_boost = identities_to_boost - if guids_to_boost is not None: - self.guids_to_boost = guids_to_boost - self.free_text_criterion_type = free_text_criterion_type - - @property - def identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the identities_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The identities_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - """ - return self._identities_to_boost - - @identities_to_boost.setter - def identities_to_boost( - self, - identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the identities_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - - Parameters - ---------- - identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The identities_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - """ - self._identities_to_boost = identities_to_boost - - @property - def guids_to_boost(self) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the guids_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The guids_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - """ - return self._guids_to_boost - - @guids_to_boost.setter - def guids_to_boost( - self, guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" - ) -> None: - """Sets the guids_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - - Parameters - ---------- - guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The guids_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - """ - self._guids_to_boost = guids_to_boost - - @property - def free_text_criterion_type(self) -> "str": - """Gets the free_text_criterion_type of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - - Returns - ------- - str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - """ - return self._free_text_criterion_type - - @free_text_criterion_type.setter - def free_text_criterion_type(self, free_text_criterion_type: "str") -> None: - """Sets the free_text_criterion_type of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - - Parameters - ---------- - free_text_criterion_type: str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextAllAttributesCriterion. - """ - if free_text_criterion_type is None: - raise ValueError( - "Invalid value for 'free_text_criterion_type', must not be 'None'" - ) - self._free_text_criterion_type = free_text_criterion_type - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiSearchFreeTextAllAttributesCriterion): - 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/granta_server_api_search_free_text_all_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_criterion.py deleted file mode 100644 index 2f6ebc05..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_criterion.py +++ /dev/null @@ -1,283 +0,0 @@ -""" - 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, - Dict, - List, - BinaryIO, - Optional, - Union, -) # noqa: F401 - -from . import ModelBase -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) # noqa: F401 - - -if TYPE_CHECKING: - from datetime import datetime - import pathlib - from . import * - - -class GrantaServerApiSearchFreeTextAllCriterion(GrantaServerApiSearchFreeTextCriterion): - """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] = { - "attribute_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "attribute_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "column_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "free_text_criterion_type": "str", - "type": "str", - "value": "str", - } - - attribute_map: Dict[str, str] = { - "attribute_guids_to_boost": "attributeGuidsToBoost", - "attribute_identities_to_boost": "attributeIdentitiesToBoost", - "column_guids_to_boost": "columnGuidsToBoost", - "column_identities_to_boost": "columnIdentitiesToBoost", - "free_text_criterion_type": "freeTextCriterionType", - "type": "type", - "value": "value", - } - - subtype_mapping: Dict[str, str] = { - "attributeIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "attributeGuidsToBoost": "GrantaServerApiSearchBoostByGuid", - "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", - } - - discriminator: Optional[str] = None - - def __init__( - self, - *, - attribute_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - attribute_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - free_text_criterion_type: "str" = "all", - type: "str" = "text", - value: "Optional[str]" = None, - ) -> None: - """GrantaServerApiSearchFreeTextAllCriterion - a model defined in Swagger - - Parameters - ---------- - attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - attribute_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - free_text_criterion_type: str - type: str - value: str, optional - """ - super().__init__(type=type, value=value) - self._attribute_identities_to_boost = None - self._attribute_guids_to_boost = None - self._column_identities_to_boost = None - self._column_guids_to_boost = None - self._free_text_criterion_type: str = None # type: ignore[assignment] - - if attribute_identities_to_boost is not None: - self.attribute_identities_to_boost = attribute_identities_to_boost - if attribute_guids_to_boost is not None: - self.attribute_guids_to_boost = attribute_guids_to_boost - if column_identities_to_boost is not None: - self.column_identities_to_boost = column_identities_to_boost - if column_guids_to_boost is not None: - self.column_guids_to_boost = column_guids_to_boost - self.free_text_criterion_type = free_text_criterion_type - - @property - def attribute_identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The attribute_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - return self._attribute_identities_to_boost - - @attribute_identities_to_boost.setter - def attribute_identities_to_boost( - self, - attribute_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Parameters - ---------- - attribute_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The attribute_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - self._attribute_identities_to_boost = attribute_identities_to_boost - - @property - def attribute_guids_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the attribute_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The attribute_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - return self._attribute_guids_to_boost - - @attribute_guids_to_boost.setter - def attribute_guids_to_boost( - self, - attribute_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]", - ) -> None: - """Sets the attribute_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Parameters - ---------- - attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The attribute_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - self._attribute_guids_to_boost = attribute_guids_to_boost - - @property - def column_identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - return self._column_identities_to_boost - - @column_identities_to_boost.setter - def column_identities_to_boost( - self, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the column_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Parameters - ---------- - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - self._column_identities_to_boost = column_identities_to_boost - - @property - def column_guids_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - return self._column_guids_to_boost - - @column_guids_to_boost.setter - def column_guids_to_boost( - self, column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" - ) -> None: - """Sets the column_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - - Parameters - ---------- - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. - """ - self._column_guids_to_boost = column_guids_to_boost - - @property - def free_text_criterion_type(self) -> "str": - """Gets the free_text_criterion_type of this GrantaServerApiSearchFreeTextAllCriterion. - - Returns - ------- - str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextAllCriterion. - """ - return self._free_text_criterion_type - - @free_text_criterion_type.setter - def free_text_criterion_type(self, free_text_criterion_type: "str") -> None: - """Sets the free_text_criterion_type of this GrantaServerApiSearchFreeTextAllCriterion. - - Parameters - ---------- - free_text_criterion_type: str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextAllCriterion. - """ - if free_text_criterion_type is None: - raise ValueError( - "Invalid value for 'free_text_criterion_type', must not be 'None'" - ) - self._free_text_criterion_type = free_text_criterion_type - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiSearchFreeTextAllCriterion): - 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/granta_server_api_search_free_text_all_local_columns_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_local_columns_criterion.py deleted file mode 100644 index 4928ac1c..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_local_columns_criterion.py +++ /dev/null @@ -1,215 +0,0 @@ -""" - 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, - Dict, - List, - BinaryIO, - Optional, - Union, -) # noqa: F401 - -from . import ModelBase -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) # noqa: F401 - - -if TYPE_CHECKING: - from datetime import datetime - import pathlib - from . import * - - -class GrantaServerApiSearchFreeTextAllLocalColumnsCriterion( - GrantaServerApiSearchFreeTextCriterion -): - """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] = { - "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "column_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "free_text_criterion_type": "str", - "type": "str", - "value": "str", - } - - attribute_map: Dict[str, str] = { - "column_guids_to_boost": "columnGuidsToBoost", - "column_identities_to_boost": "columnIdentitiesToBoost", - "free_text_criterion_type": "freeTextCriterionType", - "type": "type", - "value": "value", - } - - subtype_mapping: Dict[str, str] = { - "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", - } - - discriminator: Optional[str] = None - - def __init__( - self, - *, - column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - free_text_criterion_type: "str" = "allLocalColumns", - type: "str" = "text", - value: "Optional[str]" = None, - ) -> None: - """GrantaServerApiSearchFreeTextAllLocalColumnsCriterion - a model defined in Swagger - - Parameters - ---------- - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - free_text_criterion_type: str - type: str - value: str, optional - """ - super().__init__(type=type, value=value) - self._column_identities_to_boost = None - self._column_guids_to_boost = None - self._free_text_criterion_type: str = None # type: ignore[assignment] - - if column_identities_to_boost is not None: - self.column_identities_to_boost = column_identities_to_boost - if column_guids_to_boost is not None: - self.column_guids_to_boost = column_guids_to_boost - self.free_text_criterion_type = free_text_criterion_type - - @property - def column_identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - """ - return self._column_identities_to_boost - - @column_identities_to_boost.setter - def column_identities_to_boost( - self, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the column_identities_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - - Parameters - ---------- - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - """ - self._column_identities_to_boost = column_identities_to_boost - - @property - def column_guids_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - """ - return self._column_guids_to_boost - - @column_guids_to_boost.setter - def column_guids_to_boost( - self, column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" - ) -> None: - """Sets the column_guids_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - - Parameters - ---------- - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - """ - self._column_guids_to_boost = column_guids_to_boost - - @property - def free_text_criterion_type(self) -> "str": - """Gets the free_text_criterion_type of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - - Returns - ------- - str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - """ - return self._free_text_criterion_type - - @free_text_criterion_type.setter - def free_text_criterion_type(self, free_text_criterion_type: "str") -> None: - """Sets the free_text_criterion_type of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - - Parameters - ---------- - free_text_criterion_type: str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. - """ - if free_text_criterion_type is None: - raise ValueError( - "Invalid value for 'free_text_criterion_type', must not be 'None'" - ) - self._free_text_criterion_type = free_text_criterion_type - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiSearchFreeTextAllLocalColumnsCriterion): - 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/granta_server_api_search_free_text_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py index 4f698d04..8db6cd85 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py @@ -46,38 +46,51 @@ class GrantaServerApiSearchFreeTextCriterion(GrantaServerApiSearchCriterion): 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] = { + "attribute_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", + "attribute_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", + "attributes": "GrantaServerApiValueSpecifier", + "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", + "column_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", + "local_columns": "GrantaServerApiValueSpecifier", "type": "str", "value": "str", } attribute_map: Dict[str, str] = { + "attribute_guids_to_boost": "attributeGuidsToBoost", + "attribute_identities_to_boost": "attributeIdentitiesToBoost", + "attributes": "attributes", + "column_guids_to_boost": "columnGuidsToBoost", + "column_identities_to_boost": "columnIdentitiesToBoost", + "local_columns": "localColumns", "type": "type", "value": "value", } - subtype_mapping: Dict[str, str] = {} - - discriminator_value_class_map = { - "all".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextAllCriterion", - "allAttributes".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextAllAttributesCriterion", - "excludingAttributes".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextExcludingAttributesCriterion", - "specifiedAttributes".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion", - "allLocalColumns".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextAllLocalColumnsCriterion", - "excludingLocalColumns".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion", - "specifiedLocalColumns".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion", + subtype_mapping: Dict[str, str] = { + "attributes": "GrantaServerApiValueSpecifier", + "localColumns": "GrantaServerApiValueSpecifier", + "attributeIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", + "attributeGuidsToBoost": "GrantaServerApiSearchBoostByGuid", + "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", + "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator: Optional[str] = "free_text_criterion_type" + discriminator: Optional[str] = None def __init__( self, *, + attribute_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, + attribute_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, + attributes: "Optional[GrantaServerApiValueSpecifier]" = None, + column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, + column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, + local_columns: "Optional[GrantaServerApiValueSpecifier]" = None, type: "str" = "text", value: "Optional[str]" = None, ) -> None: @@ -85,15 +98,39 @@ def __init__( Parameters ---------- + attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional + attribute_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional + attributes: GrantaServerApiValueSpecifier, optional + column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional + column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional + local_columns: GrantaServerApiValueSpecifier, optional type: str value: str, optional """ super().__init__() self._value = None + self._attributes = None + self._local_columns = None + self._attribute_identities_to_boost = None + self._attribute_guids_to_boost = None + self._column_identities_to_boost = None + self._column_guids_to_boost = None self._type: str = None # type: ignore[assignment] if value is not None: self.value = value + if attributes is not None: + self.attributes = attributes + if local_columns is not None: + self.local_columns = local_columns + if attribute_identities_to_boost is not None: + self.attribute_identities_to_boost = attribute_identities_to_boost + if attribute_guids_to_boost is not None: + self.attribute_guids_to_boost = attribute_guids_to_boost + if column_identities_to_boost is not None: + self.column_identities_to_boost = column_identities_to_boost + if column_guids_to_boost is not None: + self.column_guids_to_boost = column_guids_to_boost self.type = type @property @@ -118,6 +155,159 @@ def value(self, value: "Optional[str]") -> None: """ self._value = value + @property + def attributes(self) -> "Optional[GrantaServerApiValueSpecifier]": + """Gets the attributes of this GrantaServerApiSearchFreeTextCriterion. + + Returns + ------- + GrantaServerApiValueSpecifier + The attributes of this GrantaServerApiSearchFreeTextCriterion. + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes: "Optional[GrantaServerApiValueSpecifier]") -> None: + """Sets the attributes of this GrantaServerApiSearchFreeTextCriterion. + + Parameters + ---------- + attributes: GrantaServerApiValueSpecifier + The attributes of this GrantaServerApiSearchFreeTextCriterion. + """ + self._attributes = attributes + + @property + def local_columns(self) -> "Optional[GrantaServerApiValueSpecifier]": + """Gets the local_columns of this GrantaServerApiSearchFreeTextCriterion. + + Returns + ------- + GrantaServerApiValueSpecifier + The local_columns of this GrantaServerApiSearchFreeTextCriterion. + """ + return self._local_columns + + @local_columns.setter + def local_columns( + self, local_columns: "Optional[GrantaServerApiValueSpecifier]" + ) -> None: + """Sets the local_columns of this GrantaServerApiSearchFreeTextCriterion. + + Parameters + ---------- + local_columns: GrantaServerApiValueSpecifier + The local_columns of this GrantaServerApiSearchFreeTextCriterion. + """ + self._local_columns = local_columns + + @property + def attribute_identities_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": + """Gets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Returns + ------- + list[GrantaServerApiSearchBoostByIdentity] + The attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + return self._attribute_identities_to_boost + + @attribute_identities_to_boost.setter + def attribute_identities_to_boost( + self, + attribute_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", + ) -> None: + """Sets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Parameters + ---------- + attribute_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] + The attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + self._attribute_identities_to_boost = attribute_identities_to_boost + + @property + def attribute_guids_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": + """Gets the attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Returns + ------- + list[GrantaServerApiSearchBoostByGuid] + The attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + return self._attribute_guids_to_boost + + @attribute_guids_to_boost.setter + def attribute_guids_to_boost( + self, + attribute_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]", + ) -> None: + """Sets the attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Parameters + ---------- + attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] + The attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + self._attribute_guids_to_boost = attribute_guids_to_boost + + @property + def column_identities_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": + """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Returns + ------- + list[GrantaServerApiSearchBoostByIdentity] + The column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + return self._column_identities_to_boost + + @column_identities_to_boost.setter + def column_identities_to_boost( + self, + column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", + ) -> None: + """Sets the column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Parameters + ---------- + column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] + The column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + self._column_identities_to_boost = column_identities_to_boost + + @property + def column_guids_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": + """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Returns + ------- + list[GrantaServerApiSearchBoostByGuid] + The column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + return self._column_guids_to_boost + + @column_guids_to_boost.setter + def column_guids_to_boost( + self, column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" + ) -> None: + """Sets the column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + Parameters + ---------- + column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] + The column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + """ + self._column_guids_to_boost = column_guids_to_boost + @property def type(self) -> "str": """Gets the type of this GrantaServerApiSearchFreeTextCriterion. @@ -144,24 +334,19 @@ def type(self, type: "str") -> None: @classmethod def get_real_child_model(cls, data: ModelBase) -> str: - """Returns the real base class as determined by the discriminator + """Raises a NotImplementedError for a type without a discriminator defined. 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]) + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() def __repr__(self) -> str: """For 'print' and 'pprint'""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_excluding_attributes_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_excluding_attributes_criterion.py deleted file mode 100644 index cf97c7d9..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_excluding_attributes_criterion.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - 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, - Dict, - List, - BinaryIO, - Optional, - Union, -) # noqa: F401 - -from . import ModelBase -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) # noqa: F401 - - -if TYPE_CHECKING: - from datetime import datetime - import pathlib - from . import * - - -class GrantaServerApiSearchFreeTextExcludingAttributesCriterion( - GrantaServerApiSearchFreeTextCriterion -): - """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] = { - "free_text_criterion_type": "str", - "guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "guids_to_exclude": "list[str]", - "identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "identities_to_exclude": "list[int]", - "type": "str", - "value": "str", - } - - attribute_map: Dict[str, str] = { - "free_text_criterion_type": "freeTextCriterionType", - "guids_to_boost": "guidsToBoost", - "guids_to_exclude": "guidsToExclude", - "identities_to_boost": "identitiesToBoost", - "identities_to_exclude": "identitiesToExclude", - "type": "type", - "value": "value", - } - - subtype_mapping: Dict[str, str] = { - "identitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "guidsToBoost": "GrantaServerApiSearchBoostByGuid", - } - - discriminator: Optional[str] = None - - def __init__( - self, - *, - free_text_criterion_type: "str" = "excludingAttributes", - guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - guids_to_exclude: "Optional[List[str]]" = None, - identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - identities_to_exclude: "Optional[List[int]]" = None, - type: "str" = "text", - value: "Optional[str]" = None, - ) -> None: - """GrantaServerApiSearchFreeTextExcludingAttributesCriterion - a model defined in Swagger - - Parameters - ---------- - free_text_criterion_type: str - guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - guids_to_exclude: List[str], optional - identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - identities_to_exclude: List[int], optional - type: str - value: str, optional - """ - super().__init__(type=type, value=value) - self._identities_to_boost = None - self._identities_to_exclude = None - self._guids_to_boost = None - self._guids_to_exclude = None - self._free_text_criterion_type: str = None # type: ignore[assignment] - - if identities_to_boost is not None: - self.identities_to_boost = identities_to_boost - if identities_to_exclude is not None: - self.identities_to_exclude = identities_to_exclude - if guids_to_boost is not None: - self.guids_to_boost = guids_to_boost - if guids_to_exclude is not None: - self.guids_to_exclude = guids_to_exclude - self.free_text_criterion_type = free_text_criterion_type - - @property - def identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the identities_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The identities_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - return self._identities_to_boost - - @identities_to_boost.setter - def identities_to_boost( - self, - identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the identities_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Parameters - ---------- - identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The identities_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - self._identities_to_boost = identities_to_boost - - @property - def identities_to_exclude(self) -> "Optional[List[int]]": - """Gets the identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Returns - ------- - list[int] - The identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - return self._identities_to_exclude - - @identities_to_exclude.setter - def identities_to_exclude( - self, identities_to_exclude: "Optional[List[int]]" - ) -> None: - """Sets the identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Parameters - ---------- - identities_to_exclude: List[int] - The identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - self._identities_to_exclude = identities_to_exclude - - @property - def guids_to_boost(self) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the guids_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The guids_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - return self._guids_to_boost - - @guids_to_boost.setter - def guids_to_boost( - self, guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" - ) -> None: - """Sets the guids_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Parameters - ---------- - guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The guids_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - self._guids_to_boost = guids_to_boost - - @property - def guids_to_exclude(self) -> "Optional[List[str]]": - """Gets the guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Returns - ------- - list[str] - The guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - return self._guids_to_exclude - - @guids_to_exclude.setter - def guids_to_exclude(self, guids_to_exclude: "Optional[List[str]]") -> None: - """Sets the guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Parameters - ---------- - guids_to_exclude: List[str] - The guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - self._guids_to_exclude = guids_to_exclude - - @property - def free_text_criterion_type(self) -> "str": - """Gets the free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Returns - ------- - str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - return self._free_text_criterion_type - - @free_text_criterion_type.setter - def free_text_criterion_type(self, free_text_criterion_type: "str") -> None: - """Sets the free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - - Parameters - ---------- - free_text_criterion_type: str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. - """ - if free_text_criterion_type is None: - raise ValueError( - "Invalid value for 'free_text_criterion_type', must not be 'None'" - ) - self._free_text_criterion_type = free_text_criterion_type - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchFreeTextExcludingAttributesCriterion - ): - 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/granta_server_api_search_free_text_excluding_local_columns_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_excluding_local_columns_criterion.py deleted file mode 100644 index 8e0fb844..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_excluding_local_columns_criterion.py +++ /dev/null @@ -1,279 +0,0 @@ -""" - 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, - Dict, - List, - BinaryIO, - Optional, - Union, -) # noqa: F401 - -from . import ModelBase -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) # noqa: F401 - - -if TYPE_CHECKING: - from datetime import datetime - import pathlib - from . import * - - -class GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion( - GrantaServerApiSearchFreeTextCriterion -): - """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] = { - "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "column_guids_to_exclude": "list[str]", - "column_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "column_identities_to_exclude": "list[int]", - "free_text_criterion_type": "str", - "type": "str", - "value": "str", - } - - attribute_map: Dict[str, str] = { - "column_guids_to_boost": "columnGuidsToBoost", - "column_guids_to_exclude": "columnGuidsToExclude", - "column_identities_to_boost": "columnIdentitiesToBoost", - "column_identities_to_exclude": "columnIdentitiesToExclude", - "free_text_criterion_type": "freeTextCriterionType", - "type": "type", - "value": "value", - } - - subtype_mapping: Dict[str, str] = { - "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", - } - - discriminator: Optional[str] = None - - def __init__( - self, - *, - column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - column_guids_to_exclude: "Optional[List[str]]" = None, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - column_identities_to_exclude: "Optional[List[int]]" = None, - free_text_criterion_type: "str" = "excludingLocalColumns", - type: "str" = "text", - value: "Optional[str]" = None, - ) -> None: - """GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion - a model defined in Swagger - - Parameters - ---------- - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - column_guids_to_exclude: List[str], optional - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - column_identities_to_exclude: List[int], optional - free_text_criterion_type: str - type: str - value: str, optional - """ - super().__init__(type=type, value=value) - self._column_identities_to_boost = None - self._column_identities_to_exclude = None - self._column_guids_to_boost = None - self._column_guids_to_exclude = None - self._free_text_criterion_type: str = None # type: ignore[assignment] - - if column_identities_to_boost is not None: - self.column_identities_to_boost = column_identities_to_boost - if column_identities_to_exclude is not None: - self.column_identities_to_exclude = column_identities_to_exclude - if column_guids_to_boost is not None: - self.column_guids_to_boost = column_guids_to_boost - if column_guids_to_exclude is not None: - self.column_guids_to_exclude = column_guids_to_exclude - self.free_text_criterion_type = free_text_criterion_type - - @property - def column_identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - return self._column_identities_to_boost - - @column_identities_to_boost.setter - def column_identities_to_boost( - self, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the column_identities_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Parameters - ---------- - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - self._column_identities_to_boost = column_identities_to_boost - - @property - def column_identities_to_exclude(self) -> "Optional[List[int]]": - """Gets the column_identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Returns - ------- - list[int] - The column_identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - return self._column_identities_to_exclude - - @column_identities_to_exclude.setter - def column_identities_to_exclude( - self, column_identities_to_exclude: "Optional[List[int]]" - ) -> None: - """Sets the column_identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Parameters - ---------- - column_identities_to_exclude: List[int] - The column_identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - self._column_identities_to_exclude = column_identities_to_exclude - - @property - def column_guids_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - return self._column_guids_to_boost - - @column_guids_to_boost.setter - def column_guids_to_boost( - self, column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" - ) -> None: - """Sets the column_guids_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Parameters - ---------- - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - self._column_guids_to_boost = column_guids_to_boost - - @property - def column_guids_to_exclude(self) -> "Optional[List[str]]": - """Gets the column_guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Returns - ------- - list[str] - The column_guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - return self._column_guids_to_exclude - - @column_guids_to_exclude.setter - def column_guids_to_exclude( - self, column_guids_to_exclude: "Optional[List[str]]" - ) -> None: - """Sets the column_guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Parameters - ---------- - column_guids_to_exclude: List[str] - The column_guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - self._column_guids_to_exclude = column_guids_to_exclude - - @property - def free_text_criterion_type(self) -> "str": - """Gets the free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Returns - ------- - str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - return self._free_text_criterion_type - - @free_text_criterion_type.setter - def free_text_criterion_type(self, free_text_criterion_type: "str") -> None: - """Sets the free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - - Parameters - ---------- - free_text_criterion_type: str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. - """ - if free_text_criterion_type is None: - raise ValueError( - "Invalid value for 'free_text_criterion_type', must not be 'None'" - ) - self._free_text_criterion_type = free_text_criterion_type - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion - ): - 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/granta_server_api_search_free_text_specified_attributes_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_specified_attributes_criterion.py deleted file mode 100644 index 8d7c274d..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_specified_attributes_criterion.py +++ /dev/null @@ -1,273 +0,0 @@ -""" - 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, - Dict, - List, - BinaryIO, - Optional, - Union, -) # noqa: F401 - -from . import ModelBase -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) # noqa: F401 - - -if TYPE_CHECKING: - from datetime import datetime - import pathlib - from . import * - - -class GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion( - GrantaServerApiSearchFreeTextCriterion -): - """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] = { - "free_text_criterion_type": "str", - "guids": "list[str]", - "guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "identities": "list[int]", - "identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "type": "str", - "value": "str", - } - - attribute_map: Dict[str, str] = { - "free_text_criterion_type": "freeTextCriterionType", - "guids": "guids", - "guids_to_boost": "guidsToBoost", - "identities": "identities", - "identities_to_boost": "identitiesToBoost", - "type": "type", - "value": "value", - } - - subtype_mapping: Dict[str, str] = { - "identitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "guidsToBoost": "GrantaServerApiSearchBoostByGuid", - } - - discriminator: Optional[str] = None - - def __init__( - self, - *, - free_text_criterion_type: "str" = "specifiedAttributes", - guids: "Optional[List[str]]" = None, - guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - identities: "Optional[List[int]]" = None, - identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - type: "str" = "text", - value: "Optional[str]" = None, - ) -> None: - """GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion - a model defined in Swagger - - Parameters - ---------- - free_text_criterion_type: str - guids: List[str], optional - guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - identities: List[int], optional - identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - type: str - value: str, optional - """ - super().__init__(type=type, value=value) - self._identities = None - self._identities_to_boost = None - self._guids = None - self._guids_to_boost = None - self._free_text_criterion_type: str = None # type: ignore[assignment] - - if identities is not None: - self.identities = identities - if identities_to_boost is not None: - self.identities_to_boost = identities_to_boost - if guids is not None: - self.guids = guids - if guids_to_boost is not None: - self.guids_to_boost = guids_to_boost - self.free_text_criterion_type = free_text_criterion_type - - @property - def identities(self) -> "Optional[List[int]]": - """Gets the identities of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Returns - ------- - list[int] - The identities of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - return self._identities - - @identities.setter - def identities(self, identities: "Optional[List[int]]") -> None: - """Sets the identities of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Parameters - ---------- - identities: List[int] - The identities of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - self._identities = identities - - @property - def identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - return self._identities_to_boost - - @identities_to_boost.setter - def identities_to_boost( - self, - identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Parameters - ---------- - identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - self._identities_to_boost = identities_to_boost - - @property - def guids(self) -> "Optional[List[str]]": - """Gets the guids of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Returns - ------- - list[str] - The guids of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - return self._guids - - @guids.setter - def guids(self, guids: "Optional[List[str]]") -> None: - """Sets the guids of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Parameters - ---------- - guids: List[str] - The guids of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - self._guids = guids - - @property - def guids_to_boost(self) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - return self._guids_to_boost - - @guids_to_boost.setter - def guids_to_boost( - self, guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" - ) -> None: - """Sets the guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Parameters - ---------- - guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - self._guids_to_boost = guids_to_boost - - @property - def free_text_criterion_type(self) -> "str": - """Gets the free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Returns - ------- - str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - return self._free_text_criterion_type - - @free_text_criterion_type.setter - def free_text_criterion_type(self, free_text_criterion_type: "str") -> None: - """Sets the free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - - Parameters - ---------- - free_text_criterion_type: str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. - """ - if free_text_criterion_type is None: - raise ValueError( - "Invalid value for 'free_text_criterion_type', must not be 'None'" - ) - self._free_text_criterion_type = free_text_criterion_type - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion - ): - 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/granta_server_api_search_free_text_specified_local_columns_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_specified_local_columns_criterion.py deleted file mode 100644 index f9b564ff..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_specified_local_columns_criterion.py +++ /dev/null @@ -1,275 +0,0 @@ -""" - 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, - Dict, - List, - BinaryIO, - Optional, - Union, -) # noqa: F401 - -from . import ModelBase -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) # noqa: F401 - - -if TYPE_CHECKING: - from datetime import datetime - import pathlib - from . import * - - -class GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion( - GrantaServerApiSearchFreeTextCriterion -): - """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] = { - "column_guids": "list[str]", - "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", - "column_identities": "list[int]", - "column_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", - "free_text_criterion_type": "str", - "type": "str", - "value": "str", - } - - attribute_map: Dict[str, str] = { - "column_guids": "columnGuids", - "column_guids_to_boost": "columnGuidsToBoost", - "column_identities": "columnIdentities", - "column_identities_to_boost": "columnIdentitiesToBoost", - "free_text_criterion_type": "freeTextCriterionType", - "type": "type", - "value": "value", - } - - subtype_mapping: Dict[str, str] = { - "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", - "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", - } - - discriminator: Optional[str] = None - - def __init__( - self, - *, - column_guids: "Optional[List[str]]" = None, - column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - column_identities: "Optional[List[int]]" = None, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - free_text_criterion_type: "str" = "specifiedLocalColumns", - type: "str" = "text", - value: "Optional[str]" = None, - ) -> None: - """GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion - a model defined in Swagger - - Parameters - ---------- - column_guids: List[str], optional - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - column_identities: List[int], optional - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - free_text_criterion_type: str - type: str - value: str, optional - """ - super().__init__(type=type, value=value) - self._column_identities = None - self._column_identities_to_boost = None - self._column_guids = None - self._column_guids_to_boost = None - self._free_text_criterion_type: str = None # type: ignore[assignment] - - if column_identities is not None: - self.column_identities = column_identities - if column_identities_to_boost is not None: - self.column_identities_to_boost = column_identities_to_boost - if column_guids is not None: - self.column_guids = column_guids - if column_guids_to_boost is not None: - self.column_guids_to_boost = column_guids_to_boost - self.free_text_criterion_type = free_text_criterion_type - - @property - def column_identities(self) -> "Optional[List[int]]": - """Gets the column_identities of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Returns - ------- - list[int] - The column_identities of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - return self._column_identities - - @column_identities.setter - def column_identities(self, column_identities: "Optional[List[int]]") -> None: - """Sets the column_identities of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Parameters - ---------- - column_identities: List[int] - The column_identities of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - self._column_identities = column_identities - - @property - def column_identities_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": - """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - return self._column_identities_to_boost - - @column_identities_to_boost.setter - def column_identities_to_boost( - self, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", - ) -> None: - """Sets the column_identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Parameters - ---------- - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] - The column_identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - self._column_identities_to_boost = column_identities_to_boost - - @property - def column_guids(self) -> "Optional[List[str]]": - """Gets the column_guids of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Returns - ------- - list[str] - The column_guids of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - return self._column_guids - - @column_guids.setter - def column_guids(self, column_guids: "Optional[List[str]]") -> None: - """Sets the column_guids of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Parameters - ---------- - column_guids: List[str] - The column_guids of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - self._column_guids = column_guids - - @property - def column_guids_to_boost( - self, - ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": - """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Returns - ------- - list[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - return self._column_guids_to_boost - - @column_guids_to_boost.setter - def column_guids_to_boost( - self, column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" - ) -> None: - """Sets the column_guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Parameters - ---------- - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] - The column_guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - self._column_guids_to_boost = column_guids_to_boost - - @property - def free_text_criterion_type(self) -> "str": - """Gets the free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Returns - ------- - str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - return self._free_text_criterion_type - - @free_text_criterion_type.setter - def free_text_criterion_type(self, free_text_criterion_type: "str") -> None: - """Sets the free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - - Parameters - ---------- - free_text_criterion_type: str - The free_text_criterion_type of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. - """ - if free_text_criterion_type is None: - raise ValueError( - "Invalid value for 'free_text_criterion_type', must not be 'None'" - ) - self._free_text_criterion_type = free_text_criterion_type - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> 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() # type: ignore[no-any-return] - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion - ): - 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/yaml/server-api.json b/yaml/server-api.json index 7aace86f..d96ad206 100644 --- a/yaml/server-api.json +++ b/yaml/server-api.json @@ -11,6 +11,7 @@ "Aggregation" ], "summary": "Runs an aggregation against the table.", + "operationId": "DatabaseAggregationForTableWithIdentity", "parameters": [ { "name": "database-key", @@ -61,218 +62,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 129": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 130": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 131": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 132": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 133": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "fe8df77f-0ed1-4f91-8580-d2e1afec2129", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 134": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "1d0682a6-327f-454a-8bcd-ac273f31d8a1", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 135": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "5e97b74c-7cf0-4498-8647-4c44e89aed10", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 136": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -281,218 +109,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 129": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 130": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 131": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 132": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 133": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "fe8df77f-0ed1-4f91-8580-d2e1afec2129", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 134": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "1d0682a6-327f-454a-8bcd-ac273f31d8a1", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 135": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "5e97b74c-7cf0-4498-8647-4c44e89aed10", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 136": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -501,218 +156,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 129": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 130": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 131": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 132": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 133": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "fe8df77f-0ed1-4f91-8580-d2e1afec2129", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 134": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "1d0682a6-327f-454a-8bcd-ac273f31d8a1", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 135": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "5e97b74c-7cf0-4498-8647-4c44e89aed10", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 136": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -721,218 +203,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 129": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 130": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 131": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 132": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 133": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "fe8df77f-0ed1-4f91-8580-d2e1afec2129", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 134": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "1d0682a6-327f-454a-8bcd-ac273f31d8a1", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 135": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "5e97b74c-7cf0-4498-8647-4c44e89aed10", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 136": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } } @@ -971,6 +280,7 @@ "Aggregation" ], "summary": "Runs an aggregation against the table.", + "operationId": "DatabaseAggregationForTableWithGuid", "parameters": [ { "name": "database-key", @@ -1021,218 +331,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 137": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 138": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 139": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 140": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 141": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "0042ade2-90d9-4793-8d2f-54584db48a95", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 142": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "e97c38e4-9dd6-4dbf-883a-c273b6c914aa", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 143": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "12d37126-c605-4723-a819-a426d2725da3", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 144": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -1241,218 +378,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 137": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 138": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 139": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 140": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 141": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "0042ade2-90d9-4793-8d2f-54584db48a95", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 142": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "e97c38e4-9dd6-4dbf-883a-c273b6c914aa", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 143": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "12d37126-c605-4723-a819-a426d2725da3", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 144": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -1461,218 +425,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 137": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 138": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 139": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 140": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 141": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "0042ade2-90d9-4793-8d2f-54584db48a95", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 142": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "e97c38e4-9dd6-4dbf-883a-c273b6c914aa", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 143": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "12d37126-c605-4723-a819-a426d2725da3", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 144": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -1681,218 +472,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 137": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 138": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 139": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 140": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 141": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "0042ade2-90d9-4793-8d2f-54584db48a95", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 142": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "e97c38e4-9dd6-4dbf-883a-c273b6c914aa", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 143": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "12d37126-c605-4723-a819-a426d2725da3", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 144": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } } @@ -1931,6 +549,7 @@ "Aggregation" ], "summary": "Runs an aggregation against the database.", + "operationId": "DatabaseAggregation", "parameters": [ { "name": "database-key", @@ -1972,218 +591,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 145": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 146": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 147": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 148": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 149": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "41eca430-7aa9-4013-a9b1-bc678913ed98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 150": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "c180f674-91d1-4a39-84e4-bca7c46d03ea", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 151": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "96b17ae2-45ea-4b3a-8cc9-5d51212657cf", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 152": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -2192,218 +638,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 145": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 146": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 147": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 148": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 149": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "41eca430-7aa9-4013-a9b1-bc678913ed98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 150": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "c180f674-91d1-4a39-84e4-bca7c46d03ea", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 151": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "96b17ae2-45ea-4b3a-8cc9-5d51212657cf", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 152": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -2412,218 +685,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 145": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 146": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 147": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 148": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 149": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "41eca430-7aa9-4013-a9b1-bc678913ed98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 150": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "c180f674-91d1-4a39-84e4-bca7c46d03ea", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 151": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "96b17ae2-45ea-4b3a-8cc9-5d51212657cf", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 152": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -2632,218 +732,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 145": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 146": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 147": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 148": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 149": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "41eca430-7aa9-4013-a9b1-bc678913ed98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 150": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "c180f674-91d1-4a39-84e4-bca7c46d03ea", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 151": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "96b17ae2-45ea-4b3a-8cc9-5d51212657cf", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 152": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } } @@ -2882,6 +809,7 @@ "Aggregation" ], "summary": "Runs an aggregation against the integration schema.", + "operationId": "IntegrationAggregation", "parameters": [ { "name": "schema", @@ -2899,218 +827,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 153": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 154": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 155": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 156": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 157": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "abc54cb1-2986-474e-b6d6-e22aa8bee86a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 158": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "4bc8897a-a3ad-4b4f-b8e7-432c2fef446a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 159": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "290634dc-be9a-4ae2-b819-de0bbaa94b98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 160": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -3119,218 +874,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 153": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 154": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 155": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 156": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 157": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "abc54cb1-2986-474e-b6d6-e22aa8bee86a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 158": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "4bc8897a-a3ad-4b4f-b8e7-432c2fef446a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 159": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "290634dc-be9a-4ae2-b819-de0bbaa94b98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 160": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -3339,218 +921,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 153": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 154": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 155": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 156": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 157": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "abc54cb1-2986-474e-b6d6-e22aa8bee86a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 158": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "4bc8897a-a3ad-4b4f-b8e7-432c2fef446a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 159": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "290634dc-be9a-4ae2-b819-de0bbaa94b98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 160": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } }, @@ -3559,218 +968,45 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 153": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "exists", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 154": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "type": "integer" - }, - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 155": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 156": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "st", - "type": "shortText" - }, - "identity": 10907, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 157": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "abc54cb1-2986-474e-b6d6-e22aa8bee86a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "all" - }, - "localColumns": { - "filterOn": "all" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 158": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "4bc8897a-a3ad-4b4f-b8e7-432c2fef446a", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "identities": [ - -4, - -7, - 10907 - ], - "guids": [], - "filterOn": "specific" - }, - "localColumns": { - "filterOn": "none" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 159": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": { - "criterion": { - "all": [], - "any": [], - "none": [], - "type": "boolean" - }, - "aggregationCriteria": [ - { - "criterionGuid": "290634dc-be9a-4ae2-b819-de0bbaa94b98", - "numberOfTerms": 10, - "prefix": "st", - "attributes": { - "filterOn": "none" - }, - "localColumns": { - "excludedIdentities": [], - "excludedGuids": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "filterOn": "exclude" - }, - "type": "text" - } - ] - } + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 160": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": { - "criterion": { - "innerCriterion": { - "type": "dateTime" - }, - "attributeCriterionType": "exists", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - "aggregationCriteria": [ - { - "attributeAggregationCriterionType": "value", - "innerCriterion": { - "numberOfTerms": 10, - "prefix": "", - "type": "discreteText" - }, - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} } } } @@ -3809,6 +1045,7 @@ "Data" ], "summary": "Get a datum for a given database, table, record history, record version and attribute.", + "operationId": "GetDatumForVersionFromTable", "parameters": [ { "name": "database-key", @@ -3888,23 +1125,15 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 17": { + "Example 33": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": { - "datumType": "integer", - "value": 7, - "notApplicable": "applicable" - } + "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 18": { + "Example 34": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": { - "datumType": "logical", - "value": true, - "notApplicable": "applicable" - } + "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} } } } @@ -3922,6 +1151,7 @@ "Data" ], "summary": "Get a datum for a given attribute and the latest version of a record history in given database and table.", + "operationId": "GetDatumForLatestFromTable", "parameters": [ { "name": "database-key", @@ -3992,23 +1222,15 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 19": { + "Example 35": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": { - "datumType": "integer", - "value": 7, - "notApplicable": "applicable" - } + "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 20": { + "Example 36": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": { - "datumType": "logical", - "value": true, - "notApplicable": "applicable" - } + "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} } } } @@ -4026,6 +1248,7 @@ "Data" ], "summary": "Get a datum for a given database, record history, record version and attribute.", + "operationId": "GetDatumForVersion", "parameters": [ { "name": "database-key", @@ -4096,23 +1319,15 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 21": { + "Example 37": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": { - "datumType": "integer", - "value": 7, - "notApplicable": "applicable" - } + "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 22": { + "Example 38": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": { - "datumType": "logical", - "value": true, - "notApplicable": "applicable" - } + "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} } } } @@ -4130,6 +1345,7 @@ "Data" ], "summary": "Get a datum for a given attribute and the latest version of a record history in given database.", + "operationId": "GetDatumForLatest", "parameters": [ { "name": "database-key", @@ -4191,23 +1407,15 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 23": { + "Example 39": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": { - "datumType": "integer", - "value": 7, - "notApplicable": "applicable" - } + "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 24": { + "Example 40": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": { - "datumType": "logical", - "value": true, - "notApplicable": "applicable" - } + "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} } } } @@ -4225,6 +1433,7 @@ "Database" ], "summary": "Get Search Index Status for a given database", + "operationId": "GetStatus", "parameters": [ { "name": "database-key", @@ -4280,6 +1489,7 @@ "Database" ], "summary": "Generate an integration schema from the attributes in the given table. The user must be an Admin user for the database.", + "operationId": "GenerateSchemaFromTable", "parameters": [ { "name": "database-key", @@ -4337,6 +1547,7 @@ "Database" ], "summary": "Generate an integration schema from the attributes in the given table. The user must be an Admin user for the database.", + "operationId": "GenerateSchemaFromTableName", "parameters": [ { "name": "database-key", @@ -4393,6 +1604,7 @@ "Database" ], "summary": "Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database.", + "operationId": "GenerateSchemaFromLayout", "parameters": [ { "name": "database-key", @@ -4460,6 +1672,7 @@ "Database" ], "summary": "Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database.", + "operationId": "GenerateSchemaFromLayoutWithTableName", "parameters": [ { "name": "database-key", @@ -4526,6 +1739,7 @@ "Database" ], "summary": "Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database.", + "operationId": "GenerateSchemaFromLayoutName", "parameters": [ { "name": "database-key", @@ -4592,6 +1806,7 @@ "Database" ], "summary": "Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database.", + "operationId": "GenerateSchemaFromLayoutNameWithTableName", "parameters": [ { "name": "database-key", @@ -4657,6 +1872,7 @@ "Database" ], "summary": "Generate an integration schema with attributes for each provided standard name in the given database. The user must be an Admin user for the database.", + "operationId": "GenerateSchemaFromStandardNames", "parameters": [ { "name": "database-key", @@ -4741,6 +1957,7 @@ "Database" ], "summary": "Generate an integration schema with attributes for each provided standard name. This will include attribute from all loaded databases for which the user is an Admin.", + "operationId": "GenerateSchemaFromStandardNamesAllDatabases", "requestBody": { "description": "", "content": { @@ -4814,6 +2031,7 @@ "DataExport" ], "summary": "Export data from the given database.", + "operationId": "ExportData", "parameters": [ { "name": "database-key", @@ -4855,460 +2073,70 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 53": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "00000144-0001-4fff-8fff-dd92ffff0000" - }, - { - "attributeType": "simple", - "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" - } - ], - "recordProperties": [ - "fullName", - "recordColor" - ], - "recordHistoryIdentities": [ - 8925, - 11331 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 54": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 55": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": { - "attributes": [ - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 56": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": true, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120738 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 57": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "include", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 58": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "exclude", - "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120483 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 59": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "dynamicLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 121939 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 60": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 61": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "rollUpType": "mean", - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 62": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 63": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 64": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - } - ], - "linkedRecordsExportBehavior": { - "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", - "linkedRecordsCriterion": { - "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", - "type": "subset" - } - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 65": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "summaryRollUpType": "listDistinct", - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" - } - ], - "linkedRecordsExportBehavior": { - "summaryRollUpType": "listDistinct" - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} } } }, @@ -5317,460 +2145,70 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 53": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "00000144-0001-4fff-8fff-dd92ffff0000" - }, - { - "attributeType": "simple", - "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" - } - ], - "recordProperties": [ - "fullName", - "recordColor" - ], - "recordHistoryIdentities": [ - 8925, - 11331 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 54": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 55": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": { - "attributes": [ - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 56": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": true, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120738 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 57": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "include", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 58": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "exclude", - "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120483 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 59": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "dynamicLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 121939 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 60": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 61": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "rollUpType": "mean", - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 62": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 63": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 64": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - } - ], - "linkedRecordsExportBehavior": { - "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", - "linkedRecordsCriterion": { - "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", - "type": "subset" - } - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 65": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "summaryRollUpType": "listDistinct", - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" - } - ], - "linkedRecordsExportBehavior": { - "summaryRollUpType": "listDistinct" - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} } } }, @@ -5779,460 +2217,70 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 53": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "00000144-0001-4fff-8fff-dd92ffff0000" - }, - { - "attributeType": "simple", - "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" - } - ], - "recordProperties": [ - "fullName", - "recordColor" - ], - "recordHistoryIdentities": [ - 8925, - 11331 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 54": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 55": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": { - "attributes": [ - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 56": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": true, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120738 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 57": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "include", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 58": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "exclude", - "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120483 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 59": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "dynamicLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 121939 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 60": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 61": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "rollUpType": "mean", - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 62": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 63": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 64": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - } - ], - "linkedRecordsExportBehavior": { - "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", - "linkedRecordsCriterion": { - "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", - "type": "subset" - } - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 65": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "summaryRollUpType": "listDistinct", - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" - } - ], - "linkedRecordsExportBehavior": { - "summaryRollUpType": "listDistinct" - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} } } }, @@ -6241,460 +2289,70 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 53": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "00000144-0001-4fff-8fff-dd92ffff0000" - }, - { - "attributeType": "simple", - "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" - } - ], - "recordProperties": [ - "fullName", - "recordColor" - ], - "recordHistoryIdentities": [ - 8925, - 11331 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 54": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 55": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": { - "attributes": [ - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 56": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": true, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120738 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 57": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "include", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 58": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "exclude", - "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 120483 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 59": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "dynamicLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName" - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 121939 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 60": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 61": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": { - "attributes": [ - { - "attributeType": "simple", - "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" - }, - { - "localData": [], - "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "attributeType": "link", - "linkAttributeType": "recordLink", - "exportInReversedDirection": false, - "recordProperties": [ - "fullName", - "recordColor" - ], - "attributes": [ - { - "rollUpType": "mean", - "attributeType": "simple", - "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "b3503337-8287-4946-b312-2100fb51779d" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" - } - ], - "recordProperties": [ - "tableName", - "fullName" - ], - "recordHistoryIdentities": [ - 120139 - ] - } + "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 62": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 63": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "localData": [], - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } - ], - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 64": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": { - "attributes": [ - { - "localData": [ - { - "attributeType": "simple", - "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" - } - ], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - } - ], - "linkedRecordsExportBehavior": { - "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", - "linkedRecordsCriterion": { - "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", - "type": "subset" - } - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 65": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": { - "attributes": [ - { - "localData": [], - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "attributeType": "link", - "linkAttributeType": "tabularAttribute", - "exportInReversedDirection": false, - "attributes": [ - { - "summaryRollUpType": "listDistinct", - "attributeType": "simple", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - { - "rollUpType": "max", - "attributeType": "simple", - "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" - } - ], - "linkedRecordsExportBehavior": { - "summaryRollUpType": "listDistinct" - }, - "indirectLinksBehavior": "fromLinkDefinition", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ], - "recordProperties": [ - "fullName" - ], - "recordHistoryIdentities": [ - 8930 - ] - } + "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} } } } @@ -6736,6 +2394,7 @@ "DataExport" ], "summary": "Export data from the integration schema.", + "operationId": "ExportDataFromIntegrationSchema", "parameters": [ { "name": "schema", @@ -6803,6 +2462,7 @@ "Integration" ], "summary": "Lists the available integration schemas.", + "operationId": "Schemas", "responses": { "200": { "description": "Success", @@ -6840,6 +2500,7 @@ "Integration" ], "summary": "Add an integration schema. Will fail if the schema is not valid, or if the user is not both a global administrator and an administrator for the schema.", + "operationId": "AddSchema", "requestBody": { "content": { "application/json-patch+json": { @@ -6899,6 +2560,7 @@ "tags": [ "Integration" ], + "operationId": "GetStatusForIntegrationSchema", "parameters": [ { "name": "schema", @@ -6946,6 +2608,7 @@ "Integration" ], "summary": "Returns the status of all available integration schemas.", + "operationId": "AllSchemaStatus", "parameters": [ { "name": "include-diagnostics", @@ -6994,6 +2657,7 @@ "Integration" ], "summary": "Updates an integration schema, or adds a new one if there is not one with the same key already.\r\nWill fail if the schema is not valid, or if the user is not both a global administrator and an administrator for the schema.", + "operationId": "UpdateSchema", "parameters": [ { "name": "schema", @@ -7062,6 +2726,7 @@ "Integration" ], "summary": "Delete an integration schema. Will fail if the schema does not exist, or if the user is not both a global administrator and an administrator for the schema.", + "operationId": "DeleteSchema", "parameters": [ { "name": "schema", @@ -7090,6 +2755,7 @@ "Integration" ], "summary": "Returns the full object representing the integration schema.\r\nNames and identities of source items will be populated if they can be found in the databases currently loaded in MI, otherwise just the GUIDs will be returned.", + "operationId": "GetSchema", "parameters": [ { "name": "schema", @@ -7142,6 +2808,7 @@ "Integration" ], "summary": "Returns a list of the attributes defined in the integration schema.", + "operationId": "SchemaTargets", "parameters": [ { "name": "schema", @@ -7203,6 +2870,7 @@ "Integration" ], "summary": "Returns a list of the schema source mapping from the given table. Will fail if the database is not loaded in MI.\r\nNames and identities of source items will be populated.", + "operationId": "SchemaTableMappings", "parameters": [ { "name": "schema", @@ -7272,6 +2940,7 @@ "JobQueue" ], "summary": "Get a list of jobs.", + "operationId": "GetJobs", "parameters": [ { "name": "jobType", @@ -7353,6 +3022,7 @@ "JobQueue" ], "summary": "Create a new job.", + "operationId": "CreateJob", "requestBody": { "content": { "application/json-patch+json": { @@ -7405,6 +3075,7 @@ "JobQueue" ], "summary": "Delete specified jobs.", + "operationId": "DeleteJobs", "requestBody": { "content": { "application/json-patch+json": { @@ -7493,6 +3164,7 @@ "JobQueue" ], "summary": "Get job by ID.", + "operationId": "GetJob", "parameters": [ { "name": "id", @@ -7536,6 +3208,7 @@ "JobQueue" ], "summary": "Update a job.", + "operationId": "UpdateJob", "parameters": [ { "name": "id", @@ -7602,6 +3275,7 @@ "JobQueue" ], "summary": "Delete a job.", + "operationId": "DeleteJob", "parameters": [ { "name": "id", @@ -7632,6 +3306,7 @@ "JobQueue" ], "summary": "Get a job creation object based on an existing job.", + "operationId": "RestoreJob", "parameters": [ { "name": "id", @@ -7676,6 +3351,7 @@ "JobQueue" ], "summary": "Move a job to the top of the queue (actually sets the scheduled execution date to now, could be done with patch method).", + "operationId": "MoveToTop", "parameters": [ { "name": "id", @@ -7703,6 +3379,7 @@ "JobQueue" ], "summary": "Resubmit a job.", + "operationId": "Resubmit", "parameters": [ { "name": "id", @@ -7771,6 +3448,7 @@ "JobQueue" ], "summary": "Uploads an ephemeral file and returns an ID which can subsequently be used to refer to that file in a job creation request. Ephemeral files have a short lifespan\r\nand should be used to provide file data to jobs only. They should not be used as file storage.", + "operationId": "UploadFile", "requestBody": { "content": { "multipart/form-data": { @@ -7821,6 +3499,7 @@ "JobQueue" ], "summary": "Get a job's output filenames.", + "operationId": "GetOutputFilenames", "parameters": [ { "name": "id", @@ -7874,6 +3553,7 @@ "JobQueue" ], "summary": "Retrieve a job output file.", + "operationId": "GetJobOutputFile", "parameters": [ { "name": "id", @@ -7917,6 +3597,7 @@ "JobQueue" ], "summary": "Get the current user.", + "operationId": "GetCurrentUser", "responses": { "200": { "description": "Success", @@ -7947,6 +3628,7 @@ "JobQueue" ], "summary": "Get the processing configuration.", + "operationId": "GetProcessingConfig", "responses": { "200": { "description": "Success", @@ -7977,6 +3659,7 @@ "License" ], "summary": "Checks out server wide licenses and returns a bool for each provided app name indicating if\r\nthe relevant license(s) required have been checked out.", + "operationId": "CheckoutAppLicense", "requestBody": { "content": { "application/json-patch+json": { @@ -7984,24 +3667,15 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 9": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "MI BoM Analyzer" - ] - } + "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 10": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "RS Reports", - "Sustainability Analytics" - ] - } + "value": {"appNames":["RS Reports","Sustainability Analytics"]} } } }, @@ -8010,24 +3684,15 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 9": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "MI BoM Analyzer" - ] - } + "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 10": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "RS Reports", - "Sustainability Analytics" - ] - } + "value": {"appNames":["RS Reports","Sustainability Analytics"]} } } }, @@ -8036,24 +3701,15 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 9": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "MI BoM Analyzer" - ] - } + "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 10": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "RS Reports", - "Sustainability Analytics" - ] - } + "value": {"appNames":["RS Reports","Sustainability Analytics"]} } } }, @@ -8062,24 +3718,15 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 9": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "MI BoM Analyzer" - ] - } + "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 10": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": { - "appNames": [ - "RS Reports", - "Sustainability Analytics" - ] - } + "value": {"appNames":["RS Reports","Sustainability Analytics"]} } } } @@ -8115,6 +3762,7 @@ "ListItem" ], "summary": "Returns the items in the given list", + "operationId": "GetListItems", "parameters": [ { "name": "listIdentifier", @@ -8162,6 +3810,7 @@ "ListItem" ], "summary": "Adds the specified items to an existing list.", + "operationId": "AddItemsToList", "parameters": [ { "name": "listIdentifier", @@ -8236,6 +3885,7 @@ "ListItem" ], "summary": "Removed the specified items from an existing list.", + "operationId": "RemoveItemsFromList", "parameters": [ { "name": "listIdentifier", @@ -8310,6 +3960,7 @@ "ListManagement" ], "summary": "Returns all lists visible to the calling user", + "operationId": "GetAllLists", "responses": { "200": { "description": "Ok", @@ -8341,6 +3992,7 @@ "ListManagement" ], "summary": "Creates a new list with the specified properties and items.", + "operationId": "CreateList", "requestBody": { "content": { "application/json-patch+json": { @@ -8401,6 +4053,7 @@ "ListManagement" ], "summary": "Posts a search request, and returns an object containing search result identifier", + "operationId": "RunRecordListsSearch", "requestBody": { "content": { "application/json-patch+json": { @@ -8461,6 +4114,7 @@ "ListManagement" ], "summary": "Returns the search results found in the specified resource", + "operationId": "GetRecordListSearchResults", "parameters": [ { "name": "resultResourceIdentifier", @@ -8511,6 +4165,7 @@ "ListManagement" ], "summary": "Returns the given list if it exists and the calling user has read access to it", + "operationId": "GetList", "parameters": [ { "name": "listIdentifier", @@ -8556,6 +4211,7 @@ "ListManagement" ], "summary": "Performs a partial update on the properties of a list.", + "operationId": "UpdateList", "parameters": [ { "name": "listIdentifier", @@ -8574,27 +4230,15 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": { - "name": "new name", - "published": false, - "awaitingApproval": false, - "internalUse": false - } + "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 10": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": { - "name": "new name", - "description": "new description", - "notes": "new notes", - "published": false, - "awaitingApproval": true, - "internalUse": true - } + "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} } } }, @@ -8603,27 +4247,15 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": { - "name": "new name", - "published": false, - "awaitingApproval": false, - "internalUse": false - } + "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 10": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": { - "name": "new name", - "description": "new description", - "notes": "new notes", - "published": false, - "awaitingApproval": true, - "internalUse": true - } + "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} } } }, @@ -8632,27 +4264,15 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": { - "name": "new name", - "published": false, - "awaitingApproval": false, - "internalUse": false - } + "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 10": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": { - "name": "new name", - "description": "new description", - "notes": "new notes", - "published": false, - "awaitingApproval": true, - "internalUse": true - } + "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} } } }, @@ -8661,27 +4281,15 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": { - "name": "new name", - "published": false, - "awaitingApproval": false, - "internalUse": false - } + "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 10": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": { - "name": "new name", - "description": "new description", - "notes": "new notes", - "published": false, - "awaitingApproval": true, - "internalUse": true - } + "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} } } } @@ -8724,6 +4332,7 @@ "ListManagement" ], "summary": "Delete an existing list.", + "operationId": "DeleteList", "parameters": [ { "name": "listIdentifier", @@ -8754,6 +4363,7 @@ "ListManagement" ], "summary": "Update the status of an existing list to \"awaiting approval\".", + "operationId": "RequestApproval", "parameters": [ { "name": "listIdentifier", @@ -8804,6 +4414,7 @@ "ListManagement" ], "summary": "Update the status of an existing list to not be \"awaiting approval\".", + "operationId": "ResetAwaitingApproval", "parameters": [ { "name": "listIdentifier", @@ -8854,6 +4465,7 @@ "ListManagement" ], "summary": "Update the status of an existing list to \"published\". The list must be awaiting approval, and not already published.\r\nThe \"awaiting approval\" flag will be reset to false.", + "operationId": "PublishList", "parameters": [ { "name": "listIdentifier", @@ -8904,6 +4516,7 @@ "ListManagement" ], "summary": "Update the status of an existing list to \"unpublished\". The list must be published, and awaiting approval.\r\nThe \"awaiting approval\" flag will be reset to false.", + "operationId": "UnpublishList", "parameters": [ { "name": "listIdentifier", @@ -8954,6 +4567,7 @@ "ListManagement" ], "summary": "Creates a private copy of a list that can be revised.", + "operationId": "ReviseList", "parameters": [ { "name": "listIdentifier", @@ -9004,6 +4618,7 @@ "ListManagement" ], "summary": "Creates a copy of the list and its items", + "operationId": "CopyList", "parameters": [ { "name": "listIdentifier", @@ -9051,6 +4666,7 @@ "ListPermissions" ], "summary": "Subscribes the calling user to the specified list.", + "operationId": "Subscribe", "parameters": [ { "name": "listIdentifier", @@ -9101,6 +4717,7 @@ "ListPermissions" ], "summary": "Unsubscribes the calling user from the specified list.", + "operationId": "Unsubscribe", "parameters": [ { "name": "listIdentifier", @@ -9151,6 +4768,7 @@ "ListPermissions" ], "summary": "Gets all permissions associated with the specified list.", + "operationId": "GetPermissions", "parameters": [ { "name": "listIdentifier", @@ -9196,6 +4814,7 @@ "ListPermissions" ], "summary": "Sets permissions for the specified list. Returns a collection of the created/updated permissions.", + "operationId": "SetPermissions", "parameters": [ { "name": "listIdentifier", @@ -9270,6 +4889,7 @@ "ListPermissions" ], "summary": "Gets the permission flags of the permission associating the specified list with the specified user.", + "operationId": "GetPermissionsForUser", "parameters": [ { "name": "listIdentifier", @@ -9324,6 +4944,7 @@ "ListPermissions" ], "summary": "Sets the permission flags of the permission associating the specified list with the specified user.", + "operationId": "SetPermissionsForUser", "parameters": [ { "name": "listIdentifier", @@ -9407,6 +5028,7 @@ "Records - Record Histories" ], "summary": "Get a record history with a specified guid for a given database and table.", + "operationId": "GetRecordHistoryFromTable", "parameters": [ { "name": "database-key", @@ -9467,34 +5089,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": { - "isFolder": false, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "parent": { - "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - }, - "recordVersions": [ - { - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } - ], - "subsets": [ - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - } - ], - "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" - } + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} } } }, @@ -9510,6 +5105,7 @@ "Records - Record Histories" ], "summary": "Get a record history with a specified guid for a given database.", + "operationId": "GetRecordHistory", "parameters": [ { "name": "database-key", @@ -9561,34 +5157,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": { - "isFolder": false, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "parent": { - "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - }, - "recordVersions": [ - { - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } - ], - "subsets": [ - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - } - ], - "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" - } + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} } } }, @@ -9604,6 +5173,7 @@ "Records - Record Histories" ], "summary": "Create a new record history.", + "operationId": "CreateRecordHistory", "parameters": [ { "name": "database-key", @@ -9630,48 +5200,30 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 9": { + "Example 21": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordType": "record", - "fullName": "New Record Name" - } + "value": {"recordType":"record","name":"New Record Name"} }, - "Example 10": { + "Example 22": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "record", - "fullName": "Alumino Silicate - 1756", - "treeName": "1756", - "parent": { - "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } - } + "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 11": { + "Example 23": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "folder", - "fullName": "Borosilicate", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "guid": "88de0280-e298-41e4-bbee-572d19b679a2" - } + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} + }, + "Example 24": { + "summary": "Record History with specified colour", + "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 12": { + "Example 25": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "generic", - "fullName": "Soda-zinc", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} } } }, @@ -9680,48 +5232,30 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 9": { + "Example 21": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordType": "record", - "fullName": "New Record Name" - } + "value": {"recordType":"record","name":"New Record Name"} }, - "Example 10": { + "Example 22": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "record", - "fullName": "Alumino Silicate - 1756", - "treeName": "1756", - "parent": { - "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } - } + "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 11": { + "Example 23": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "folder", - "fullName": "Borosilicate", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "guid": "88de0280-e298-41e4-bbee-572d19b679a2" - } + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} }, - "Example 12": { + "Example 24": { + "summary": "Record History with specified colour", + "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} + }, + "Example 25": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "generic", - "fullName": "Soda-zinc", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} } } }, @@ -9730,48 +5264,30 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 9": { + "Example 21": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordType": "record", - "fullName": "New Record Name" - } + "value": {"recordType":"record","name":"New Record Name"} }, - "Example 10": { + "Example 22": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "record", - "fullName": "Alumino Silicate - 1756", - "treeName": "1756", - "parent": { - "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } - } + "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 11": { + "Example 23": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "folder", - "fullName": "Borosilicate", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "guid": "88de0280-e298-41e4-bbee-572d19b679a2" - } + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} + }, + "Example 24": { + "summary": "Record History with specified colour", + "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 12": { + "Example 25": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "generic", - "fullName": "Soda-zinc", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} } } }, @@ -9780,48 +5296,30 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 9": { + "Example 21": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordType": "record", - "fullName": "New Record Name" - } + "value": {"recordType":"record","name":"New Record Name"} }, - "Example 10": { + "Example 22": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "record", - "fullName": "Alumino Silicate - 1756", - "treeName": "1756", - "parent": { - "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } - } + "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 11": { + "Example 23": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "folder", - "fullName": "Borosilicate", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "guid": "88de0280-e298-41e4-bbee-572d19b679a2" - } + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} }, - "Example 12": { + "Example 24": { + "summary": "Record History with specified colour", + "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} + }, + "Example 25": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "recordType": "generic", - "fullName": "Soda-zinc", - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} } } } @@ -9835,29 +5333,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": { - "isFolder": false, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "parent": { - "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - }, - "recordVersions": [ - { - "versionNumber": 1, - "versionState": "unversioned", - "name": "New Alumino Silicate Record", - "guid": "d3916598-7d9e-4088-88f8-ec93d9add7be" - } - ], - "subsets": [], - "guid": "3dec73be-8b39-41c8-a307-fd2fb3fa18fa" - } + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"0dddda27-dc24-4b20-869c-7ee63702b65c"}],"subsets":[],"guid":"23040748-770f-4eca-8053-d9d4bfe7cb9e"} } } }, @@ -9879,6 +5355,7 @@ "Records - Record Histories" ], "summary": "Move a record history to be under a new parent.", + "operationId": "MoveRecordHistoryInTable", "parameters": [ { "name": "database-key", @@ -9914,16 +5391,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 18": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -9935,16 +5408,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 18": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -9956,16 +5425,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 18": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -9977,16 +5442,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 18": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -10003,34 +5464,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": { - "isFolder": false, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "recordVersions": [ - { - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } - ], - "subsets": [ - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - } - ], - "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" - } + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} } } }, @@ -10042,70 +5476,25 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 21": { + "Example 41": { "summary": "New parent is not a folder.", - "value": { - "message": "Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", - "reason": "ParentNotAFolder" - } - ] - } + "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 22": { + "Example 42": { "summary": "New parent is not in the same table.", - "value": { - "message": "Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", - "reason": "ParentNotInSameTable" - } - ] - } + "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 23": { + "Example 43": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", - "value": { - "message": "Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", - "code": 400, - "errors": [ - { - "message": "A record with the short name 'Sheet' already exists in the parent folder.", - "reason": "ShortNameExistsInFolder" - } - ] - } + "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 24": { + "Example 44": { "summary": "New parent is withdrawn.", - "value": { - "message": "Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", - "reason": "ParentIsWithdrawn" - } - ] - } + "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 25": { + "Example 45": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", - "value": { - "message": "Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.", - "code": 400, - "errors": [ - { - "message": "New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.", - "reason": "ParentIsADescendant" - } - ] - } + "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } } } @@ -10126,6 +5515,7 @@ "Records - Record Histories" ], "summary": "Move a record history to be under a new parent.", + "operationId": "MoveRecordHistory", "parameters": [ { "name": "database-key", @@ -10152,16 +5542,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 19": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 20": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -10173,16 +5559,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 19": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 20": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -10194,16 +5576,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 19": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 20": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -10215,16 +5593,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 19": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 20": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -10241,34 +5615,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": { - "isFolder": false, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "recordVersions": [ - { - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } - ], - "subsets": [ - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - } - ], - "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" - } + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} } } }, @@ -10280,70 +5627,25 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 26": { + "Example 46": { "summary": "New parent is not a folder.", - "value": { - "message": "Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", - "reason": "ParentNotAFolder" - } - ] - } + "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 27": { + "Example 47": { "summary": "New parent is not in the same table.", - "value": { - "message": "Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", - "reason": "ParentNotInSameTable" - } - ] - } + "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 28": { + "Example 48": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", - "value": { - "message": "Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", - "code": 400, - "errors": [ - { - "message": "A record with the short name 'Sheet' already exists in the parent folder.", - "reason": "ShortNameExistsInFolder" - } - ] - } + "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 29": { + "Example 49": { "summary": "New parent is withdrawn.", - "value": { - "message": "Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", - "reason": "ParentIsWithdrawn" - } - ] - } + "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 30": { + "Example 50": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", - "value": { - "message": "Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.", - "code": 400, - "errors": [ - { - "message": "New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.", - "reason": "ParentIsADescendant" - } - ] - } + "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } } } @@ -10364,6 +5666,7 @@ "Records - Record Histories" ], "summary": "Make a copy of a record history.", + "operationId": "CopyRecordHistoryInTable", "parameters": [ { "name": "database-key", @@ -10399,31 +5702,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { - "summary": "Copy Record History - no name change", + "Example 25": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { - "summary": "Copy Record History - with name change", + "Example 26": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { - "summary": "Copy Record History to be directly under the Table.", + "Example 27": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } }, @@ -10432,31 +5724,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { - "summary": "Copy Record History - no name change", + "Example 25": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { - "summary": "Copy Record History - with name change", + "Example 26": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { - "summary": "Copy Record History to be directly under the Table.", + "Example 27": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } }, @@ -10465,31 +5746,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { - "summary": "Copy Record History - no name change", + "Example 25": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { - "summary": "Copy Record History - with name change", + "Example 26": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { - "summary": "Copy Record History to be directly under the Table.", + "Example 27": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } }, @@ -10498,31 +5768,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { - "summary": "Copy Record History - no name change", + "Example 25": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { - "summary": "Copy Record History - with name change", + "Example 26": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { - "summary": "Copy Record History to be directly under the Table.", + "Example 27": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } } @@ -10536,34 +5795,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": { - "isFolder": false, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "recordVersions": [ - { - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } - ], - "subsets": [ - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - } - ], - "guid": "a00eedfc-6d70-4987-97b9-547bb2900247" - } + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"1583a185-f713-4c9e-8b3a-b1bfc4765a5f"} } } }, @@ -10575,57 +5807,21 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 17": { + "Example 33": { "summary": "New parent is not a folder.", - "value": { - "message": "Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", - "reason": "ParentNotAFolder" - } - ] - } + "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 18": { + "Example 34": { "summary": "New parent is not in the same table.", - "value": { - "message": "Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", - "reason": "ParentNotInSameTable" - } - ] - } + "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 19": { + "Example 35": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", - "value": { - "message": "Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", - "code": 400, - "errors": [ - { - "message": "A record with the short name 'Sheet' already exists in the parent folder.", - "reason": "ShortNameExistsInFolder" - } - ] - } + "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 20": { + "Example 36": { "summary": "New parent is withdrawn.", - "value": { - "message": "Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", - "reason": "ParentIsWithdrawn" - } - ] - } + "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } } } @@ -10646,6 +5842,7 @@ "Records - Record Histories" ], "summary": "Make a copy of a record history.", + "operationId": "CopyRecordHistory", "parameters": [ { "name": "database-key", @@ -10672,31 +5869,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { - "summary": "Copy Record History - no name change", + "Example 28": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { - "summary": "Copy Record History - with name change", + "Example 29": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { - "summary": "Copy Record History to be directly under the Table.", + "Example 30": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } }, @@ -10705,31 +5891,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { - "summary": "Copy Record History - no name change", + "Example 28": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { - "summary": "Copy Record History - with name change", + "Example 29": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { - "summary": "Copy Record History to be directly under the Table.", + "Example 30": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } }, @@ -10738,31 +5913,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { - "summary": "Copy Record History - no name change", + "Example 28": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { - "summary": "Copy Record History - with name change", + "Example 29": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { - "summary": "Copy Record History to be directly under the Table.", + "Example 30": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } }, @@ -10771,31 +5935,20 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { - "summary": "Copy Record History - no name change", + "Example 28": { + "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - } - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { - "summary": "Copy Record History - with name change", + "Example 29": { + "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "newParent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "newShortName": "Short name for new record" - } + "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { - "summary": "Copy Record History to be directly under the Table.", + "Example 30": { + "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": { - "newShortName": "Short name for new record" - } + "value": {"subsetOption":"none","newShortName":"Short name for new record"} } } } @@ -10809,34 +5962,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": { - "isFolder": false, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "parent": { - "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" - }, - "recordVersions": [ - { - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } - ], - "subsets": [ - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - } - ], - "guid": "047bcee9-3b72-4d5e-ad7b-1e3a8d77a822" - } + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"4d4383a5-cea5-4270-8f2b-386da20f594e"} } } }, @@ -10848,57 +5974,21 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 21": { + "Example 37": { "summary": "New parent is not a folder.", - "value": { - "message": "Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", - "reason": "ParentNotAFolder" - } - ] - } + "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 22": { + "Example 38": { "summary": "New parent is not in the same table.", - "value": { - "message": "Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", - "reason": "ParentNotInSameTable" - } - ] - } + "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 23": { + "Example 39": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", - "value": { - "message": "Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", - "code": 400, - "errors": [ - { - "message": "A record with the short name 'Sheet' already exists in the parent folder.", - "reason": "ShortNameExistsInFolder" - } - ] - } + "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 24": { + "Example 40": { "summary": "New parent is withdrawn.", - "value": { - "message": "Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", - "code": 400, - "errors": [ - { - "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", - "reason": "ParentIsWithdrawn" - } - ] - } + "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } } } @@ -10919,6 +6009,7 @@ "Records - Record Histories" ], "summary": "Get the latest record version for a record history for a given database and table.", + "operationId": "GetLatestRecordVersionFromTable", "parameters": [ { "name": "database-key", @@ -10979,30 +6070,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": { - "recordHistory": { - "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" - }, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "databaseKey": "MI_TRAINING", - "createdByUser": "A User", - "createdDate": "2018-01-01T00:00:00-00:00", - "lastModifiedByUser": "A User", - "lastModifiedDate": "2018-01-02T00:00:00-00:00", - "recordType": "record", - "shortName": "Alumino silicate - 1720", - "recordColor": "fuchsia", - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -11018,6 +6086,7 @@ "Records - Record Histories" ], "summary": "Get the latest record version for a record history for a given database.", + "operationId": "GetLatestRecordVersion", "parameters": [ { "name": "database-key", @@ -11069,30 +6138,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": { - "recordHistory": { - "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" - }, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "databaseKey": "MI_TRAINING", - "createdByUser": "A User", - "createdDate": "2018-01-01T00:00:00-00:00", - "lastModifiedByUser": "A User", - "lastModifiedDate": "2018-01-02T00:00:00-00:00", - "recordType": "record", - "shortName": "Alumino silicate - 1720", - "recordColor": "fuchsia", - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -11108,6 +6154,7 @@ "Records - Record Versions" ], "summary": "Get a record version with a specified guid for a given database, table and record history.", + "operationId": "GetRecordVersion", "parameters": [ { "name": "database-key", @@ -11177,30 +6224,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": { - "recordHistory": { - "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" - }, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "databaseKey": "MI_TRAINING", - "createdByUser": "A User", - "createdDate": "2018-01-01T00:00:00-00:00", - "lastModifiedByUser": "A User", - "lastModifiedDate": "2018-01-02T00:00:00-00:00", - "recordType": "record", - "shortName": "Alumino silicate - 1720", - "recordColor": "fuchsia", - "versionNumber": 1, - "versionState": "unversioned", - "name": "Alumino silicate - 1720", - "guid": "00000026-000e-4fff-8fff-dd92ffff0000" - } + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -11214,6 +6238,7 @@ "Records - Record Versions" ], "summary": "Deletes the record version. If the table is version controlled, only the current unreleased record version can be deleted.", + "operationId": "DeleteRecordVersion", "parameters": [ { "name": "database-key", @@ -11270,6 +6295,7 @@ "Records - Record Versions" ], "summary": "Releases the record version. Must be an unreleased record version.", + "operationId": "ReleaseRecordVersion", "parameters": [ { "name": "database-key", @@ -11315,30 +6341,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": { - "recordHistory": { - "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" - }, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": true, - "name": "Restricted Substances", - "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" - }, - "databaseKey": "MI_TRAINING", - "createdByUser": "A User", - "createdDate": "2018-01-01T00:00:00-00:00", - "lastModifiedByUser": "A User", - "lastModifiedDate": "2018-01-02T00:00:00-00:00", - "recordType": "record", - "shortName": "Arsenic trioxide [1327-53-3]", - "recordColor": "red", - "versionNumber": 1, - "versionState": "released", - "name": "Arsenic trioxide [1327-53-3]", - "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" - } + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"released","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -11350,46 +6353,18 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Invalid version state.", "description": "Only unreleased record versions can be released.", - "value": { - "message": "Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", - "code": 400, - "errors": [ - { - "message": "Invalid version state 'Released'.", - "reason": "invalidVersionState", - "versionState": "released" - } - ] - } + "value": {"message":"Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 8": { + "Example 14": { "summary": "Table is not version controlled.", - "value": { - "message": "Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.", - "code": 400, - "errors": [ - { - "message": "Table is not version controlled.", - "reason": "notVersioned" - } - ] - } + "value": {"message":"Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 9": { + "Example 15": { "summary": "Parent is not released.", - "value": { - "message": "Cannot release record version '67c41b55-406e-4b7a-919c-9a73ca1d538b'.", - "code": 400, - "errors": [ - { - "message": "Tree parent is not in a valid state to perform this operation.", - "reason": "invalidParentState" - } - ] - } + "value": {"message":"Cannot release record version '8139bb2e-944a-4958-a006-87582f32f892'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} } } } @@ -11404,12 +6379,13 @@ } } }, - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:create-new-version": { + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:get-modifiable-version": { "post": { "tags": [ "Records - Record Versions" ], - "summary": "Create a new record version. The record version must be the latest version, and must be either released or withdrawn.", + "summary": "Gets the latest modifiable record version, or creates a new one if none exists. The record version must be the latest version, and must be either released or withdrawn.", + "operationId": "GetModifiableRecordVersion", "parameters": [ { "name": "database-key", @@ -11455,30 +6431,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": { - "recordHistory": { - "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" - }, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": true, - "name": "Restricted Substances", - "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" - }, - "databaseKey": "MI_TRAINING", - "createdByUser": "A User", - "createdDate": "2018-01-01T00:00:00-00:00", - "lastModifiedByUser": "A User", - "lastModifiedDate": "2018-01-02T00:00:00-00:00", - "recordType": "record", - "shortName": "Arsenic trioxide [1327-53-3]", - "recordColor": "red", - "versionNumber": 2, - "versionState": "unreleased", - "name": "Arsenic trioxide [1327-53-3]", - "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" - } + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -11487,55 +6440,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Invalid version state.", "description": "A new version can only be created from the latest released or withdrawn record version.", - "value": { - "message": "Cannot create record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", - "code": 400, - "errors": [ - { - "message": "Invalid version state 'Superseded'.", - "reason": "invalidVersionState", - "versionState": "superseded" - } - ] - } + "value": {"message":"Cannot create a new version from the record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Superseded'.","reason":"invalidVersionState","versionState":"superseded"}]} }, - "Example 8": { + "Example 14": { "summary": "Table is not version controlled.", - "value": { - "message": "Cannot create record version '00000026-000e-4fff-8fff-dd92ffff0000'.", - "code": 400, - "errors": [ - { - "message": "Table is not version controlled.", - "reason": "notVersioned" - } - ] - } + "value": {"message":"Cannot create a new version from the record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 9": { + "Example 15": { "summary": "Record version is not the latest version.", - "value": { - "message": "Cannot create record version '3d277352-1846-48a7-b6c0-2384edeb4a8c'.", - "code": 400, - "errors": [ - { - "message": "There is a newer version.", - "reason": "notTheLatestVersion", - "newerVersion": { - "versionNumber": 2, - "versionState": "unreleased", - "name": "Arsenic trioxide [1327-53-3] - new version", - "guid": "321fe300-12ac-4c4e-b626-e9280218b436" - } - } - ] - } + "value": {"message":"Cannot create a new version from the record version 'cd36dd60-1086-481a-ad16-a38429aa1968'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"ed3cbf89-c06f-495e-9a6c-cdce140891fc"}}]} } } } @@ -11556,6 +6475,7 @@ "Records - Record Versions" ], "summary": "Withdraws the record version. Must be a released record version.", + "operationId": "WithdrawRecordVersion", "parameters": [ { "name": "database-key", @@ -11601,30 +6521,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": { - "recordHistory": { - "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" - }, - "table": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": true, - "name": "Restricted Substances", - "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" - }, - "databaseKey": "MI_TRAINING", - "createdByUser": "A User", - "createdDate": "2018-01-01T00:00:00-00:00", - "lastModifiedByUser": "A User", - "lastModifiedDate": "2018-01-02T00:00:00-00:00", - "recordType": "record", - "shortName": "Arsenic trioxide [1327-53-3]", - "recordColor": "red", - "versionNumber": 1, - "versionState": "withdrawn", - "name": "Arsenic trioxide [1327-53-3]", - "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" - } + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"withdrawn","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -11636,33 +6533,14 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Invalid version state.", "description": "Only released record versions can be withdrawn.", - "value": { - "message": "Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", - "code": 400, - "errors": [ - { - "message": "Invalid version state 'Unreleased'.", - "reason": "invalidVersionState", - "versionState": "unreleased" - } - ] - } + "value": {"message":"Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Unreleased'.","reason":"invalidVersionState","versionState":"unreleased"}]} }, - "Example 6": { + "Example 10": { "summary": "Table is not version controlled.", - "value": { - "message": "Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.", - "code": 400, - "errors": [ - { - "message": "Table is not version controlled.", - "reason": "notVersioned" - } - ] - } + "value": {"message":"Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } } } @@ -11680,6 +6558,7 @@ "Schema" ], "summary": "Returns the currently running MI version to the caller.", + "operationId": "GetVersion", "responses": { "200": { "description": "Success", @@ -11700,6 +6579,7 @@ "Schema - Attributes" ], "summary": "Get all attributes in table", + "operationId": "GetAttributes", "parameters": [ { "name": "database-key", @@ -11764,6 +6644,7 @@ "Schema - Attributes" ], "summary": "Create a new attribute.", + "operationId": "CreateAttribute", "parameters": [ { "name": "database-key", @@ -11790,342 +6671,125 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 97": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 98": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date (guid)", - "guid": "355b23c0-79fa-4ee2-9e67-0fd813cbb0ad" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} }, - "Example 51": { + "Example 99": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": false, - "defaultThresholdType": "isOneOf", - "name": "Used material type" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 100": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": true, - "defaultThresholdType": "isOneOf", - "name": "Appropriate material types" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 101": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "file", - "defaultThresholdType": "exists", - "name": "Details PDF" - } + "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 102": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "hyperlink", - "defaultThresholdType": "exists", - "name": "Supplier website" - } + "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 103": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": false, - "defaultThresholdType": "atLeast", - "name": "Number of batches" - } + "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 104": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": true, - "defaultThresholdType": "atLeast", - "name": "Batch ID Number" - } + "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 105": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "logical", - "defaultThresholdType": "equal", - "name": "Inspected" - } + "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 106": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "longText", - "defaultThresholdType": "exists", - "name": "Long Description" - } + "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 107": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "picture", - "defaultThresholdType": "exists", - "name": "Photo" - } + "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 108": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "name": "My Shape factor" - } + "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 109": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Mass" - } + "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 110": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Observed masses" - } + "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 111": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "defaultThresholdType": "atLeast", - "name": "Max ratio" - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 112": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": { - "type": "range", - "defaultThresholdType": "atLeast", - "name": "Average permeability" - } + "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 113": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": { - "type": "range", - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Boiling point" - } + "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 114": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "name": "Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 115": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": { - "type": "shortText", - "isUnique": true, - "defaultThresholdType": "exists", - "name": "Serial number" - } + "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 116": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "aboutAttribute": { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - "name": "Short Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 117": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "floatFunctional", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - } - ], - "isRange": true, - "defaultThresholdType": "atLeast", - "name": "Electrical resistance with temperature" - } + "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 118": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "discreteFunctional", - "discreteType": { - "guid": "0000000c-0006-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ], - "defaultThresholdType": "equal", - "name": "Environmental resistance" - } + "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 119": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "mathsFunctional", - "unit": { - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - ], - "expressions": [ - { - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } - ], - "allowExtrapolation": false, - "isRange": false, - "allowAllCompatibleExpressions": false, - "allowAnonymousExpressions": false, - "defaultThresholdType": "equal", - "name": "Fatigue strength model" - } + "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 120": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": true, - "hideUnlinkedRows": true, - "tabularColumns": [ - { - "columnType": "localLogical", - "defaultThresholdType": "contains", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Comments" - }, - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Substance" - }, - { - "columnType": "linkedColumn", - "linkedColumn": { - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "min", - "summaryRowRollUpType": "list", - "name": "Rating" - } - ], - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "defaultThresholdType": "exists", - "name": "Restricted Substances" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} } } }, @@ -12134,342 +6798,125 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 97": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 98": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date (guid)", - "guid": "355b23c0-79fa-4ee2-9e67-0fd813cbb0ad" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} }, - "Example 51": { + "Example 99": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": false, - "defaultThresholdType": "isOneOf", - "name": "Used material type" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 100": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": true, - "defaultThresholdType": "isOneOf", - "name": "Appropriate material types" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 101": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "file", - "defaultThresholdType": "exists", - "name": "Details PDF" - } + "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 102": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "hyperlink", - "defaultThresholdType": "exists", - "name": "Supplier website" - } + "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 103": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": false, - "defaultThresholdType": "atLeast", - "name": "Number of batches" - } + "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 104": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": true, - "defaultThresholdType": "atLeast", - "name": "Batch ID Number" - } + "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 105": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "logical", - "defaultThresholdType": "equal", - "name": "Inspected" - } + "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 106": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "longText", - "defaultThresholdType": "exists", - "name": "Long Description" - } + "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 107": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "picture", - "defaultThresholdType": "exists", - "name": "Photo" - } + "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 108": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "name": "My Shape factor" - } + "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 109": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Mass" - } + "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 110": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Observed masses" - } + "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 111": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "defaultThresholdType": "atLeast", - "name": "Max ratio" - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 112": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": { - "type": "range", - "defaultThresholdType": "atLeast", - "name": "Average permeability" - } + "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 113": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": { - "type": "range", - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Boiling point" - } + "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 114": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "name": "Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 115": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": { - "type": "shortText", - "isUnique": true, - "defaultThresholdType": "exists", - "name": "Serial number" - } + "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 116": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "aboutAttribute": { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - "name": "Short Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 117": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "floatFunctional", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - } - ], - "isRange": true, - "defaultThresholdType": "atLeast", - "name": "Electrical resistance with temperature" - } + "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 118": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "discreteFunctional", - "discreteType": { - "guid": "0000000c-0006-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ], - "defaultThresholdType": "equal", - "name": "Environmental resistance" - } + "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 119": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "mathsFunctional", - "unit": { - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - ], - "expressions": [ - { - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } - ], - "allowExtrapolation": false, - "isRange": false, - "allowAllCompatibleExpressions": false, - "allowAnonymousExpressions": false, - "defaultThresholdType": "equal", - "name": "Fatigue strength model" - } + "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 120": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": true, - "hideUnlinkedRows": true, - "tabularColumns": [ - { - "columnType": "localLogical", - "defaultThresholdType": "contains", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Comments" - }, - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Substance" - }, - { - "columnType": "linkedColumn", - "linkedColumn": { - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "min", - "summaryRowRollUpType": "list", - "name": "Rating" - } - ], - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "defaultThresholdType": "exists", - "name": "Restricted Substances" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} } } }, @@ -12478,342 +6925,125 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 97": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 98": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date (guid)", - "guid": "355b23c0-79fa-4ee2-9e67-0fd813cbb0ad" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} }, - "Example 51": { + "Example 99": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": false, - "defaultThresholdType": "isOneOf", - "name": "Used material type" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 100": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": true, - "defaultThresholdType": "isOneOf", - "name": "Appropriate material types" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 101": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "file", - "defaultThresholdType": "exists", - "name": "Details PDF" - } + "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 102": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "hyperlink", - "defaultThresholdType": "exists", - "name": "Supplier website" - } + "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 103": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": false, - "defaultThresholdType": "atLeast", - "name": "Number of batches" - } + "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 104": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": true, - "defaultThresholdType": "atLeast", - "name": "Batch ID Number" - } + "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 105": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "logical", - "defaultThresholdType": "equal", - "name": "Inspected" - } + "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 106": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "longText", - "defaultThresholdType": "exists", - "name": "Long Description" - } + "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 107": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "picture", - "defaultThresholdType": "exists", - "name": "Photo" - } + "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 108": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "name": "My Shape factor" - } + "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 109": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Mass" - } + "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 110": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Observed masses" - } + "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 111": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "defaultThresholdType": "atLeast", - "name": "Max ratio" - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 112": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": { - "type": "range", - "defaultThresholdType": "atLeast", - "name": "Average permeability" - } + "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 113": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": { - "type": "range", - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Boiling point" - } + "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 114": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "name": "Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 115": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": { - "type": "shortText", - "isUnique": true, - "defaultThresholdType": "exists", - "name": "Serial number" - } + "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 116": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "aboutAttribute": { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - "name": "Short Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 117": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "floatFunctional", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - } - ], - "isRange": true, - "defaultThresholdType": "atLeast", - "name": "Electrical resistance with temperature" - } + "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 118": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "discreteFunctional", - "discreteType": { - "guid": "0000000c-0006-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ], - "defaultThresholdType": "equal", - "name": "Environmental resistance" - } + "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 119": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "mathsFunctional", - "unit": { - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - ], - "expressions": [ - { - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } - ], - "allowExtrapolation": false, - "isRange": false, - "allowAllCompatibleExpressions": false, - "allowAnonymousExpressions": false, - "defaultThresholdType": "equal", - "name": "Fatigue strength model" - } + "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 120": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": true, - "hideUnlinkedRows": true, - "tabularColumns": [ - { - "columnType": "localLogical", - "defaultThresholdType": "contains", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Comments" - }, - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Substance" - }, - { - "columnType": "linkedColumn", - "linkedColumn": { - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "min", - "summaryRowRollUpType": "list", - "name": "Rating" - } - ], - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "defaultThresholdType": "exists", - "name": "Restricted Substances" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} } } }, @@ -12822,342 +7052,125 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 97": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 98": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atMost", - "name": "Delivery date (guid)", - "guid": "355b23c0-79fa-4ee2-9e67-0fd813cbb0ad" - } + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} }, - "Example 51": { + "Example 99": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": false, - "defaultThresholdType": "isOneOf", - "name": "Used material type" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 100": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "discreteType": { - "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" - }, - "isMultiValued": true, - "defaultThresholdType": "isOneOf", - "name": "Appropriate material types" - } + "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 101": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "file", - "defaultThresholdType": "exists", - "name": "Details PDF" - } + "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 102": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "hyperlink", - "defaultThresholdType": "exists", - "name": "Supplier website" - } + "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 103": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": false, - "defaultThresholdType": "atLeast", - "name": "Number of batches" - } + "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 104": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "integer", - "isUnique": true, - "defaultThresholdType": "atLeast", - "name": "Batch ID Number" - } + "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 105": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "logical", - "defaultThresholdType": "equal", - "name": "Inspected" - } + "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 106": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "longText", - "defaultThresholdType": "exists", - "name": "Long Description" - } + "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 107": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "picture", - "defaultThresholdType": "exists", - "name": "Photo" - } + "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 108": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "name": "My Shape factor" - } + "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 109": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": { - "type": "point", - "isMultiValued": false, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Mass" - } + "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 110": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Observed masses" - } + "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 111": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "defaultThresholdType": "atLeast", - "name": "Max ratio" - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 112": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": { - "type": "range", - "defaultThresholdType": "atLeast", - "name": "Average permeability" - } + "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 113": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": { - "type": "range", - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "name": "Boiling point" - } + "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 114": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "name": "Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 115": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": { - "type": "shortText", - "isUnique": true, - "defaultThresholdType": "exists", - "name": "Serial number" - } + "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 116": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": { - "type": "shortText", - "isUnique": false, - "defaultThresholdType": "exists", - "aboutAttribute": { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - "name": "Short Label" - } + "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 117": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "floatFunctional", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - } - ], - "isRange": true, - "defaultThresholdType": "atLeast", - "name": "Electrical resistance with temperature" - } + "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 118": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "discreteFunctional", - "discreteType": { - "guid": "0000000c-0006-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ], - "defaultThresholdType": "equal", - "name": "Environmental resistance" - } + "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 119": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "mathsFunctional", - "unit": { - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - ], - "expressions": [ - { - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } - ], - "allowExtrapolation": false, - "isRange": false, - "allowAllCompatibleExpressions": false, - "allowAnonymousExpressions": false, - "defaultThresholdType": "equal", - "name": "Fatigue strength model" - } + "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 120": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": true, - "hideUnlinkedRows": true, - "tabularColumns": [ - { - "columnType": "localLogical", - "defaultThresholdType": "contains", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Comments" - }, - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "name": "Substance" - }, - { - "columnType": "linkedColumn", - "linkedColumn": { - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": true, - "summaryRowEnabled": true, - "rollUpType": "min", - "summaryRowRollUpType": "list", - "name": "Rating" - } - ], - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "defaultThresholdType": "exists", - "name": "Restricted Substances" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} } } } @@ -13172,198 +7185,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 45": { + "Example 85": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "DAT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Casting Date", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": { - "fr": "Casting Date French Display Name" - }, - "name": "Casting Date", - "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" - } + "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 46": { + "Example 86": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "discrete", - "discreteType": { - "name": "MU Durability", - "guid": "00000083-0006-4fff-8fff-0000ffff0000" - }, - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "helpPath": "html/attributenotes/metals.html", - "info": { - "typeCode": "DCT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Metals", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Metals", - "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 47": { + "Example 87": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "range", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "RNG", - "chartable": true, - "expressionable": true, - "linkable": true, - "extendedName": "Tensile strength", - "isMetaAttribute": false, - "orderedMetaAttributes": [ - { - "name": "Tensile strength [Notes]", - "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" - } - ], - "standardNames": [ - { - "name": "Tensile strength", - "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [ - { - "name": "Source of data (MaterialUniverse)", - "guid": "56981a58-b9a6-4083-8c35-35005ec06af6" - } - ], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"77fcd4f4-986c-48cc-b989-a9afcc15a2d5"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 48": { + "Example 88": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": false, - "hideUnlinkedRows": true, - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "type": "shortText", - "name": "Chemical name", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Substance name", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "localRange", - "defaultThresholdType": "atLeast", - "unit": { - "symbol": "%", - "guid": "00000005-0013-4fff-8fff-0000ffff0000" - }, - "showAsLink": false, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Amount", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "linkedColumn", - "linkedAttribute": { - "type": "link", - "name": "Legislations restricting its use", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - }, - "linkedColumn": { - "name": "Legislation rating", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "EH&S rating", - "rollUpType": "list", - "summaryRowRollUpType": "min", - "displayNames": {}, - "name": "Legislation rating", - "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - } - ], - "defaultThresholdType": "exists", - "info": { - "typeCode": "TABL", - "chartable": false, - "expressionable": false, - "linkable": false, - "extendedName": "Restricted substances associated with this material", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "standardNames": [ - { - "name": "Restricted substances in this item", - "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Restricted substances associated with this material", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} } } } @@ -13387,6 +7227,7 @@ "Schema - Attributes" ], "summary": "Get attribute in table", + "operationId": "GetAttribute", "parameters": [ { "name": "database-key", @@ -13448,198 +7289,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "DAT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Casting Date", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": { - "fr": "Casting Date French Display Name" - }, - "name": "Casting Date", - "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" - } + "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 10": { + "Example 18": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "discrete", - "discreteType": { - "name": "MU Durability", - "guid": "00000083-0006-4fff-8fff-0000ffff0000" - }, - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "helpPath": "html/attributenotes/metals.html", - "info": { - "typeCode": "DCT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Metals", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Metals", - "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 11": { + "Example 19": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "range", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "RNG", - "chartable": true, - "expressionable": true, - "linkable": true, - "extendedName": "Tensile strength", - "isMetaAttribute": false, - "orderedMetaAttributes": [ - { - "name": "Tensile strength [Notes]", - "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" - } - ], - "standardNames": [ - { - "name": "Tensile strength", - "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [ - { - "name": "Source of data (MaterialUniverse)", - "guid": "8c4a93e1-7ebd-46a3-954e-fb35b8897beb" - } - ], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"e804ceaf-9521-4afd-bdbb-a8dab3c11be5"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 12": { + "Example 20": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": false, - "hideUnlinkedRows": true, - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "type": "shortText", - "name": "Chemical name", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Substance name", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "localRange", - "defaultThresholdType": "atLeast", - "unit": { - "symbol": "%", - "guid": "00000005-0013-4fff-8fff-0000ffff0000" - }, - "showAsLink": false, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Amount", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "linkedColumn", - "linkedAttribute": { - "type": "link", - "name": "Legislations restricting its use", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - }, - "linkedColumn": { - "name": "Legislation rating", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "EH&S rating", - "rollUpType": "list", - "summaryRowRollUpType": "min", - "displayNames": {}, - "name": "Legislation rating", - "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - } - ], - "defaultThresholdType": "exists", - "info": { - "typeCode": "TABL", - "chartable": false, - "expressionable": false, - "linkable": false, - "extendedName": "Restricted substances associated with this material", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "standardNames": [ - { - "name": "Restricted substances in this item", - "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Restricted substances associated with this material", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} } } } @@ -13655,6 +7323,7 @@ "Schema - Attributes" ], "summary": "Update attribute.", + "operationId": "UpdateAttribute", "parameters": [ { "name": "database-key", @@ -13690,235 +7359,75 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 57": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "name": "Metals (updated)" - } + "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 58": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "guid": "12345678-0013-4fff-8fff-0000ffff0000" - } + "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 59": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "helpPath": "html/attributenotes/metals.html" - } + "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 60": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "defaultThresholdType": "equal" - } + "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 61": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "isMultiValued": true - } + "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 62": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true - } + "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 63": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true - } + "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 64": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ] - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 65": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": { - "type": "range", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - } - } + "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 66": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true, - "name": "Grain size (updated)" - } + "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 67": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": { - "type": "shortText", - "aboutAttribute": { - "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - } + "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 68": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": { - "type": "floatFunctional", - "attributeParameters": [ - { - "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - }, - { - "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", - "interpolationMethod": "linear", - "scaleType": "logarithmic" - }, - { - "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", - "interpolationMethod": "none", - "scaleType": "linear" - } - ] - } + "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 69": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": { - "type": "mathsFunctional", - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - ], - "defaultContent": { - "curveLabel": "Updated curve label", - "transposeAxes": true, - "useLogarithmicScale": true, - "freeParameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - }, - "parameterContents": [ - { - "type": "numeric", - "value": 15.0, - "parameterRange": { - "lowValue": 5.0, - "highValue": 100.0 - }, - "parameter": { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "numeric", - "parameterRange": { - "lowValue": -2.0 - }, - "parameter": { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "discrete", - "parameterRange": { - "parameterValues": [ - { - "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" - }, - { - "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" - } - ] - }, - "parameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - } - ] - } - } + "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 70": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": { - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "All Legislation Names", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" - }, - { - "columnType": "linkedAttribute", - "showAsLink": true, - "summaryRowEnabled": false, - "rollUpType": "min", - "summaryRowRollUpType": "listDistinct", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" - }, - { - "columnType": "localPoint", - "defaultThresholdType": "exists", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" - } - ], - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } + "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} } } }, @@ -13927,235 +7436,75 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 57": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "name": "Metals (updated)" - } + "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 58": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "guid": "12345678-0013-4fff-8fff-0000ffff0000" - } + "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 59": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "helpPath": "html/attributenotes/metals.html" - } + "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 60": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "defaultThresholdType": "equal" - } + "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 61": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "isMultiValued": true - } + "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 62": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true - } + "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 63": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true - } + "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 64": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ] - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 65": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": { - "type": "range", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - } - } + "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 66": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true, - "name": "Grain size (updated)" - } + "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 67": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": { - "type": "shortText", - "aboutAttribute": { - "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - } + "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 68": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": { - "type": "floatFunctional", - "attributeParameters": [ - { - "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - }, - { - "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", - "interpolationMethod": "linear", - "scaleType": "logarithmic" - }, - { - "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", - "interpolationMethod": "none", - "scaleType": "linear" - } - ] - } + "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 69": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": { - "type": "mathsFunctional", - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - ], - "defaultContent": { - "curveLabel": "Updated curve label", - "transposeAxes": true, - "useLogarithmicScale": true, - "freeParameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - }, - "parameterContents": [ - { - "type": "numeric", - "value": 15.0, - "parameterRange": { - "lowValue": 5.0, - "highValue": 100.0 - }, - "parameter": { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "numeric", - "parameterRange": { - "lowValue": -2.0 - }, - "parameter": { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "discrete", - "parameterRange": { - "parameterValues": [ - { - "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" - }, - { - "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" - } - ] - }, - "parameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - } - ] - } - } + "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 70": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": { - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "All Legislation Names", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" - }, - { - "columnType": "linkedAttribute", - "showAsLink": true, - "summaryRowEnabled": false, - "rollUpType": "min", - "summaryRowRollUpType": "listDistinct", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" - }, - { - "columnType": "localPoint", - "defaultThresholdType": "exists", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" - } - ], - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } + "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} } } }, @@ -14164,235 +7513,75 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 57": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "name": "Metals (updated)" - } + "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 58": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "guid": "12345678-0013-4fff-8fff-0000ffff0000" - } + "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 59": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "helpPath": "html/attributenotes/metals.html" - } + "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 60": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "defaultThresholdType": "equal" - } + "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 61": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "isMultiValued": true - } + "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 62": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true - } + "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 63": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true - } + "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 64": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ] - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 65": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": { - "type": "range", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - } - } + "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 66": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true, - "name": "Grain size (updated)" - } + "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 67": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": { - "type": "shortText", - "aboutAttribute": { - "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - } + "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 68": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": { - "type": "floatFunctional", - "attributeParameters": [ - { - "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - }, - { - "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", - "interpolationMethod": "linear", - "scaleType": "logarithmic" - }, - { - "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", - "interpolationMethod": "none", - "scaleType": "linear" - } - ] - } + "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 69": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": { - "type": "mathsFunctional", - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - ], - "defaultContent": { - "curveLabel": "Updated curve label", - "transposeAxes": true, - "useLogarithmicScale": true, - "freeParameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - }, - "parameterContents": [ - { - "type": "numeric", - "value": 15.0, - "parameterRange": { - "lowValue": 5.0, - "highValue": 100.0 - }, - "parameter": { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "numeric", - "parameterRange": { - "lowValue": -2.0 - }, - "parameter": { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "discrete", - "parameterRange": { - "parameterValues": [ - { - "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" - }, - { - "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" - } - ] - }, - "parameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - } - ] - } - } + "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 70": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": { - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "All Legislation Names", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" - }, - { - "columnType": "linkedAttribute", - "showAsLink": true, - "summaryRowEnabled": false, - "rollUpType": "min", - "summaryRowRollUpType": "listDistinct", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" - }, - { - "columnType": "localPoint", - "defaultThresholdType": "exists", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" - } - ], - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } + "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} } } }, @@ -14401,235 +7590,75 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 57": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "name": "Metals (updated)" - } + "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 58": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "guid": "12345678-0013-4fff-8fff-0000ffff0000" - } + "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 59": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "helpPath": "html/attributenotes/metals.html" - } + "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 60": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": { - "type": "discrete", - "defaultThresholdType": "equal" - } + "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 61": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "discrete", - "isMultiValued": true - } + "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 62": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true - } + "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 63": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true - } + "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 64": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": { - "type": "point", - "isMultiValued": true, - "attributeParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ] - } + "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 65": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": { - "type": "range", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - } - } + "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 66": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": { - "type": "shortText", - "isUnique": true, - "name": "Grain size (updated)" - } + "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 67": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": { - "type": "shortText", - "aboutAttribute": { - "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - } + "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 68": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": { - "type": "floatFunctional", - "attributeParameters": [ - { - "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "defaultValue": 5.0, - "interpolationMethod": "auto", - "scaleType": "notSet" - }, - { - "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", - "interpolationMethod": "linear", - "scaleType": "logarithmic" - }, - { - "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", - "interpolationMethod": "none", - "scaleType": "linear" - } - ] - } + "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 69": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": { - "type": "mathsFunctional", - "attributeParameters": [ - { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - ], - "defaultContent": { - "curveLabel": "Updated curve label", - "transposeAxes": true, - "useLogarithmicScale": true, - "freeParameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - }, - "parameterContents": [ - { - "type": "numeric", - "value": 15.0, - "parameterRange": { - "lowValue": 5.0, - "highValue": 100.0 - }, - "parameter": { - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "numeric", - "parameterRange": { - "lowValue": -2.0 - }, - "parameter": { - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - }, - { - "type": "discrete", - "parameterRange": { - "parameterValues": [ - { - "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" - }, - { - "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" - } - ] - }, - "parameter": { - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - } - ] - } - } + "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 70": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": { - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "All Legislation Names", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" - }, - { - "columnType": "linkedAttribute", - "showAsLink": true, - "summaryRowEnabled": false, - "rollUpType": "min", - "summaryRowRollUpType": "listDistinct", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - { - "columnType": "linkedAttribute", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" - }, - { - "columnType": "localPoint", - "defaultThresholdType": "exists", - "showAsLink": false, - "summaryRowEnabled": false, - "rollUpType": "list", - "summaryRowRollUpType": "list", - "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" - } - ], - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - } + "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} } } } @@ -14644,198 +7673,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 49": { + "Example 89": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "DAT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Casting Date", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": { - "fr": "Casting Date French Display Name" - }, - "name": "Casting Date", - "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" - } + "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 50": { + "Example 90": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "discrete", - "discreteType": { - "name": "MU Durability", - "guid": "00000083-0006-4fff-8fff-0000ffff0000" - }, - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "helpPath": "html/attributenotes/metals.html", - "info": { - "typeCode": "DCT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Metals", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Metals", - "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 51": { + "Example 91": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "range", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "RNG", - "chartable": true, - "expressionable": true, - "linkable": true, - "extendedName": "Tensile strength", - "isMetaAttribute": false, - "orderedMetaAttributes": [ - { - "name": "Tensile strength [Notes]", - "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" - } - ], - "standardNames": [ - { - "name": "Tensile strength", - "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [ - { - "name": "Source of data (MaterialUniverse)", - "guid": "1b76ae89-5e3f-4896-ba96-8eacdf33f0d0" - } - ], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"e8e14fe8-8a90-43e6-9d5a-7d6a1f2dfed4"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 52": { + "Example 92": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": false, - "hideUnlinkedRows": true, - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "type": "shortText", - "name": "Chemical name", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Substance name", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "localRange", - "defaultThresholdType": "atLeast", - "unit": { - "symbol": "%", - "guid": "00000005-0013-4fff-8fff-0000ffff0000" - }, - "showAsLink": false, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Amount", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "linkedColumn", - "linkedAttribute": { - "type": "link", - "name": "Legislations restricting its use", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - }, - "linkedColumn": { - "name": "Legislation rating", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "EH&S rating", - "rollUpType": "list", - "summaryRowRollUpType": "min", - "displayNames": {}, - "name": "Legislation rating", - "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - } - ], - "defaultThresholdType": "exists", - "info": { - "typeCode": "TABL", - "chartable": false, - "expressionable": false, - "linkable": false, - "extendedName": "Restricted substances associated with this material", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "standardNames": [ - { - "name": "Restricted substances in this item", - "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Restricted substances associated with this material", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} } } } @@ -14857,6 +7713,7 @@ "Schema - Attributes" ], "summary": "Delete an attribute.", + "operationId": "DeleteAttribute", "parameters": [ { "name": "database-key", @@ -14893,28 +7750,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, - "example": { - "message": "Cannot delete attribute 'Tensile strength' (GUID = '000000e3-0001-4fff-8fff-dd92ffff0000').", - "code": 400, - "errors": [ - { - "message": "It is being used in version controlled data.", - "reason": "inUse", - "referencedByType": "versionControlledData" - }, - { - "message": "It is being used in one or more expressions.", - "reason": "inUse", - "referencedByType": "expression", - "referencedBy": [ - { - "name": "Fatigue Model", - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } - ] - } - ] - } + "example": {"message":"Cannot delete attribute 'Tensile strength' (GUID = '000000e3-0001-4fff-8fff-dd92ffff0000').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more expressions.","reason":"inUse","referencedByType":"expression","referencedBy":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]}]} } } }, @@ -14936,6 +7772,7 @@ "Schema - Attributes" ], "summary": "Get all meta-attributes in table", + "operationId": "GetMetaAttributes", "parameters": [ { "name": "database-key", @@ -15002,6 +7839,7 @@ "Schema - Attributes" ], "summary": "Get meta-attribute in table", + "operationId": "GetMetaAttribute", "parameters": [ { "name": "database-key", @@ -15063,198 +7901,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 53": { + "Example 93": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "DAT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Casting Date", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": { - "fr": "Casting Date French Display Name" - }, - "name": "Casting Date", - "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" - } + "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 54": { + "Example 94": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "discrete", - "discreteType": { - "name": "MU Durability", - "guid": "00000083-0006-4fff-8fff-0000ffff0000" - }, - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "helpPath": "html/attributenotes/metals.html", - "info": { - "typeCode": "DCT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Metals", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Metals", - "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 55": { + "Example 95": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "range", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "RNG", - "chartable": true, - "expressionable": true, - "linkable": true, - "extendedName": "Tensile strength", - "isMetaAttribute": false, - "orderedMetaAttributes": [ - { - "name": "Tensile strength [Notes]", - "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" - } - ], - "standardNames": [ - { - "name": "Tensile strength", - "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [ - { - "name": "Source of data (MaterialUniverse)", - "guid": "431dd448-c61a-45b4-8013-da7b47cff450" - } - ], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"78ace905-784d-4ceb-b983-486285a043dd"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 56": { + "Example 96": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": false, - "hideUnlinkedRows": true, - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "type": "shortText", - "name": "Chemical name", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Substance name", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "localRange", - "defaultThresholdType": "atLeast", - "unit": { - "symbol": "%", - "guid": "00000005-0013-4fff-8fff-0000ffff0000" - }, - "showAsLink": false, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Amount", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "linkedColumn", - "linkedAttribute": { - "type": "link", - "name": "Legislations restricting its use", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - }, - "linkedColumn": { - "name": "Legislation rating", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "EH&S rating", - "rollUpType": "list", - "summaryRowRollUpType": "min", - "displayNames": {}, - "name": "Legislation rating", - "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - } - ], - "defaultThresholdType": "exists", - "info": { - "typeCode": "TABL", - "chartable": false, - "expressionable": false, - "linkable": false, - "extendedName": "Restricted substances associated with this material", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "standardNames": [ - { - "name": "Restricted substances in this item", - "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Restricted substances associated with this material", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} } } } @@ -15270,6 +7935,7 @@ "Schema - Attributes" ], "summary": "Update meta-attribute.", + "operationId": "UpdateMetaAttribute", "parameters": [ { "name": "database-key", @@ -15305,37 +7971,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "name": "Notes (flammability)" - } + "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "guid": "12345678-1234-4fff-8fff-0000ffff0000" - } + "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 19": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "defaultThresholdType": "equal" - } + "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 20": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": { - "type": "longText", - "aboutAttribute": null - } + "value": {"type":"longText","aboutAttribute":null} } } }, @@ -15344,37 +7998,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "name": "Notes (flammability)" - } + "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "guid": "12345678-1234-4fff-8fff-0000ffff0000" - } + "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 19": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "defaultThresholdType": "equal" - } + "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 20": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": { - "type": "longText", - "aboutAttribute": null - } + "value": {"type":"longText","aboutAttribute":null} } } }, @@ -15383,37 +8025,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "name": "Notes (flammability)" - } + "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "guid": "12345678-1234-4fff-8fff-0000ffff0000" - } + "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 19": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "defaultThresholdType": "equal" - } + "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 20": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": { - "type": "longText", - "aboutAttribute": null - } + "value": {"type":"longText","aboutAttribute":null} } } }, @@ -15422,37 +8052,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "name": "Notes (flammability)" - } + "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "guid": "12345678-1234-4fff-8fff-0000ffff0000" - } + "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 19": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": { - "type": "longText", - "defaultThresholdType": "equal" - } + "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 20": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": { - "type": "longText", - "aboutAttribute": null - } + "value": {"type":"longText","aboutAttribute":null} } } } @@ -15467,198 +8085,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 57": { + "Example 97": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": { - "type": "dateTime", - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "DAT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Casting Date", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": { - "fr": "Casting Date French Display Name" - }, - "name": "Casting Date", - "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" - } + "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 58": { + "Example 98": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "discrete", - "discreteType": { - "name": "MU Durability", - "guid": "00000083-0006-4fff-8fff-0000ffff0000" - }, - "isMultiValued": false, - "defaultThresholdType": "atLeast", - "helpPath": "html/attributenotes/metals.html", - "info": { - "typeCode": "DCT", - "chartable": false, - "expressionable": false, - "linkable": true, - "extendedName": "Metals", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Metals", - "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 59": { + "Example 99": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": { - "type": "range", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "defaultThresholdType": "atLeast", - "info": { - "typeCode": "RNG", - "chartable": true, - "expressionable": true, - "linkable": true, - "extendedName": "Tensile strength", - "isMetaAttribute": false, - "orderedMetaAttributes": [ - { - "name": "Tensile strength [Notes]", - "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" - } - ], - "standardNames": [ - { - "name": "Tensile strength", - "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [ - { - "name": "Source of data (MaterialUniverse)", - "guid": "1ee4b7b9-f9a3-4fff-8664-005fc139f6c9" - } - ], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - } + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"27fc12bc-be6c-4cc4-9a01-32a143f24f0a"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 60": { + "Example 100": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": { - "type": "link", - "displayFullTable": false, - "displaySummaryRowInline": false, - "hideUnlinkedRows": true, - "target": { - "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" - }, - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "linkedAttribute": { - "type": "shortText", - "name": "Chemical name", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" - }, - "showAsLink": true, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Substance name", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "localRange", - "defaultThresholdType": "atLeast", - "unit": { - "symbol": "%", - "guid": "00000005-0013-4fff-8fff-0000ffff0000" - }, - "showAsLink": false, - "summaryRowEnabled": false, - "summaryRowText": "", - "rollUpType": "list", - "summaryRowRollUpType": "list", - "displayNames": {}, - "name": "Amount", - "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" - }, - { - "columnType": "linkedColumn", - "linkedAttribute": { - "type": "link", - "name": "Legislations restricting its use", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" - }, - "linkedColumn": { - "name": "Legislation rating", - "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" - }, - "showAsLink": false, - "summaryRowEnabled": true, - "summaryRowText": "EH&S rating", - "rollUpType": "list", - "summaryRowRollUpType": "min", - "displayNames": {}, - "name": "Legislation rating", - "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - } - ], - "defaultThresholdType": "exists", - "info": { - "typeCode": "TABL", - "chartable": false, - "expressionable": false, - "linkable": false, - "extendedName": "Restricted substances associated with this material", - "isMetaAttribute": false, - "orderedMetaAttributes": [], - "standardNames": [ - { - "name": "Restricted substances in this item", - "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" - } - ], - "primaryDataLinkGroups": [], - "foreignDataLinkGroups": [], - "primaryDynamicLinkGroups": [], - "foreignDynamicLinkGroups": [] - }, - "displayNames": {}, - "name": "Restricted substances associated with this material", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } + "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} } } } @@ -15680,6 +8125,7 @@ "Schema - Attributes" ], "summary": "Delete a meta-attribute.", + "operationId": "DeleteMetaAttribute", "parameters": [ { "name": "database-key", @@ -15716,28 +8162,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, - "example": { - "message": "Cannot delete attribute 'Notes' (GUID = '78df9630-913e-439f-b754-1f6f0f9314e7').", - "code": 400, - "errors": [ - { - "message": "It is being used in version controlled data.", - "reason": "inUse", - "referencedByType": "versionControlledData" - }, - { - "message": "It is being used in one or more search masks.", - "reason": "inUse", - "referencedByType": "searchMask", - "referencedBy": [ - { - "name": "Search mask that searches in Notes", - "guid": "93f419e2-ef2a-4ff5-ae6a-0f5588014fc2" - } - ] - } - ] - } + "example": {"message":"Cannot delete attribute 'Notes' (GUID = '675ab551-6444-4fdf-88fc-0417f11e3d78').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"e13cb392-4e68-4079-bcb5-42ccd903ed32"}]}]} } } }, @@ -15759,6 +8184,7 @@ "Schema - Attributes" ], "summary": "Get meta-attributes for attribute", + "operationId": "GetMetaAttributesForAttribute", "parameters": [ { "name": "database-key", @@ -15834,6 +8260,7 @@ "Schema - Attributes" ], "summary": "Validates the provided value against the attributes data rules.", + "operationId": "ValidateAttribute", "parameters": [ { "name": "database-key", @@ -15915,6 +8342,7 @@ "Schema - Attributes" ], "summary": "Validates the provided value against the meta attributes data rules.", + "operationId": "ValidateMetaAttribute", "parameters": [ { "name": "database-key", @@ -15996,6 +8424,7 @@ "Schema - Configurations" ], "summary": "Get all configurations of given type", + "operationId": "GetConfigurations", "parameters": [ { "name": "database-key", @@ -16028,14 +8457,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfigurationsInfo" }, - "example": { - "configurations": [ - { - "name": "examples", - "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" - } - ] - } + "example": {"configurations":[{"name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"}]} } } }, @@ -16049,6 +8471,7 @@ "Schema - Configurations" ], "summary": "Create a new configuration.", + "operationId": "CreateConfiguration", "parameters": [ { "name": "database-key", @@ -16080,24 +8503,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": { - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "00000000-0000-0000-0000-000000000000" - } + "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 10": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "description": "Basic configuration that can be used in explore.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "90dc5673-9651-44f8-ac0c-7510477dcfa8" - } + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} } } }, @@ -16106,24 +8520,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": { - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "00000000-0000-0000-0000-000000000000" - } + "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 10": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "description": "Basic configuration that can be used in explore.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "90dc5673-9651-44f8-ac0c-7510477dcfa8" - } + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} } } }, @@ -16132,24 +8537,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": { - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "00000000-0000-0000-0000-000000000000" - } + "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 10": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "description": "Basic configuration that can be used in explore.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "90dc5673-9651-44f8-ac0c-7510477dcfa8" - } + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} } } }, @@ -16158,24 +8554,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": { - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "00000000-0000-0000-0000-000000000000" - } + "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 10": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "description": "Basic configuration that can be used in explore.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "basic configuration", - "guid": "90dc5673-9651-44f8-ac0c-7510477dcfa8" - } + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} } } } @@ -16189,11 +8576,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfiguration" }, - "example": { - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "examples", - "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" - } + "example": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"} } } }, @@ -16215,6 +8598,7 @@ "Schema - Configurations" ], "summary": "Get individual configuration", + "operationId": "GetConfiguration", "parameters": [ { "name": "database-key", @@ -16256,11 +8640,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfiguration" }, - "example": { - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "examples", - "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" - } + "example": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"} } } }, @@ -16274,6 +8654,7 @@ "Schema - Configurations" ], "summary": "Update a configuration.", + "operationId": "UpdateConfiguration", "parameters": [ { "name": "database-key", @@ -16314,22 +8695,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "description": "Updated description for MI_Training Explore 'examples' configuration.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "examples (updated)", - "guid": "1cf89cb8-009d-499e-8765-9623f18db756" - } + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} }, - "Example 6": { + "Example 10": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": { - "name": "examples (updated)" - } + "value": {"name":"examples (updated)"} } } }, @@ -16338,22 +8712,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "description": "Updated description for MI_Training Explore 'examples' configuration.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "examples (updated)", - "guid": "1cf89cb8-009d-499e-8765-9623f18db756" - } + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} }, - "Example 6": { + "Example 10": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": { - "name": "examples (updated)" - } + "value": {"name":"examples (updated)"} } } }, @@ -16362,22 +8729,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "description": "Updated description for MI_Training Explore 'examples' configuration.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "examples (updated)", - "guid": "1cf89cb8-009d-499e-8765-9623f18db756" - } + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} }, - "Example 6": { + "Example 10": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": { - "name": "examples (updated)" - } + "value": {"name":"examples (updated)"} } } }, @@ -16386,22 +8746,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "description": "Updated description for MI_Training Explore 'examples' configuration.", - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "examples (updated)", - "guid": "1cf89cb8-009d-499e-8765-9623f18db756" - } + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} }, - "Example 6": { + "Example 10": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": { - "name": "examples (updated)" - } + "value": {"name":"examples (updated)"} } } } @@ -16415,11 +8768,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfiguration" }, - "example": { - "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", - "name": "examples", - "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" - } + "example": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"} } } }, @@ -16439,6 +8788,7 @@ "Schema - Configurations" ], "summary": "Delete a configuration", + "operationId": "DeleteConfiguration", "parameters": [ { "name": "database-key", @@ -16491,6 +8841,7 @@ "Schema - Configurations" ], "summary": "Get individual configuration as a file", + "operationId": "ExportConfiguration", "parameters": [ { "name": "database-key", @@ -16540,6 +8891,7 @@ "Schema - Constants" ], "summary": "Get all constants", + "operationId": "GetConstants", "parameters": [ { "name": "database-key", @@ -16558,18 +8910,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstantsInfo" }, - "example": { - "constants": [ - { - "name": "PI", - "guid": "00000001-0004-4fff-8fff-0000ffff0000" - }, - { - "name": "Speed of Light in Vacuum", - "guid": "0000000f-0004-4fff-8fff-0000ffff0000" - } - ] - } + "example": {"constants":[{"name":"PI","guid":"00000001-0004-4fff-8fff-0000ffff0000"},{"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"}]} } } }, @@ -16583,6 +8924,7 @@ "Schema - Constants" ], "summary": "Create a new constant.", + "operationId": "CreateConstant", "parameters": [ { "name": "database-key", @@ -16602,31 +8944,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 14": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant (guid)", - "guid": "2688ad51-622e-46b4-be29-228ab65ddc8c" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} }, - "Example 9": { + "Example 15": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum (guid and unit)" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} } } }, @@ -16635,31 +8966,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 14": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant (guid)", - "guid": "2688ad51-622e-46b4-be29-228ab65ddc8c" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} }, - "Example 9": { + "Example 15": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum (guid and unit)" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} } } }, @@ -16668,31 +8988,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 14": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant (guid)", - "guid": "2688ad51-622e-46b4-be29-228ab65ddc8c" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} }, - "Example 9": { + "Example 15": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum (guid and unit)" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} } } }, @@ -16701,31 +9010,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 14": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": 0.0072973525693, - "name": "fine-structure constant (guid)", - "guid": "2688ad51-622e-46b4-be29-228ab65ddc8c" - } + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} }, - "Example 9": { + "Example 15": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum (guid and unit)" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} } } } @@ -16739,15 +9037,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstant" }, - "example": { - "unit": { - "symbol": "m/s", - "guid": "00000097-0013-4fff-8fff-0000ffff0000" - }, - "value": 300000000.0, - "name": "Speed of Light in Vacuum", - "guid": "0000000f-0004-4fff-8fff-0000ffff0000" - } + "example": {"unit":{"symbol":"m/s","guid":"00000097-0013-4fff-8fff-0000ffff0000"},"value":300000000.0,"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"} } } }, @@ -16769,6 +9059,7 @@ "Schema - Constants" ], "summary": "Get individual constant", + "operationId": "GetConstant", "parameters": [ { "name": "database-key", @@ -16798,15 +9089,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstant" }, - "example": { - "unit": { - "symbol": "m/s", - "guid": "00000097-0013-4fff-8fff-0000ffff0000" - }, - "value": 300000000.0, - "name": "Speed of Light in Vacuum", - "guid": "0000000f-0004-4fff-8fff-0000ffff0000" - } + "example": {"unit":{"symbol":"m/s","guid":"00000097-0013-4fff-8fff-0000ffff0000"},"value":300000000.0,"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"} } } }, @@ -16820,6 +9103,7 @@ "Schema - Constants" ], "summary": "Update constant.", + "operationId": "UpdateConstant", "parameters": [ { "name": "database-key", @@ -16849,30 +9133,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum", - "guid": "5ecf308c-3357-47eb-b09c-dd65330237f1" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "characteristic impedance of vacuum" - } + "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 15": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "7815c560-f714-4b3a-8438-de5a8e2de588" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} } } }, @@ -16881,30 +9155,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum", - "guid": "5ecf308c-3357-47eb-b09c-dd65330237f1" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "characteristic impedance of vacuum" - } + "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 15": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "7815c560-f714-4b3a-8438-de5a8e2de588" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} } } }, @@ -16913,30 +9177,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum", - "guid": "5ecf308c-3357-47eb-b09c-dd65330237f1" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "characteristic impedance of vacuum" - } + "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 15": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "7815c560-f714-4b3a-8438-de5a8e2de588" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} } } }, @@ -16945,30 +9199,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "value": 376.730313668, - "name": "characteristic impedance of vacuum", - "guid": "5ecf308c-3357-47eb-b09c-dd65330237f1" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "characteristic impedance of vacuum" - } + "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 15": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": { - "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "7815c560-f714-4b3a-8438-de5a8e2de588" - } + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} } } } @@ -16982,15 +9226,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstant" }, - "example": { - "unit": { - "symbol": "m/s", - "guid": "00000097-0013-4fff-8fff-0000ffff0000" - }, - "value": 300000000.0, - "name": "Speed of Light in Vacuum", - "guid": "0000000f-0004-4fff-8fff-0000ffff0000" - } + "example": {"unit":{"symbol":"m/s","guid":"00000097-0013-4fff-8fff-0000ffff0000"},"value":300000000.0,"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"} } } }, @@ -17010,6 +9246,7 @@ "Schema - Constants" ], "summary": "Delete a constant", + "operationId": "DeleteConstant", "parameters": [ { "name": "database-key", @@ -17039,23 +9276,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionConstantDeletionException" }, - "example": { - "message": "Cannot delete constant 'PI' (GUID = '00000001-0004-4fff-8fff-0000ffff0000').", - "code": 400, - "errors": [ - { - "message": "It is being used in one or more expressions.", - "reason": "inUse", - "referencedByType": "expression", - "referencedBy": [ - { - "name": "Fatigue Model", - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } - ] - } - ] - } + "example": {"message":"Cannot delete constant 'PI' (GUID = '00000001-0004-4fff-8fff-0000ffff0000').","code":400,"errors":[{"message":"It is being used in one or more expressions.","reason":"inUse","referencedByType":"expression","referencedBy":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]}]} } } }, @@ -17077,6 +9298,7 @@ "Schema - Data Rules" ], "summary": "Gets all data rules for a given database.", + "operationId": "GetDataRules", "parameters": [ { "name": "database-key", @@ -17108,6 +9330,7 @@ "Schema - Data Rules" ], "summary": "Create a new data rule", + "operationId": "CreateDataRule", "parameters": [ { "name": "database-key", @@ -17125,14 +9348,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": { - "description": "Only numeric digits are allowed.", - "regularExpression": "^[0-9]*$", - "name": "digits only" - } + "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} } } }, @@ -17141,14 +9360,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": { - "description": "Only numeric digits are allowed.", - "regularExpression": "^[0-9]*$", - "name": "digits only" - } + "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} } } }, @@ -17157,14 +9372,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": { - "description": "Only numeric digits are allowed.", - "regularExpression": "^[0-9]*$", - "name": "digits only" - } + "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} } } }, @@ -17173,14 +9384,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": { - "description": "Only numeric digits are allowed.", - "regularExpression": "^[0-9]*$", - "name": "digits only" - } + "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} } } } @@ -17215,6 +9422,7 @@ "Schema - Data Rules" ], "summary": "Gets a data rule for a given database and guid.", + "operationId": "GetDataRule", "parameters": [ { "name": "database-key", @@ -17255,6 +9463,7 @@ "Schema - Data Rules" ], "summary": "Edit a data rule", + "operationId": "UpdateDataRule", "parameters": [ { "name": "database-key", @@ -17325,6 +9534,7 @@ "Schema - Data Rules" ], "summary": "Delete a data rule.", + "operationId": "DeleteDataRule", "parameters": [ { "name": "database-key", @@ -17366,6 +9576,7 @@ "Schema - Databases" ], "summary": "Lists all databases that the user can see.", + "operationId": "GetAllDatabases", "responses": { "200": { "description": "Success", @@ -17374,21 +9585,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaDatabasesInfo" }, - "example": { - "databases": [ - { - "key": "MI_Training", - "versionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "status": "OK", - "isReadOnly": false, - "isLocked": false, - "indexInSync": true, - "schemaVersion": "2022.08.18.01", - "name": "MI Training", - "guid": "43a43640-4919-428a-bac9-16efbc4ce6ed" - } - ] - } + "example": {"databases":[{"key":"MI_Training","versionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","status":"OK","isReadOnly":false,"isLocked":false,"indexInSync":true,"schemaVersion":"2022.08.18.01","name":"MI Training","guid":"43a43640-4919-428a-bac9-16efbc4ce6ed"}]} } } } @@ -17401,6 +9598,7 @@ "Schema - Databases" ], "summary": "Returns details for a given database.", + "operationId": "GetDatabase", "parameters": [ { "name": "database-key", @@ -17432,6 +9630,7 @@ "Schema - Databases" ], "summary": "Update database details.", + "operationId": "UpdateDatabase", "parameters": [ { "name": "database-key", @@ -17449,24 +9648,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)", - "company": "ANSYS, Inc. (updated)", - "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", - "currencyCode": "PLN", - "versionGuid": "22f2e3ec-c681-4340-89b1-14f3912980a8", - "name": "MI Training (Updated)", - "guid": "33d3d6fb-ee68-48ec-ad23-ea8521f113f1" - } + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)" - } + "value": {"author":"Ansys Granta Technical Training (Updated)"} } } }, @@ -17475,24 +9664,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)", - "company": "ANSYS, Inc. (updated)", - "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", - "currencyCode": "PLN", - "versionGuid": "22f2e3ec-c681-4340-89b1-14f3912980a8", - "name": "MI Training (Updated)", - "guid": "33d3d6fb-ee68-48ec-ad23-ea8521f113f1" - } + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)" - } + "value": {"author":"Ansys Granta Technical Training (Updated)"} } } }, @@ -17501,24 +9680,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)", - "company": "ANSYS, Inc. (updated)", - "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", - "currencyCode": "PLN", - "versionGuid": "22f2e3ec-c681-4340-89b1-14f3912980a8", - "name": "MI Training (Updated)", - "guid": "33d3d6fb-ee68-48ec-ad23-ea8521f113f1" - } + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)" - } + "value": {"author":"Ansys Granta Technical Training (Updated)"} } } }, @@ -17527,24 +9696,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)", - "company": "ANSYS, Inc. (updated)", - "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", - "currencyCode": "PLN", - "versionGuid": "22f2e3ec-c681-4340-89b1-14f3912980a8", - "name": "MI Training (Updated)", - "guid": "33d3d6fb-ee68-48ec-ad23-ea8521f113f1" - } + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": { - "author": "Ansys Granta Technical Training (Updated)" - } + "value": {"author":"Ansys Granta Technical Training (Updated)"} } } } @@ -17579,6 +9738,7 @@ "Schema - Databases" ], "summary": "Lock database", + "operationId": "LockDatabase", "parameters": [ { "name": "database-key", @@ -17619,6 +9779,7 @@ "Schema - Databases" ], "summary": "Unlock database", + "operationId": "UnlockDatabase", "parameters": [ { "name": "database-key", @@ -17659,6 +9820,7 @@ "Schema - Discrete Types" ], "summary": "Gets all discrete types for a given database.", + "operationId": "GetDiscreteTypes", "parameters": [ { "name": "database-key", @@ -17693,6 +9855,7 @@ "Schema - Discrete Types" ], "summary": "Create a new discrete type.", + "operationId": "CreateDiscreteType", "parameters": [ { "name": "database-key", @@ -17710,21 +9873,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": { - "isOrdered": true, - "name": "Ordered Discrete Type" - } + "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 10": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": { - "isOrdered": false, - "name": "Unordered Discrete Type" - } + "value": {"isOrdered":false,"name":"Unordered Discrete Type"} } } }, @@ -17733,21 +9890,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": { - "isOrdered": true, - "name": "Ordered Discrete Type" - } + "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 10": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": { - "isOrdered": false, - "name": "Unordered Discrete Type" - } + "value": {"isOrdered":false,"name":"Unordered Discrete Type"} } } }, @@ -17756,21 +9907,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": { - "isOrdered": true, - "name": "Ordered Discrete Type" - } + "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 10": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": { - "isOrdered": false, - "name": "Unordered Discrete Type" - } + "value": {"isOrdered":false,"name":"Unordered Discrete Type"} } } }, @@ -17779,21 +9924,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": { - "isOrdered": true, - "name": "Ordered Discrete Type" - } + "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 10": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": { - "isOrdered": false, - "name": "Unordered Discrete Type" - } + "value": {"isOrdered":false,"name":"Unordered Discrete Type"} } } } @@ -17828,6 +9967,7 @@ "Schema - Discrete Types" ], "summary": "Gets a single discrete type.", + "operationId": "GetDiscreteType", "parameters": [ { "name": "database-key", @@ -17868,6 +10008,7 @@ "Schema - Discrete Types" ], "summary": "Update discrete type.", + "operationId": "UpdateDiscreteType", "parameters": [ { "name": "database-key", @@ -17938,6 +10079,7 @@ "Schema - Discrete Types" ], "summary": "Delete discrete type, including all of its discrete values.", + "operationId": "DeleteDiscreteType", "parameters": [ { "name": "database-key", @@ -17965,23 +10107,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException" }, - "example": { - "message": "Cannot delete discrete type 'MU Durability' (GUID = '00000083-0006-4fff-8fff-0000ffff0000').", - "code": 400, - "errors": [ - { - "message": "It is being used in one or more attributes.", - "reason": "inUse", - "referencedByType": "attribute", - "referencedBy": [ - { - "name": "Metals", - "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" - } - ] - } - ] - } + "example": {"message":"Cannot delete discrete type 'MU Durability' (GUID = '00000083-0006-4fff-8fff-0000ffff0000').","code":400,"errors":[{"message":"It is being used in one or more attributes.","reason":"inUse","referencedByType":"attribute","referencedBy":[{"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"}]}]} } } }, @@ -18003,6 +10129,7 @@ "Schema - Discrete Types" ], "summary": "Gets objects that are using this discrete type.", + "operationId": "GetAttributesForType", "parameters": [ { "name": "database-key", @@ -18048,6 +10175,7 @@ "Schema - DiscreteTypes - DiscreteValues" ], "summary": "Gets all discrete values for a given discreteType. If discreteType is ordered, then discreteValues will be return in order, otherwise order is not deterministic.", + "operationId": "GetDiscreteValues", "parameters": [ { "name": "database-key", @@ -18088,6 +10216,7 @@ "Schema - DiscreteTypes - DiscreteValues" ], "summary": "Create new discrete value. If it's ordered, it will be added at the end.", + "operationId": "CreateDiscreteValue", "parameters": [ { "name": "database-key", @@ -18114,20 +10243,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": { - "name": "New Discrete Value 1" - } + "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 10": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": { - "name": "New Discrete Value 2", - "guid": "ecf72f93-e0fb-419e-8ba4-601f23d16da8" - } + "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} } } }, @@ -18136,20 +10260,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": { - "name": "New Discrete Value 1" - } + "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 10": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": { - "name": "New Discrete Value 2", - "guid": "ecf72f93-e0fb-419e-8ba4-601f23d16da8" - } + "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} } } }, @@ -18158,20 +10277,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": { - "name": "New Discrete Value 1" - } + "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 10": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": { - "name": "New Discrete Value 2", - "guid": "ecf72f93-e0fb-419e-8ba4-601f23d16da8" - } + "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} } } }, @@ -18180,20 +10294,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": { - "name": "New Discrete Value 1" - } + "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 10": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": { - "name": "New Discrete Value 2", - "guid": "ecf72f93-e0fb-419e-8ba4-601f23d16da8" - } + "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} } } } @@ -18226,6 +10335,7 @@ "Schema - DiscreteTypes - DiscreteValues" ], "summary": "Replace the whole discrete value collection for a given discrete type.\r\nThis will result in adding, modifying, deleting and reordering discrete values. If any of those operations fail, the whole operation fails.", + "operationId": "ReplaceDiscreteValues", "parameters": [ { "name": "database-key", @@ -18298,6 +10408,7 @@ "Schema - DiscreteTypes - DiscreteValues" ], "summary": "Gets specific discrete value for a given discreteType within a given database.", + "operationId": "GetDiscreteValue", "parameters": [ { "name": "database-key", @@ -18347,6 +10458,7 @@ "Schema - DiscreteTypes - DiscreteValues" ], "summary": "Update discrete value.", + "operationId": "UpdateDiscreteValue", "parameters": [ { "name": "database-key", @@ -18426,6 +10538,7 @@ "Schema - DiscreteTypes - DiscreteValues" ], "summary": "Delete a single discrete value. It must not be used by any data, or the operation will fail.", + "operationId": "DeleteDiscreteValue", "parameters": [ { "name": "database-key", @@ -18462,17 +10575,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionDiscreteValueDeletionException" }, - "example": { - "message": "Cannot delete discrete value 'Unacceptable' (GUID = '00000583-0007-4fff-8fff-0083ffff0000').", - "code": 400, - "errors": [ - { - "message": "It is being used in one or more data items.", - "reason": "inUse", - "referencedByType": "data" - } - ] - } + "example": {"message":"Cannot delete discrete value 'Unacceptable' (GUID = '00000583-0007-4fff-8fff-0083ffff0000').","code":400,"errors":[{"message":"It is being used in one or more data items.","reason":"inUse","referencedByType":"data"}]} } } }, @@ -18494,6 +10597,7 @@ "Schema - DiscreteTypes - DiscreteValues" ], "summary": "Find discrete values that are not in use by any data", + "operationId": "FindUnusedDiscreteValues", "parameters": [ { "name": "database-key", @@ -18539,6 +10643,7 @@ "Schema - Exporters" ], "summary": "Get All Exporter Folders", + "operationId": "GetExportersFolders", "parameters": [ { "name": "database-key", @@ -18557,85 +10662,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - }, - { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "MI_Training", - "guid": "19cc65a2-f8bf-4989-9859-e883756290de" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Ansys Workbench", - "guid": "92be9c31-7aff-4d96-8069-983390284391" - } - ] - } + "example": {"folders":[{"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"},{"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"MI_Training","guid":"19cc65a2-f8bf-4989-9859-e883756290de"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - }, - { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "MI_Training", - "guid": "19cc65a2-f8bf-4989-9859-e883756290de" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Ansys Workbench", - "guid": "92be9c31-7aff-4d96-8069-983390284391" - } - ] - } + "example": {"folders":[{"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"},{"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"MI_Training","guid":"19cc65a2-f8bf-4989-9859-e883756290de"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - }, - { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "MI_Training", - "guid": "19cc65a2-f8bf-4989-9859-e883756290de" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Ansys Workbench", - "guid": "92be9c31-7aff-4d96-8069-983390284391" - } - ] - } + "example": {"folders":[{"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"},{"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"MI_Training","guid":"19cc65a2-f8bf-4989-9859-e883756290de"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} } } }, @@ -18649,6 +10688,7 @@ "Schema - Exporters" ], "summary": "Create a new Exporters Folder.", + "operationId": "CreateExportersFolder", "parameters": [ { "name": "database-key", @@ -18666,13 +10706,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "New Folder" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} } } }, @@ -18681,13 +10718,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "New Folder" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} } } }, @@ -18696,13 +10730,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "New Folder" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} } } }, @@ -18711,13 +10742,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "New Folder" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} } } } @@ -18731,28 +10759,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -18774,6 +10793,7 @@ "Schema - Exporters" ], "summary": "Get Root Exporters Folder", + "operationId": "GetExportersRootFolder", "parameters": [ { "name": "database-key", @@ -18792,28 +10812,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -18829,6 +10840,7 @@ "Schema - Exporters" ], "summary": "Get Exporters Folder", + "operationId": "GetExportersFolder", "parameters": [ { "name": "database-key", @@ -18856,31 +10868,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - } + "example": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - } + "example": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - } + "example": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"} } } }, @@ -18894,6 +10894,7 @@ "Schema - Exporters" ], "summary": "Update an existing Exporters Folder.", + "operationId": "UpdateExportersFolder", "parameters": [ { "name": "database-key", @@ -18920,19 +10921,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": { - "guid": "0a78a436-1f3f-4b01-aaab-5df86300287f" - } + "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} } } }, @@ -18941,19 +10938,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": { - "guid": "0a78a436-1f3f-4b01-aaab-5df86300287f" - } + "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} } } }, @@ -18962,19 +10955,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": { - "guid": "0a78a436-1f3f-4b01-aaab-5df86300287f" - } + "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} } } }, @@ -18983,19 +10972,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": { - "guid": "0a78a436-1f3f-4b01-aaab-5df86300287f" - } + "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} } } } @@ -19009,28 +10994,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -19050,6 +11026,7 @@ "Schema - Exporters" ], "summary": "Delete an Exporter Folder.", + "operationId": "DeleteExportersFolder", "parameters": [ { "name": "database-key", @@ -19088,6 +11065,7 @@ "Schema - Exporters" ], "summary": "Get Child Exporters Folders", + "operationId": "GetExportersChildFolders", "parameters": [ { "name": "database-key", @@ -19115,58 +11093,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Ansys Workbench", - "guid": "92be9c31-7aff-4d96-8069-983390284391" - } - ] - } + "example": {"folders":[{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Ansys Workbench", - "guid": "92be9c31-7aff-4d96-8069-983390284391" - } - ] - } + "example": {"folders":[{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Abaqus", - "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" - }, - { - "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", - "name": "Ansys Workbench", - "guid": "92be9c31-7aff-4d96-8069-983390284391" - } - ] - } + "example": {"folders":[{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} } } }, @@ -19182,6 +11121,7 @@ "Schema - Exporters" ], "summary": "Re-fetch the Exporter Files.", + "operationId": "RefetchExporters", "parameters": [ { "name": "database-key", @@ -19231,6 +11171,7 @@ "Schema - Exporters" ], "summary": "Move an existing Exporter Folder.", + "operationId": "MoveExportersFolder", "parameters": [ { "name": "database-key", @@ -19257,12 +11198,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -19271,12 +11210,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -19285,12 +11222,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -19299,12 +11234,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": { - "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } } @@ -19318,28 +11251,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -19361,6 +11285,7 @@ "Schema - Exporters" ], "summary": "Get the Exporter Files in a Folder", + "operationId": "GetExportersFiles", "parameters": [ { "name": "database-key", @@ -19388,52 +11313,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "exporter-1.exp", - "guid": "b4b77a47-a086-4fb4-b04c-e88c685c8e7b" - }, - { - "name": "no-transform.xslt", - "guid": "203fbe8a-13ba-4eeb-ab8d-6eeebc92aa18" - } - ] - } + "example": {"files":[{"name":"exporter-1.exp","guid":"c4efe5a4-ca4f-40ef-a153-3992a2a1d9af"},{"name":"no-transform.xslt","guid":"4f02e67c-8ccf-4e96-af96-54e43f4f9ecd"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "exporter-1.exp", - "guid": "b4b77a47-a086-4fb4-b04c-e88c685c8e7b" - }, - { - "name": "no-transform.xslt", - "guid": "203fbe8a-13ba-4eeb-ab8d-6eeebc92aa18" - } - ] - } + "example": {"files":[{"name":"exporter-1.exp","guid":"c4efe5a4-ca4f-40ef-a153-3992a2a1d9af"},{"name":"no-transform.xslt","guid":"4f02e67c-8ccf-4e96-af96-54e43f4f9ecd"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "exporter-1.exp", - "guid": "b4b77a47-a086-4fb4-b04c-e88c685c8e7b" - }, - { - "name": "no-transform.xslt", - "guid": "203fbe8a-13ba-4eeb-ab8d-6eeebc92aa18" - } - ] - } + "example": {"files":[{"name":"exporter-1.exp","guid":"c4efe5a4-ca4f-40ef-a153-3992a2a1d9af"},{"name":"no-transform.xslt","guid":"4f02e67c-8ccf-4e96-af96-54e43f4f9ecd"}]} } } }, @@ -19447,6 +11339,7 @@ "Schema - Exporters" ], "summary": "Create a new Exporter File.", + "operationId": "CreateExportersFile", "parameters": [ { "name": "database-key", @@ -19500,43 +11393,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "7143e5c6-9e43-46c7-98e9-b516987af09c" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c17d19bf-926d-4be1-bb33-41c1f95d61d1"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "7143e5c6-9e43-46c7-98e9-b516987af09c" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c17d19bf-926d-4be1-bb33-41c1f95d61d1"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "7143e5c6-9e43-46c7-98e9-b516987af09c" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c17d19bf-926d-4be1-bb33-41c1f95d61d1"} } } }, @@ -19558,6 +11427,7 @@ "Schema - Exporters" ], "summary": "Get the header information for an Exporter File", + "operationId": "GetExporterFile", "parameters": [ { "name": "database-key", @@ -19594,43 +11464,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "a3e8970a-2145-4d1e-9fb1-b4f30a3d3895" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"0713fe68-87c7-429d-b82d-64b591eff5ff"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "a3e8970a-2145-4d1e-9fb1-b4f30a3d3895" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"0713fe68-87c7-429d-b82d-64b591eff5ff"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "a3e8970a-2145-4d1e-9fb1-b4f30a3d3895" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"0713fe68-87c7-429d-b82d-64b591eff5ff"} } } }, @@ -19644,6 +11490,7 @@ "Schema - Exporters" ], "summary": "Update an existing Exporter File.", + "operationId": "UpdateExportersFile", "parameters": [ { "name": "database-key", @@ -19679,26 +11526,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": { - "description": "New description for Exporter file." - } + "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": { - "guid": "a7e36a32-146d-482d-bd0b-6959a4a7c3bd" - } + "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} } } }, @@ -19707,26 +11548,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": { - "description": "New description for Exporter file." - } + "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": { - "guid": "a7e36a32-146d-482d-bd0b-6959a4a7c3bd" - } + "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} } } }, @@ -19735,26 +11570,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": { - "description": "New description for Exporter file." - } + "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": { - "guid": "a7e36a32-146d-482d-bd0b-6959a4a7c3bd" - } + "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} } } }, @@ -19763,26 +11592,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": { - "description": "New description for Exporter file." - } + "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": { - "guid": "a7e36a32-146d-482d-bd0b-6959a4a7c3bd" - } + "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} } } } @@ -19796,43 +11619,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "a076571b-d44c-4203-8198-9efdab35d3ee" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"804ce9bc-1d1b-49b0-9898-0187acb456c0"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "a076571b-d44c-4203-8198-9efdab35d3ee" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"804ce9bc-1d1b-49b0-9898-0187acb456c0"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "a076571b-d44c-4203-8198-9efdab35d3ee" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"804ce9bc-1d1b-49b0-9898-0187acb456c0"} } } }, @@ -19852,6 +11651,7 @@ "Schema - Exporters" ], "summary": "Delete an Exporter File.", + "operationId": "DeleteExportersFile", "parameters": [ { "name": "database-key", @@ -19899,6 +11699,7 @@ "Schema - Exporters" ], "summary": "Get Exporter File as a file", + "operationId": "ExportExportersFile", "parameters": [ { "name": "database-key", @@ -19943,6 +11744,7 @@ "Schema - Exporters" ], "summary": "Move an existing Exporter File.", + "operationId": "MoveExportersFile", "parameters": [ { "name": "database-key", @@ -19978,12 +11780,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -19992,12 +11792,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -20006,12 +11804,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -20020,12 +11816,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } } @@ -20039,43 +11833,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "426a4aec-e6d1-4202-b4f8-7c4d0066c98c" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"223d1551-e64b-41d0-a846-ec977a8c1a78"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "426a4aec-e6d1-4202-b4f8-7c4d0066c98c" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"223d1551-e64b-41d0-a846-ec977a8c1a78"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "426a4aec-e6d1-4202-b4f8-7c4d0066c98c" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"223d1551-e64b-41d0-a846-ec977a8c1a78"} } } }, @@ -20097,6 +11867,7 @@ "Schema - Expressions" ], "summary": "Get all expressions for table", + "operationId": "GetExpressions", "parameters": [ { "name": "database-key", @@ -20149,17 +11920,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpressionsInfo" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Get all expressions", "description": "This example demonstrates the response to getting all expressions from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": { - "expressions": [ - { - "name": "Fatigue Model", - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } - ] - } + "value": {"expressions":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]} } } } @@ -20175,6 +11939,7 @@ "Schema - Expressions" ], "summary": "Create a new expression.", + "operationId": "CreateExpression", "parameters": [ { "name": "database-key", @@ -20201,33 +11966,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 14": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression with specified guid", - "guid": "ca06e43d-1e51-4b52-ab5d-2a8d0f1d61f0" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} }, - "Example 9": { + "Example 15": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "name": "Simple expression with specified unit" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} } } }, @@ -20236,33 +11988,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 14": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression with specified guid", - "guid": "ca06e43d-1e51-4b52-ab5d-2a8d0f1d61f0" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} }, - "Example 9": { + "Example 15": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "name": "Simple expression with specified unit" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} } } }, @@ -20271,33 +12010,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 14": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression with specified guid", - "guid": "ca06e43d-1e51-4b52-ab5d-2a8d0f1d61f0" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} }, - "Example 9": { + "Example 15": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "name": "Simple expression with specified unit" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} } } }, @@ -20306,33 +12032,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 14": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "name": "Simple expression with specified guid", - "guid": "ca06e43d-1e51-4b52-ab5d-2a8d0f1d61f0" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} }, - "Example 9": { + "Example 15": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "00000059-0013-4fff-8fff-0000ffff0000" - }, - "name": "Simple expression with specified unit" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} } } } @@ -20347,51 +12060,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 8": { + "Example 14": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": { - "value": "[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "attributeDependencies": [ - { - "name": "Young's modulus", - "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Fatigue strength at 10^7 cycles", - "guid": "0000010c-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Elongation", - "guid": "0000011a-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Yield strength (elastic limit)", - "guid": "0000011b-0001-4fff-8fff-dd92ffff0000" - } - ], - "constantDependencies": [], - "parameterDependencies": [ - { - "name": "Number of Cycles", - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "name": "Stress Ratio", - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - ], - "name": "Fatigue Model", - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } + "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} } } } @@ -20415,6 +12087,7 @@ "Schema - Expressions" ], "summary": "Get an expression with a specified guid for a given database and table.", + "operationId": "GetExpression", "parameters": [ { "name": "database-key", @@ -20476,51 +12149,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": { - "value": "[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "attributeDependencies": [ - { - "name": "Young's modulus", - "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Fatigue strength at 10^7 cycles", - "guid": "0000010c-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Elongation", - "guid": "0000011a-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Yield strength (elastic limit)", - "guid": "0000011b-0001-4fff-8fff-dd92ffff0000" - } - ], - "constantDependencies": [], - "parameterDependencies": [ - { - "name": "Number of Cycles", - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "name": "Stress Ratio", - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - ], - "name": "Fatigue Model", - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } + "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} } } } @@ -20536,6 +12168,7 @@ "Schema - Expressions" ], "summary": "Update an expression.", + "operationId": "UpdateExpression", "parameters": [ { "name": "database-key", @@ -20571,24 +12204,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "name": "Fatigue Model (Updated)", - "guid": "eecd5fe7-03a5-4089-b9ac-976632f691dc" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} }, - "Example 6": { + "Example 10": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Fatigue Model (Updated)" - } + "value": {"name":"Fatigue Model (Updated)"} } } }, @@ -20597,24 +12221,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "name": "Fatigue Model (Updated)", - "guid": "eecd5fe7-03a5-4089-b9ac-976632f691dc" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} }, - "Example 6": { + "Example 10": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Fatigue Model (Updated)" - } + "value": {"name":"Fatigue Model (Updated)"} } } }, @@ -20623,24 +12238,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "name": "Fatigue Model (Updated)", - "guid": "eecd5fe7-03a5-4089-b9ac-976632f691dc" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} }, - "Example 6": { + "Example 10": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Fatigue Model (Updated)" - } + "value": {"name":"Fatigue Model (Updated)"} } } }, @@ -20649,24 +12255,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": { - "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "name": "Fatigue Model (Updated)", - "guid": "eecd5fe7-03a5-4089-b9ac-976632f691dc" - } + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} }, - "Example 6": { + "Example 10": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Fatigue Model (Updated)" - } + "value": {"name":"Fatigue Model (Updated)"} } } } @@ -20681,51 +12278,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 9": { + "Example 15": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": { - "value": "[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))", - "unit": { - "symbol": "MPa", - "guid": "0000002b-0013-4fff-8fff-0000ffff0000" - }, - "attributeDependencies": [ - { - "name": "Young's modulus", - "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Tensile strength", - "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Fatigue strength at 10^7 cycles", - "guid": "0000010c-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Elongation", - "guid": "0000011a-0001-4fff-8fff-dd92ffff0000" - }, - { - "name": "Yield strength (elastic limit)", - "guid": "0000011b-0001-4fff-8fff-dd92ffff0000" - } - ], - "constantDependencies": [], - "parameterDependencies": [ - { - "name": "Number of Cycles", - "guid": "00000007-000a-4fff-8fff-0000ffff0000" - }, - { - "name": "Stress Ratio", - "guid": "00000004-000a-4fff-8fff-0000ffff0000" - } - ], - "name": "Fatigue Model", - "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" - } + "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} } } } @@ -20747,6 +12303,7 @@ "Schema - Expressions" ], "summary": "Delete an expression.", + "operationId": "DeleteExpression", "parameters": [ { "name": "database-key", @@ -20797,6 +12354,7 @@ "Schema - Help Files" ], "summary": "Get All Help File Folders", + "operationId": "GetHelpFolders", "parameters": [ { "name": "database-key", @@ -20815,85 +12373,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Help Pages", - "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - }, - { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "html", - "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "attributenotes", - "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "sciencenotes", - "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" - } - ] - } + "example": {"folders":[{"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"},{"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Help Pages", - "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - }, - { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "html", - "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "attributenotes", - "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "sciencenotes", - "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" - } - ] - } + "example": {"folders":[{"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"},{"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Help Pages", - "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - }, - { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "html", - "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "attributenotes", - "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "sciencenotes", - "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" - } - ] - } + "example": {"folders":[{"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"},{"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} } } }, @@ -20907,6 +12399,7 @@ "Schema - Help Files" ], "summary": "Create a new Help File Folder.", + "operationId": "CreateHelpFolder", "parameters": [ { "name": "database-key", @@ -20924,13 +12417,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "New Folder" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} } } }, @@ -20939,13 +12429,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "New Folder" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} } } }, @@ -20954,13 +12441,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "New Folder" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} } } }, @@ -20969,13 +12453,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "New Folder" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} } } } @@ -20989,28 +12470,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -21032,6 +12504,7 @@ "Schema - Help Files" ], "summary": "Get Root Help File Folder", + "operationId": "GetHelpRootFolder", "parameters": [ { "name": "database-key", @@ -21050,28 +12523,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Help Pages", - "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "example": {"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Help Pages", - "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "example": {"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Help Pages", - "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "example": {"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } }, @@ -21087,6 +12551,7 @@ "Schema - Help Files" ], "summary": "Get Help File Folder", + "operationId": "GetHelpFolder", "parameters": [ { "name": "database-key", @@ -21114,31 +12579,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "html", - "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" - } + "example": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "html", - "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" - } + "example": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", - "name": "html", - "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" - } + "example": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"} } } }, @@ -21152,6 +12605,7 @@ "Schema - Help Files" ], "summary": "Update an existing Help File Folder.", + "operationId": "UpdateHelpFolder", "parameters": [ { "name": "database-key", @@ -21178,19 +12632,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": { - "guid": "57f9e8b7-eca4-481e-8ee0-65c8acee7823" - } + "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} } } }, @@ -21199,19 +12649,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": { - "guid": "57f9e8b7-eca4-481e-8ee0-65c8acee7823" - } + "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} } } }, @@ -21220,19 +12666,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": { - "guid": "57f9e8b7-eca4-481e-8ee0-65c8acee7823" - } + "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} } } }, @@ -21241,19 +12683,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": { - "guid": "57f9e8b7-eca4-481e-8ee0-65c8acee7823" - } + "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} } } } @@ -21267,28 +12705,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -21308,6 +12737,7 @@ "Schema - Help Files" ], "summary": "Delete a Help File Folder.", + "operationId": "DeleteHelpFolder", "parameters": [ { "name": "database-key", @@ -21346,6 +12776,7 @@ "Schema - Help Files" ], "summary": "Get Child Help File Folders", + "operationId": "GetHelpChildFolders", "parameters": [ { "name": "database-key", @@ -21373,58 +12804,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "attributenotes", - "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "sciencenotes", - "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" - } - ] - } + "example": {"folders":[{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "attributenotes", - "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "sciencenotes", - "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" - } - ] - } + "example": {"folders":[{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "attributenotes", - "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" - }, - { - "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", - "name": "sciencenotes", - "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" - } - ] - } + "example": {"folders":[{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} } } }, @@ -21440,6 +12832,7 @@ "Schema - Help Files" ], "summary": "Move an existing Help File Folder.", + "operationId": "MoveHelpFolder", "parameters": [ { "name": "database-key", @@ -21466,12 +12859,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } }, @@ -21480,12 +12871,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } }, @@ -21494,12 +12883,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } }, @@ -21508,12 +12895,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": { - "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } } @@ -21527,28 +12912,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -21570,6 +12946,7 @@ "Schema - Help Files" ], "summary": "Get Files in a Folder", + "operationId": "GetHelpFiles", "parameters": [ { "name": "database-key", @@ -21597,52 +12974,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "Abrasion_rate.html", - "guid": "fdfcb207-63f7-4a10-87a3-054587444056" - }, - { - "name": "Atomic_volume.html", - "guid": "94574853-3cfe-41d9-be48-391883fa0ea9" - } - ] - } + "example": {"files":[{"name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"},{"name":"Atomic_volume.html","guid":"94574853-3cfe-41d9-be48-391883fa0ea9"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "Abrasion_rate.html", - "guid": "fdfcb207-63f7-4a10-87a3-054587444056" - }, - { - "name": "Atomic_volume.html", - "guid": "94574853-3cfe-41d9-be48-391883fa0ea9" - } - ] - } + "example": {"files":[{"name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"},{"name":"Atomic_volume.html","guid":"94574853-3cfe-41d9-be48-391883fa0ea9"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "Abrasion_rate.html", - "guid": "fdfcb207-63f7-4a10-87a3-054587444056" - }, - { - "name": "Atomic_volume.html", - "guid": "94574853-3cfe-41d9-be48-391883fa0ea9" - } - ] - } + "example": {"files":[{"name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"},{"name":"Atomic_volume.html","guid":"94574853-3cfe-41d9-be48-391883fa0ea9"}]} } } }, @@ -21656,6 +13000,7 @@ "Schema - Help Files" ], "summary": "Create a new Help File.", + "operationId": "CreateHelpFile", "parameters": [ { "name": "database-key", @@ -21709,43 +13054,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "66a1fa99-80a8-4c11-8282-7a9ccc1bf9be" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5675f659-05c8-45e9-a073-f4a655461912"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "66a1fa99-80a8-4c11-8282-7a9ccc1bf9be" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5675f659-05c8-45e9-a073-f4a655461912"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "66a1fa99-80a8-4c11-8282-7a9ccc1bf9be" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5675f659-05c8-45e9-a073-f4a655461912"} } } }, @@ -21767,6 +13088,7 @@ "Schema - Help Files" ], "summary": "Get header information for a help file", + "operationId": "GetHelpFile", "parameters": [ { "name": "database-key", @@ -21803,43 +13125,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "cd34921a-67e6-43ff-adfe-3d36b6b3b5c7", - "description": "Description of Abrasion-rate file.", - "extension": "html", - "dataLength": 5090, - "path": "Help Pages\\html\\attributenotes\\en\\material", - "name": "Abrasion_rate.html", - "guid": "fdfcb207-63f7-4a10-87a3-054587444056" - } + "example": {"folderGuid":"cd34921a-67e6-43ff-adfe-3d36b6b3b5c7","description":"Description of Abrasion-rate file.","extension":"html","dataLength":5090,"path":"Help Pages\\html\\attributenotes\\en\\material","name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "cd34921a-67e6-43ff-adfe-3d36b6b3b5c7", - "description": "Description of Abrasion-rate file.", - "extension": "html", - "dataLength": 5090, - "path": "Help Pages\\html\\attributenotes\\en\\material", - "name": "Abrasion_rate.html", - "guid": "fdfcb207-63f7-4a10-87a3-054587444056" - } + "example": {"folderGuid":"cd34921a-67e6-43ff-adfe-3d36b6b3b5c7","description":"Description of Abrasion-rate file.","extension":"html","dataLength":5090,"path":"Help Pages\\html\\attributenotes\\en\\material","name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "cd34921a-67e6-43ff-adfe-3d36b6b3b5c7", - "description": "Description of Abrasion-rate file.", - "extension": "html", - "dataLength": 5090, - "path": "Help Pages\\html\\attributenotes\\en\\material", - "name": "Abrasion_rate.html", - "guid": "fdfcb207-63f7-4a10-87a3-054587444056" - } + "example": {"folderGuid":"cd34921a-67e6-43ff-adfe-3d36b6b3b5c7","description":"Description of Abrasion-rate file.","extension":"html","dataLength":5090,"path":"Help Pages\\html\\attributenotes\\en\\material","name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"} } } }, @@ -21853,6 +13151,7 @@ "Schema - Help Files" ], "summary": "Update an existing Help File.", + "operationId": "UpdateHelpFile", "parameters": [ { "name": "database-key", @@ -21888,26 +13187,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": { - "description": "New description for help file." - } + "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": { - "guid": "784c93bd-2162-47b2-8925-6a491b6103ae" - } + "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} } } }, @@ -21916,26 +13209,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": { - "description": "New description for help file." - } + "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": { - "guid": "784c93bd-2162-47b2-8925-6a491b6103ae" - } + "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} } } }, @@ -21944,26 +13231,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": { - "description": "New description for help file." - } + "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": { - "guid": "784c93bd-2162-47b2-8925-6a491b6103ae" - } + "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} } } }, @@ -21972,26 +13253,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": { - "description": "New description for help file." - } + "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": { - "guid": "784c93bd-2162-47b2-8925-6a491b6103ae" - } + "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} } } } @@ -22005,43 +13280,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "54d7667f-bd01-4254-aa83-b155a83b5639" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"2bba026c-4c42-4739-a40f-e5ff4bfb25c8"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "54d7667f-bd01-4254-aa83-b155a83b5639" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"2bba026c-4c42-4739-a40f-e5ff4bfb25c8"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "54d7667f-bd01-4254-aa83-b155a83b5639" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"2bba026c-4c42-4739-a40f-e5ff4bfb25c8"} } } }, @@ -22061,6 +13312,7 @@ "Schema - Help Files" ], "summary": "Delete a Help File.", + "operationId": "DeleteHelpFile", "parameters": [ { "name": "database-key", @@ -22108,6 +13360,7 @@ "Schema - Help Files" ], "summary": "Get help file as a file", + "operationId": "ExportHelpFile", "parameters": [ { "name": "database-key", @@ -22152,6 +13405,7 @@ "Schema - Help Files" ], "summary": "Move an existing Help File.", + "operationId": "MoveHelpFile", "parameters": [ { "name": "database-key", @@ -22187,12 +13441,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": { - "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } }, @@ -22201,12 +13453,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": { - "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } }, @@ -22215,12 +13465,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": { - "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } }, @@ -22229,12 +13477,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": { - "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" - } + "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} } } } @@ -22248,43 +13494,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "bfbdad6f-65d8-49ca-8e77-b08309e880ee" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"6b874204-822d-468d-98d4-66d9d8c58322"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "bfbdad6f-65d8-49ca-8e77-b08309e880ee" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"6b874204-822d-468d-98d4-66d9d8c58322"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "bfbdad6f-65d8-49ca-8e77-b08309e880ee" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"6b874204-822d-468d-98d4-66d9d8c58322"} } } }, @@ -22306,6 +13528,7 @@ "Schema - Home Pages" ], "summary": "Get All Home Page Folders", + "operationId": "GetHomePageFolders", "parameters": [ { "name": "database-key", @@ -22324,55 +13547,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Home Pages", - "guid": "c13eb185-2558-4b4a-8395-33c031663925" - }, - { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "7563f919-2184-42bf-a3ab-71fcd2994b7f" - } - ] - } + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"37580c2e-d4d3-4dab-90b6-581aa74cb328"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Home Pages", - "guid": "c13eb185-2558-4b4a-8395-33c031663925" - }, - { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "7563f919-2184-42bf-a3ab-71fcd2994b7f" - } - ] - } + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"37580c2e-d4d3-4dab-90b6-581aa74cb328"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "name": "Home Pages", - "guid": "c13eb185-2558-4b4a-8395-33c031663925" - }, - { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "7563f919-2184-42bf-a3ab-71fcd2994b7f" - } - ] - } + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"37580c2e-d4d3-4dab-90b6-581aa74cb328"}]} } } }, @@ -22386,6 +13573,7 @@ "Schema - Home Pages" ], "summary": "Create a new Home Page Folder.", + "operationId": "CreateHomePageFolder", "parameters": [ { "name": "database-key", @@ -22403,13 +13591,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "New Folder" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} } } }, @@ -22418,13 +13603,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "New Folder" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} } } }, @@ -22433,13 +13615,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "New Folder" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} } } }, @@ -22448,13 +13627,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "New Folder" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} } } } @@ -22468,28 +13644,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -22511,6 +13678,7 @@ "Schema - Home Pages" ], "summary": "Get Root Home Page Folder", + "operationId": "GetHomePageRootFolder", "parameters": [ { "name": "database-key", @@ -22529,28 +13697,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Home Pages", - "guid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "example": {"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Home Pages", - "guid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "example": {"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Home Pages", - "guid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "example": {"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"} } } }, @@ -22566,6 +13725,7 @@ "Schema - Home Pages" ], "summary": "Get Home Page Folder", + "operationId": "GetHomePageFolder", "parameters": [ { "name": "database-key", @@ -22593,31 +13753,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "787af601-3a13-40d1-bb1b-74632a7a5618" - } + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"4e9bd820-81bd-4473-ab2c-0814875b7e46"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "787af601-3a13-40d1-bb1b-74632a7a5618" - } + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"4e9bd820-81bd-4473-ab2c-0814875b7e46"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "787af601-3a13-40d1-bb1b-74632a7a5618" - } + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"4e9bd820-81bd-4473-ab2c-0814875b7e46"} } } }, @@ -22631,6 +13779,7 @@ "Schema - Home Pages" ], "summary": "Update an existing Home Page Folder.", + "operationId": "UpdateHomePageFolder", "parameters": [ { "name": "database-key", @@ -22657,19 +13806,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": { - "guid": "89c6dc64-389b-497b-a822-888ecb836fe7" - } + "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} } } }, @@ -22678,19 +13823,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": { - "guid": "89c6dc64-389b-497b-a822-888ecb836fe7" - } + "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} } } }, @@ -22699,19 +13840,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": { - "guid": "89c6dc64-389b-497b-a822-888ecb836fe7" - } + "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} } } }, @@ -22720,19 +13857,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": { - "name": "New Folder Name" - } + "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 10": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": { - "guid": "89c6dc64-389b-497b-a822-888ecb836fe7" - } + "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} } } } @@ -22746,28 +13879,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -22787,6 +13911,7 @@ "Schema - Home Pages" ], "summary": "Delete a Home Page Folder.", + "operationId": "DeleteHomePageFolder", "parameters": [ { "name": "database-key", @@ -22825,6 +13950,7 @@ "Schema - Home Pages" ], "summary": "Get Child Home Page Folders", + "operationId": "GetHomePageChildFolders", "parameters": [ { "name": "database-key", @@ -22852,43 +13978,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "f01319be-650d-48b1-a28a-e9bc2860c0a8" - } - ] - } + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"de97a742-7dac-436c-a7e8-946e12c10916"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "f01319be-650d-48b1-a28a-e9bc2860c0a8" - } - ] - } + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"de97a742-7dac-436c-a7e8-946e12c10916"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": { - "folders": [ - { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "name": "images", - "guid": "f01319be-650d-48b1-a28a-e9bc2860c0a8" - } - ] - } + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"de97a742-7dac-436c-a7e8-946e12c10916"}]} } } }, @@ -22904,6 +14006,7 @@ "Schema - Home Pages" ], "summary": "Move an existing Home Page Folder.", + "operationId": "MoveHomePageFolder", "parameters": [ { "name": "database-key", @@ -22930,12 +14033,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } }, @@ -22944,12 +14045,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } }, @@ -22958,12 +14057,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } }, @@ -22972,12 +14069,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": { - "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } } @@ -22991,28 +14086,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": { - "name": "Exporters", - "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" - } + "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} } } }, @@ -23034,6 +14120,7 @@ "Schema - Home Pages" ], "summary": "Get the Home Page Files in a Folder", + "operationId": "GetHomePageFiles", "parameters": [ { "name": "database-key", @@ -23061,52 +14148,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "home-page-1.html", - "guid": "b0f5431c-31ec-4740-b2f4-f4742678d045" - }, - { - "name": "home-page-2.html", - "guid": "09417d12-a5d7-414a-9108-57d3c6beae01" - } - ] - } + "example": {"files":[{"name":"home-page-1.html","guid":"24fb574f-2ff3-4df5-9322-4ba4407220f0"},{"name":"home-page-2.html","guid":"6a4f2040-7514-45dd-8353-be532e879de8"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "home-page-1.html", - "guid": "b0f5431c-31ec-4740-b2f4-f4742678d045" - }, - { - "name": "home-page-2.html", - "guid": "09417d12-a5d7-414a-9108-57d3c6beae01" - } - ] - } + "example": {"files":[{"name":"home-page-1.html","guid":"24fb574f-2ff3-4df5-9322-4ba4407220f0"},{"name":"home-page-2.html","guid":"6a4f2040-7514-45dd-8353-be532e879de8"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": { - "files": [ - { - "name": "home-page-1.html", - "guid": "b0f5431c-31ec-4740-b2f4-f4742678d045" - }, - { - "name": "home-page-2.html", - "guid": "09417d12-a5d7-414a-9108-57d3c6beae01" - } - ] - } + "example": {"files":[{"name":"home-page-1.html","guid":"24fb574f-2ff3-4df5-9322-4ba4407220f0"},{"name":"home-page-2.html","guid":"6a4f2040-7514-45dd-8353-be532e879de8"}]} } } }, @@ -23120,6 +14174,7 @@ "Schema - Home Pages" ], "summary": "Create a new Home Page File.", + "operationId": "CreateHomePageFile", "parameters": [ { "name": "database-key", @@ -23173,43 +14228,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "867c9d83-77bf-4d6a-a960-49cd1b5c0106" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"71a112e9-9005-42bd-9b1e-6a1510981b10"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "867c9d83-77bf-4d6a-a960-49cd1b5c0106" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"71a112e9-9005-42bd-9b1e-6a1510981b10"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "867c9d83-77bf-4d6a-a960-49cd1b5c0106" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"71a112e9-9005-42bd-9b1e-6a1510981b10"} } } }, @@ -23231,6 +14262,7 @@ "Schema - Home Pages" ], "summary": "Get the header information for a Home Page File", + "operationId": "GetHomePageFile", "parameters": [ { "name": "database-key", @@ -23267,43 +14299,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "description": "Description of home page file.", - "extension": "html", - "dataLength": 12895, - "path": "HomePages", - "name": "home-page.html", - "guid": "37722bed-ec1c-447a-8a9c-95e3921b8eab" - } + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"28af5fdd-e84c-48f4-a267-e6975ae0bb43"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "description": "Description of home page file.", - "extension": "html", - "dataLength": 12895, - "path": "HomePages", - "name": "home-page.html", - "guid": "37722bed-ec1c-447a-8a9c-95e3921b8eab" - } + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"28af5fdd-e84c-48f4-a267-e6975ae0bb43"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925", - "description": "Description of home page file.", - "extension": "html", - "dataLength": 12895, - "path": "HomePages", - "name": "home-page.html", - "guid": "37722bed-ec1c-447a-8a9c-95e3921b8eab" - } + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"28af5fdd-e84c-48f4-a267-e6975ae0bb43"} } } }, @@ -23317,6 +14325,7 @@ "Schema - Home Pages" ], "summary": "Update an existing Home Page File.", + "operationId": "UpdateHomePageFile", "parameters": [ { "name": "database-key", @@ -23352,26 +14361,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": { - "description": "New description for home page file." - } + "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": { - "guid": "1c2f8390-5faf-458b-9ca4-7be56f056b44" - } + "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} } } }, @@ -23380,26 +14383,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": { - "description": "New description for home page file." - } + "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": { - "guid": "1c2f8390-5faf-458b-9ca4-7be56f056b44" - } + "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} } } }, @@ -23408,26 +14405,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": { - "description": "New description for home page file." - } + "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": { - "guid": "1c2f8390-5faf-458b-9ca4-7be56f056b44" - } + "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} } } }, @@ -23436,26 +14427,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": { - "name": "New File Name" - } + "value": {"name":"New File Name"} }, - "Example 8": { + "Example 14": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": { - "description": "New description for home page file." - } + "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 15": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": { - "guid": "1c2f8390-5faf-458b-9ca4-7be56f056b44" - } + "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} } } } @@ -23469,43 +14454,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "47a084e6-76af-40f7-91dc-582d0a49ecd5" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"568fea36-b97a-47d9-aeae-8be894c90125"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "47a084e6-76af-40f7-91dc-582d0a49ecd5" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"568fea36-b97a-47d9-aeae-8be894c90125"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "47a084e6-76af-40f7-91dc-582d0a49ecd5" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"568fea36-b97a-47d9-aeae-8be894c90125"} } } }, @@ -23525,6 +14486,7 @@ "Schema - Home Pages" ], "summary": "Delete a Home Page File.", + "operationId": "DeleteHomePageFile", "parameters": [ { "name": "database-key", @@ -23572,6 +14534,7 @@ "Schema - Home Pages" ], "summary": "Get Home Page File as a file", + "operationId": "ExportHomePageFile", "parameters": [ { "name": "database-key", @@ -23616,6 +14579,7 @@ "Schema - Home Pages" ], "summary": "Move an existing Home Page File.", + "operationId": "MoveHomePageFile", "parameters": [ { "name": "database-key", @@ -23651,12 +14615,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": { - "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } }, @@ -23665,12 +14627,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": { - "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } }, @@ -23679,12 +14639,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": { - "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } }, @@ -23693,12 +14651,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": { - "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" - } + "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} } } } @@ -23712,43 +14668,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "3d2d3782-4af4-4e34-aaaa-ed603f834afd" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"a275b38d-ab34-41a8-8e00-0b70f4532b18"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "3d2d3782-4af4-4e34-aaaa-ed603f834afd" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"a275b38d-ab34-41a8-8e00-0b70f4532b18"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": { - "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", - "description": "Description of exporter file.", - "extension": "exp", - "dataLength": 12895, - "path": "Exporters", - "name": "exporter-1.exp", - "guid": "3d2d3782-4af4-4e34-aaaa-ed603f834afd" - } + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"a275b38d-ab34-41a8-8e00-0b70f4532b18"} } } }, @@ -23770,6 +14702,7 @@ "Schema - Layout Sections" ], "summary": "Get all sections for a layout", + "operationId": "GetLayoutSections", "parameters": [ { "name": "database-key", @@ -23838,111 +14771,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSectionsInfo" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Get 'slim' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to false, which is the default value.", - "value": { - "layoutSections": [ - { - "sectionDetailType": "slim", - "displayNames": { - "en": "General Properties English Display Name", - "fr": "General Properties French Display Name" - }, - "name": "General Properties", - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Mechanical Properties English Display Name", - "fr": "Mechanical Properties French Display Name" - }, - "name": "Mechanical Properties", - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - } - ] - } + "value": {"layoutSections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} }, - "Example 6": { + "Example 10": { "summary": "Get 'full' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to true.", - "value": { - "layoutSections": [ - { - "sectionDetailType": "full", - "sectionItems": [ - { - "itemType": "attribute", - "attributeType": "point", - "required": false, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "016e6a18-6b3b-4463-8d40-4e3942c3c9b7", - "name": "Price", - "guid": "331fd6d4-41a0-4454-a49a-caa7d28508d2" - }, - { - "itemType": "attribute", - "attributeType": "point", - "required": false, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "e1013c3d-826d-4c72-b276-db789bd6b886", - "name": "Density", - "guid": "8b54a010-42f5-4e66-b80a-5625fad7d55a" - } - ], - "displayNames": { - "en": "General Properties English Display Name", - "fr": "General Properties French Display Name" - }, - "name": "General Properties", - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "sectionDetailType": "full", - "sectionItems": [ - { - "itemType": "attribute", - "attributeType": "floatFunctional", - "required": true, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "8f366e1f-3fec-4a49-aa96-b09a595deedf", - "name": "Young's modulus", - "guid": "4063efb5-ebc6-4ec2-8763-26fe18ea6d4e" - }, - { - "itemType": "attribute", - "attributeType": "range", - "required": true, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "0dd5fd35-19d5-4f63-ba43-a5fc0ff744c7", - "name": "Tensile strength", - "guid": "94b06512-bb9d-4e87-8a0f-0f3130ef510a" - }, - { - "itemType": "attribute", - "attributeType": "point", - "required": true, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "ef8d5ca8-27cb-45e1-b237-861c7560ed54", - "name": "Shape factor", - "guid": "c670c91d-dbd0-42ea-9645-8357616f93e5" - } - ], - "displayNames": { - "en": "Mechanical Properties English Display Name", - "fr": "Mechanical Properties French Display Name" - }, - "name": "Mechanical Properties", - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - } - ] - } + "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"7b179074-eb3f-4eda-b6bb-45d215f82b00","name":"Price","guid":"1b9e3647-54c8-4918-af99-b13bf22e6a17"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"9511c40a-b168-416a-943f-52e862dc4391","name":"Density","guid":"5bb33885-9831-4f00-8687-70900376cd2e"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"a7647c92-dafb-4521-8cd5-d3289f4836d6","name":"Young's modulus","guid":"291f1064-7efb-412d-99c7-69dab8845292"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"85a40955-be66-476f-b00e-4eb3b59add25","name":"Tensile strength","guid":"21de3dc3-70a7-4e51-903a-c6520d311042"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"7622a6fa-416e-45e1-9637-a30828347edf","name":"Shape factor","guid":"efee385f-1611-4014-aed4-830875a5a878"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} } } } @@ -23958,6 +14795,7 @@ "Schema - Layout Sections" ], "summary": "Create a new layout section.", + "operationId": "CreateSection", "parameters": [ { "name": "database-key", @@ -23993,20 +14831,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Additional Properties" - } + "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 10": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "Additional Properties (Guid)", - "guid": "606e6590-3803-43ab-919f-566f0a99b6ca" - } + "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} } } }, @@ -24015,20 +14848,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Additional Properties" - } + "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 10": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "Additional Properties (Guid)", - "guid": "606e6590-3803-43ab-919f-566f0a99b6ca" - } + "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} } } }, @@ -24037,20 +14865,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Additional Properties" - } + "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 10": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "Additional Properties (Guid)", - "guid": "606e6590-3803-43ab-919f-566f0a99b6ca" - } + "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} } } }, @@ -24059,20 +14882,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Additional Properties" - } + "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 10": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "Additional Properties (Guid)", - "guid": "606e6590-3803-43ab-919f-566f0a99b6ca" - } + "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} } } } @@ -24086,12 +14904,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayoutSection" }, - "example": { - "sectionDetailType": "slim", - "displayNames": {}, - "name": "Additional Properties", - "guid": "7043b257-1309-4828-93b6-ab12191512f0" - } + "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"be23361d-8dbe-482b-bfad-f5fcce77d73d"} } } }, @@ -24111,6 +14924,7 @@ "Schema - Layout Sections" ], "summary": "Reorder the list of layout sections for a layout.", + "operationId": "ReorderSections", "parameters": [ { "name": "database-key", @@ -24146,70 +14960,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "layoutSections": [ - { - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - }, - { - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "guid": "07124fac-3100-444f-ad5b-385decd9539f" - }, - { - "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" - }, - { - "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" - }, - { - "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" - }, - { - "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" - }, - { - "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" - }, - { - "guid": "b175f578-cf61-4642-9b98-eda48578db1e" - }, - { - "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" - }, - { - "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" - }, - { - "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" - }, - { - "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" - }, - { - "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" - }, - { - "guid": "83ba3aad-cb2f-49df-89e5-091017087563" - }, - { - "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" - }, - { - "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" - }, - { - "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" - }, - { - "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" - } - ] - } + "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} } } }, @@ -24218,70 +14972,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "layoutSections": [ - { - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - }, - { - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "guid": "07124fac-3100-444f-ad5b-385decd9539f" - }, - { - "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" - }, - { - "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" - }, - { - "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" - }, - { - "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" - }, - { - "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" - }, - { - "guid": "b175f578-cf61-4642-9b98-eda48578db1e" - }, - { - "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" - }, - { - "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" - }, - { - "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" - }, - { - "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" - }, - { - "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" - }, - { - "guid": "83ba3aad-cb2f-49df-89e5-091017087563" - }, - { - "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" - }, - { - "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" - }, - { - "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" - }, - { - "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" - } - ] - } + "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} } } }, @@ -24290,70 +14984,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "layoutSections": [ - { - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - }, - { - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "guid": "07124fac-3100-444f-ad5b-385decd9539f" - }, - { - "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" - }, - { - "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" - }, - { - "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" - }, - { - "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" - }, - { - "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" - }, - { - "guid": "b175f578-cf61-4642-9b98-eda48578db1e" - }, - { - "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" - }, - { - "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" - }, - { - "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" - }, - { - "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" - }, - { - "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" - }, - { - "guid": "83ba3aad-cb2f-49df-89e5-091017087563" - }, - { - "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" - }, - { - "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" - }, - { - "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" - }, - { - "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" - } - ] - } + "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} } } }, @@ -24362,70 +14996,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "layoutSections": [ - { - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - }, - { - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "guid": "07124fac-3100-444f-ad5b-385decd9539f" - }, - { - "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" - }, - { - "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" - }, - { - "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" - }, - { - "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" - }, - { - "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" - }, - { - "guid": "b175f578-cf61-4642-9b98-eda48578db1e" - }, - { - "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" - }, - { - "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" - }, - { - "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" - }, - { - "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" - }, - { - "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" - }, - { - "guid": "83ba3aad-cb2f-49df-89e5-091017087563" - }, - { - "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" - }, - { - "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" - }, - { - "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" - }, - { - "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" - } - ] - } + "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} } } } @@ -24439,190 +15013,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSectionsInfo" }, - "example": { - "layoutSections": [ - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Mechanical Properties English Display Name", - "fr": "Mechanical Properties French Display Name" - }, - "name": "Mechanical Properties", - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "General Properties English Display Name", - "fr": "General Properties French Display Name" - }, - "name": "General Properties", - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Electrical Properties English Display Name", - "fr": "Electrical Properties French Display Name" - }, - "name": "Electrical Properties", - "guid": "07124fac-3100-444f-ad5b-385decd9539f" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Composition Overview English Display Name", - "fr": "Composition Overview French Display Name" - }, - "name": "Composition Overview", - "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Composition detail (metals, ceramics and glasses) English Display Name", - "fr": "Composition detail (metals, ceramics and glasses) French Display Name" - }, - "name": "Composition detail (metals, ceramics and glasses)", - "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Restricted substances English Display Name", - "fr": "Restricted substances French Display Name" - }, - "name": "Restricted substances", - "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Further Information English Display Name", - "fr": "Further Information French Display Name" - }, - "name": "Further Information", - "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Restricted substances English Display Name", - "fr": "Restricted substances French Display Name" - }, - "name": "Restricted substances", - "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Notes English Display Name", - "fr": "Notes French Display Name" - }, - "name": "Notes", - "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Material recycling: energy, CO2 and recycle fraction English Display Name", - "fr": "Material recycling: energy, CO2 and recycle fraction French Display Name" - }, - "name": "Material recycling: energy, CO2 and recycle fraction", - "guid": "b175f578-cf61-4642-9b98-eda48578db1e" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Material processing: CO2 footprint English Display Name", - "fr": "Material processing: CO2 footprint French Display Name" - }, - "name": "Material processing: CO2 footprint", - "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Material processing: energy English Display Name", - "fr": "Material processing: energy French Display Name" - }, - "name": "Material processing: energy", - "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Eco-indicators for principal component English Display Name", - "fr": "Eco-indicators for principal component French Display Name" - }, - "name": "Eco-indicators for principal component", - "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Primary material production: energy, CO2 and water English Display Name", - "fr": "Primary material production: energy, CO2 and water French Display Name" - }, - "name": "Primary material production: energy, CO2 and water", - "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Geo-economic data for principal component English Display Name", - "fr": "Geo-economic data for principal component French Display Name" - }, - "name": "Geo-economic data for principal component", - "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Durability: fluids and sunlight English Display Name", - "fr": "Durability: fluids and sunlight French Display Name" - }, - "name": "Durability: fluids and sunlight", - "guid": "83ba3aad-cb2f-49df-89e5-091017087563" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Durability: flammability English Display Name", - "fr": "Durability: flammability French Display Name" - }, - "name": "Durability: flammability", - "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Optical properties English Display Name", - "fr": "Optical properties French Display Name" - }, - "name": "Optical properties", - "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Thermal properties English Display Name", - "fr": "Thermal properties French Display Name" - }, - "name": "Thermal properties", - "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Bio-data English Display Name", - "fr": "Bio-data French Display Name" - }, - "name": "Bio-data", - "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" - } - ] - } + "example": {"layoutSections":[{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Electrical Properties English Display Name","fr":"Electrical Properties French Display Name"},"name":"Electrical Properties","guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"sectionDetailType":"slim","displayNames":{"en":"Composition Overview English Display Name","fr":"Composition Overview French Display Name"},"name":"Composition Overview","guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"sectionDetailType":"slim","displayNames":{"en":"Composition detail (metals, ceramics and glasses) English Display Name","fr":"Composition detail (metals, ceramics and glasses) French Display Name"},"name":"Composition detail (metals, ceramics and glasses)","guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"sectionDetailType":"slim","displayNames":{"en":"Restricted substances English Display Name","fr":"Restricted substances French Display Name"},"name":"Restricted substances","guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"sectionDetailType":"slim","displayNames":{"en":"Further Information English Display Name","fr":"Further Information French Display Name"},"name":"Further Information","guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"sectionDetailType":"slim","displayNames":{"en":"Restricted substances English Display Name","fr":"Restricted substances French Display Name"},"name":"Restricted substances","guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"sectionDetailType":"slim","displayNames":{"en":"Notes English Display Name","fr":"Notes French Display Name"},"name":"Notes","guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"sectionDetailType":"slim","displayNames":{"en":"Material recycling: energy, CO2 and recycle fraction English Display Name","fr":"Material recycling: energy, CO2 and recycle fraction French Display Name"},"name":"Material recycling: energy, CO2 and recycle fraction","guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"sectionDetailType":"slim","displayNames":{"en":"Material processing: CO2 footprint English Display Name","fr":"Material processing: CO2 footprint French Display Name"},"name":"Material processing: CO2 footprint","guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"sectionDetailType":"slim","displayNames":{"en":"Material processing: energy English Display Name","fr":"Material processing: energy French Display Name"},"name":"Material processing: energy","guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"sectionDetailType":"slim","displayNames":{"en":"Eco-indicators for principal component English Display Name","fr":"Eco-indicators for principal component French Display Name"},"name":"Eco-indicators for principal component","guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"sectionDetailType":"slim","displayNames":{"en":"Primary material production: energy, CO2 and water English Display Name","fr":"Primary material production: energy, CO2 and water French Display Name"},"name":"Primary material production: energy, CO2 and water","guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"sectionDetailType":"slim","displayNames":{"en":"Geo-economic data for principal component English Display Name","fr":"Geo-economic data for principal component French Display Name"},"name":"Geo-economic data for principal component","guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"sectionDetailType":"slim","displayNames":{"en":"Durability: fluids and sunlight English Display Name","fr":"Durability: fluids and sunlight French Display Name"},"name":"Durability: fluids and sunlight","guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"sectionDetailType":"slim","displayNames":{"en":"Durability: flammability English Display Name","fr":"Durability: flammability French Display Name"},"name":"Durability: flammability","guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"sectionDetailType":"slim","displayNames":{"en":"Optical properties English Display Name","fr":"Optical properties French Display Name"},"name":"Optical properties","guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"sectionDetailType":"slim","displayNames":{"en":"Thermal properties English Display Name","fr":"Thermal properties French Display Name"},"name":"Thermal properties","guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"sectionDetailType":"slim","displayNames":{"en":"Bio-data English Display Name","fr":"Bio-data French Display Name"},"name":"Bio-data","guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} } } }, @@ -24644,6 +15035,7 @@ "Schema - Layout Sections" ], "summary": "Get a layout section with a specified guid for a given layout.", + "operationId": "GetLayoutSection", "parameters": [ { "name": "database-key", @@ -24721,129 +15113,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSection" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Get 'slim' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to false, which is the default value.", - "value": { - "detailType": "slim", - "displayNames": { - "de": "Testing Information German Display Name", - "fr": "Testing Information French Display Name" - }, - "name": "Testing Information", - "guid": "9ef6bd7a-342f-452c-afa4-26a484d4c190" - } + "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"e122faa0-3cf9-44ce-8166-156378a9b578"} }, - "Example 6": { + "Example 10": { "summary": "Get 'full' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to true.", - "value": { - "detailType": "full", - "sectionItems": [ - { - "itemType": "attribute", - "attributeType": "shortText", - "required": true, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "4a9df27b-051d-44f5-abcc-49e1ef800038", - "name": "Form", - "guid": "95ba3690-ffaa-467f-a631-daaa193d251f" - }, - { - "itemType": "attribute", - "attributeType": "point", - "required": true, - "readOnly": false, - "metaAttributes": [ - { - "itemType": "attribute", - "attributeType": "longText", - "required": true, - "readOnly": false, - "underlyingEntityGuid": "4494d24a-4222-403b-bab3-033085d81838", - "name": "Sources", - "guid": "c141a1ee-4038-4231-827d-daa123d289ec" - }, - { - "itemType": "attribute", - "attributeType": "shortText", - "required": true, - "readOnly": false, - "underlyingEntityGuid": "5bbda356-8c38-452a-97df-7e69f1cebc38", - "name": "Notes", - "guid": "44f208fd-7597-4b08-b392-7a51b1e7ad91" - } - ], - "underlyingEntityGuid": "f76a767a-33f4-4619-bbd0-ac02241c027f", - "name": "Chemical resistance", - "guid": "a4e89d73-3660-4bfb-8477-d2abd452e9cb" - }, - { - "itemType": "link", - "linkType": "recordLink", - "targetDatabase": "e6671497-57c1-451e-b3b6-311ff96749ea", - "targetDatabaseVersion": "3281d482-239b-4e3b-97d4-f3d73dd09183", - "targetTable": "8499b115-d495-4231-9f51-93f95df47ed2", - "forwards": true, - "underlyingEntityGuid": "c55a2ea8-1e95-4a5b-a5c2-3c7282ac5a24", - "name": "Material Pedigree", - "guid": "9f02861b-a6c2-42d5-b9cf-953c21b7e9d6" - }, - { - "itemType": "attribute", - "attributeType": "link", - "required": false, - "readOnly": false, - "metaAttributes": [], - "tabularColumns": [ - { - "columnType": "linkedAttribute", - "tabularColumnGuid": "4e92c23b-7efd-4fe6-92e6-8bf8b11f610b", - "name": "Offset Yield Stress", - "guid": "3bf0f032-ba7e-4b56-bbbe-62e9db7805e0" - }, - { - "columnType": "localShortText", - "tabularColumnGuid": "5748495d-0aa9-447b-8d34-d0df5fc534c8", - "name": "Young's Modulus Notes", - "guid": "d04d91e5-bba8-422f-8fac-480d2aca4d26" - } - ], - "underlyingEntityGuid": "390fdfbf-7fdf-4794-be6e-eed50b2f8f99", - "name": "Reference Characteristics", - "guid": "b51ded63-568d-4f74-8146-f403fd8e3702" - }, - { - "itemType": "link", - "linkType": "associationChain", - "targetDatabase": "e6671497-57c1-451e-b3b6-311ff96749ea", - "targetDatabaseVersion": "3281d482-239b-4e3b-97d4-f3d73dd09183", - "targetTable": "753f136d-765b-4dfd-9b03-c4143062553a", - "forwards": true, - "nextLink": { - "itemType": "link", - "linkType": "associationChain", - "targetDatabase": "e6671497-57c1-451e-b3b6-311ff96749ea", - "targetDatabaseVersion": "3281d482-239b-4e3b-97d4-f3d73dd09183", - "targetTable": "e96d6286-96af-4f41-a182-31f5eef555f6", - "forwards": false, - "underlyingEntityGuid": "eeeda913-7a9e-4a1e-810c-423c9fc8a39b", - "name": "Pedigree information", - "guid": "470074aa-2979-4208-8c9c-92d73ebc2119" - }, - "underlyingEntityGuid": "3267854b-f055-420c-a4e3-e62e42fe646a", - "name": "To Pedigree from Producers", - "guid": "b5045fdf-37de-4d22-b53e-498e2e1d9bf3" - } - ], - "displayNames": { - "de": "Testing Information German Display Name", - "fr": "Testing Information French Display Name" - }, - "name": "Testing Information", - "guid": "39c286c8-726b-43f6-9213-525a619031e1" - } + "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"fb748dad-7fdb-40db-98da-b1fb3bded2d5","name":"Form","guid":"f3f43f5e-c1e1-403f-aba8-4e32e1d3d105"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"06769012-6bc8-47f9-aebc-7cd2a3e0c566","name":"Sources","guid":"f5a6f0f7-98dc-450e-a167-c74207057728"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"203c6c22-dcf7-4341-829d-01286a66d4d5","name":"Notes","guid":"547784a4-1cd4-4335-8f07-5a16c6fa8300"}],"underlyingEntityGuid":"1a6e1574-7569-4f61-a726-6a9631988911","name":"Chemical resistance","guid":"74cc8867-34e2-486d-ad1c-915698df00ac"},{"itemType":"link","linkType":"recordLink","targetDatabase":"6998cb1a-db05-4164-9b6f-d4edc8eba186","targetDatabaseVersion":"5c6af642-5842-4023-a6e6-d87d38bc3e8c","targetTable":"2c003557-914d-44ae-b221-e71f98fe1a69","forwards":true,"underlyingEntityGuid":"252b417e-de7c-4ba3-918f-d3f4ea0005b9","name":"Material Pedigree","guid":"454874fc-043b-4116-a784-5402dc059414"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"b0cfff33-aff8-48b8-ba14-8b16db7b0bb8","name":"Offset Yield Stress","guid":"f64b0e36-2140-4efb-b029-c829594ec602"},{"columnType":"localShortText","tabularColumnGuid":"fe3e6c62-2347-49b2-b031-88ce9a1ac570","name":"Young's Modulus Notes","guid":"2af8da28-8cd4-4086-8b4f-00222a3cbfca"}],"underlyingEntityGuid":"6070c95d-c98a-4123-8b48-7914967cd1ae","name":"Reference Characteristics","guid":"29e31a1b-c6bf-4739-af2b-c890459a62a1"},{"itemType":"link","linkType":"associationChain","targetDatabase":"6998cb1a-db05-4164-9b6f-d4edc8eba186","targetDatabaseVersion":"5c6af642-5842-4023-a6e6-d87d38bc3e8c","targetTable":"a0ed4cf2-2bf2-4a2e-b15d-819d24147ffd","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"6998cb1a-db05-4164-9b6f-d4edc8eba186","targetDatabaseVersion":"5c6af642-5842-4023-a6e6-d87d38bc3e8c","targetTable":"333655a4-2879-4bbc-ad79-a1b0df14fdc6","forwards":false,"underlyingEntityGuid":"83f0cccf-1bf2-430b-8b49-c0ec64a86d05","name":"Pedigree information","guid":"debabef7-c281-49e3-9c59-ae3d1c8f5d7c"},"underlyingEntityGuid":"58b6d28c-bd45-45be-a105-0396111380a9","name":"To Pedigree from Producers","guid":"e1204912-8949-4cd5-a5be-242919110627"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"2ea0dbd0-7558-452b-9341-b1cabacfe86a"} } } } @@ -24859,6 +15137,7 @@ "Schema - Layout Sections" ], "summary": "Delete a layout section.", + "operationId": "DeleteSection", "parameters": [ { "name": "database-key", @@ -24918,6 +15197,7 @@ "Schema - Layout Sections" ], "summary": "Add a new layout item.", + "operationId": "CreateLayoutItem", "parameters": [ { "name": "database-key", @@ -24962,98 +15242,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 33": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 34": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", - "required": true, - "readOnly": true - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 35": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "attribute", - "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", - "metaAttributes": [ - { - "itemType": "attribute", - "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", - "required": false, - "readOnly": false - } - ] - } + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 36": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": { - "itemType": "attribute", - "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "tabularColumnGuids": [ - "7b28a5fd-4972-40fc-8181-626586258bc3", - "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - ] - } + "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 37": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "recordLink", - "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" - } + "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 38": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "smartLink", - "forwards": true, - "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" - } + "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 39": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "a513bb10-db9f-465c-bf34-c486af5dd2d7", - "sourceTableGuid": "b05a442e-8dbf-4997-9f38-d5142197a18f", - "linkGroupGuid": "6c650233-bb22-4127-9f8f-6e6c47dae583" - } + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} }, - "Example 24": { + "Example 40": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "associationChain", - "associationChainName": "Name of association chain", - "associationChainLinks": [ - { - "forwards": true, - "sourceDatabaseVersionGuid": "82a3382d-4f37-4888-ac25-9cbb0bdb00ab", - "tabularAttributeGuid": "ae0742ea-b9fd-4105-8276-730f7ee5eb84" - }, - { - "forwards": false, - "sourceDatabaseVersionGuid": "46f7debb-d3d4-4d25-81e5-460bc129c18a", - "tabularAttributeGuid": "f4443d8e-cf1b-4a39-90c8-8029e1840f7a" - } - ] - } + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} } } }, @@ -25062,98 +15289,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 33": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 34": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", - "required": true, - "readOnly": true - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 35": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "attribute", - "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", - "metaAttributes": [ - { - "itemType": "attribute", - "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", - "required": false, - "readOnly": false - } - ] - } + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 36": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": { - "itemType": "attribute", - "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "tabularColumnGuids": [ - "7b28a5fd-4972-40fc-8181-626586258bc3", - "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - ] - } + "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 37": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "recordLink", - "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" - } + "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 38": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "smartLink", - "forwards": true, - "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" - } + "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 39": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "a513bb10-db9f-465c-bf34-c486af5dd2d7", - "sourceTableGuid": "b05a442e-8dbf-4997-9f38-d5142197a18f", - "linkGroupGuid": "6c650233-bb22-4127-9f8f-6e6c47dae583" - } + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} }, - "Example 24": { + "Example 40": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "associationChain", - "associationChainName": "Name of association chain", - "associationChainLinks": [ - { - "forwards": true, - "sourceDatabaseVersionGuid": "82a3382d-4f37-4888-ac25-9cbb0bdb00ab", - "tabularAttributeGuid": "ae0742ea-b9fd-4105-8276-730f7ee5eb84" - }, - { - "forwards": false, - "sourceDatabaseVersionGuid": "46f7debb-d3d4-4d25-81e5-460bc129c18a", - "tabularAttributeGuid": "f4443d8e-cf1b-4a39-90c8-8029e1840f7a" - } - ] - } + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} } } }, @@ -25162,98 +15336,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 33": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 34": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", - "required": true, - "readOnly": true - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 35": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "attribute", - "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", - "metaAttributes": [ - { - "itemType": "attribute", - "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", - "required": false, - "readOnly": false - } - ] - } + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 36": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": { - "itemType": "attribute", - "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "tabularColumnGuids": [ - "7b28a5fd-4972-40fc-8181-626586258bc3", - "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - ] - } + "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 37": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "recordLink", - "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" - } + "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 38": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "smartLink", - "forwards": true, - "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" - } + "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 39": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "a513bb10-db9f-465c-bf34-c486af5dd2d7", - "sourceTableGuid": "b05a442e-8dbf-4997-9f38-d5142197a18f", - "linkGroupGuid": "6c650233-bb22-4127-9f8f-6e6c47dae583" - } + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} }, - "Example 24": { + "Example 40": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "associationChain", - "associationChainName": "Name of association chain", - "associationChainLinks": [ - { - "forwards": true, - "sourceDatabaseVersionGuid": "82a3382d-4f37-4888-ac25-9cbb0bdb00ab", - "tabularAttributeGuid": "ae0742ea-b9fd-4105-8276-730f7ee5eb84" - }, - { - "forwards": false, - "sourceDatabaseVersionGuid": "46f7debb-d3d4-4d25-81e5-460bc129c18a", - "tabularAttributeGuid": "f4443d8e-cf1b-4a39-90c8-8029e1840f7a" - } - ] - } + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} } } }, @@ -25262,98 +15383,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 33": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 34": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", - "required": true, - "readOnly": true - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 35": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "attribute", - "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", - "metaAttributes": [ - { - "itemType": "attribute", - "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", - "required": false, - "readOnly": false - } - ] - } + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 36": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": { - "itemType": "attribute", - "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "tabularColumnGuids": [ - "7b28a5fd-4972-40fc-8181-626586258bc3", - "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - ] - } + "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 37": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "recordLink", - "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" - } + "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 38": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "smartLink", - "forwards": true, - "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" - } + "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 39": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "a513bb10-db9f-465c-bf34-c486af5dd2d7", - "sourceTableGuid": "b05a442e-8dbf-4997-9f38-d5142197a18f", - "linkGroupGuid": "6c650233-bb22-4127-9f8f-6e6c47dae583" - } + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} }, - "Example 24": { + "Example 40": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "associationChain", - "associationChainName": "Name of association chain", - "associationChainLinks": [ - { - "forwards": true, - "sourceDatabaseVersionGuid": "82a3382d-4f37-4888-ac25-9cbb0bdb00ab", - "tabularAttributeGuid": "ae0742ea-b9fd-4105-8276-730f7ee5eb84" - }, - { - "forwards": false, - "sourceDatabaseVersionGuid": "46f7debb-d3d4-4d25-81e5-460bc129c18a", - "tabularAttributeGuid": "f4443d8e-cf1b-4a39-90c8-8029e1840f7a" - } - ] - } + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} } } } @@ -25368,105 +15436,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Layout Attribute Item", "description": "This example demonstrates the response to creating a new attribute layout item. It was created by adding the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "attribute", - "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", - "required": true, - "readOnly": false, - "metaAttributes": null, - "tabularColumnGuids": null, - "guid": "0e9f2bdf-134c-4029-892d-4847956b4800" - } + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"2ecad111-6928-40b1-ba17-4cf2a7d8fbe0"} }, - "Example 16": { + "Example 30": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates the response to creating a new attribute layout item with a meta-attribute. It was created by adding the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "attribute", - "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", - "required": false, - "readOnly": false, - "metaAttributes": [ - { - "itemType": "attribute", - "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", - "required": true, - "readOnly": false - } - ], - "tabularColumnGuids": null, - "guid": "699f6f62-1730-4f73-b9fc-8b714d016012" - } + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"abd7c2ff-007a-4fef-bcee-9b6f3a91c1e1"} }, - "Example 17": { + "Example 31": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates the response to creating a new tabular attribute layout item with specified tabular columns to include. It was created by adding the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include. ", - "value": { - "itemType": "attribute", - "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "required": false, - "readOnly": false, - "metaAttributes": null, - "tabularColumnGuids": [ - "7b28a5fd-4972-40fc-8181-626586258bc3", - "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" - ], - "guid": null - } + "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","required":false,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"],"guid":null} }, - "Example 18": { + "Example 32": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates the response to creating a new link group layout item. It was created by adding the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "recordLink", - "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949", - "guid": null - } + "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949","guid":null} }, - "Example 19": { + "Example 33": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates the response to creating a new smart link group layout item. It was created by adding the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "smartLink", - "forwards": true, - "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66", - "guid": null - } + "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66","guid":null} }, - "Example 20": { + "Example 34": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates the response to creating a new cross database link group layout item. It was created by adding a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "91ae832e-f297-41f0-8502-bb3da4bd1d9e", - "sourceTableGuid": "41a87b12-397e-4df4-85d0-65da96330a2f", - "linkGroupGuid": "c99329de-1f1f-474b-82a9-fcd5a0895aef", - "guid": null - } + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"1411dba9-c7be-4cdb-b88f-94ce9cdc2eaa","sourceTableGuid":"7c06acfa-3ffe-4e88-baaf-d0ae836228ed","linkGroupGuid":"5da2bc75-6b2b-402f-bb60-6d1348e7e64d","guid":null} }, - "Example 21": { + "Example 35": { "summary": "Layout Association Chain Item", "description": "This example demonstrates the response to creating a new association chain layout item. It was created by adding a association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "itemType": "associationChain", - "associationChainName": "Name of association chain", - "associationChainLinks": [ - { - "forwards": true, - "sourceDatabaseVersionGuid": "00000000-0000-0000-0000-000000000000", - "tabularAttributeGuid": "40bfe17f-9d36-4f08-ae18-e99a7beb7e01" - }, - { - "forwards": false, - "sourceDatabaseVersionGuid": "00000000-0000-0000-0000-000000000000", - "tabularAttributeGuid": "60da319c-39e8-48fe-9fd7-c155f65a1816" - } - ], - "guid": null - } + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"84082a51-04dc-45b3-9614-5196149cfa3d"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"665a2587-08cd-44e3-970a-2d50de8d2e83"}],"guid":null} } } } @@ -25490,6 +15493,7 @@ "Schema - Layout Sections" ], "summary": "Delete a layout item.", + "operationId": "DeleteItem", "parameters": [ { "name": "database-key", @@ -25558,6 +15562,7 @@ "Schema - Layouts" ], "summary": "Get all layouts for table", + "operationId": "GetLayouts", "parameters": [ { "name": "database-key", @@ -25609,28 +15614,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutsInfo" }, - "example": { - "layouts": [ - { - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": {}, - "name": "Metals", - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": {}, - "name": "Polymers", - "guid": "00007645-0009-4fff-8fff-dd92ffff0000" - } - ] - } + "example": {"layouts":[{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Metals","guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Polymers","guid":"00007645-0009-4fff-8fff-dd92ffff0000"}]} } } }, @@ -25644,6 +15628,7 @@ "Schema - Layouts" ], "summary": "Create a new layout.", + "operationId": "CreateLayout", "parameters": [ { "name": "database-key", @@ -25670,20 +15655,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Composite materials" - } + "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 10": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Composite materials (guid)", - "guid": "3d4c4604-1f3b-48aa-9ed3-8c745f4bd1e6" - } + "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} } } }, @@ -25692,20 +15672,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Composite materials" - } + "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 10": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Composite materials (guid)", - "guid": "3d4c4604-1f3b-48aa-9ed3-8c745f4bd1e6" - } + "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} } } }, @@ -25714,20 +15689,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Composite materials" - } + "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 10": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Composite materials (guid)", - "guid": "3d4c4604-1f3b-48aa-9ed3-8c745f4bd1e6" - } + "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} } } }, @@ -25736,20 +15706,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Composite materials" - } + "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 10": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Composite materials (guid)", - "guid": "3d4c4604-1f3b-48aa-9ed3-8c745f4bd1e6" - } + "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} } } } @@ -25763,11 +15728,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayout" }, - "example": { - "displayNames": {}, - "name": "Ceramics", - "guid": "6b7d0038-dcce-46c3-a027-4d41d928ca3a" - } + "example": {"displayNames":{},"name":"Ceramics","guid":"ec2defc2-55b6-4747-b4ab-c677c726c477"} } } }, @@ -25789,6 +15750,7 @@ "Schema - Layouts" ], "summary": "Get a layout with a specified guid for a given database and table.", + "operationId": "GetLayout", "parameters": [ { "name": "database-key", @@ -25857,123 +15819,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Layout with 'slim' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to false, which is the default value.", - "value": { - "sections": [ - { - "sectionDetailType": "slim", - "displayNames": { - "en": "General Properties English Display Name", - "fr": "General Properties French Display Name" - }, - "name": "General Properties", - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "sectionDetailType": "slim", - "displayNames": { - "en": "Mechanical Properties English Display Name", - "fr": "Mechanical Properties French Display Name" - }, - "name": "Mechanical Properties", - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - } - ], - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - } + "value": {"sections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 6": { + "Example 10": { "summary": "Layout with 'full' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to true.", - "value": { - "sections": [ - { - "sectionDetailType": "full", - "sectionItems": [ - { - "itemType": "attribute", - "attributeType": "point", - "required": false, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "99bba305-f376-4378-b7c3-11b86dcd5364", - "name": "Price", - "guid": "874f984f-f7e7-41f0-82df-139443099940" - }, - { - "itemType": "attribute", - "attributeType": "point", - "required": false, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "2e3a6dd9-6aeb-4e4a-874a-601a9e3a29e5", - "name": "Density", - "guid": "5e1f99b3-2893-468f-bfcf-6f104eb79851" - } - ], - "displayNames": { - "en": "General Properties English Display Name", - "fr": "General Properties French Display Name" - }, - "name": "General Properties", - "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" - }, - { - "sectionDetailType": "full", - "sectionItems": [ - { - "itemType": "attribute", - "attributeType": "floatFunctional", - "required": true, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "52c87f7d-2a36-4ad4-9681-e8dc17ec07cb", - "name": "Young's modulus", - "guid": "62f4b89b-bd61-4eeb-be58-513a04884862" - }, - { - "itemType": "attribute", - "attributeType": "range", - "required": true, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "1156f269-e781-487b-a437-98b6034c1e09", - "name": "Tensile strength", - "guid": "ed378d89-ffb2-4202-9280-f2661056ea20" - }, - { - "itemType": "attribute", - "attributeType": "point", - "required": true, - "readOnly": false, - "metaAttributes": [], - "underlyingEntityGuid": "8f00da42-f74b-47f6-879c-ee0e631be6b2", - "name": "Shape factor", - "guid": "bd39dc26-a0bc-4ed8-9069-4ce5ea1fb6fb" - } - ], - "displayNames": { - "en": "Mechanical Properties English Display Name", - "fr": "Mechanical Properties French Display Name" - }, - "name": "Mechanical Properties", - "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" - } - ], - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - } + "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"48d851cf-d126-4bfc-9797-c9ea51e2948e","name":"Price","guid":"6275c39d-b43b-4bb6-aac6-4ca617c4e5ae"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"30cbfe21-3222-4882-87cb-1f086d8c95bb","name":"Density","guid":"97a90135-022f-416f-bbea-98e95253ebd6"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3ad274e1-c58a-48bd-8b6f-73686755586b","name":"Young's modulus","guid":"b882ee01-87c7-45fc-bb9e-90f097b5daa9"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"d6488def-b251-4aef-b0ac-fe38c4725811","name":"Tensile strength","guid":"6e77de66-0e3f-4b1b-a009-f6df0b16d8d5"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"5cf2a816-7e72-455c-83b5-a50904fcb019","name":"Shape factor","guid":"9f21c129-b350-4f23-8608-f9fd944a6708"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} } } } @@ -25989,6 +15843,7 @@ "Schema - Layouts" ], "summary": "Update a layout.", + "operationId": "UpdateLayout", "parameters": [ { "name": "database-key", @@ -26024,20 +15879,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)", - "guid": "5ebe7160-b02e-4bab-b094-9a5b162fec4d" - } + "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} }, - "Example 6": { + "Example 10": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} } } }, @@ -26046,20 +15896,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)", - "guid": "5ebe7160-b02e-4bab-b094-9a5b162fec4d" - } + "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} }, - "Example 6": { + "Example 10": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} } } }, @@ -26068,20 +15913,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)", - "guid": "5ebe7160-b02e-4bab-b094-9a5b162fec4d" - } + "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} }, - "Example 6": { + "Example 10": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} } } }, @@ -26090,20 +15930,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)", - "guid": "5ebe7160-b02e-4bab-b094-9a5b162fec4d" - } + "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} }, - "Example 6": { + "Example 10": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} } } } @@ -26136,6 +15971,7 @@ "Schema - Layouts" ], "summary": "Delete a layout.", + "operationId": "DeleteLayout", "parameters": [ { "name": "database-key", @@ -26186,6 +16022,7 @@ "Schema - Parameters" ], "summary": "Get all parameters for a given database.", + "operationId": "GetParameters", "parameters": [ { "name": "database-key", @@ -26205,97 +16042,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParametersInfo" }, "examples": { - "Example 3": { + "Example 5": { "summary": "A mix of parameters", "description": "This example contains a mix of numeric and discrete parameters from the MI_Training database.", - "value": { - "parameters": [ - { - "type": "numeric", - "isRestricted": false, - "unit": { - "symbol": "% strain", - "guid": "0000019b-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "type": "numeric", - "value": 0.1, - "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" - }, - { - "type": "numeric", - "value": 1.0, - "guid": "00000005-000b-4fff-8fff-0005ffff0000" - } - ], - "interpolationType": "linear", - "scaleType": "linear", - "helpPath": "/help/strain.html", - "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", - "displayNames": { - "en": "Strain", - "fr": "Souche" - }, - "name": "Strain", - "guid": "00000005-000a-4fff-8fff-0000ffff0000" - }, - { - "type": "numeric", - "isRestricted": false, - "values": [ - { - "type": "numeric", - "value": -1.0, - "guid": "4c35e5cd-0641-45d1-96d3-bc42076b3a94" - }, - { - "type": "numeric", - "value": 0.0, - "guid": "00000022-000b-4fff-8fff-0022ffff0000" - } - ], - "interpolationType": "linear", - "scaleType": "linear", - "helpPath": "/help/strain-ratio.html", - "defaultParameterValueGuid": "4c35e5cd-0641-45d1-96d3-bc42076b3a94", - "displayNames": { - "en": "Strain Ratio", - "fr": "Rapport de contrainte" - }, - "name": "Strain Ratio", - "guid": "00000022-000a-4fff-8fff-0000ffff0000" - }, - { - "type": "discrete", - "values": [ - { - "type": "discrete", - "name": "Mean", - "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" - }, - { - "type": "discrete", - "name": "A-basis", - "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" - }, - { - "type": "discrete", - "name": "B-basis", - "guid": "9ba94816-6784-4848-bfa6-d24b12597a5b" - } - ], - "helpPath": "/help/basis.html", - "defaultParameterValueGuid": "21a27377-12eb-413c-bac4-d4ffceda39d1", - "displayNames": { - "en": "Basis", - "fr": "Base" - }, - "name": "Basis", - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - ] - } + "value": {"parameters":[{"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"},{"type":"numeric","isRestricted":false,"values":[{"type":"numeric","value":-1.0,"guid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94"},{"type":"numeric","value":0.0,"guid":"00000022-000b-4fff-8fff-0022ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain-ratio.html","defaultParameterValueGuid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94","displayNames":{"en":"Strain Ratio","fr":"Rapport de contrainte"},"name":"Strain Ratio","guid":"00000022-000a-4fff-8fff-0000ffff0000"},{"type":"discrete","values":[{"type":"discrete","name":"Mean","guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"type":"discrete","name":"A-basis","guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"},{"type":"discrete","name":"B-basis","guid":"9ba94816-6784-4848-bfa6-d24b12597a5b"}],"helpPath":"/help/basis.html","defaultParameterValueGuid":"21a27377-12eb-413c-bac4-d4ffceda39d1","displayNames":{"en":"Basis","fr":"Base"},"name":"Basis","guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}]} } } } @@ -26311,6 +16061,7 @@ "Schema - Parameters" ], "summary": "Create a new parameter.", + "operationId": "CreateParameter", "parameters": [ { "name": "database-key", @@ -26328,136 +16079,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 0, - "name": "Colour" - } + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 12": { + "Example 22": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red", - "guid": "d215af79-81cc-4d88-88ca-33992456b134" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 1, - "name": "Colour (guid)", - "guid": "8f47bb19-4d21-4dee-9c3e-4f8ee175dcdc" - } + "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} }, - "Example 13": { + "Example 23": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": { - "type": "numeric", - "isRestricted": true, - "values": [ - { - "value": 2010.0, - "type": "numeric", - "name": "Twenty Ten" - }, - { - "value": 2015.0, - "type": "numeric" - }, - { - "value": 2020.0, - "type": "numeric", - "name": "Twenty Twenty" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 2, - "name": "Year" - } + "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 24": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": { - "type": "numeric", - "isRestricted": true, - "unit": { - "guid": "00000099-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Small box" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Big box" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 0, - "name": "Box dimension" - } + "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 25": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": { - "type": "numeric", - "isRestricted": false, - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Cold" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Hot" - } - ], - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "/help/outside-temperature.html", - "defaultParameterValueIndex": 2, - "name": "Outside Temperature" - } + "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} } } }, @@ -26466,136 +16111,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 0, - "name": "Colour" - } + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 12": { + "Example 22": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red", - "guid": "d215af79-81cc-4d88-88ca-33992456b134" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 1, - "name": "Colour (guid)", - "guid": "8f47bb19-4d21-4dee-9c3e-4f8ee175dcdc" - } + "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} }, - "Example 13": { + "Example 23": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": { - "type": "numeric", - "isRestricted": true, - "values": [ - { - "value": 2010.0, - "type": "numeric", - "name": "Twenty Ten" - }, - { - "value": 2015.0, - "type": "numeric" - }, - { - "value": 2020.0, - "type": "numeric", - "name": "Twenty Twenty" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 2, - "name": "Year" - } + "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 24": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": { - "type": "numeric", - "isRestricted": true, - "unit": { - "guid": "00000099-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Small box" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Big box" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 0, - "name": "Box dimension" - } + "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 25": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": { - "type": "numeric", - "isRestricted": false, - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Cold" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Hot" - } - ], - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "/help/outside-temperature.html", - "defaultParameterValueIndex": 2, - "name": "Outside Temperature" - } + "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} } } }, @@ -26604,136 +16143,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 0, - "name": "Colour" - } + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 12": { + "Example 22": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red", - "guid": "d215af79-81cc-4d88-88ca-33992456b134" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 1, - "name": "Colour (guid)", - "guid": "8f47bb19-4d21-4dee-9c3e-4f8ee175dcdc" - } + "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} }, - "Example 13": { + "Example 23": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": { - "type": "numeric", - "isRestricted": true, - "values": [ - { - "value": 2010.0, - "type": "numeric", - "name": "Twenty Ten" - }, - { - "value": 2015.0, - "type": "numeric" - }, - { - "value": 2020.0, - "type": "numeric", - "name": "Twenty Twenty" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 2, - "name": "Year" - } + "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 24": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": { - "type": "numeric", - "isRestricted": true, - "unit": { - "guid": "00000099-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Small box" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Big box" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 0, - "name": "Box dimension" - } + "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 25": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": { - "type": "numeric", - "isRestricted": false, - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Cold" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Hot" - } - ], - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "/help/outside-temperature.html", - "defaultParameterValueIndex": 2, - "name": "Outside Temperature" - } + "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} } } }, @@ -26742,136 +16175,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 0, - "name": "Colour" - } + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 12": { + "Example 22": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": { - "values": [ - { - "type": "discrete", - "name": "Red", - "guid": "d215af79-81cc-4d88-88ca-33992456b134" - }, - { - "type": "discrete", - "name": "Green" - } - ], - "type": "discrete", - "defaultParameterValueIndex": 1, - "name": "Colour (guid)", - "guid": "8f47bb19-4d21-4dee-9c3e-4f8ee175dcdc" - } + "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} }, - "Example 13": { + "Example 23": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": { - "type": "numeric", - "isRestricted": true, - "values": [ - { - "value": 2010.0, - "type": "numeric", - "name": "Twenty Ten" - }, - { - "value": 2015.0, - "type": "numeric" - }, - { - "value": 2020.0, - "type": "numeric", - "name": "Twenty Twenty" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 2, - "name": "Year" - } + "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 24": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": { - "type": "numeric", - "isRestricted": true, - "unit": { - "guid": "00000099-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Small box" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Big box" - } - ], - "interpolationType": "none", - "scaleType": "linear", - "defaultParameterValueIndex": 0, - "name": "Box dimension" - } + "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 25": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": { - "type": "numeric", - "isRestricted": false, - "unit": { - "guid": "00000002-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "value": 10.0, - "type": "numeric", - "name": "Cold" - }, - { - "value": 20.0, - "type": "numeric" - }, - { - "value": 30.0, - "type": "numeric", - "name": "Hot" - } - ], - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "/help/outside-temperature.html", - "defaultParameterValueIndex": 2, - "name": "Outside Temperature" - } + "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} } } } @@ -26885,36 +16212,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameter" }, - "example": { - "type": "numeric", - "isRestricted": false, - "unit": { - "symbol": "% strain", - "guid": "0000019b-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "type": "numeric", - "value": 0.1, - "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" - }, - { - "type": "numeric", - "value": 1.0, - "guid": "00000005-000b-4fff-8fff-0005ffff0000" - } - ], - "interpolationType": "linear", - "scaleType": "linear", - "helpPath": "/help/Strain.html", - "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", - "displayNames": { - "en": "Strain", - "fr": "Souche" - }, - "name": "Strain", - "guid": "00000005-000a-4fff-8fff-0000ffff0000" - } + "example": {"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/Strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"} } } }, @@ -26936,6 +16234,7 @@ "Schema - Parameters" ], "summary": "Get a parameter with a specified guid for a given database.", + "operationId": "GetParameter", "parameters": [ { "name": "database-key", @@ -26963,36 +16262,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameter" }, - "example": { - "type": "numeric", - "isRestricted": false, - "unit": { - "symbol": "% strain", - "guid": "0000019b-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "type": "numeric", - "value": 0.1, - "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" - }, - { - "type": "numeric", - "value": 1.0, - "guid": "00000005-000b-4fff-8fff-0005ffff0000" - } - ], - "interpolationType": "linear", - "scaleType": "linear", - "helpPath": "/help/Strain.html", - "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", - "displayNames": { - "en": "Strain", - "fr": "Souche" - }, - "name": "Strain", - "guid": "00000005-000a-4fff-8fff-0000ffff0000" - } + "example": {"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/Strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"} } } }, @@ -27006,6 +16276,7 @@ "Schema - Parameters" ], "summary": "Update a parameter.", + "operationId": "UpdateParameter", "parameters": [ { "name": "database-key", @@ -27032,76 +16303,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "help/strain-updated.html", - "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", - "name": "Strain (Updated)", - "guid": "9268a0eb-77b5-4336-8677-ab58b4844868" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} }, - "Example 16": { + "Example 30": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "helpPath": "help/basis-updated.html", - "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", - "name": "Basis (Updated)", - "guid": "ebac64ef-3243-4c79-b418-bf107618044d" - } + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} }, - "Example 17": { + "Example 31": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": { - "type": "numeric", - "guid": "307fc42a-ff51-47b2-809e-8fbb750c1d46" - } + "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} }, - "Example 18": { + "Example 32": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": { - "type": "discrete", - "name": "Strain (Updated)" - } + "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 33": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "guid": "dd3d211e-988b-4bda-8d8a-72c6576272d7" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} }, - "Example 20": { + "Example 34": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": { - "type": "numeric", - "unit": null - } + "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 35": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": { - "type": "numeric", - "interpolationType": "cubicSpline", - "scaleType": "logarithmic" - } + "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} } } }, @@ -27110,76 +16345,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "help/strain-updated.html", - "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", - "name": "Strain (Updated)", - "guid": "9268a0eb-77b5-4336-8677-ab58b4844868" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} }, - "Example 16": { + "Example 30": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "helpPath": "help/basis-updated.html", - "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", - "name": "Basis (Updated)", - "guid": "ebac64ef-3243-4c79-b418-bf107618044d" - } + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} }, - "Example 17": { + "Example 31": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": { - "type": "numeric", - "guid": "307fc42a-ff51-47b2-809e-8fbb750c1d46" - } + "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} }, - "Example 18": { + "Example 32": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": { - "type": "discrete", - "name": "Strain (Updated)" - } + "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 33": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "guid": "dd3d211e-988b-4bda-8d8a-72c6576272d7" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} }, - "Example 20": { + "Example 34": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": { - "type": "numeric", - "unit": null - } + "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 35": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": { - "type": "numeric", - "interpolationType": "cubicSpline", - "scaleType": "logarithmic" - } + "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} } } }, @@ -27188,76 +16387,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "help/strain-updated.html", - "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", - "name": "Strain (Updated)", - "guid": "9268a0eb-77b5-4336-8677-ab58b4844868" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} }, - "Example 16": { + "Example 30": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "helpPath": "help/basis-updated.html", - "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", - "name": "Basis (Updated)", - "guid": "ebac64ef-3243-4c79-b418-bf107618044d" - } + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} }, - "Example 17": { + "Example 31": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": { - "type": "numeric", - "guid": "307fc42a-ff51-47b2-809e-8fbb750c1d46" - } + "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} }, - "Example 18": { + "Example 32": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": { - "type": "discrete", - "name": "Strain (Updated)" - } + "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 33": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "guid": "dd3d211e-988b-4bda-8d8a-72c6576272d7" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} }, - "Example 20": { + "Example 34": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": { - "type": "numeric", - "unit": null - } + "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 35": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": { - "type": "numeric", - "interpolationType": "cubicSpline", - "scaleType": "logarithmic" - } + "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} } } }, @@ -27266,76 +16429,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "interpolationType": "cubicSpline", - "scaleType": "logarithmic", - "helpPath": "help/strain-updated.html", - "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", - "name": "Strain (Updated)", - "guid": "9268a0eb-77b5-4336-8677-ab58b4844868" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} }, - "Example 16": { + "Example 30": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "helpPath": "help/basis-updated.html", - "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", - "name": "Basis (Updated)", - "guid": "ebac64ef-3243-4c79-b418-bf107618044d" - } + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} }, - "Example 17": { + "Example 31": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": { - "type": "numeric", - "guid": "307fc42a-ff51-47b2-809e-8fbb750c1d46" - } + "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} }, - "Example 18": { + "Example 32": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": { - "type": "discrete", - "name": "Strain (Updated)" - } + "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 33": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": { - "type": "numeric", - "unit": { - "guid": "0000007a-0013-4fff-8fff-0000ffff0000" - }, - "guid": "dd3d211e-988b-4bda-8d8a-72c6576272d7" - } + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} }, - "Example 20": { + "Example 34": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": { - "type": "numeric", - "unit": null - } + "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 35": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": { - "type": "numeric", - "interpolationType": "cubicSpline", - "scaleType": "logarithmic" - } + "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} } } } @@ -27349,36 +16476,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameter" }, - "example": { - "type": "numeric", - "isRestricted": false, - "unit": { - "symbol": "% strain", - "guid": "0000019b-0013-4fff-8fff-0000ffff0000" - }, - "values": [ - { - "type": "numeric", - "value": 0.1, - "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" - }, - { - "type": "numeric", - "value": 1.0, - "guid": "00000005-000b-4fff-8fff-0005ffff0000" - } - ], - "interpolationType": "linear", - "scaleType": "linear", - "helpPath": "/help/Strain.html", - "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", - "displayNames": { - "en": "Strain", - "fr": "Souche" - }, - "name": "Strain", - "guid": "00000005-000a-4fff-8fff-0000ffff0000" - } + "example": {"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/Strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"} } } }, @@ -27398,6 +16496,7 @@ "Schema - Parameters" ], "summary": "Delete a parameter.", + "operationId": "DeleteParameter", "parameters": [ { "name": "database-key", @@ -27425,23 +16524,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionParameterDeletionException" }, - "example": { - "message": "Cannot delete parameter 'Strain' (GUID = '00000005-000a-4fff-8fff-0000ffff0000').", - "code": 400, - "errors": [ - { - "message": "It is being used in one or more attributes.", - "reason": "inUse", - "referencedByType": "attribute", - "referencedBy": [ - { - "name": "Stress", - "guid": "af033295-75d5-4f92-96cf-280c0142bf1e" - } - ] - } - ] - } + "example": {"message":"Cannot delete parameter 'Strain' (GUID = '00000005-000a-4fff-8fff-0000ffff0000').","code":400,"errors":[{"message":"It is being used in one or more attributes.","reason":"inUse","referencedByType":"attribute","referencedBy":[{"name":"Stress","guid":"af033295-75d5-4f92-96cf-280c0142bf1e"}]}]} } } }, @@ -27463,6 +16546,7 @@ "Schema - Parameters" ], "summary": "Get attributes which currently use the given parameter.", + "operationId": "GetObjectsUsingParameter", "parameters": [ { "name": "database-key", @@ -27505,6 +16589,7 @@ "Schema - Parameters" ], "summary": "Get a parameter value with a specified guid for a given database for a given parameter.", + "operationId": "GetParameterValue", "parameters": [ { "name": "database-key", @@ -27541,11 +16626,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameterValue" }, - "example": { - "type": "numeric", - "value": 0.1, - "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" - } + "example": {"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"} } } }, @@ -27559,6 +16640,7 @@ "Schema - Parameters" ], "summary": "Update a parameter value.", + "operationId": "UpdateParameterValue", "parameters": [ { "name": "database-key", @@ -27594,32 +16676,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Strain 0.1 (Updated)", - "guid": "8f6a61d5-1695-4b67-a9ca-c29a3a645b9d" - } + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} }, - "Example 8": { + "Example 14": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Mean (Updated)", - "guid": "a4147459-d7e9-45e8-8e78-9221d7899494" - } + "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} }, - "Example 9": { + "Example 15": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": { - "type": "numeric", - "guid": "29ca03fa-a1ef-4998-aec1-a56c5a967fb4" - } + "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} } } }, @@ -27628,32 +16698,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Strain 0.1 (Updated)", - "guid": "8f6a61d5-1695-4b67-a9ca-c29a3a645b9d" - } + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} }, - "Example 8": { + "Example 14": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Mean (Updated)", - "guid": "a4147459-d7e9-45e8-8e78-9221d7899494" - } + "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} }, - "Example 9": { + "Example 15": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": { - "type": "numeric", - "guid": "29ca03fa-a1ef-4998-aec1-a56c5a967fb4" - } + "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} } } }, @@ -27662,32 +16720,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Strain 0.1 (Updated)", - "guid": "8f6a61d5-1695-4b67-a9ca-c29a3a645b9d" - } + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} }, - "Example 8": { + "Example 14": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Mean (Updated)", - "guid": "a4147459-d7e9-45e8-8e78-9221d7899494" - } + "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} }, - "Example 9": { + "Example 15": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": { - "type": "numeric", - "guid": "29ca03fa-a1ef-4998-aec1-a56c5a967fb4" - } + "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} } } }, @@ -27696,32 +16742,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Strain 0.1 (Updated)", - "guid": "8f6a61d5-1695-4b67-a9ca-c29a3a645b9d" - } + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} }, - "Example 8": { + "Example 14": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Mean (Updated)", - "guid": "a4147459-d7e9-45e8-8e78-9221d7899494" - } + "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} }, - "Example 9": { + "Example 15": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": { - "type": "numeric", - "guid": "29ca03fa-a1ef-4998-aec1-a56c5a967fb4" - } + "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} } } } @@ -27735,11 +16769,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameterValue" }, - "example": { - "type": "numeric", - "value": 0.1, - "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" - } + "example": {"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"} } } }, @@ -27759,6 +16789,7 @@ "Schema - Parameters" ], "summary": "Delete a parameter value.", + "operationId": "DeleteParameterValue", "parameters": [ { "name": "database-key", @@ -27795,23 +16826,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionParameterValueDeletionException" }, - "example": { - "message": "Cannot delete parameter value 'Mean' (GUID = '21a27377-12eb-413c-bac4-d4ffceda39d1').", - "code": 400, - "errors": [ - { - "message": "It is being used in one or more parameters as a default value.", - "reason": "inUse", - "referencedByType": "defaultParameterValue", - "referencedBy": [ - { - "name": "Basis", - "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" - } - ] - } - ] - } + "example": {"message":"Cannot delete parameter value 'Mean' (GUID = '21a27377-12eb-413c-bac4-d4ffceda39d1').","code":400,"errors":[{"message":"It is being used in one or more parameters as a default value.","reason":"inUse","referencedByType":"defaultParameterValue","referencedBy":[{"name":"Basis","guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}]}]} } } }, @@ -27833,6 +16848,7 @@ "Schema - Parameters" ], "summary": "Create a new parameter value.", + "operationId": "CreateParameterValue", "parameters": [ { "name": "database-key", @@ -27859,22 +16875,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Cold" - } + "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 10": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Heavy water" - } + "value": {"type":"discrete","name":"Heavy water"} } } }, @@ -27883,22 +16892,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Cold" - } + "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 10": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Heavy water" - } + "value": {"type":"discrete","name":"Heavy water"} } } }, @@ -27907,22 +16909,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Cold" - } + "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 10": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Heavy water" - } + "value": {"type":"discrete","name":"Heavy water"} } } }, @@ -27931,22 +16926,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "value": 10.0, - "type": "numeric", - "name": "Cold" - } + "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 10": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": { - "type": "discrete", - "name": "Heavy water" - } + "value": {"type":"discrete","name":"Heavy water"} } } } @@ -27960,11 +16948,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameterValue" }, - "example": { - "type": "numeric", - "value": 0.1, - "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" - } + "example": {"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"} } } }, @@ -27986,6 +16970,7 @@ "Schema - Profiles" ], "summary": "Get AllProfilesInfo", + "operationId": "GetProfiles", "responses": { "200": { "description": "Ok", @@ -27994,43 +16979,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesAllProfilesInfo" }, - "example": { - "profiles": [ - { - "key": "MI_Training", - "isImplicit": true, - "name": "MI Training" - }, - { - "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Metals" - }, - { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a", - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Composites" - }, - { - "key": "MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658", - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Additive Manufacturing" - } - ], - "defaultProfile": { - "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Metals" - } - } + "example": {"profiles":[{"key":"MI_Training","isImplicit":true,"name":"MI Training"},{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"},{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a","guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Composites"},{"key":"MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658","guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Additive Manufacturing"}],"defaultProfile":{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"}} } } }, @@ -28044,6 +16993,7 @@ "Schema - Profiles" ], "summary": "Update AllProfilesInfo", + "operationId": "UpdateAllProfilesInfo", "requestBody": { "content": { "application/json-patch+json": { @@ -28051,58 +17001,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": { - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 18": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": { - "defaultProfile": null - } + "value": {"defaultProfile":null} }, - "Example 11": { + "Example 19": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ] - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 20": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ], - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} } } }, @@ -28111,58 +17028,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": { - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 18": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": { - "defaultProfile": null - } + "value": {"defaultProfile":null} }, - "Example 11": { + "Example 19": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ] - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 20": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ], - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} } } }, @@ -28171,58 +17055,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": { - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 18": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": { - "defaultProfile": null - } + "value": {"defaultProfile":null} }, - "Example 11": { + "Example 19": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ] - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 20": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ], - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} } } }, @@ -28231,58 +17082,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": { - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 18": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": { - "defaultProfile": null - } + "value": {"defaultProfile":null} }, - "Example 11": { + "Example 19": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ] - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 20": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": { - "profiles": [ - { - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" - }, - { - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" - }, - { - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - ], - "defaultProfile": { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" - } - } + "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} } } } @@ -28296,43 +17114,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesAllProfilesInfo" }, - "example": { - "profiles": [ - { - "key": "MI_Training", - "isImplicit": true, - "name": "MI Training" - }, - { - "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Metals" - }, - { - "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a", - "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Composites" - }, - { - "key": "MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658", - "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Additive Manufacturing" - } - ], - "defaultProfile": { - "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Metals" - } - } + "example": {"profiles":[{"key":"MI_Training","isImplicit":true,"name":"MI Training"},{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"},{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a","guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Composites"},{"key":"MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658","guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Additive Manufacturing"}],"defaultProfile":{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"}} } } }, @@ -28352,6 +17134,7 @@ "Schema - Profiles" ], "summary": "Create a new profile", + "operationId": "CreateProfile", "requestBody": { "content": { "application/json-patch+json": { @@ -28359,31 +17142,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": { - "name": "MI:Training Processes" - } + "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 14": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "MI:Training Processes", - "guid": "0cfdf5d8-082d-41ff-80ef-0df82ce4633f" - } + "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} }, - "Example 9": { + "Example 15": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": { - "description": "#markdown\r\nFor process-oriented users.", - "homepageUrl": "TrainingProfiles/TrainingProcesses", - "groupName": "MI:Training Profiles", - "name": "MI:Training Processes", - "guid": "2812fe05-3aeb-4213-afb2-f513b2f20015" - } + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} } } }, @@ -28392,31 +17164,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": { - "name": "MI:Training Processes" - } + "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 14": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "MI:Training Processes", - "guid": "0cfdf5d8-082d-41ff-80ef-0df82ce4633f" - } + "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} }, - "Example 9": { + "Example 15": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": { - "description": "#markdown\r\nFor process-oriented users.", - "homepageUrl": "TrainingProfiles/TrainingProcesses", - "groupName": "MI:Training Profiles", - "name": "MI:Training Processes", - "guid": "2812fe05-3aeb-4213-afb2-f513b2f20015" - } + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} } } }, @@ -28425,31 +17186,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": { - "name": "MI:Training Processes" - } + "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 14": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "MI:Training Processes", - "guid": "0cfdf5d8-082d-41ff-80ef-0df82ce4633f" - } + "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} }, - "Example 9": { + "Example 15": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": { - "description": "#markdown\r\nFor process-oriented users.", - "homepageUrl": "TrainingProfiles/TrainingProcesses", - "groupName": "MI:Training Profiles", - "name": "MI:Training Processes", - "guid": "2812fe05-3aeb-4213-afb2-f513b2f20015" - } + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} } } }, @@ -28458,31 +17208,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": { - "name": "MI:Training Processes" - } + "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 14": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "name": "MI:Training Processes", - "guid": "0cfdf5d8-082d-41ff-80ef-0df82ce4633f" - } + "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} }, - "Example 9": { + "Example 15": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": { - "description": "#markdown\r\nFor process-oriented users.", - "homepageUrl": "TrainingProfiles/TrainingProcesses", - "groupName": "MI:Training Profiles", - "name": "MI:Training Processes", - "guid": "2812fe05-3aeb-4213-afb2-f513b2f20015" - } + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} } } } @@ -28496,31 +17235,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesProfile" }, - "example": { - "description": "#markdown\r\nFor metals-oriented users.", - "homepageUrl": "TrainingProfiles/MITrainingMetals", - "profileTables": [ - { - "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "MaterialUniverse" - }, - { - "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "ProcessUniverse" - } - ], - "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Metals" - } + "example": {"description":"#markdown\r\nFor metals-oriented users.","homepageUrl":"TrainingProfiles/MITrainingMetals","profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}],"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"} } } }, @@ -28539,6 +17254,7 @@ "Schema - Profiles" ], "summary": "Get individual profile", + "operationId": "GetProfile", "parameters": [ { "name": "profile-guid", @@ -28558,31 +17274,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesProfile" }, - "example": { - "description": "#markdown\r\nFor metals-oriented users.", - "homepageUrl": "TrainingProfiles/MITrainingMetals", - "profileTables": [ - { - "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "MaterialUniverse" - }, - { - "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "ProcessUniverse" - } - ], - "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Metals" - } + "example": {"description":"#markdown\r\nFor metals-oriented users.","homepageUrl":"TrainingProfiles/MITrainingMetals","profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}],"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"} } } }, @@ -28599,6 +17291,7 @@ "Schema - Profiles" ], "summary": "Update a profile", + "operationId": "UpdateProfile", "parameters": [ { "name": "profile-guid", @@ -28617,34 +17310,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "fccdcf70-0941-4235-a344-5dc5f1b14bc4" - } + "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} }, - "Example 8": { + "Example 14": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "name": "MI:Training Metals (Updated)" - } + "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": { - "description": "#markdown\r\nFor metals-oriented users. (Updated)", - "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", - "profileTableGuids": [ - "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" - ], - "guid": "ef53d5b6-5fab-4c0c-a996-4a9df719a640", - "groupName": "MI:Training Profiles (Updated)", - "name": "MI:Training Metals" - } + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -28653,34 +17332,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "fccdcf70-0941-4235-a344-5dc5f1b14bc4" - } + "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} }, - "Example 8": { + "Example 14": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "name": "MI:Training Metals (Updated)" - } + "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": { - "description": "#markdown\r\nFor metals-oriented users. (Updated)", - "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", - "profileTableGuids": [ - "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" - ], - "guid": "ef53d5b6-5fab-4c0c-a996-4a9df719a640", - "groupName": "MI:Training Profiles (Updated)", - "name": "MI:Training Metals" - } + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -28689,34 +17354,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "fccdcf70-0941-4235-a344-5dc5f1b14bc4" - } + "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} }, - "Example 8": { + "Example 14": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "name": "MI:Training Metals (Updated)" - } + "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": { - "description": "#markdown\r\nFor metals-oriented users. (Updated)", - "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", - "profileTableGuids": [ - "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" - ], - "guid": "ef53d5b6-5fab-4c0c-a996-4a9df719a640", - "groupName": "MI:Training Profiles (Updated)", - "name": "MI:Training Metals" - } + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -28725,34 +17376,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "fccdcf70-0941-4235-a344-5dc5f1b14bc4" - } + "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} }, - "Example 8": { + "Example 14": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "name": "MI:Training Metals (Updated)" - } + "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": { - "description": "#markdown\r\nFor metals-oriented users. (Updated)", - "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", - "profileTableGuids": [ - "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" - ], - "guid": "ef53d5b6-5fab-4c0c-a996-4a9df719a640", - "groupName": "MI:Training Profiles (Updated)", - "name": "MI:Training Metals" - } + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } } @@ -28766,31 +17403,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesProfile" }, - "example": { - "description": "#markdown\r\nFor metals-oriented users.", - "homepageUrl": "TrainingProfiles/MITrainingMetals", - "profileTables": [ - { - "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "MaterialUniverse" - }, - { - "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "ProcessUniverse" - } - ], - "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", - "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", - "groupName": "MI:Training Profiles", - "isImplicit": false, - "name": "MI:Training Metals" - } + "example": {"description":"#markdown\r\nFor metals-oriented users.","homepageUrl":"TrainingProfiles/MITrainingMetals","profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}],"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"} } } }, @@ -28810,6 +17423,7 @@ "Schema - Profiles" ], "summary": "Delete a profile", + "operationId": "DeleteProfile", "parameters": [ { "name": "profile-guid", @@ -28843,6 +17457,7 @@ "Schema - ProfileTables" ], "summary": "Get all profile tables of given profile", + "operationId": "GetProfileTables", "parameters": [ { "name": "profile-guid", @@ -28862,24 +17477,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTablesInfo" }, - "example": { - "profileTables": [ - { - "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "MaterialUniverse" - }, - { - "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "ProcessUniverse" - } - ] - } + "example": {"profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}]} } } }, @@ -28896,6 +17494,7 @@ "Schema - ProfileTables" ], "summary": "Create a new profile table", + "operationId": "CreateProfileTable", "parameters": [ { "name": "profile-guid", @@ -28914,33 +17513,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 14": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "4765d98d-7095-465e-b1fb-36ed1c17197b" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} }, - "Example 9": { + "Example 15": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", - "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "7cca256c-9439-4d56-bfce-e1c231c203ab" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} } } }, @@ -28949,33 +17535,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 14": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "4765d98d-7095-465e-b1fb-36ed1c17197b" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} }, - "Example 9": { + "Example 15": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", - "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "7cca256c-9439-4d56-bfce-e1c231c203ab" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} } } }, @@ -28984,33 +17557,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 14": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "4765d98d-7095-465e-b1fb-36ed1c17197b" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} }, - "Example 9": { + "Example 15": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", - "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "7cca256c-9439-4d56-bfce-e1c231c203ab" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} } } }, @@ -29019,33 +17579,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 14": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "4765d98d-7095-465e-b1fb-36ed1c17197b" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} }, - "Example 9": { + "Example 15": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", - "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "7cca256c-9439-4d56-bfce-e1c231c203ab" - } + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} } } } @@ -29059,17 +17606,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTable" }, - "example": { - "subsetGuid": "c43d5d46-1d6a-4fd3-8cc7-923e8592daec", - "subsetFallbackHint": "Metals", - "layoutGuid": "2826bb31-9fb5-4ca5-8db2-121ae944221d", - "layoutFallbackHint": "Metals", - "guid": "2aa49cb3-19a4-44e3-a389-278123c96631", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "Design Data" - } + "example": {"subsetGuid":"c43d5d46-1d6a-4fd3-8cc7-923e8592daec","subsetFallbackHint":"Metals","layoutGuid":"2826bb31-9fb5-4ca5-8db2-121ae944221d","layoutFallbackHint":"Metals","guid":"2aa49cb3-19a4-44e3-a389-278123c96631","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"Design Data"} } } }, @@ -29091,6 +17628,7 @@ "Schema - ProfileTables" ], "summary": "Get individual profile table", + "operationId": "GetProfileTable", "parameters": [ { "name": "profile-guid", @@ -29119,17 +17657,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTable" }, - "example": { - "subsetGuid": "c43d5d46-1d6a-4fd3-8cc7-923e8592daec", - "subsetFallbackHint": "Metals", - "layoutGuid": "2826bb31-9fb5-4ca5-8db2-121ae944221d", - "layoutFallbackHint": "Metals", - "guid": "2aa49cb3-19a4-44e3-a389-278123c96631", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "Design Data" - } + "example": {"subsetGuid":"c43d5d46-1d6a-4fd3-8cc7-923e8592daec","subsetFallbackHint":"Metals","layoutGuid":"2826bb31-9fb5-4ca5-8db2-121ae944221d","layoutFallbackHint":"Metals","guid":"2aa49cb3-19a4-44e3-a389-278123c96631","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"Design Data"} } } }, @@ -29146,6 +17674,7 @@ "Schema - ProfileTables" ], "summary": "Update a profile table", + "operationId": "UpdateProfileTable", "parameters": [ { "name": "profile-guid", @@ -29173,29 +17702,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "695f9089-826a-46ca-8890-54a75db5e619" - } + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} }, - "Example 8": { + "Example 14": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": null, - "layoutGuid": null - } + "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 15": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "e0a0a196-a784-4183-bd9b-6194ba740a25" - } + "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} } } }, @@ -29204,29 +17724,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "695f9089-826a-46ca-8890-54a75db5e619" - } + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} }, - "Example 8": { + "Example 14": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": null, - "layoutGuid": null - } + "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 15": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "e0a0a196-a784-4183-bd9b-6194ba740a25" - } + "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} } } }, @@ -29235,29 +17746,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "695f9089-826a-46ca-8890-54a75db5e619" - } + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} }, - "Example 8": { + "Example 14": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": null, - "layoutGuid": null - } + "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 15": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "e0a0a196-a784-4183-bd9b-6194ba740a25" - } + "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} } } }, @@ -29266,29 +17768,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "695f9089-826a-46ca-8890-54a75db5e619" - } + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} }, - "Example 8": { + "Example 14": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "subsetGuid": null, - "layoutGuid": null - } + "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 15": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": { - "guid": "e0a0a196-a784-4183-bd9b-6194ba740a25" - } + "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} } } } @@ -29302,17 +17795,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTable" }, - "example": { - "subsetGuid": "c43d5d46-1d6a-4fd3-8cc7-923e8592daec", - "subsetFallbackHint": "Metals", - "layoutGuid": "2826bb31-9fb5-4ca5-8db2-121ae944221d", - "layoutFallbackHint": "Metals", - "guid": "2aa49cb3-19a4-44e3-a389-278123c96631", - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseFallbackHint": "MI:Training", - "tableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", - "tableFallbackHint": "Design Data" - } + "example": {"subsetGuid":"c43d5d46-1d6a-4fd3-8cc7-923e8592daec","subsetFallbackHint":"Metals","layoutGuid":"2826bb31-9fb5-4ca5-8db2-121ae944221d","layoutFallbackHint":"Metals","guid":"2aa49cb3-19a4-44e3-a389-278123c96631","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"Design Data"} } } }, @@ -29332,6 +17815,7 @@ "Schema - ProfileTables" ], "summary": "Delete a profile table", + "operationId": "DeleteProfileTable", "parameters": [ { "name": "profile-guid", @@ -29371,6 +17855,7 @@ "Schema - Record Link Groups" ], "summary": "Get all record link groups", + "operationId": "GetRecordLinkGroups", "parameters": [ { "name": "database-key", @@ -29422,43 +17907,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": { - "recordLinkGroups": [ - { - "identity": 115, - "type": "static", - "reverseName": "Training Exercise", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "MaterialUniverse", - "guid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" - }, - { - "identity": 3, - "type": "dynamic", - "reverseName": "Smart Link to Training Record", - "reverseDisplayNames": { - "en": "en-Smart Link to Training Record", - "fr": "fr-Smart Link to Training Record" - }, - "displayNames": { - "en": "en-Smart Link to MaterialUniverse", - "fr": "fr-Smart Link to MaterialUniverse" - }, - "name": "Smart Link to MaterialUniverse", - "guid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" - }, - { - "identity": 1, - "type": "crossDatabase", - "reverseName": "Second Training Database And Table - MI Training Exercise for Import", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "MI Training Exercise for Import - Second Training Database And Table", - "guid": "3777bbae-dc89-4129-97a5-67457f8c7ca7" - } - ] - } + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"226bdde3-9c36-45fc-9878-676968ab4a23"}]} } } }, @@ -29472,6 +17921,7 @@ "Schema - Record Link Groups" ], "summary": "Create a new record link group.", + "operationId": "CreateRecordLinkGroup", "parameters": [ { "name": "database-key", @@ -29498,109 +17948,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 25": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": { - "type": "static", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static self link reversed", - "name": "Material Universe static self link" - } + "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 26": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "static", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static link", - "name": "Process Universe static link", - "guid": "ba69fdc9-b100-4f1c-8758-faf415d61226" - } + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} }, - "Example 15": { + "Example 27": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "5ed618f6-6472-450b-9051-576cc231b5ed" - }, - "reverseName": "Cross database link to Material Universe", - "name": "Cross database link from Material Universe" - } + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 28": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "3fe0ef56-c46f-4377-af30-c345f82a66dc", - "tableGuid": "cc73a74b-8d02-4579-ac05-56650937122f" - }, - "reverseName": "Cross database link to MI Training - Material Universe", - "name": "Cross database link from MI Training - Material Universe", - "guid": "598e9ede-8495-4388-b739-42db12223ba5" - } + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} }, - "Example 17": { + "Example 29": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": { - "type": "dynamic", - "forbidOrphans": false, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - ], - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic self link reversed", - "name": "Material Universe dynamic self link" - } + "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 30": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "dynamic", - "forbidOrphans": true, - "referentialIntegrityModel": "oneToMany", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" - }, - { - "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", - "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" - } - ], - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic link", - "name": "Process Universe dynamic link", - "guid": "94cf9b76-b28e-4862-8999-7bd4ebb3b3b9" - } + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} } } }, @@ -29609,109 +17985,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 25": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": { - "type": "static", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static self link reversed", - "name": "Material Universe static self link" - } + "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 26": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "static", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static link", - "name": "Process Universe static link", - "guid": "ba69fdc9-b100-4f1c-8758-faf415d61226" - } + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} }, - "Example 15": { + "Example 27": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "5ed618f6-6472-450b-9051-576cc231b5ed" - }, - "reverseName": "Cross database link to Material Universe", - "name": "Cross database link from Material Universe" - } + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 28": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "3fe0ef56-c46f-4377-af30-c345f82a66dc", - "tableGuid": "cc73a74b-8d02-4579-ac05-56650937122f" - }, - "reverseName": "Cross database link to MI Training - Material Universe", - "name": "Cross database link from MI Training - Material Universe", - "guid": "598e9ede-8495-4388-b739-42db12223ba5" - } + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} }, - "Example 17": { + "Example 29": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": { - "type": "dynamic", - "forbidOrphans": false, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - ], - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic self link reversed", - "name": "Material Universe dynamic self link" - } + "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 30": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "dynamic", - "forbidOrphans": true, - "referentialIntegrityModel": "oneToMany", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" - }, - { - "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", - "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" - } - ], - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic link", - "name": "Process Universe dynamic link", - "guid": "94cf9b76-b28e-4862-8999-7bd4ebb3b3b9" - } + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} } } }, @@ -29720,109 +18022,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 25": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": { - "type": "static", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static self link reversed", - "name": "Material Universe static self link" - } + "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 26": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "static", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static link", - "name": "Process Universe static link", - "guid": "ba69fdc9-b100-4f1c-8758-faf415d61226" - } + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} }, - "Example 15": { + "Example 27": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "5ed618f6-6472-450b-9051-576cc231b5ed" - }, - "reverseName": "Cross database link to Material Universe", - "name": "Cross database link from Material Universe" - } + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 28": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "3fe0ef56-c46f-4377-af30-c345f82a66dc", - "tableGuid": "cc73a74b-8d02-4579-ac05-56650937122f" - }, - "reverseName": "Cross database link to MI Training - Material Universe", - "name": "Cross database link from MI Training - Material Universe", - "guid": "598e9ede-8495-4388-b739-42db12223ba5" - } + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} }, - "Example 17": { + "Example 29": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": { - "type": "dynamic", - "forbidOrphans": false, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - ], - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic self link reversed", - "name": "Material Universe dynamic self link" - } + "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 30": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "dynamic", - "forbidOrphans": true, - "referentialIntegrityModel": "oneToMany", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" - }, - { - "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", - "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" - } - ], - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic link", - "name": "Process Universe dynamic link", - "guid": "94cf9b76-b28e-4862-8999-7bd4ebb3b3b9" - } + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} } } }, @@ -29831,109 +18059,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 25": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": { - "type": "static", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static self link reversed", - "name": "Material Universe static self link" - } + "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 26": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "static", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe static link", - "name": "Process Universe static link", - "guid": "ba69fdc9-b100-4f1c-8758-faf415d61226" - } + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} }, - "Example 15": { + "Example 27": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": false, - "linkTarget": { - "tableGuid": "5ed618f6-6472-450b-9051-576cc231b5ed" - }, - "reverseName": "Cross database link to Material Universe", - "name": "Cross database link from Material Universe" - } + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 28": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": true, - "linkTarget": { - "databaseGuid": "3fe0ef56-c46f-4377-af30-c345f82a66dc", - "tableGuid": "cc73a74b-8d02-4579-ac05-56650937122f" - }, - "reverseName": "Cross database link to MI Training - Material Universe", - "name": "Cross database link from MI Training - Material Universe", - "guid": "598e9ede-8495-4388-b739-42db12223ba5" - } + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} }, - "Example 17": { + "Example 29": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": { - "type": "dynamic", - "forbidOrphans": false, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" - } - ], - "linkTarget": { - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic self link reversed", - "name": "Material Universe dynamic self link" - } + "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 30": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": { - "type": "dynamic", - "forbidOrphans": true, - "referentialIntegrityModel": "oneToMany", - "attributePairs": [ - { - "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", - "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" - }, - { - "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", - "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" - } - ], - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" - }, - "reverseName": "Material Universe dynamic link", - "name": "Process Universe dynamic link", - "guid": "94cf9b76-b28e-4862-8999-7bd4ebb3b3b9" - } + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} } } } @@ -29948,99 +18102,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 22": { + "Example 40": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", - "value": { - "type": "static", - "includeIndirectLinks": false, - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "c9954321-b4d4-4443-949e-f9b161e2c8fb" - }, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "73d8f19a-38df-4144-964d-cc1448d38ebb" - } - }, - "identity": 125, - "reverseName": "Fatigue Statistical Data", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Fatigue Test Data", - "guid": "485da78d-d094-4edb-a5a9-077fe1bc02f2" - } + "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 23": { + "Example 41": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": false, - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "linkTarget": { - "databaseGuid": "087f3fc5-0fec-445b-8cf3-49115fce4f22", - "tableGuid": "0849cc9e-c843-40eb-8468-2819869bcdc3" - } - }, - "identity": 1, - "reverseName": "MI Training - MaterialUniverse", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Different database - different table", - "guid": "7a73f8c9-3c90-4e68-b0a5-7ce3c702efaf" - } + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"738875fd-1fc8-4ffe-9e58-648eaa59aaba","tableGuid":"5d2afa87-8fac-445f-9974-c246731b3fba"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"3cd46297-1dd7-4e51-923d-3609590d3947"} }, - "Example 24": { + "Example 42": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", - "value": { - "type": "dynamic", - "forbidOrphans": false, - "referentialIntegrityModel": "oneToMany", - "attributePairs": [ - { - "attributeSource": { - "type": "shortText", - "displayNames": {}, - "name": "Panel Number", - "guid": "6e50a7a8-a759-44c9-b151-215a07949c1f" - }, - "attributeTarget": { - "type": "shortText", - "displayNames": {}, - "name": "Panel Number", - "guid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" - } - } - ], - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "7db2ff8e-54ed-45d6-b522-e03c8be405b3" - }, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333" - } - }, - "identity": 8, - "reverseName": "Further panel information", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Tensile test data", - "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" - } + "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} } } } @@ -30064,6 +18139,7 @@ "Schema - Record Link Groups" ], "summary": "Get all record link groups pointing towards provided table", + "operationId": "GetInboundRecordLinkGroups", "parameters": [ { "name": "database-key", @@ -30115,43 +18191,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": { - "recordLinkGroups": [ - { - "identity": 115, - "type": "static", - "reverseName": "Training Exercise", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "MaterialUniverse", - "guid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" - }, - { - "identity": 3, - "type": "dynamic", - "reverseName": "Smart Link to Training Record", - "reverseDisplayNames": { - "en": "en-Smart Link to Training Record", - "fr": "fr-Smart Link to Training Record" - }, - "displayNames": { - "en": "en-Smart Link to MaterialUniverse", - "fr": "fr-Smart Link to MaterialUniverse" - }, - "name": "Smart Link to MaterialUniverse", - "guid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" - }, - { - "identity": 1, - "type": "crossDatabase", - "reverseName": "MI Training MaterialUniverse - Second Training Database And Table", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Second Training Database And Table - MI Training MaterialUniverse", - "guid": "6744e174-2048-45c6-a824-defba07d8c66" - } - ] - } + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"bcb05b81-5a08-48ec-8595-92f20604d683"}]} } } }, @@ -30167,6 +18207,7 @@ "Schema - Record Link Groups" ], "summary": "Get individual record link group", + "operationId": "GetRecordLinkGroup", "parameters": [ { "name": "database-key", @@ -30242,99 +18283,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", - "value": { - "type": "static", - "includeIndirectLinks": false, - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "c9954321-b4d4-4443-949e-f9b161e2c8fb" - }, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "73d8f19a-38df-4144-964d-cc1448d38ebb" - } - }, - "identity": 125, - "reverseName": "Fatigue Statistical Data", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Fatigue Test Data", - "guid": "485da78d-d094-4edb-a5a9-077fe1bc02f2" - } + "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 8": { + "Example 14": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": false, - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "linkTarget": { - "databaseGuid": "29db9677-6b03-47a9-968b-5a28a046005c", - "tableGuid": "a4107060-9a92-4fcb-b734-65bb9dca5351" - } - }, - "identity": 1, - "reverseName": "MI Training - MaterialUniverse", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Different database - different table", - "guid": "622fb122-7155-46ec-8446-48690020c91b" - } + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"59934f91-fe1d-4afa-b7a2-21e8ce560e3c","tableGuid":"bafb92e9-8ec3-40b0-933f-bcf1bdc91246"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"78305a23-d420-4bb3-a0d0-ff4a99d6da58"} }, - "Example 9": { + "Example 15": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", - "value": { - "type": "dynamic", - "forbidOrphans": false, - "referentialIntegrityModel": "oneToMany", - "attributePairs": [ - { - "attributeSource": { - "type": "shortText", - "displayNames": {}, - "name": "Panel Number", - "guid": "6e50a7a8-a759-44c9-b151-215a07949c1f" - }, - "attributeTarget": { - "type": "shortText", - "displayNames": {}, - "name": "Panel Number", - "guid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" - } - } - ], - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "7db2ff8e-54ed-45d6-b522-e03c8be405b3" - }, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333" - } - }, - "identity": 8, - "reverseName": "Further panel information", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Tensile test data", - "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" - } + "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} } } } @@ -30350,6 +18312,7 @@ "Schema - Record Link Groups" ], "summary": "Delete a record link group.", + "operationId": "DeleteRecordLinkGroup", "parameters": [ { "name": "database-key", @@ -30411,6 +18374,7 @@ "Schema - Record Link Groups" ], "summary": "Update record link group.", + "operationId": "UpdateRecordLinkGroup", "parameters": [ { "name": "database-key", @@ -30446,66 +18410,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "guid": "484693ff-9412-4d27-a482-a9e0049b0f9a" - } + "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} }, - "Example 12": { + "Example 22": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)" - } + "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 23": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)", - "guid": "100f5a70-343f-42c2-a1fb-bcb19a2418c1" - } + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} }, - "Example 14": { + "Example 24": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "crossDatabase", - "reverseName": "Link To MI Training - Material Universe (Updated)", - "name": "Link From MI Training - Material Universe (Updated)", - "guid": "6a5701a1-2846-44cb-adc0-499e7d72f79a" - } + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} }, - "Example 15": { + "Example 25": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": { - "forbidOrphans": true, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", - "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" - }, - { - "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", - "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" - } - ], - "type": "dynamic", - "reverseName": "Further panel information (Updated)", - "name": "Tensile test data (Updated)", - "guid": "61a3233c-3aab-4884-843e-7f57f8451e40" - } + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} } } }, @@ -30514,66 +18442,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "guid": "484693ff-9412-4d27-a482-a9e0049b0f9a" - } + "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} }, - "Example 12": { + "Example 22": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)" - } + "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 23": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)", - "guid": "100f5a70-343f-42c2-a1fb-bcb19a2418c1" - } + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} }, - "Example 14": { + "Example 24": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "crossDatabase", - "reverseName": "Link To MI Training - Material Universe (Updated)", - "name": "Link From MI Training - Material Universe (Updated)", - "guid": "6a5701a1-2846-44cb-adc0-499e7d72f79a" - } + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} }, - "Example 15": { + "Example 25": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": { - "forbidOrphans": true, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", - "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" - }, - { - "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", - "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" - } - ], - "type": "dynamic", - "reverseName": "Further panel information (Updated)", - "name": "Tensile test data (Updated)", - "guid": "61a3233c-3aab-4884-843e-7f57f8451e40" - } + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} } } }, @@ -30582,66 +18474,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "guid": "484693ff-9412-4d27-a482-a9e0049b0f9a" - } + "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} }, - "Example 12": { + "Example 22": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)" - } + "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 23": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)", - "guid": "100f5a70-343f-42c2-a1fb-bcb19a2418c1" - } + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} }, - "Example 14": { + "Example 24": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "crossDatabase", - "reverseName": "Link To MI Training - Material Universe (Updated)", - "name": "Link From MI Training - Material Universe (Updated)", - "guid": "6a5701a1-2846-44cb-adc0-499e7d72f79a" - } + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} }, - "Example 15": { + "Example 25": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": { - "forbidOrphans": true, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", - "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" - }, - { - "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", - "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" - } - ], - "type": "dynamic", - "reverseName": "Further panel information (Updated)", - "name": "Tensile test data (Updated)", - "guid": "61a3233c-3aab-4884-843e-7f57f8451e40" - } + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} } } }, @@ -30650,66 +18506,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "guid": "484693ff-9412-4d27-a482-a9e0049b0f9a" - } + "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} }, - "Example 12": { + "Example 22": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)" - } + "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 23": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "static", - "reverseName": "Fatigue Statistical Data (updated)", - "name": "Fatigue Test Data (updated)", - "guid": "100f5a70-343f-42c2-a1fb-bcb19a2418c1" - } + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} }, - "Example 14": { + "Example 24": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": { - "includeIndirectLinks": true, - "type": "crossDatabase", - "reverseName": "Link To MI Training - Material Universe (Updated)", - "name": "Link From MI Training - Material Universe (Updated)", - "guid": "6a5701a1-2846-44cb-adc0-499e7d72f79a" - } + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} }, - "Example 15": { + "Example 25": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": { - "forbidOrphans": true, - "referentialIntegrityModel": "oneToOne", - "attributePairs": [ - { - "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", - "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" - }, - { - "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", - "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" - } - ], - "type": "dynamic", - "reverseName": "Further panel information (Updated)", - "name": "Tensile test data (Updated)", - "guid": "61a3233c-3aab-4884-843e-7f57f8451e40" - } + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} } } } @@ -30724,99 +18544,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 25": { + "Example 43": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", - "value": { - "type": "static", - "includeIndirectLinks": false, - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "c9954321-b4d4-4443-949e-f9b161e2c8fb" - }, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "73d8f19a-38df-4144-964d-cc1448d38ebb" - } - }, - "identity": 125, - "reverseName": "Fatigue Statistical Data", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Fatigue Test Data", - "guid": "485da78d-d094-4edb-a5a9-077fe1bc02f2" - } + "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 26": { + "Example 44": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": { - "type": "crossDatabase", - "includeIndirectLinks": false, - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - "linkTarget": { - "databaseGuid": "77795bef-d256-4036-bba1-6e67d20fd49b", - "tableGuid": "fe5972fd-72f5-439b-a72f-3d6214ae429c" - } - }, - "identity": 1, - "reverseName": "MI Training - MaterialUniverse", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Different database - different table", - "guid": "edc0d7a6-c2a7-464e-a53e-96b52e271796" - } + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"f13a8114-36c1-4e89-842e-8dbb999fb5c6","tableGuid":"8f95decb-20e8-4fa9-bbad-ad620440bd05"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"e7d2d5bb-6af1-414d-bce4-6b08fa682a77"} }, - "Example 27": { + "Example 45": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", - "value": { - "type": "dynamic", - "forbidOrphans": false, - "referentialIntegrityModel": "oneToMany", - "attributePairs": [ - { - "attributeSource": { - "type": "shortText", - "displayNames": {}, - "name": "Panel Number", - "guid": "6e50a7a8-a759-44c9-b151-215a07949c1f" - }, - "attributeTarget": { - "type": "shortText", - "displayNames": {}, - "name": "Panel Number", - "guid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" - } - } - ], - "linkInfo": { - "linkSource": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "7db2ff8e-54ed-45d6-b522-e03c8be405b3" - }, - "linkTarget": { - "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", - "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", - "tableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333" - } - }, - "identity": 8, - "reverseName": "Further panel information", - "reverseDisplayNames": {}, - "displayNames": {}, - "name": "Tensile test data", - "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" - } + "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} } } } @@ -30840,6 +18581,7 @@ "Schema - Standard Names" ], "summary": "Gets all standard names for a given database.", + "operationId": "GetStandardNames", "parameters": [ { "name": "database-key", @@ -30871,6 +18613,7 @@ "Schema - Standard Names" ], "summary": "Create a new standard name", + "operationId": "CreateStandardName", "parameters": [ { "name": "database-key", @@ -30888,79 +18631,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 22": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": { - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ], - "name": "Unification" - } + "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 23": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": { - "mappedRecordLinkGroups": [ - { - "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" - } - ], - "name": "Unification" - } + "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 24": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": { - "mappedCrossDatabaseRecordLinkGroups": [ - { - "guid": "3171e4e7-4327-4e3b-a483-6f39c89675a0" - } - ], - "name": "Unification" - } + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} }, - "Example 15": { + "Example 25": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} } } }, @@ -30969,79 +18663,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 22": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": { - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ], - "name": "Unification" - } + "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 23": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": { - "mappedRecordLinkGroups": [ - { - "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" - } - ], - "name": "Unification" - } + "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 24": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": { - "mappedCrossDatabaseRecordLinkGroups": [ - { - "guid": "3171e4e7-4327-4e3b-a483-6f39c89675a0" - } - ], - "name": "Unification" - } + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} }, - "Example 15": { + "Example 25": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} } } }, @@ -31050,79 +18695,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 22": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": { - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ], - "name": "Unification" - } + "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 23": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": { - "mappedRecordLinkGroups": [ - { - "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" - } - ], - "name": "Unification" - } + "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 24": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": { - "mappedCrossDatabaseRecordLinkGroups": [ - { - "guid": "3171e4e7-4327-4e3b-a483-6f39c89675a0" - } - ], - "name": "Unification" - } + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} }, - "Example 15": { + "Example 25": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} } } }, @@ -31131,79 +18727,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 21": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 22": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": { - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ], - "name": "Unification" - } + "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 23": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": { - "mappedRecordLinkGroups": [ - { - "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" - } - ], - "name": "Unification" - } + "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 24": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": { - "mappedCrossDatabaseRecordLinkGroups": [ - { - "guid": "3171e4e7-4327-4e3b-a483-6f39c89675a0" - } - ], - "name": "Unification" - } + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} }, - "Example 15": { + "Example 25": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - ], - "name": "Unification" - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} } } } @@ -31238,6 +18785,7 @@ "Schema - Standard Names" ], "summary": "Gets a standard name for a given database and guid.", + "operationId": "GetStandardName", "parameters": [ { "name": "database-key", @@ -31278,6 +18826,7 @@ "Schema - Standard Names" ], "summary": "Edit a standard name", + "operationId": "UpdateStandardName", "parameters": [ { "name": "database-key", @@ -31304,48 +18853,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "name": "Density (Updated)" - } + "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "guid": "92189635-840f-4541-9f29-3ecdd8c6c898" - } + "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} }, - "Example 11": { + "Example 19": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ] - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 20": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ] - } + "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} } } }, @@ -31354,48 +18880,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "name": "Density (Updated)" - } + "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "guid": "92189635-840f-4541-9f29-3ecdd8c6c898" - } + "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} }, - "Example 11": { + "Example 19": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ] - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 20": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ] - } + "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} } } }, @@ -31404,48 +18907,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "name": "Density (Updated)" - } + "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "guid": "92189635-840f-4541-9f29-3ecdd8c6c898" - } + "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} }, - "Example 11": { + "Example 19": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ] - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 20": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ] - } + "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} } } }, @@ -31454,48 +18934,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "name": "Density (Updated)" - } + "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 18": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "guid": "92189635-840f-4541-9f29-3ecdd8c6c898" - } + "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} }, - "Example 11": { + "Example 19": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [ - { - "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" - }, - { - "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" - } - ] - } + "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 20": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": { - "mappedAttributes": [], - "mappedParameters": [ - { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - }, - { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - ] - } + "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} } } } @@ -31528,6 +18985,7 @@ "Schema - Standard Names" ], "summary": "Delete a standard name.", + "operationId": "DeleteStandardName", "parameters": [ { "name": "database-key", @@ -31569,6 +19027,7 @@ "Schema - Subsets" ], "summary": "Get all subsets for table", + "operationId": "GetSubsets", "parameters": [ { "name": "database-key", @@ -31620,28 +19079,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubsetsInfo" }, - "example": { - "subsets": [ - { - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": {}, - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": {}, - "name": "Polymers", - "guid": "00007645-0010-4fff-8fff-dd92ffff0000" - } - ] - } + "example": {"subsets":[{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Polymers","guid":"00007645-0010-4fff-8fff-dd92ffff0000"}]} } } }, @@ -31655,6 +19093,7 @@ "Schema - Subsets" ], "summary": "Create a new subset.", + "operationId": "CreateSubset", "parameters": [ { "name": "database-key", @@ -31681,30 +19120,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Alloys" - } + "value": {"name":"Alloys"} }, - "Example 8": { + "Example 14": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Alloys (guid)", - "guid": "295cb7dc-3be6-46f5-830d-96d7dea7fac2" - } + "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} }, - "Example 9": { + "Example 15": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": { - "associatedLayout": { - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Alloys (Layout)" - } + "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} } } }, @@ -31713,30 +19142,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Alloys" - } + "value": {"name":"Alloys"} }, - "Example 8": { + "Example 14": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Alloys (guid)", - "guid": "295cb7dc-3be6-46f5-830d-96d7dea7fac2" - } + "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} }, - "Example 9": { + "Example 15": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": { - "associatedLayout": { - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Alloys (Layout)" - } + "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} } } }, @@ -31745,30 +19164,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Alloys" - } + "value": {"name":"Alloys"} }, - "Example 8": { + "Example 14": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Alloys (guid)", - "guid": "295cb7dc-3be6-46f5-830d-96d7dea7fac2" - } + "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} }, - "Example 9": { + "Example 15": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": { - "associatedLayout": { - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Alloys (Layout)" - } + "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} } } }, @@ -31777,30 +19186,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Alloys" - } + "value": {"name":"Alloys"} }, - "Example 8": { + "Example 14": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "name": "Alloys (guid)", - "guid": "295cb7dc-3be6-46f5-830d-96d7dea7fac2" - } + "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} }, - "Example 9": { + "Example 15": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": { - "associatedLayout": { - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Alloys (Layout)" - } + "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} } } } @@ -31814,15 +19213,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubset" }, - "example": { - "associatedLayout": { - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - "displayNames": {}, - "name": "Ceramics", - "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" - } + "example": {"associatedLayout":{"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"displayNames":{},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"} } } }, @@ -31844,6 +19235,7 @@ "Schema - Subsets" ], "summary": "Get a subset with a specified guid for a given database and table.", + "operationId": "GetSubset", "parameters": [ { "name": "database-key", @@ -31904,22 +19296,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubset" }, - "example": { - "associatedLayout": { - "displayNames": { - "en": "Ceramics Layout English Display Name", - "fr": "Ceramics Layout French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" - } + "example": {"associatedLayout":{"displayNames":{"en":"Ceramics Layout English Display Name","fr":"Ceramics Layout French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"} } } }, @@ -31933,6 +19310,7 @@ "Schema - Subsets" ], "summary": "Update a subset.", + "operationId": "UpdateSubset", "parameters": [ { "name": "database-key", @@ -31968,39 +19346,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Ceramics (Updated)", - "guid": "332dc83c-0f86-47bb-94c8-1e337d59a734" - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} }, - "Example 10": { + "Example 18": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 19": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - } - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 20": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": null - } + "value": {"associatedLayout":null} } } }, @@ -32009,39 +19373,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Ceramics (Updated)", - "guid": "332dc83c-0f86-47bb-94c8-1e337d59a734" - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} }, - "Example 10": { + "Example 18": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 19": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - } - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 20": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": null - } + "value": {"associatedLayout":null} } } }, @@ -32050,39 +19400,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Ceramics (Updated)", - "guid": "332dc83c-0f86-47bb-94c8-1e337d59a734" - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} }, - "Example 10": { + "Example 18": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 19": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - } - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 20": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": null - } + "value": {"associatedLayout":null} } } }, @@ -32091,39 +19427,25 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 17": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - }, - "name": "Ceramics (Updated)", - "guid": "332dc83c-0f86-47bb-94c8-1e337d59a734" - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} }, - "Example 10": { + "Example 18": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "Ceramics (Updated)" - } + "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 19": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": { - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - } - } + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 20": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "associatedLayout": null - } + "value": {"associatedLayout":null} } } } @@ -32137,22 +19459,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubset" }, - "example": { - "associatedLayout": { - "displayNames": { - "en": "Ceramics Layout English Display Name", - "fr": "Ceramics Layout French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" - } + "example": {"associatedLayout":{"displayNames":{"en":"Ceramics Layout English Display Name","fr":"Ceramics Layout French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"} } } }, @@ -32172,6 +19479,7 @@ "Schema - Subsets" ], "summary": "Delete a subset.", + "operationId": "DeleteSubset", "parameters": [ { "name": "database-key", @@ -32222,6 +19530,7 @@ "Schema - Subsets" ], "summary": "Add a record history to a subset.", + "operationId": "AddToSubset", "parameters": [ { "name": "database-key", @@ -32257,21 +19566,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": false - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 10": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": true - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} } } }, @@ -32280,21 +19583,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": false - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 10": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": true - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} } } }, @@ -32303,21 +19600,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": false - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 10": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": true - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} } } }, @@ -32326,21 +19617,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": false - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 10": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", - "recurseChildren": true - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} } } } @@ -32368,6 +19653,7 @@ "Schema - Subsets" ], "summary": "Remove a record history, and all of its descendants, from a subset.", + "operationId": "RemoveFromSubset", "parameters": [ { "name": "database-key", @@ -32403,12 +19689,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} } } }, @@ -32417,12 +19701,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} } } }, @@ -32431,12 +19713,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} } } }, @@ -32445,12 +19725,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" - } + "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} } } } @@ -32478,6 +19756,7 @@ "Schema - Tables" ], "summary": "Get all tables", + "operationId": "GetTables", "parameters": [ { "name": "database-key", @@ -32520,29 +19799,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTablesInfo" }, - "example": { - "tables": [ - { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "displayNames": { - "en": "MaterialUniverse English Display Name", - "fr": "MaterialUniverse French Display Name" - }, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - }, - { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": true, - "displayNames": {}, - "name": "Design Data", - "guid": "0000b5e2-0011-4fff-8fff-0000ffff0000" - } - ] - } + "example": {"tables":[{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"displayNames":{"en":"MaterialUniverse English Display Name","fr":"MaterialUniverse French Display Name"},"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"displayNames":{},"name":"Design Data","guid":"0000b5e2-0011-4fff-8fff-0000ffff0000"}]} } } }, @@ -32556,6 +19813,7 @@ "Schema - Tables" ], "summary": "Create a new table.", + "operationId": "CreateTable", "parameters": [ { "name": "database-key", @@ -32573,33 +19831,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 14": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings (Guid)", - "guid": "2b231dd9-ffb4-4763-a2da-fe96b9ab7fe8" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} }, - "Example 9": { + "Example 15": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": { - "isHiddenFromBrowse": true, - "isHiddenFromSearch": true, - "name": "Coatings (Hidden)" - } + "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} } } }, @@ -32608,33 +19853,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 14": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings (Guid)", - "guid": "2b231dd9-ffb4-4763-a2da-fe96b9ab7fe8" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} }, - "Example 9": { + "Example 15": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": { - "isHiddenFromBrowse": true, - "isHiddenFromSearch": true, - "name": "Coatings (Hidden)" - } + "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} } } }, @@ -32643,33 +19875,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 14": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings (Guid)", - "guid": "2b231dd9-ffb4-4763-a2da-fe96b9ab7fe8" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} }, - "Example 9": { + "Example 15": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": { - "isHiddenFromBrowse": true, - "isHiddenFromSearch": true, - "name": "Coatings (Hidden)" - } + "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} } } }, @@ -32678,33 +19897,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 14": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "name": "Coatings (Guid)", - "guid": "2b231dd9-ffb4-4763-a2da-fe96b9ab7fe8" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} }, - "Example 9": { + "Example 15": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": { - "isHiddenFromBrowse": true, - "isHiddenFromSearch": true, - "name": "Coatings (Hidden)" - } + "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} } } } @@ -32718,15 +19924,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": { - "versionState": "unversioned", - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "displayNames": {}, - "name": "Material Universe", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - } + "example": {"versionState":"unversioned","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"displayNames":{},"name":"Material Universe","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"} } } }, @@ -32748,6 +19946,7 @@ "Schema - Tables" ], "summary": "Get a table with a specified guid for a given database.", + "operationId": "GetTable", "parameters": [ { "name": "database-key", @@ -32799,82 +19998,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": { - "defaultSubset": { - "name": "All bulk materials", - "guid": "0000b1c5-0010-4fff-8fff-dd92ffff0000" - }, - "subsets": [ - { - "name": "Aerospace materials", - "guid": "0000fc72-0010-4fff-8fff-dd92ffff0000" - }, - { - "name": "All bulk materials", - "guid": "0000b1c5-0010-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" - }, - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - }, - { - "name": "Polymers", - "guid": "00007645-0010-4fff-8fff-dd92ffff0000" - } - ], - "defaultLayout": { - "name": "All Attributes", - "guid": "384f9abe-0581-434d-a976-86952282207a" - }, - "layouts": [ - { - "name": "Aerospace materials", - "guid": "0000fc72-0009-4fff-8fff-dd92ffff0000" - }, - { - "name": "All Attributes", - "guid": "384f9abe-0581-434d-a976-86952282207a" - }, - { - "name": "All bulk materials", - "guid": "0000b1c5-0009-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - { - "name": "Metals", - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - }, - { - "name": "Polymers", - "guid": "00007645-0009-4fff-8fff-dd92ffff0000" - } - ], - "versionState": "unversioned", - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": false, - "displayNames": { - "en": "MaterialUniverse English Display Name", - "fr": "MaterialUniverse French Display Name" - }, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" - } + "example": {"defaultSubset":{"name":"All bulk materials","guid":"0000b1c5-0010-4fff-8fff-dd92ffff0000"},"subsets":[{"name":"Aerospace materials","guid":"0000fc72-0010-4fff-8fff-dd92ffff0000"},{"name":"All bulk materials","guid":"0000b1c5-0010-4fff-8fff-dd92ffff0000"},{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"},{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"},{"name":"Polymers","guid":"00007645-0010-4fff-8fff-dd92ffff0000"}],"defaultLayout":{"name":"All Attributes","guid":"384f9abe-0581-434d-a976-86952282207a"},"layouts":[{"name":"Aerospace materials","guid":"0000fc72-0009-4fff-8fff-dd92ffff0000"},{"name":"All Attributes","guid":"384f9abe-0581-434d-a976-86952282207a"},{"name":"All bulk materials","guid":"0000b1c5-0009-4fff-8fff-dd92ffff0000"},{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},{"name":"Metals","guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},{"name":"Polymers","guid":"00007645-0009-4fff-8fff-dd92ffff0000"}],"versionState":"unversioned","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"displayNames":{"en":"MaterialUniverse English Display Name","fr":"MaterialUniverse French Display Name"},"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"} } } }, @@ -32888,6 +20012,7 @@ "Schema - Tables" ], "summary": "Update a table.", + "operationId": "UpdateTable", "parameters": [ { "name": "database-key", @@ -32914,59 +20039,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": true, - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "name": "MaterialUniverse (Updated)", - "guid": "5a7e8aa9-ee69-4fed-9676-f87d9953a7a6" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} }, - "Example 16": { + "Example 30": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": true - } + "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 31": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromSearch": false - } + "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 32": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" - } + "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 33": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": null - } + "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 34": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" - } + "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 35": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": null - } + "value": {"defaultLayoutGuid":null} } } }, @@ -32975,59 +20081,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": true, - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "name": "MaterialUniverse (Updated)", - "guid": "5a7e8aa9-ee69-4fed-9676-f87d9953a7a6" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} }, - "Example 16": { + "Example 30": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": true - } + "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 31": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromSearch": false - } + "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 32": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" - } + "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 33": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": null - } + "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 34": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" - } + "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 35": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": null - } + "value": {"defaultLayoutGuid":null} } } }, @@ -33036,59 +20123,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": true, - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "name": "MaterialUniverse (Updated)", - "guid": "5a7e8aa9-ee69-4fed-9676-f87d9953a7a6" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} }, - "Example 16": { + "Example 30": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": true - } + "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 31": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromSearch": false - } + "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 32": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" - } + "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 33": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": null - } + "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 34": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" - } + "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 35": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": null - } + "value": {"defaultLayoutGuid":null} } } }, @@ -33097,59 +20165,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 29": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": false, - "isHiddenFromSearch": true, - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "name": "MaterialUniverse (Updated)", - "guid": "5a7e8aa9-ee69-4fed-9676-f87d9953a7a6" - } + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} }, - "Example 16": { + "Example 30": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromBrowse": true - } + "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 31": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "isHiddenFromSearch": false - } + "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 32": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" - } + "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 33": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultSubsetGuid": null - } + "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 34": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" - } + "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 35": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "defaultLayoutGuid": null - } + "value": {"defaultLayoutGuid":null} } } } @@ -33163,34 +20212,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": { - "defaultSubset": { - "name": "All substances", - "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" - }, - "subsets": [ - { - "name": "All substances", - "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" - } - ], - "defaultLayout": { - "name": "All substances", - "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" - }, - "layouts": [ - { - "name": "All substances", - "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" - } - ], - "versionState": "unreleased", - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": true, - "name": "Restricted Substances", - "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" - } + "example": {"defaultSubset":{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"},"subsets":[{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"}],"defaultLayout":{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"},"layouts":[{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"}],"versionState":"unreleased","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"} } } }, @@ -33210,6 +20232,7 @@ "Schema - Tables" ], "summary": "Delete a table.", + "operationId": "DeleteTable", "parameters": [ { "name": "database-key", @@ -33237,23 +20260,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionTableDeletionException" }, - "example": { - "message": "Cannot delete table 'Restricted Substances' (GUID = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f').", - "code": 400, - "errors": [ - { - "message": "It is being used in one or more tabular attributes.", - "reason": "inUse", - "referencedByType": "tabularAttribute", - "referencedBy": [ - { - "name": "Restricted substances associated with this material", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" - } - ] - } - ] - } + "example": {"message":"Cannot delete table 'Restricted Substances' (GUID = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f').","code":400,"errors":[{"message":"It is being used in one or more tabular attributes.","reason":"inUse","referencedByType":"tabularAttribute","referencedBy":[{"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}]}]} } } }, @@ -33275,6 +20282,7 @@ "Schema - Tables" ], "summary": "Releases the table. Table must be version-controlled and unreleased.", + "operationId": "ReleaseTable", "parameters": [ { "name": "database-key", @@ -33302,34 +20310,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": { - "defaultSubset": { - "name": "All substances", - "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" - }, - "subsets": [ - { - "name": "All substances", - "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" - } - ], - "defaultLayout": { - "name": "All substances", - "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" - }, - "layouts": [ - { - "name": "All substances", - "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" - } - ], - "versionState": "released", - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": true, - "name": "Restricted Substances", - "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" - } + "example": {"defaultSubset":{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"},"subsets":[{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"}],"defaultLayout":{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"},"layouts":[{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"}],"versionState":"released","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"} } } }, @@ -33341,33 +20322,14 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException" }, "examples": { - "Example 5": { + "Example 9": { "summary": "Invalid version state.", "description": "A table can only be released if it is currently unreleased.", - "value": { - "message": "Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.", - "code": 400, - "errors": [ - { - "message": "Invalid version state 'Released'.", - "reason": "invalidVersionState", - "versionState": "released" - } - ] - } + "value": {"message":"Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 6": { + "Example 10": { "summary": "Table is not version controlled.", - "value": { - "message": "Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.", - "code": 400, - "errors": [ - { - "message": "Table is not version controlled.", - "reason": "notVersioned" - } - ] - } + "value": {"message":"Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } } } @@ -33388,6 +20350,7 @@ "Schema - Tables" ], "summary": "Enable version control on the table. This cannot be undone.\r\nAfter this method has been called all records and data in the table are in an unreleased state.\r\nThis means that read users will not be able to see any records unless they are subsequently released.", + "operationId": "EnableVersionControl", "parameters": [ { "name": "database-key", @@ -33415,34 +20378,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": { - "defaultSubset": { - "name": "All substances", - "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" - }, - "subsets": [ - { - "name": "All substances", - "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" - } - ], - "defaultLayout": { - "name": "All substances", - "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" - }, - "layouts": [ - { - "name": "All substances", - "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" - } - ], - "versionState": "unreleased", - "isHiddenFromBrowse": false, - "isHiddenFromSearch": false, - "isVersioned": true, - "name": "Restricted Substances", - "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" - } + "example": {"defaultSubset":{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"},"subsets":[{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"}],"defaultLayout":{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"},"layouts":[{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"}],"versionState":"unreleased","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"} } } }, @@ -33464,6 +20400,7 @@ "Schema - Units" ], "summary": "Get equivalent units (one per unit system)", + "operationId": "GetUnitEquivalents", "parameters": [ { "name": "database-key", @@ -33506,6 +20443,7 @@ "Schema - Units" ], "summary": "Set the equivalent unit for a given unit system", + "operationId": "SetUnitEquivalent", "parameters": [ { "name": "database-key", @@ -33559,6 +20497,7 @@ "Schema - Units" ], "summary": "Get all units", + "operationId": "GetUnits", "parameters": [ { "name": "database-key", @@ -33590,6 +20529,7 @@ "Schema - Units" ], "summary": "Create a new unit.", + "operationId": "CreateUnit", "parameters": [ { "name": "database-key", @@ -33653,6 +20593,7 @@ "Schema - Units" ], "summary": "Get individual units", + "operationId": "GetUnit", "parameters": [ { "name": "database-key", @@ -33693,6 +20634,7 @@ "Schema - Units" ], "summary": "Update unit.", + "operationId": "UpdateUnit", "parameters": [ { "name": "database-key", @@ -33763,6 +20705,7 @@ "Schema - Units" ], "summary": "Delete unit.", + "operationId": "DeleteUnit", "parameters": [ { "name": "database-key", @@ -33804,6 +20747,7 @@ "Schema - Units" ], "summary": "Get compatible units for unit", + "operationId": "GetCompatibleUnits", "parameters": [ { "name": "database-key", @@ -33846,6 +20790,7 @@ "Schema - Units" ], "summary": "Get all usages of unit", + "operationId": "GetUnitUsages", "parameters": [ { "name": "database-key", @@ -33888,6 +20833,7 @@ "Schema - Units" ], "summary": "Get all unit systems in the database", + "operationId": "GetUnitSystems", "parameters": [ { "name": "database-key", @@ -33919,6 +20865,7 @@ "Schema - Units" ], "summary": "Create a new unit system.", + "operationId": "CreateUnitSystem", "parameters": [ { "name": "database-key", @@ -33936,13 +20883,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": { - "name": "Hawaiian common", - "guid": "fa3a750c-a4ac-4797-b099-811c34d82357" - } + "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} } } }, @@ -33951,13 +20895,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": { - "name": "Hawaiian common", - "guid": "fa3a750c-a4ac-4797-b099-811c34d82357" - } + "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} } } }, @@ -33966,13 +20907,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": { - "name": "Hawaiian common", - "guid": "fa3a750c-a4ac-4797-b099-811c34d82357" - } + "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} } } }, @@ -33981,13 +20919,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 5": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": { - "name": "Hawaiian common", - "guid": "fa3a750c-a4ac-4797-b099-811c34d82357" - } + "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} } } } @@ -34022,6 +20957,7 @@ "Schema - Units" ], "summary": "Get an individual unit system", + "operationId": "GetUnitSystem", "parameters": [ { "name": "database-key", @@ -34062,6 +20998,7 @@ "Schema - Units" ], "summary": "Update a unit system.", + "operationId": "UpdateUnitSystem", "parameters": [ { "name": "database-key", @@ -34088,27 +21025,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)", - "guid": "b1c2af34-2952-48a7-8d0c-6f6651725cf8" - } + "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)" - } + "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "guid": "c34dcf57-5a4b-4b8e-97fb-2c7672d41dd5" - } + "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} } } }, @@ -34117,27 +21047,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)", - "guid": "b1c2af34-2952-48a7-8d0c-6f6651725cf8" - } + "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)" - } + "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "guid": "c34dcf57-5a4b-4b8e-97fb-2c7672d41dd5" - } + "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} } } }, @@ -34146,27 +21069,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)", - "guid": "b1c2af34-2952-48a7-8d0c-6f6651725cf8" - } + "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)" - } + "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "guid": "c34dcf57-5a4b-4b8e-97fb-2c7672d41dd5" - } + "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} } } }, @@ -34175,27 +21091,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 13": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)", - "guid": "b1c2af34-2952-48a7-8d0c-6f6651725cf8" - } + "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} }, - "Example 8": { + "Example 14": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "name": "UK Imperial (Updated)" - } + "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 15": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": { - "guid": "c34dcf57-5a4b-4b8e-97fb-2c7672d41dd5" - } + "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} } } } @@ -34228,6 +21137,7 @@ "Schema - Units" ], "summary": "Delete a unit system.", + "operationId": "DeleteUnitSystem", "parameters": [ { "name": "database-key", @@ -34268,6 +21178,7 @@ "tags": [ "Search" ], + "operationId": "DatabaseSearchInTableWithIdentity", "parameters": [ { "name": "database-key", @@ -34318,729 +21229,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "f6c6fa90-d4d3-4609-abda-b29b42bd45b3", - "003ce859-f5c2-46d9-aa28-de3fb1782658" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -35049,729 +21371,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "f6c6fa90-d4d3-4609-abda-b29b42bd45b3", - "003ce859-f5c2-46d9-aa28-de3fb1782658" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -35780,729 +21513,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "f6c6fa90-d4d3-4609-abda-b29b42bd45b3", - "003ce859-f5c2-46d9-aa28-de3fb1782658" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -36511,729 +21655,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "f6c6fa90-d4d3-4609-abda-b29b42bd45b3", - "003ce859-f5c2-46d9-aa28-de3fb1782658" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } } @@ -37268,6 +21823,7 @@ "tags": [ "Search" ], + "operationId": "DatabaseSearchInTableWithGuid", "parameters": [ { "name": "database-key", @@ -37318,729 +21874,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "d6ed4e78-b0ab-4cac-a765-4065397fe960", - "01b17e1f-0453-42a2-bc51-f9b9b4f89ac7" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -38049,729 +22016,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "d6ed4e78-b0ab-4cac-a765-4065397fe960", - "01b17e1f-0453-42a2-bc51-f9b9b4f89ac7" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -38780,729 +22158,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "d6ed4e78-b0ab-4cac-a765-4065397fe960", - "01b17e1f-0453-42a2-bc51-f9b9b4f89ac7" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -39511,729 +22300,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "d6ed4e78-b0ab-4cac-a765-4065397fe960", - "01b17e1f-0453-42a2-bc51-f9b9b4f89ac7" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } } @@ -40268,6 +22468,7 @@ "tags": [ "Search" ], + "operationId": "DatabaseSearch", "parameters": [ { "name": "database-key", @@ -40309,729 +22510,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "98eee5fe-5d9b-4c3e-b33e-560894a72cad", - "17ce2eb7-db77-468f-900d-7d0f10f1c7cf" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -41040,729 +22652,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "98eee5fe-5d9b-4c3e-b33e-560894a72cad", - "17ce2eb7-db77-468f-900d-7d0f10f1c7cf" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -41771,729 +22794,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "98eee5fe-5d9b-4c3e-b33e-560894a72cad", - "17ce2eb7-db77-468f-900d-7d0f10f1c7cf" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -42502,729 +22936,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 217": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 218": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 219": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 220": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 221": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 222": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 223": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 224": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 225": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 226": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "98eee5fe-5d9b-4c3e-b33e-560894a72cad", - "17ce2eb7-db77-468f-900d-7d0f10f1c7cf" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 227": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 228": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 229": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 230": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 231": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 232": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 233": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 234": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 235": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 236": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 237": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 238": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 239": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 240": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 241": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 242": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 243": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } } @@ -43260,6 +23105,7 @@ "Search" ], "summary": "Runs a search against the integration schema.", + "operationId": "IntegrationSearch", "parameters": [ { "name": "schema", @@ -43277,729 +23123,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "e03c586b-e024-4760-b484-ebd520ea9fdf", - "8e42a836-7901-4329-8834-b7066dd44322" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -44008,729 +23265,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "e03c586b-e024-4760-b484-ebd520ea9fdf", - "8e42a836-7901-4329-8834-b7066dd44322" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -44739,729 +23407,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "e03c586b-e024-4760-b484-ebd520ea9fdf", - "8e42a836-7901-4329-8834-b7066dd44322" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } }, @@ -45470,729 +23549,140 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 244": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 245": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": { - "criterion": { - "identities": [ - -4, - 928, - 886 - ], - "identitiesToBoost": [ - { - "identity": -4, - "boostFactor": 20.0 - } - ], - "guids": [], - "freeTextCriterionType": "specifiedAttributes", - "value": "lead", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 246": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": { - "criterion": { - "columnIdentitiesToExclude": [], - "columnGuidsToExclude": [ - "d5c215fe-6305-407b-a830-cc5ff14e4cf9", - "bfb3edea-be3e-4598-a711-6abb171a4569" - ], - "freeTextCriterionType": "excludingLocalColumns", - "value": "Intermediate", - "type": "text" - }, - "sortCriteria": [] - } + "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 247": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": { - "criterion": { - "innerCriterion": { - "gte": 1, - "lte": 10, - "type": "integer" - }, - "attributeCriterionType": "matches", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "identity": 8965, - "attributeType": "integer", - "type": "attribute", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 248": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": { - "criterion": { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 249": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": { - "criterion": { - "all": [ - { - "innerCriterion": { - "type": "longText" - }, - "attributeCriterionType": "exists", - "identity": 5886, - "isMetaAttribute": true, - "type": "attribute" - }, - { - "innerCriterion": { - "gte": "1990-01-01T00:00:00+00:00", - "lte": "1999-12-31T00:00:00+00:00", - "type": "dateTime" - }, - "attributeCriterionType": "matches", - "identity": 5872, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "all": [], - "any": [ - 1665, - 1666 - ], - "none": [], - "type": "discreteIdentityValues" - }, - "attributeCriterionType": "matches", - "identity": 5876, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 250": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": { - "criterion": { - "all": [], - "any": [ - { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - { - "all": [ - { - "innerCriterion": { - "type": "integer" - }, - "attributeCriterionType": "exists", - "identity": 8965, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "attributeCriterionType": "notApplicable", - "identity": 928, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "any": [], - "none": [], - "type": "boolean" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [] - } + "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 251": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": { - "criterion": { - "all": [], - "any": [ - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -4, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -9, - "isMetaAttribute": false, - "type": "attribute" - }, - { - "innerCriterion": { - "value": "steel", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "identity": -10, - "isMetaAttribute": false, - "type": "attribute" - } - ], - "none": [], - "type": "boolean" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 252": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": { - "criterion": { - "innerCriterion": { - "all": [ - "red" - ], - "any": [], - "none": [], - "textMatchBehaviour": "contains", - "type": "discreteTextValues" - }, - "attributeCriterionType": "matches", - "identity": -6, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "property": "recordName", - "sortType": "natural", - "type": "recordProperty", - "sortDirection": "descending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 253": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": { - "criterion": { - "recordListIdentifiers": [ - "e03c586b-e024-4760-b484-ebd520ea9fdf", - "8e42a836-7901-4329-8834-b7066dd44322" - ], - "type": "recordListMember" - }, - "sortCriteria": [] - } + "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 254": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": { - "criterion": { - "databaseKey": "MI_Training", - "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", - "type": "reference" - }, - "sortCriteria": [] - } + "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 255": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": { - "criterion": { - "ancestorIdentity": 8923, - "directParentOnly": false, - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 256": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": { - "criterion": { - "type": "recordAncestor" - }, - "sortCriteria": [] - } + "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 257": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": { - "criterion": { - "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", - "type": "subset" - }, - "sortCriteria": [] - } + "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 258": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "type": "link" - }, - "attributeCriterionType": "exists", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 259": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": { - "criterion": { - "innerCriterion": { - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "localColumnCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "type": "localColumn" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 260": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "localCriterion": { - "innerCriterion": { - "gte": 10.0, - "type": "range" - }, - "attributeCriterionType": "matches", - "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" - }, - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "value": "Alkanes", - "textMatchBehaviour": "contains", - "type": "shortText" - }, - "attributeCriterionType": "matches", - "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 261": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": { - "criterion": { - "innerCriterion": { - "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", - "innerCriterion": { - "innerCriterion": { - "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", - "innerCriterion": { - "innerCriterion": { - "value": "Banned with conditions", - "textMatchBehaviour": "exactMatch", - "type": "discreteText" - }, - "attributeCriterionType": "matches", - "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 262": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": { - "criterion": { - "innerCriterion": { - "linkDatumType": "tabularAttribute", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "values": [ - "85535" - ], - "linkingValueMatchBehaviour": "FreeTextMatchingRows", - "type": "tabularLinkingValue" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 263": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "picture" - }, - "attributeCriterionType": "exists", - "identity": 8563, - "isMetaAttribute": false, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 264": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 59, - "targetDatabaseKey": "MI_TRAINING", - "linkDatumType": "recordLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "type": "link" - }, - "attributeCriterionType": "exists", - "identity": 101, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 265": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 56, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": false, - "innerCriterion": { - "innerCriterion": { - "type": "floatFunctionalData" - }, - "attributeCriterionType": "exists", - "identity": 33, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 45, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 266": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": { - "criterion": { - "innerCriterion": { - "targetTableIdentity": 39, - "targetDatabaseKey": "Target_Database", - "linkDatumType": "crossDatabaseLink", - "indirectLinks": "fromLinkDefinition", - "searchInReversedDirection": true, - "innerCriterion": { - "innerCriterion": { - "type": "file" - }, - "attributeCriterionType": "exists", - "identity": 87, - "isMetaAttribute": true, - "type": "attribute" - }, - "type": "link", - "localRowsBehaviour": "AllRows" - }, - "attributeCriterionType": "matches", - "identity": 65, - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 267": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": { - "criterion": { - "freeTextCriterionType": "all", - "value": "steel", - "type": "text" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ], - "pagingOptions": { - "pageSize": 5, - "keepAliveInMinutes": 10, - "pageNumber": 1 - } - } + "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 268": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalGraph", - "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", - "numberOfSeriesGte": 1, - "showAsTable": false - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [ - { - "type": "relevance", - "sortDirection": "ascending" - } - ] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 269": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": { - "criterion": { - "innerCriterion": { - "type": "floatFunctionalData", - "gte": 75.0, - "lte": 80.0, - "constraints": [ - { - "gte": 100.0, - "lte": 100.0, - "scaleType": "linear", - "interpolationType": "linear", - "type": "numeric", - "parameter": { - "guid": "00000001-000a-4fff-8fff-0000ffff0000" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "00000001-0001-4fff-8fff-dd92ffff0000", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 270": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": { - "criterion": { - "innerCriterion": { - "anyGuids": [ - "00000032-0007-4fff-8fff-000cffff0000", - "00000033-0007-4fff-8fff-000cffff0000" - ], - "type": "discreteFunctionalValues", - "constraints": [ - { - "any": [ - "Fresh water" - ], - "type": "discreteName", - "parameter": { - "guid": "b7cee874-160f-439a-a784-b887c516b2d5" - } - } - ] - }, - "attributeCriterionType": "matches", - "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", - "isMetaAttribute": false, - "type": "attribute" - }, - "sortCriteria": [] - } + "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} } } } @@ -46230,6 +23720,7 @@ "tags": [ "Search" ], + "operationId": "GetSearchResults", "parameters": [ { "name": "searchIdentifier", @@ -46297,6 +23788,7 @@ "tags": [ "Search" ], + "operationId": "DeleteSearchResults", "parameters": [ { "name": "searchIdentifier", @@ -46324,6 +23816,7 @@ "SelectionSearches" ], "summary": "Returns all searches visible to the calling user.", + "operationId": "GetAll", "responses": { "200": { "description": "Ok", @@ -46364,6 +23857,7 @@ "SelectionSearches" ], "summary": "Creates a new search with the specified properties.", + "operationId": "CreateSearch", "requestBody": { "content": { "application/json-patch+json": { @@ -46424,6 +23918,7 @@ "SelectionSearches" ], "summary": "Retrieves a collection of searches that match the specified criteria.", + "operationId": "Search", "requestBody": { "content": { "application/json-patch+json": { @@ -46484,6 +23979,7 @@ "SelectionSearches" ], "summary": "Returns the given search if it exists and the calling user has access to it", + "operationId": "GetSearch", "parameters": [ { "name": "searchIdentifier", @@ -46532,6 +24028,7 @@ "SelectionSearches" ], "summary": "If the search exists, updates the properties of the search. This will overwrite all current properties.\r\nIf the search does not exist or the calling user does not have access to it, returns '404 not found' response.", + "operationId": "SaveSearch", "parameters": [ { "name": "searchIdentifier", @@ -46587,6 +24084,7 @@ "SelectionSearches" ], "summary": "Delete an existing selection search.", + "operationId": "DeleteSearch", "parameters": [ { "name": "searchIdentifier", @@ -46617,6 +24115,7 @@ "Status" ], "summary": "Check whether the API is available", + "operationId": "Get", "responses": { "200": { "description": "Success" @@ -48677,7 +26176,7 @@ } }, "additionalProperties": false, - "description": "\r\n\r\nThis extends: GrantaServerApiDataDatum\r\n\r\nThis is one of: \r\n * GrantaServerApiDataIntegerDatum\r\n * GrantaServerApiDataLogicalDatum\r\n * GrantaServerApiDataShortTextDatum\r\n * GrantaServerApiDataLongTextDatum\r\n * GrantaServerApiDataHyperlinkDatum\r\n * GrantaServerApiDataDateTimeDatum\r\n * GrantaServerApiDataDiscreteDatum\r\n * GrantaServerApiDataRangeDatum", + "description": "\r\n\r\nThis extends: GrantaServerApiDataDatum\r\n\r\nThis is one of: \r\n * GrantaServerApiDataIntegerDatum\r\n * GrantaServerApiDataLogicalDatum\r\n * GrantaServerApiDataShortTextDatum\r\n * GrantaServerApiDataLongTextDatum\r\n * GrantaServerApiDataHyperlinkDatum\r\n * GrantaServerApiDataDateTimeDatum\r\n * GrantaServerApiDataDiscreteDatum\r\n * GrantaServerApiDataRangeDatum\r\n * GrantaServerApiDataPointDatum", "discriminator": { "propertyName": "datumType", "mapping": { @@ -48688,7 +26187,8 @@ "hyperlink": "#/components/schemas/GrantaServerApiDataHyperlinkDatum", "dateTime": "#/components/schemas/GrantaServerApiDataDateTimeDatum", "discrete": "#/components/schemas/GrantaServerApiDataDiscreteDatum", - "range": "#/components/schemas/GrantaServerApiDataRangeDatum" + "range": "#/components/schemas/GrantaServerApiDataRangeDatum", + "point": "#/components/schemas/GrantaServerApiDataPointDatum" } }, "x-discriminator-value": "applicable" @@ -48742,10 +26242,11 @@ "hyperlink", "dateTime", "discrete", - "range" + "range", + "point" ], "type": "string", - "description": "The types of datum that are supported by the API.

Possible values:

\r\n
    \r\n
  • Integer: Integer
  • \r\n
  • Logical: Logical
  • \r\n
  • ShortText: Short Text
  • \r\n
  • LongText: Integer
  • \r\n
  • Hyperlink: Integer
  • \r\n
  • DateTime: Date and Time
  • \r\n
  • Discrete: Discrete
  • \r\n
  • Range: Range
  • \r\n
\r\n" + "description": "The types of datum that are supported by the API.

Possible values:

\r\n
    \r\n
  • Integer: Integer
  • \r\n
  • Logical: Logical
  • \r\n
  • ShortText: Short Text
  • \r\n
  • LongText: Integer
  • \r\n
  • Hyperlink: Integer
  • \r\n
  • DateTime: Date and Time
  • \r\n
  • Discrete: Discrete
  • \r\n
  • Range: Range
  • \r\n
  • Point: Range
  • \r\n
\r\n" }, "GrantaServerApiDataDiscreteDatum": { "required": [ @@ -48777,6 +26278,34 @@ "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", "x-discriminator-value": "discrete" }, + "GrantaServerApiDataDiscreteParameterWithValue": { + "required": [ + "parameter", + "parameterValue", + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataParameterWithValue" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "discrete" + }, + "parameterValue": { + "$ref": "#/components/schemas/GrantaServerApiSchemaParametersDiscreteParameterValue" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataParameterWithValue", + "x-discriminator-value": "discrete" + }, "GrantaServerApiDataExportAttributeToExport": { "type": "object", "properties": { @@ -51211,6 +28740,119 @@ "description": "\r\n\r\nThis extends: GrantaServerApiDataDatum", "x-discriminator-value": "notApplicable" }, + "GrantaServerApiDataNumericParameterWithValue": { + "required": [ + "parameter", + "parameterValue", + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataParameterWithValue" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "numeric" + }, + "parameterValue": { + "type": "number", + "format": "double" + }, + "unit": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimUnit" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataParameterWithValue", + "x-discriminator-value": "numeric" + }, + "GrantaServerApiDataParameterWithValue": { + "required": [ + "parameter", + "type" + ], + "type": "object", + "properties": { + "parameter": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + } + }, + "additionalProperties": false, + "description": "\r\n\r\nThis is one of: \r\n * GrantaServerApiDataDiscreteParameterWithValue\r\n * GrantaServerApiDataNumericParameterWithValue", + "discriminator": { + "propertyName": "type", + "mapping": { + "discrete": "#/components/schemas/GrantaServerApiDataDiscreteParameterWithValue", + "numeric": "#/components/schemas/GrantaServerApiDataNumericParameterWithValue" + } + } + }, + "GrantaServerApiDataPointDataValue": { + "required": [ + "parameterAndValues", + "pointValue" + ], + "type": "object", + "properties": { + "pointValue": { + "type": "number", + "format": "double" + }, + "unit": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimUnit" + }, + "significantFiguresInfo": { + "$ref": "#/components/schemas/GrantaServerApiDataSignificantFiguresInfo" + }, + "parameterAndValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiDataParameterWithValue" + } + } + }, + "additionalProperties": false + }, + "GrantaServerApiDataPointDatum": { + "required": [ + "datumType", + "estimated", + "values" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "point" + }, + "estimated": { + "type": "boolean" + }, + "values": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiDataPointDataValue" + } + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "point" + }, "GrantaServerApiDataRangeDatum": { "required": [ "datumType", @@ -51628,7 +29270,7 @@ }, "additionalProperties": false }, - "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException": { + "GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException": { "type": "object", "properties": { "message": { @@ -53485,11 +31127,17 @@ "description": "An API-level enum for the supported record types." }, "GrantaServerApiRecordsRecordHistoriesCopyRecordHistory": { + "required": [ + "subsetOption" + ], "type": "object", "properties": { "newParent": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" }, + "subsetOption": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType" + }, "newShortName": { "type": "string", "nullable": true @@ -53499,7 +31147,7 @@ }, "GrantaServerApiRecordsRecordHistoriesCreateRecordHistory": { "required": [ - "fullName", + "name", "recordType" ], "type": "object", @@ -53507,16 +31155,19 @@ "recordType": { "$ref": "#/components/schemas/GrantaServerApiRecordType" }, - "fullName": { + "name": { "type": "string" }, - "treeName": { + "shortName": { "type": "string", "nullable": true }, "parent": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" }, + "recordColor": { + "$ref": "#/components/schemas/GrantaServerApiRecordColor" + }, "guid": { "type": "string", "format": "uuid" @@ -53571,6 +31222,15 @@ }, "additionalProperties": false }, + "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType": { + "enum": [ + "none", + "fromParent", + "fromOriginalRecord" + ], + "type": "string", + "description": "An API-level enum for the possible options for inheriting properties when copying or moving a record history." + }, "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": { "required": [ "guid" @@ -62227,131 +39887,6 @@ "description": "floatFunctionalGraph: Criterion for matching records with float functional data\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "floatFunctionalGraph" }, - "GrantaServerApiSearchFreeTextAllAttributesCriterion": { - "required": [ - "freeTextCriterionType" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/GrantaServerApiSearchFreeTextCriterion" - }, - { - "type": "object", - "properties": { - "identitiesToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByIdentity" - }, - "nullable": true - }, - "guidsToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByGuid" - }, - "nullable": true - }, - "freeTextCriterionType": { - "type": "string", - "default": "allAttributes" - } - } - } - ], - "additionalProperties": false, - "description": "Runs a query for the specified term against all attributes.\r\nIf any identifiers are provided, all fields must use either identities or GUIDs.\r\n\r\nThis extends: GrantaServerApiSearchFreeTextCriterion", - "x-discriminator-value": "allAttributes" - }, - "GrantaServerApiSearchFreeTextAllCriterion": { - "required": [ - "freeTextCriterionType" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/GrantaServerApiSearchFreeTextCriterion" - }, - { - "type": "object", - "properties": { - "attributeIdentitiesToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByIdentity" - }, - "nullable": true - }, - "attributeGuidsToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByGuid" - }, - "nullable": true - }, - "columnIdentitiesToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByIdentity" - }, - "nullable": true - }, - "columnGuidsToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByGuid" - }, - "nullable": true - }, - "freeTextCriterionType": { - "type": "string", - "default": "all" - } - } - } - ], - "additionalProperties": false, - "description": "Runs a query for the specified term against all attributes and tabular local columns.\r\nIf any identifiers are provided, all fields must use either identities or GUIDs.\r\n\r\nThis extends: GrantaServerApiSearchFreeTextCriterion", - "x-discriminator-value": "all" - }, - "GrantaServerApiSearchFreeTextAllLocalColumnsCriterion": { - "required": [ - "freeTextCriterionType" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/GrantaServerApiSearchFreeTextCriterion" - }, - { - "type": "object", - "properties": { - "columnIdentitiesToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByIdentity" - }, - "nullable": true - }, - "columnGuidsToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByGuid" - }, - "nullable": true - }, - "freeTextCriterionType": { - "type": "string", - "default": "allLocalColumns" - } - } - } - ], - "additionalProperties": false, - "description": "Runs a query for the specified term against all tabular local columns.\r\nIf any identifiers are provided, all fields must use either identities or GUIDs.\r\n\r\nThis extends: GrantaServerApiSearchFreeTextCriterion", - "x-discriminator-value": "allLocalColumns" - }, "GrantaServerApiSearchFreeTextCriterion": { "required": [ "type" @@ -62360,213 +39895,34 @@ "allOf": [ { "$ref": "#/components/schemas/GrantaServerApiSearchCriterion" - } - ], - "properties": { - "value": { - "type": "string", - "nullable": true - }, - "type": { - "type": "string", - "default": "text" - } - }, - "additionalProperties": false, - "description": "Base type for free text criteria.\r\n\r\nThis extends: GrantaServerApiSearchCriterion\r\n\r\nThis is one of: \r\n * GrantaServerApiSearchFreeTextAllCriterion\r\n * GrantaServerApiSearchFreeTextAllAttributesCriterion\r\n * GrantaServerApiSearchFreeTextExcludingAttributesCriterion\r\n * GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion\r\n * GrantaServerApiSearchFreeTextAllLocalColumnsCriterion\r\n * GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion\r\n * GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion", - "discriminator": { - "propertyName": "freeTextCriterionType", - "mapping": { - "all": "#/components/schemas/GrantaServerApiSearchFreeTextAllCriterion", - "allAttributes": "#/components/schemas/GrantaServerApiSearchFreeTextAllAttributesCriterion", - "excludingAttributes": "#/components/schemas/GrantaServerApiSearchFreeTextExcludingAttributesCriterion", - "specifiedAttributes": "#/components/schemas/GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion", - "allLocalColumns": "#/components/schemas/GrantaServerApiSearchFreeTextAllLocalColumnsCriterion", - "excludingLocalColumns": "#/components/schemas/GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion", - "specifiedLocalColumns": "#/components/schemas/GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion" - } - }, - "x-discriminator-value": "text" - }, - "GrantaServerApiSearchFreeTextExcludingAttributesCriterion": { - "required": [ - "freeTextCriterionType" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/GrantaServerApiSearchFreeTextCriterion" }, { "type": "object", "properties": { - "identitiesToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByIdentity" - }, - "nullable": true - }, - "identitiesToExclude": { - "type": "array", - "items": { - "type": "integer", - "format": "int32" - }, - "nullable": true - }, - "guidsToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByGuid" - }, - "nullable": true - }, - "guidsToExclude": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, - "nullable": true - }, - "freeTextCriterionType": { + "value": { "type": "string", - "default": "excludingAttributes" - } - } - } - ], - "additionalProperties": false, - "description": "Runs a query for the specified term against all attributes, excluding the specified attributes.\r\nAll fields must use either identities or GUIDs.\r\n\r\nThis extends: GrantaServerApiSearchFreeTextCriterion", - "x-discriminator-value": "excludingAttributes" - }, - "GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion": { - "required": [ - "freeTextCriterionType" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/GrantaServerApiSearchFreeTextCriterion" - }, - { - "type": "object", - "properties": { - "columnIdentitiesToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByIdentity" - }, "nullable": true }, - "columnIdentitiesToExclude": { - "type": "array", - "items": { - "type": "integer", - "format": "int32" - }, - "nullable": true - }, - "columnGuidsToBoost": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiSearchBoostByGuid" - }, - "nullable": true - }, - "columnGuidsToExclude": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, - "nullable": true + "attributes": { + "$ref": "#/components/schemas/GrantaServerApiValueSpecifier" }, - "freeTextCriterionType": { - "type": "string", - "default": "excludingLocalColumns" - } - } - } - ], - "additionalProperties": false, - "description": "Runs a query for the specified term against all tabular local columns, excluding specified tabular local columns.\r\nAll fields must use either identities or GUIDs.\r\n\r\nThis extends: GrantaServerApiSearchFreeTextCriterion", - "x-discriminator-value": "excludingLocalColumns" - }, - "GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion": { - "required": [ - "freeTextCriterionType" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/GrantaServerApiSearchFreeTextCriterion" - }, - { - "type": "object", - "properties": { - "identities": { - "type": "array", - "items": { - "type": "integer", - "format": "int32" - }, - "nullable": true + "localColumns": { + "$ref": "#/components/schemas/GrantaServerApiValueSpecifier" }, - "identitiesToBoost": { + "attributeIdentitiesToBoost": { "type": "array", "items": { "$ref": "#/components/schemas/GrantaServerApiSearchBoostByIdentity" }, "nullable": true }, - "guids": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, - "nullable": true - }, - "guidsToBoost": { + "attributeGuidsToBoost": { "type": "array", "items": { "$ref": "#/components/schemas/GrantaServerApiSearchBoostByGuid" }, "nullable": true }, - "freeTextCriterionType": { - "type": "string", - "default": "specifiedAttributes" - } - } - } - ], - "additionalProperties": false, - "description": "Runs a query for the specified term against specified attributes.\r\nAll fields must use either identities or GUIDs.\r\n\r\nThis extends: GrantaServerApiSearchFreeTextCriterion", - "x-discriminator-value": "specifiedAttributes" - }, - "GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion": { - "required": [ - "freeTextCriterionType" - ], - "type": "object", - "allOf": [ - { - "$ref": "#/components/schemas/GrantaServerApiSearchFreeTextCriterion" - }, - { - "type": "object", - "properties": { - "columnIdentities": { - "type": "array", - "items": { - "type": "integer", - "format": "int32" - }, - "nullable": true - }, "columnIdentitiesToBoost": { "type": "array", "items": { @@ -62574,14 +39930,6 @@ }, "nullable": true }, - "columnGuids": { - "type": "array", - "items": { - "type": "string", - "format": "uuid" - }, - "nullable": true - }, "columnGuidsToBoost": { "type": "array", "items": { @@ -62589,16 +39937,16 @@ }, "nullable": true }, - "freeTextCriterionType": { + "type": { "type": "string", - "default": "specifiedLocalColumns" + "default": "text" } } } ], "additionalProperties": false, - "description": "Runs a query for the specified term against specified tabular local columns.\r\nAll fields must use either identities or GUIDs.\r\n\r\nThis extends: GrantaServerApiSearchFreeTextCriterion", - "x-discriminator-value": "specifiedLocalColumns" + "description": "Base type for free text criteria.\r\n\r\nThis extends: GrantaServerApiSearchCriterion", + "x-discriminator-value": "text" }, "GrantaServerApiSearchHyperlinkDatumCriterion": { "required": [ From ccb9f995f2769aee95dfc03bd36a8b4b3e186e9e Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Thu, 29 Feb 2024 08:23:32 -0500 Subject: [PATCH 08/31] Support optional fields in patch requests (#147) Co-authored-by: Andy-Grigg --- ansys-grantami-serverapi-openapi/README.md | 5 +- ansys-grantami-serverapi-openapi/poetry.lock | 9 +- .../pyproject.toml | 4 +- .../serverapi_openapi/api/__init__.py | 2 +- .../serverapi_openapi/api/aggregation_api.py | 10 +- .../serverapi_openapi/api/data_api.py | 10 +- .../serverapi_openapi/api/data_export_api.py | 6 +- .../serverapi_openapi/api/database_api.py | 20 +- .../serverapi_openapi/api/integration_api.py | 20 +- .../serverapi_openapi/api/job_queue_api.py | 30 +- .../serverapi_openapi/api/license_api.py | 4 +- .../serverapi_openapi/api/list_item_api.py | 8 +- .../api/list_management_api.py | 28 +- .../api/list_permissions_api.py | 14 +- .../api/records___record_histories_api.py | 20 +- .../api/records___record_versions_api.py | 12 +- .../api/schema___attributes_api.py | 26 +- .../api/schema___configurations_api.py | 14 +- .../api/schema___constants_api.py | 12 +- .../api/schema___data_rules_api.py | 12 +- .../api/schema___databases_api.py | 12 +- ...___discrete_types___discrete_values_api.py | 16 +- .../api/schema___discrete_types_api.py | 14 +- .../api/schema___exporters_api.py | 34 +- .../api/schema___expressions_api.py | 12 +- .../api/schema___help_files_api.py | 32 +- .../api/schema___home_pages_api.py | 32 +- .../api/schema___layout_sections_api.py | 16 +- .../api/schema___layouts_api.py | 12 +- .../api/schema___parameters_api.py | 22 +- .../api/schema___profile_tables_api.py | 12 +- .../api/schema___profiles_api.py | 14 +- .../api/schema___record_link_groups_api.py | 14 +- .../api/schema___standard_names_api.py | 12 +- .../api/schema___subsets_api.py | 16 +- .../api/schema___tables_api.py | 16 +- .../api/schema___units_api.py | 30 +- .../serverapi_openapi/api/schema_api.py | 4 +- .../serverapi_openapi/api/search_api.py | 14 +- .../api/selection_searches_api.py | 14 +- .../serverapi_openapi/api/status_api.py | 4 +- .../serverapi_openapi/models/__init__.py | 5 +- .../models/folderguid_files_body.py | 48 +-- .../models/folderguid_files_body1.py | 48 +-- .../models/folderguid_files_body2.py | 48 +-- .../granta_server_api_admin_mi_version.py | 73 ++-- ...nta_server_api_aggregations_aggregation.py | 10 +- ..._api_aggregations_aggregation_criterion.py | 10 +- ...rver_api_aggregations_aggregation_datum.py | 10 +- ...ggregations_aggregation_datum_criterion.py | 10 +- ...ions_aggregation_datum_exists_criterion.py | 29 +- ...r_api_aggregations_aggregations_request.py | 51 +-- ..._api_aggregations_aggregations_response.py | 31 +- ..._api_aggregations_attribute_aggregation.py | 69 ++-- ...gations_attribute_aggregation_criterion.py | 69 ++-- ..._attribute_aggregation_exists_criterion.py | 55 +-- ...s_attribute_aggregation_value_criterion.py | 53 +-- ...gregations_attribute_exists_aggregation.py | 32 +- ...ggregations_attribute_value_aggregation.py | 56 +-- ..._api_aggregations_date_time_aggregation.py | 48 +-- ...s_date_time_aggregation_datum_criterion.py | 16 +- ...h_histogram_aggregation_datum_criterion.py | 55 +-- ...h_histogram_aggregation_datum_criterion.py | 48 +-- ...er_api_aggregations_date_time_histogram.py | 28 +- ...gations_date_time_histogram_aggregation.py | 40 ++- ...e_histogram_aggregation_datum_criterion.py | 37 +- ...aggregations_date_time_histogram_bucket.py | 48 +-- ..._aggregations_discrete_text_aggregation.py | 37 +- ...screte_text_aggregation_datum_criterion.py | 51 +-- ...gregations_float_functional_aggregation.py | 60 ++-- ..._functional_aggregation_datum_criterion.py | 37 +- ...float_functional_grid_graph_aggregation.py | 123 ++++--- ...oat_functional_series_graph_aggregation.py | 123 ++++--- ..._api_aggregations_free_text_aggregation.py | 51 +-- ...gations_free_text_aggregation_criterion.py | 112 +++--- ...ranta_server_api_aggregations_histogram.py | 31 +- ...erver_api_aggregations_histogram_bucket.py | 64 ++-- ...er_api_aggregations_integer_aggregation.py | 48 +-- ...ons_integer_aggregation_datum_criterion.py | 16 +- ...h_histogram_aggregation_datum_criterion.py | 54 +-- ...regations_integer_histogram_aggregation.py | 35 +- ...r_histogram_aggregation_datum_criterion.py | 37 +- ...erver_api_aggregations_link_aggregation.py | 34 +- ...ations_link_aggregation_datum_criterion.py | 36 +- ...i_aggregations_local_column_aggregation.py | 65 ++-- ...ions_local_column_aggregation_criterion.py | 42 +-- ...cal_column_aggregation_exists_criterion.py | 49 ++- ...ocal_column_aggregation_value_criterion.py | 47 ++- ...gations_local_column_exists_aggregation.py | 30 +- ...egations_local_column_value_aggregation.py | 54 +-- ...er_api_aggregations_logical_aggregation.py | 38 ++- ...ons_logical_aggregation_datum_criterion.py | 16 +- ...rver_api_aggregations_point_aggregation.py | 48 +-- ...tions_point_aggregation_datum_criterion.py | 16 +- ...h_histogram_aggregation_datum_criterion.py | 54 +-- ...ggregations_point_histogram_aggregation.py | 35 +- ...t_histogram_aggregation_datum_criterion.py | 37 +- ...rver_api_aggregations_range_aggregation.py | 48 +-- ...tions_range_aggregation_datum_criterion.py | 16 +- ...h_histogram_aggregation_datum_criterion.py | 54 +-- ...ggregations_range_histogram_aggregation.py | 35 +- ...e_histogram_aggregation_datum_criterion.py | 37 +- ...api_aggregations_short_text_aggregation.py | 37 +- ..._short_text_aggregation_datum_criterion.py | 51 +-- ...server_api_aggregations_term_with_count.py | 45 +-- ...ions_value_with_count_of_system_boolean.py | 48 +-- ...gations_value_with_count_of_system_guid.py | 48 +-- ...ations_value_with_count_of_system_int32.py | 48 +-- .../granta_server_api_all_values_specifier.py | 16 +- ...r_api_app_name_license_checkout_request.py | 26 +- ..._api_app_name_license_checkout_response.py | 31 +- ...er_api_app_name_license_checkout_result.py | 45 +-- ...erver_api_async_jobs_create_job_request.py | 145 ++++---- ...anta_server_api_async_jobs_current_user.py | 64 ++-- ...server_api_async_jobs_get_jobs_response.py | 51 +-- .../granta_server_api_async_jobs_job.py | 274 ++++++++------- ...server_api_async_jobs_processing_config.py | 92 +++-- ...ver_api_async_jobs_resubmit_job_request.py | 58 ++-- ...erver_api_async_jobs_update_job_request.py | 79 +++-- ...granta_server_api_data_applicable_datum.py | 16 +- .../granta_server_api_data_date_time_datum.py | 26 +- .../models/granta_server_api_data_datum.py | 10 +- .../granta_server_api_data_discrete_datum.py | 28 +- ..._api_data_discrete_parameter_with_value.py | 26 +- ...ver_api_data_export_attribute_to_export.py | 42 +-- ...ver_api_data_export_data_export_request.py | 68 ++-- ...er_api_data_export_data_export_response.py | 30 +- ...api_data_export_datums_applicable_datum.py | 28 +- ...rver_api_data_export_datums_binary_data.py | 74 ++-- ...er_api_data_export_datums_boolean_datum.py | 49 +-- ..._api_data_export_datums_date_time_datum.py | 49 +-- ...nta_server_api_data_export_datums_datum.py | 71 ++-- ...r_api_data_export_datums_discrete_datum.py | 50 +-- ...export_datums_discrete_functional_datum.py | 71 ++-- ...t_datums_discrete_functional_grid_datum.py | 59 ++-- ...datums_discrete_functional_series_datum.py | 61 ++-- ..._data_export_datums_discrete_grid_point.py | 47 +-- ..._api_data_export_datums_discrete_series.py | 48 +-- ...ata_export_datums_discrete_series_point.py | 64 ++-- ...erver_api_data_export_datums_file_datum.py | 54 +-- ...ta_export_datums_float_functional_datum.py | 106 +++--- ...ata_export_datums_functional_grid_datum.py | 69 ++-- ...a_export_datums_functional_series_datum.py | 126 ++++--- ...erver_api_data_export_datums_grid_point.py | 66 ++-- ...server_api_data_export_datums_hyperlink.py | 60 ++-- ..._api_data_export_datums_hyperlink_datum.py | 53 +-- ...erver_api_data_export_datums_link_datum.py | 30 +- ...data_export_datums_linked_records_datum.py | 193 ++++++----- ..._api_data_export_datums_long_text_datum.py | 46 +-- ...data_export_datums_not_applicable_datum.py | 49 +-- ...er_api_data_export_datums_numeric_datum.py | 49 +-- ..._api_data_export_datums_parameter_value.py | 66 ++-- ...er_api_data_export_datums_picture_datum.py | 54 +-- ...nta_server_api_data_export_datums_point.py | 47 +-- ...rver_api_data_export_datums_point_datum.py | 86 +++-- ...nta_server_api_data_export_datums_range.py | 86 +++-- ...rver_api_data_export_datums_range_datum.py | 86 +++-- ...export_datums_rollup_count_rollup_datum.py | 51 +-- ...port_datums_rollup_numeric_rollup_datum.py | 67 ++-- ..._data_export_datums_rollup_rollup_datum.py | 85 ++--- ...export_datums_rollup_value_rollup_datum.py | 48 +-- ...xport_datums_rollup_values_rollup_datum.py | 64 ++-- ...ta_server_api_data_export_datums_series.py | 72 ++-- ...ver_api_data_export_datums_series_point.py | 83 +++-- ...api_data_export_datums_short_text_datum.py | 46 +-- ...er_api_data_export_datums_tabular_datum.py | 87 ++--- ...rver_api_data_export_datums_tabular_row.py | 144 ++++---- ...er_api_data_export_datums_unknown_datum.py | 28 +- ...xport_failures_attribute_export_failure.py | 34 +- ...ort_export_failures_attribute_reference.py | 52 +-- ...rt_export_failures_datum_export_failure.py | 28 +- ..._export_export_failures_datum_reference.py | 54 +-- ...a_export_export_failures_export_failure.py | 26 +- ...ort_export_failures_link_export_failure.py | 28 +- ...a_export_export_failures_link_reference.py | 68 ++-- ...t_export_failures_record_export_failure.py | 30 +- ...t_export_failures_rollup_export_failure.py | 28 +- ...export_export_failures_rollup_reference.py | 60 ++-- ...pi_data_export_link_attribute_to_export.py | 232 ++++++++----- ...ta_export_linked_record_export_behavior.py | 86 +++-- ...ort_properties_created_by_user_property.py | 32 +- ...export_properties_created_date_property.py | 35 +- ...export_properties_database_key_property.py | 32 +- ...ta_export_properties_full_name_property.py | 32 +- ...operties_last_modified_by_user_property.py | 34 +- ..._properties_last_modified_date_property.py | 39 ++- ...ver_api_data_export_properties_property.py | 10 +- ...export_properties_record_color_property.py | 35 +- ..._export_properties_record_guid_property.py | 35 +- ...properties_record_history_guid_property.py | 39 ++- ...erties_record_history_identity_property.py | 39 ++- ...ort_properties_record_identity_property.py | 35 +- ..._export_properties_record_type_property.py | 37 +- ...xport_properties_released_date_property.py | 32 +- ...a_export_properties_short_name_property.py | 32 +- ...a_export_properties_table_guid_property.py | 35 +- ...port_properties_table_identity_property.py | 35 +- ...a_export_properties_table_name_property.py | 32 +- ...port_properties_version_number_property.py | 35 +- ...xport_properties_version_state_property.py | 35 +- ...server_api_data_export_record_with_data.py | 91 ++--- ..._data_export_simple_attribute_to_export.py | 74 ++-- .../granta_server_api_data_hyperlink_datum.py | 42 ++- .../granta_server_api_data_integer_datum.py | 26 +- .../granta_server_api_data_logical_datum.py | 26 +- .../granta_server_api_data_long_text_datum.py | 26 +- ...ta_server_api_data_not_applicable_datum.py | 16 +- ...r_api_data_numeric_parameter_with_value.py | 47 ++- ...ta_server_api_data_parameter_with_value.py | 18 +- ...granta_server_api_data_point_data_value.py | 74 ++-- .../granta_server_api_data_point_datum.py | 36 +- .../granta_server_api_data_range_datum.py | 129 ++++--- .../granta_server_api_data_rich_text_value.py | 26 +- ...granta_server_api_data_short_text_datum.py | 26 +- ...erver_api_data_significant_figures_info.py | 52 ++- .../granta_server_api_discrete_value.py | 42 +-- ...fication_data_modification_error_detail.py | 18 +- ...n_in_use_data_modification_error_detail.py | 61 ++-- ...s_deletion_attribute_deletion_exception.py | 67 ++-- ...ns_deletion_constant_deletion_exception.py | 67 ++-- ...letion_discrete_type_deletion_exception.py | 67 ++-- ...etion_discrete_value_deletion_exception.py | 67 ++-- ...s_deletion_parameter_deletion_exception.py | 67 ++-- ...tion_parameter_value_deletion_exception.py | 67 ++-- ...tions_deletion_table_deletion_exception.py | 67 ++-- ...anta_server_api_exceptions_error_detail.py | 26 +- ...d_history_record_history_copy_exception.py | 66 ++-- ...d_history_record_history_move_exception.py | 66 ++-- ...fiable_record_version_control_exception.py | 69 ++-- ...ntrol_invalid_parent_state_error_detail.py | 18 +- ...trol_invalid_version_state_error_detail.py | 37 +- ...rol_not_the_latest_version_error_detail.py | 39 ++- ...sion_control_not_versioned_error_detail.py | 18 +- ...elease_record_version_control_exception.py | 69 ++-- ...release_table_version_control_exception.py | 69 ++-- ...on_control_version_control_error_detail.py | 18 +- ...thdraw_record_version_control_exception.py | 69 ++-- ...nta_server_api_exclude_values_specifier.py | 52 +-- ...ver_api_functional_datum_parameter_info.py | 222 +++++++----- .../granta_server_api_index_record_failure.py | 88 +++-- ..._export_integration_data_export_request.py | 36 +- ...ntegration_data_export_record_reference.py | 49 +-- ...i_integration_integration_schema_status.py | 267 ++++++++------- ...server_api_integration_schema_attribute.py | 233 +++++++------ ...er_api_integration_schema_discrete_type.py | 77 +++-- ...ma_guid_only_schema_guid_only_attribute.py | 201 ++++++----- ...uid_only_schema_guid_only_discrete_type.py | 61 ++-- ...ma_guid_only_integration_parameter_info.py | 155 +++++---- ..._of_granta_server_api_object_identifier.py | 186 +++++----- ...chema_guid_only_schema_guid_only_layout.py | 44 +-- ..._of_granta_server_api_object_identifier.py | 97 +++--- ..._of_granta_server_api_object_identifier.py | 94 +++--- ...ation_schema_integration_parameter_info.py | 169 ++++++---- ..._of_granta_server_api_object_identifier.py | 186 +++++----- ...ta_server_api_integration_schema_layout.py | 62 ++-- ..._of_granta_server_api_object_identifier.py | 113 ++++--- ..._api_integration_schema_security_groups.py | 42 +-- ..._of_granta_server_api_object_identifier.py | 94 +++--- ...a_server_api_lists_dto_create_list_item.py | 60 ++-- ...server_api_lists_dto_create_record_list.py | 151 +++++---- ...lists_dto_create_record_list_items_info.py | 20 +- ...r_api_lists_dto_delete_record_list_item.py | 44 ++- ..._api_lists_dto_delete_record_list_items.py | 20 +- ...er_api_lists_dto_list_boolean_criterion.py | 60 ++-- ...nta_server_api_lists_dto_list_criterion.py | 10 +- .../granta_server_api_lists_dto_list_item.py | 68 ++-- ...nta_server_api_lists_dto_paging_options.py | 42 +-- ...server_api_lists_dto_record_list_header.py | 197 +++++++---- ..._api_lists_dto_record_list_headers_info.py | 20 +- ...er_api_lists_dto_record_list_items_info.py | 20 +- ..._lists_dto_record_list_permission_flags.py | 52 ++- ..._lists_dto_record_list_search_criterion.py | 208 ++++++------ ...r_api_lists_dto_record_list_search_info.py | 20 +- ...pi_lists_dto_record_list_search_request.py | 67 ++-- ...api_lists_dto_record_list_search_result.py | 28 +- ...sts_dto_record_list_search_results_info.py | 20 +- ...a_server_api_lists_dto_response_options.py | 75 ++-- ...dto_update_record_list_permission_flags.py | 44 ++- ...lists_dto_update_record_list_properties.py | 119 ++++--- ...er_api_lists_dto_update_user_permission.py | 28 +- ..._lists_dto_update_user_permissions_info.py | 22 +- ...anta_server_api_lists_dto_user_or_group.py | 34 +- ...ta_server_api_lists_dto_user_permission.py | 38 ++- ...ver_api_lists_dto_user_permissions_info.py | 22 +- .../granta_server_api_no_values_specifier.py | 16 +- .../granta_server_api_object_identifier.py | 58 ++-- .../granta_server_api_parameter_info.py | 153 +++++---- ...ds_record_histories_copy_record_history.py | 59 ++-- ..._record_histories_create_record_history.py | 102 +++--- ...ds_record_histories_move_record_history.py | 31 +- ...records_record_histories_record_history.py | 78 +++-- ...ds_record_histories_slim_record_history.py | 18 +- ..._records_record_versions_record_version.py | 144 +++++--- ...rds_record_versions_slim_record_version.py | 42 ++- ..._server_api_schema_attributes_attribute.py | 109 +++--- ...ema_attributes_attribute_attribute_info.py | 152 ++++++--- ..._attributes_attribute_validate_response.py | 68 ++-- ...r_api_schema_attributes_attributes_info.py | 20 +- ...utes_create_attributes_create_attribute.py | 100 +++--- ...e_attributes_create_date_time_attribute.py | 34 +- ...te_attributes_create_discrete_attribute.py | 61 ++-- ...es_create_discrete_functional_attribute.py | 56 +-- ...discrete_functional_attribute_parameter.py | 36 +- ...create_attributes_create_file_attribute.py | 34 +- ...butes_create_float_functional_attribute.py | 104 +++--- ...te_float_functional_attribute_parameter.py | 83 +++-- ...e_attributes_create_hyperlink_attribute.py | 34 +- ...ate_attributes_create_integer_attribute.py | 69 ++-- ...ate_attributes_create_logical_attribute.py | 34 +- ...e_attributes_create_long_text_attribute.py | 34 +- ...butes_create_maths_functional_attribute.py | 192 ++++++----- ...ate_attributes_create_picture_attribute.py | 34 +- ...reate_attributes_create_point_attribute.py | 108 +++--- ...reate_attributes_create_range_attribute.py | 71 ++-- ..._attributes_create_short_text_attribute.py | 77 +++-- ...ate_attributes_create_tabular_attribute.py | 141 +++++--- ...i_schema_attributes_date_time_attribute.py | 38 ++- ...pi_schema_attributes_discrete_attribute.py | 54 +-- ...ttributes_discrete_functional_attribute.py | 60 ++-- ...discrete_functional_attribute_parameter.py | 50 +-- ...er_api_schema_attributes_file_attribute.py | 38 ++- ...a_attributes_float_functional_attribute.py | 81 +++-- ...es_float_functional_attribute_parameter.py | 99 +++--- ...i_schema_attributes_hyperlink_attribute.py | 38 ++- ...api_schema_attributes_integer_attribute.py | 46 +-- ...api_schema_attributes_logical_attribute.py | 38 ++- ...i_schema_attributes_long_text_attribute.py | 38 ++- ...ver_api_schema_attributes_maths_content.py | 103 ++++-- ...a_attributes_maths_functional_attribute.py | 129 ++++--- ...api_schema_attributes_picture_attribute.py | 38 ++- ...r_api_schema_attributes_point_attribute.py | 81 +++-- ...r_api_schema_attributes_range_attribute.py | 59 ++-- ..._schema_attributes_short_text_attribute.py | 70 ++-- ...api_schema_attributes_tabular_attribute.py | 100 ++++-- ...ema_attributes_tabular_attribute_target.py | 98 ++++-- ...utes_update_attributes_update_attribute.py | 127 ++++--- ...e_attributes_update_date_time_attribute.py | 40 ++- ...te_attributes_update_discrete_attribute.py | 59 ++-- ...es_update_discrete_functional_attribute.py | 66 ++-- ...discrete_functional_attribute_parameter.py | 52 +-- ...update_attributes_update_file_attribute.py | 40 ++- ...butes_update_float_functional_attribute.py | 106 +++--- ...te_float_functional_attribute_parameter.py | 96 +++--- ...e_attributes_update_hyperlink_attribute.py | 40 ++- ...ate_attributes_update_integer_attribute.py | 59 ++-- ...ate_attributes_update_logical_attribute.py | 40 ++- ...e_attributes_update_long_text_attribute.py | 40 ++- ..._update_attributes_update_maths_content.py | 143 +++++--- ...butes_update_maths_functional_attribute.py | 204 ++++++----- ...ate_attributes_update_picture_attribute.py | 40 ++- ...pdate_attributes_update_point_attribute.py | 98 +++--- ...pdate_attributes_update_range_attribute.py | 61 ++-- ..._attributes_update_short_text_attribute.py | 83 +++-- ...ate_attributes_update_tabular_attribute.py | 125 ++++--- ...a_attributes_validate_attribute_request.py | 44 +-- ...api_schema_configurations_configuration.py | 58 ++-- ...hema_configurations_configurations_info.py | 20 +- ...ema_configurations_create_configuration.py | 61 ++-- ...ema_configurations_update_configuration.py | 83 +++-- ...ta_server_api_schema_constants_constant.py | 55 +-- ...ver_api_schema_constants_constants_info.py | 29 +- ...er_api_schema_constants_create_constant.py | 61 ++-- ...er_api_schema_constants_update_constant.py | 83 +++-- ..._api_schema_data_rules_create_data_rule.py | 55 +-- ..._server_api_schema_data_rules_data_rule.py | 56 ++- ...r_api_schema_data_rules_data_rules_info.py | 31 +- ..._api_schema_data_rules_update_data_rule.py | 88 +++-- .../granta_server_api_schema_database.py | 226 +++++++------ ...granta_server_api_schema_databases_info.py | 29 +- ...ema_discrete_types_create_discrete_type.py | 56 +-- ...api_schema_discrete_types_discrete_type.py | 34 +- ...hema_discrete_types_discrete_types_info.py | 30 +- ...ema_discrete_types_update_discrete_type.py | 67 ++-- ...a_discrete_values_create_discrete_value.py | 37 +- ...i_schema_discrete_values_discrete_value.py | 26 +- ...ma_discrete_values_discrete_values_info.py | 28 +- ...ete_values_replace_discrete_values_info.py | 30 +- ...a_discrete_values_update_discrete_value.py | 48 +-- ...pi_schema_expressions_create_expression.py | 66 ++-- ...erver_api_schema_expressions_expression.py | 97 ++++-- ...api_schema_expressions_expressions_info.py | 30 +- ...pi_schema_expressions_update_expression.py | 90 ++--- ...a_server_api_schema_files_create_folder.py | 45 ++- ..._api_schema_files_exporter_refetch_info.py | 45 +-- ...nta_server_api_schema_files_file_header.py | 66 ++-- ...anta_server_api_schema_files_files_info.py | 31 +- .../granta_server_api_schema_files_folder.py | 42 ++- ...ta_server_api_schema_files_folders_info.py | 30 +- ...ranta_server_api_schema_files_move_file.py | 18 +- ...nta_server_api_schema_files_move_folder.py | 18 +- ...nta_server_api_schema_files_update_file.py | 64 ++-- ...a_server_api_schema_files_update_folder.py | 48 +-- ...server_api_schema_layouts_create_layout.py | 37 +- ...pi_schema_layouts_create_layout_section.py | 37 +- ..._api_schema_layouts_full_layout_section.py | 34 +- ...granta_server_api_schema_layouts_layout.py | 46 ++- ...pi_schema_layouts_layout_attribute_item.py | 86 +++-- ...a_server_api_schema_layouts_layout_item.py | 36 +- ...ver_api_schema_layouts_layout_link_item.py | 103 +++--- ...erver_api_schema_layouts_layout_section.py | 36 +- ...api_schema_layouts_layout_sections_info.py | 28 +- ...pi_schema_layouts_layout_tabular_column.py | 44 ++- ..._server_api_schema_layouts_layouts_info.py | 31 +- ...youts_new_layout_association_chain_item.py | 44 ++- ...youts_new_layout_association_chain_link.py | 49 ++- ...chema_layouts_new_layout_attribute_item.py | 102 +++--- ...uts_new_layout_cross_database_link_item.py | 48 ++- ...rver_api_schema_layouts_new_layout_item.py | 29 +- ...ema_layouts_new_layout_record_link_item.py | 28 +- ...hema_layouts_new_layout_smart_link_item.py | 47 ++- ...pi_schema_layouts_reorder_sections_info.py | 20 +- ...server_api_schema_layouts_update_layout.py | 48 +-- ..._api_schema_parameters_continuous_range.py | 42 +-- ...ma_parameters_create_discrete_parameter.py | 38 ++- ...ameters_create_discrete_parameter_value.py | 28 +- ...ema_parameters_create_numeric_parameter.py | 87 +++-- ...rameters_create_numeric_parameter_value.py | 44 ++- ..._api_schema_parameters_create_parameter.py | 63 ++-- ...chema_parameters_create_parameter_value.py | 29 +- ...pi_schema_parameters_discrete_parameter.py | 38 ++- ...a_parameters_discrete_parameter_content.py | 47 ++- ...ema_parameters_discrete_parameter_value.py | 26 +- ...er_api_schema_parameters_discrete_range.py | 22 +- ...api_schema_parameters_numeric_parameter.py | 87 +++-- ...ma_parameters_numeric_parameter_content.py | 42 ++- ...hema_parameters_numeric_parameter_value.py | 42 ++- ..._server_api_schema_parameters_parameter.py | 62 ++-- ...api_schema_parameters_parameter_content.py | 18 +- ...r_api_schema_parameters_parameter_value.py | 18 +- ...r_api_schema_parameters_parameters_info.py | 31 +- ...hema_parameters_update_continuous_range.py | 42 +-- ...ma_parameters_update_discrete_parameter.py | 32 +- ...eters_update_discrete_parameter_content.py | 61 ++-- ...ameters_update_discrete_parameter_value.py | 39 ++- ...schema_parameters_update_discrete_range.py | 22 +- ...ema_parameters_update_numeric_parameter.py | 98 +++--- ...meters_update_numeric_parameter_content.py | 55 +-- ...rameters_update_numeric_parameter_value.py | 55 +-- ..._api_schema_parameters_update_parameter.py | 85 +++-- ...ema_parameters_update_parameter_content.py | 18 +- ...chema_parameters_update_parameter_value.py | 29 +- ...ema_profile_tables_create_profile_table.py | 77 +++-- ...api_schema_profile_tables_profile_table.py | 148 ++++---- ...hema_profile_tables_profile_tables_info.py | 28 +- ...ema_profile_tables_update_profile_table.py | 61 ++-- ...r_api_schema_profiles_all_profiles_info.py | 53 +-- ...rver_api_schema_profiles_create_profile.py | 85 ++--- ...anta_server_api_schema_profiles_profile.py | 110 +++--- ...chema_profiles_update_all_profiles_info.py | 54 +-- ..._schema_profiles_update_default_profile.py | 18 +- ...rver_api_schema_profiles_update_profile.py | 113 ++++--- ..._record_link_groups_attribute_link_pair.py | 54 +-- ..._link_groups_create_attribute_link_pair.py | 30 +- ...create_cross_database_record_link_group.py | 49 +-- ...groups_create_dynamic_record_link_group.py | 80 +++-- ...rd_link_groups_create_record_link_group.py | 53 +-- ..._groups_create_static_record_link_group.py | 49 +-- ...groups_cross_database_record_link_group.py | 44 ++- ...d_link_groups_dynamic_record_link_group.py | 66 ++-- ...api_schema_record_link_groups_link_info.py | 26 +- ...i_schema_record_link_groups_link_target.py | 60 ++-- ...ma_record_link_groups_record_link_group.py | 84 +++-- ...ord_link_groups_record_link_groups_info.py | 28 +- ...rd_link_groups_static_record_link_group.py | 44 ++- ...update_cross_database_record_link_group.py | 51 +-- ...groups_update_dynamic_record_link_group.py | 94 ++++-- ...rd_link_groups_update_record_link_group.py | 67 ++-- ..._groups_update_static_record_link_group.py | 51 +-- ...api_schema_slim_entities_slim_attribute.py | 65 ++-- ...schema_slim_entities_slim_configuration.py | 26 +- ..._api_schema_slim_entities_slim_constant.py | 26 +- ..._api_schema_slim_entities_slim_database.py | 140 ++++---- ...er_api_schema_slim_entities_slim_entity.py | 18 +- ...pi_schema_slim_entities_slim_expression.py | 26 +- ...rver_api_schema_slim_entities_slim_file.py | 26 +- ...er_api_schema_slim_entities_slim_layout.py | 36 +- ...chema_slim_entities_slim_layout_section.py | 24 +- ..._schema_slim_entities_slim_named_entity.py | 26 +- ...r_api_schema_slim_entities_slim_objects.py | 28 +- ...r_api_schema_slim_entities_slim_profile.py | 66 ++-- ...schema_slim_entities_slim_profile_table.py | 78 +++-- ...ma_slim_entities_slim_record_link_group.py | 86 +++-- ...er_api_schema_slim_entities_slim_subset.py | 36 +- ...ver_api_schema_slim_entities_slim_table.py | 64 +++- ...rver_api_schema_slim_entities_slim_unit.py | 26 +- ...i_schema_slim_entities_slim_unit_system.py | 36 +- ...ema_standard_names_create_standard_name.py | 111 +++--- ...api_schema_standard_names_standard_name.py | 78 +++-- ...hema_standard_names_standard_names_info.py | 30 +- ...ema_standard_names_update_standard_name.py | 122 ++++--- ...ma_subsets_add_record_history_to_subset.py | 39 ++- ...server_api_schema_subsets_create_subset.py | 61 ++-- ...bsets_remove_record_history_from_subset.py | 20 +- ...granta_server_api_schema_subsets_subset.py | 62 ++-- ..._server_api_schema_subsets_subsets_info.py | 31 +- ...server_api_schema_subsets_update_subset.py | 72 ++-- ...a_server_api_schema_tables_create_table.py | 83 +++-- .../granta_server_api_schema_tables_table.py | 142 +++++--- ...ta_server_api_schema_tables_tables_info.py | 31 +- ...a_server_api_schema_tables_update_table.py | 132 +++++--- ..._create_linked_attribute_tabular_column.py | 52 +-- ...mns_create_linked_column_tabular_column.py | 50 +-- ...mns_create_linked_record_tabular_column.py | 42 +-- ...s_create_local_date_time_tabular_column.py | 65 ++-- ...ns_create_local_discrete_tabular_column.py | 73 ++-- ...olumns_create_local_file_tabular_column.py | 65 ++-- ...s_create_local_hyperlink_tabular_column.py | 65 ++-- ...mns_create_local_integer_tabular_column.py | 65 ++-- ...mns_create_local_logical_tabular_column.py | 65 ++-- ...s_create_local_long_text_tabular_column.py | 65 ++-- ...mns_create_local_picture_tabular_column.py | 65 ++-- ...lumns_create_local_point_tabular_column.py | 86 +++-- ...lumns_create_local_range_tabular_column.py | 86 +++-- ..._create_local_short_text_tabular_column.py | 65 ++-- ...e_tabular_columns_create_tabular_column.py | 149 +++++--- ...columns_linked_attribute_tabular_column.py | 42 ++- ...ar_columns_linked_column_tabular_column.py | 50 ++- ...ar_columns_linked_record_tabular_column.py | 32 +- ..._columns_local_date_time_tabular_column.py | 44 ++- ...r_columns_local_discrete_tabular_column.py | 52 ++- ...bular_columns_local_file_tabular_column.py | 44 ++- ..._columns_local_hyperlink_tabular_column.py | 44 ++- ...ar_columns_local_integer_tabular_column.py | 44 ++- ...ar_columns_local_logical_tabular_column.py | 44 ++- ..._columns_local_long_text_tabular_column.py | 44 ++- ...ar_columns_local_picture_tabular_column.py | 44 ++- ...ular_columns_local_point_tabular_column.py | 65 ++-- ...ular_columns_local_range_tabular_column.py | 65 ++-- ...columns_local_short_text_tabular_column.py | 44 ++- ...i_schema_tabular_columns_tabular_column.py | 84 +++-- ...ular_columns_unavailable_tabular_column.py | 32 +- ..._update_linked_attribute_tabular_column.py | 66 ++-- ...mns_update_linked_column_tabular_column.py | 68 ++-- ...mns_update_linked_record_tabular_column.py | 44 +-- ...s_update_local_date_time_tabular_column.py | 67 ++-- ...ns_update_local_discrete_tabular_column.py | 91 +++-- ...olumns_update_local_file_tabular_column.py | 67 ++-- ...s_update_local_hyperlink_tabular_column.py | 67 ++-- ...mns_update_local_integer_tabular_column.py | 67 ++-- ...mns_update_local_logical_tabular_column.py | 67 ++-- ...s_update_local_long_text_tabular_column.py | 67 ++-- ...mns_update_local_picture_tabular_column.py | 67 ++-- ...lumns_update_local_point_tabular_column.py | 88 +++-- ...lumns_update_local_range_tabular_column.py | 88 +++-- ..._update_local_short_text_tabular_column.py | 67 ++-- ...e_tabular_columns_update_tabular_column.py | 160 +++++---- ...nta_server_api_schema_units_create_unit.py | 61 ++-- ...ver_api_schema_units_create_unit_system.py | 37 +- .../granta_server_api_schema_units_unit.py | 50 +-- ...server_api_schema_units_unit_equivalent.py | 34 +- ..._api_schema_units_unit_equivalents_info.py | 28 +- ...ta_server_api_schema_units_unit_mapping.py | 26 +- ...nta_server_api_schema_units_unit_system.py | 46 ++- ...rver_api_schema_units_unit_systems_info.py | 30 +- ...anta_server_api_schema_units_unit_usage.py | 60 ++-- ...anta_server_api_schema_units_units_info.py | 31 +- ...nta_server_api_schema_units_update_unit.py | 83 +++-- ...ver_api_schema_units_update_unit_system.py | 48 +-- ...ranta_server_api_schema_update_database.py | 133 ++++---- ...a_server_api_search_attribute_criterion.py | 69 ++-- ...r_api_search_attribute_exists_criterion.py | 56 +-- ..._api_search_attribute_matches_criterion.py | 55 +-- ...arch_attribute_not_applicable_criterion.py | 32 +- ...ver_api_search_attribute_sort_criterion.py | 92 ++--- ...nta_server_api_search_boolean_criterion.py | 74 ++-- .../granta_server_api_search_boost_by_guid.py | 48 +-- ...nta_server_api_search_boost_by_identity.py | 48 +-- .../granta_server_api_search_criterion.py | 10 +- ...er_api_search_date_time_datum_criterion.py | 48 +-- ...ranta_server_api_search_datum_criterion.py | 10 +- ...erver_api_search_datum_exists_criterion.py | 10 +- ...screte_functional_range_datum_criterion.py | 69 ++-- ...crete_functional_values_datum_criterion.py | 73 ++-- ...pi_search_discrete_guid_datum_criterion.py | 35 +- ...ch_discrete_guid_values_datum_criterion.py | 64 ++-- ...earch_discrete_identity_datum_criterion.py | 35 +- ...iscrete_identity_values_datum_criterion.py | 64 ++-- ...arch_discrete_parameter_name_constraint.py | 52 +-- ...rch_discrete_parameter_value_constraint.py | 52 +-- ...i_search_discrete_range_datum_criterion.py | 48 +-- ...pi_search_discrete_text_datum_criterion.py | 56 +-- ...ch_discrete_text_values_datum_criterion.py | 90 ++--- ..._server_api_search_double_sorting_value.py | 35 +- ..._server_api_search_file_datum_criterion.py | 32 +- ...search_float_functional_datum_criterion.py | 69 ++-- ..._float_functional_graph_datum_criterion.py | 186 +++++----- ...a_server_api_search_free_text_criterion.py | 147 ++++---- ...er_api_search_hyperlink_datum_criterion.py | 32 +- .../granta_server_api_search_index_status.py | 177 +++++----- ...rver_api_search_integer_datum_criterion.py | 48 +-- ..._server_api_search_link_datum_criterion.py | 229 +++++++------ ..._api_search_link_exists_datum_criterion.py | 191 ++++++----- ...erver_api_search_local_column_criterion.py | 48 +-- ...pi_search_local_column_exists_criterion.py | 36 +- ...i_search_local_column_matches_criterion.py | 36 +- ...h_local_column_not_applicable_criterion.py | 28 +- ...rver_api_search_logical_datum_criterion.py | 35 +- ...ta_server_api_search_long_sorting_value.py | 35 +- ...er_api_search_long_text_datum_criterion.py | 32 +- ...search_maths_functional_datum_criterion.py | 69 ++-- ...api_search_numeric_parameter_constraint.py | 106 +++--- ...granta_server_api_search_paging_options.py | 63 ++-- ..._server_api_search_parameter_constraint.py | 31 +- ...rver_api_search_picture_datum_criterion.py | 16 +- ...server_api_search_point_datum_criterion.py | 48 +-- ...server_api_search_range_datum_criterion.py | 48 +-- ...er_api_search_record_ancestor_criterion.py | 52 +-- ...d_ancestor_history_identities_criterion.py | 48 +-- ...api_search_record_list_member_criterion.py | 32 +- ...er_api_search_record_property_criterion.py | 65 ++-- ...i_search_record_property_sort_criterion.py | 65 ++-- ...r_api_search_record_reference_criterion.py | 102 +++--- ...rver_api_search_record_subset_criterion.py | 48 +-- ...ver_api_search_relevance_sort_criterion.py | 20 +- ...granta_server_api_search_search_request.py | 75 ++-- ...ranta_server_api_search_search_response.py | 70 ++-- .../granta_server_api_search_search_result.py | 319 ++++++++++-------- ...erver_api_search_search_results_request.py | 29 +- ...r_api_search_short_text_datum_criterion.py | 56 +-- ...pi_search_simple_datum_exists_criterion.py | 16 +- ...granta_server_api_search_sort_criterion.py | 31 +- .../granta_server_api_search_sorting_value.py | 10 +- ..._server_api_search_string_sorting_value.py | 32 +- ..._search_tabular_linking_value_criterion.py | 55 +-- ...election_searches_create_search_request.py | 49 +-- ..._selection_searches_find_search_request.py | 26 +- ..._selection_searches_save_search_request.py | 49 +-- ...er_api_selection_searches_search_detail.py | 74 ++-- ...api_selection_searches_selection_search.py | 224 ++++++------ ...er_api_selection_searches_user_or_group.py | 61 ++-- ...ta_server_api_specific_values_specifier.py | 48 +-- .../granta_server_api_value_specifier.py | 10 +- .../models/jobqueue_files_body.py | 29 +- .../models/json_patch_document.py | 67 ++-- .../tests/test_discriminators.py | 4 +- pom.xml | 2 +- 636 files changed, 21228 insertions(+), 14825 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/README.md b/ansys-grantami-serverapi-openapi/README.md index 3f1a8031..5df2a9aa 100644 --- a/ansys-grantami-serverapi-openapi/README.md +++ b/ansys-grantami-serverapi-openapi/README.md @@ -2,12 +2,11 @@ Autogenerated client library for the Granta MI Server API. -Direct use of this package is unsupported, please use [the PyGranta meta-package](https://grantami.docs.pyansys.com) instead. +Direct use of this package is unsupported. Use [the PyGranta meta-package](https://grantami.docs.pyansys.com) instead. This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project. ## License -The library is provided under the terms of the MIT license. You can find -the license text in the LICENSE file at the root of the repository. +The library is provided under the terms of the MIT license. The license text is provided in the LICENSE file at the root of the repository. diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index c30deade..2820e873 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -1,13 +1,14 @@ -# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.1 and should not be changed by hand. [[package]] name = "ansys-openapi-common" -version = "1.4.0" +version = "1.5.0" description = "Provides a helper to create sessions for use with Ansys OpenAPI clients." optional = false python-versions = ">=3.9,<4.0" files = [ - {file = "ansys_openapi_common-1.4.0-py3-none-any.whl", hash = "sha256:8ace675366cf78a5c940f67bca16194ef56cb00ae68e5a5183a96d5757861f12"}, + {file = "ansys_openapi_common-1.5.0-py3-none-any.whl", hash = "sha256:374de180ce7d26454fe8726032e834390d4af1961a737acc006651b7f8cc3f53"}, + {file = "ansys_openapi_common-1.5.0.tar.gz", hash = "sha256:1b4ffa0a7d87331cc053ab3e80d25e62426561783925e8bf7fb26d8300dd3ae9"}, ] [package.dependencies] @@ -662,4 +663,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" python-versions = "^3.9.0" -content-hash = "5bac5e343bf61fd70f575650b94b9ac190511b8818d6ffde07dc225a1158481c" +content-hash = "25403994c35e9eeb61829e9a8a7608b5ce430185f6842ecad191645923423a9a" diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 983f2f91..6596b69e 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 = "3.0.0.dev210" +version = "3.0.0.dev212" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] @@ -32,7 +32,7 @@ packages = [ [tool.poetry.dependencies] python = "^3.9.0" -ansys-openapi-common = "^1.4.0" +ansys-openapi-common = "^1.5.0" requests = "^2.26.0" python-dateutil = "^2.8.2" 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 51b5c827..7b2e831f 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 @@ -1,7 +1,7 @@ # flake8: noqa # import API ABC -from ansys.openapi.common import ApiBase # type: ignore[import-untyped] +from ansys.openapi.common import ApiBase # import apis into api package from .aggregation_api import AggregationApi diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py index 11a0af4a..df408fff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py @@ -26,7 +26,7 @@ from ..models import * -class AggregationApi(ApiBase): # type: ignore[misc] +class AggregationApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -130,7 +130,7 @@ def _database_aggregation_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAggregationsAggregationsResponse", 404: None, } @@ -264,7 +264,7 @@ def _database_aggregation_for_table_with_guid_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAggregationsAggregationsResponse", 404: None, } @@ -398,7 +398,7 @@ def _database_aggregation_for_table_with_identity_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAggregationsAggregationsResponse", 404: None, } @@ -502,7 +502,7 @@ def _integration_aggregation_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAggregationsAggregationsResponse", 404: None, } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py index 4ca6ec5b..efaeebf9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py @@ -26,7 +26,7 @@ from ..models import * -class DataApi(ApiBase): # type: ignore[misc] +class DataApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -141,7 +141,7 @@ def _get_datum_for_latest_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", 404: None, } @@ -282,7 +282,7 @@ def _get_datum_for_latest_from_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", 404: None, } @@ -423,7 +423,7 @@ def _get_datum_for_version_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", 404: None, } @@ -576,7 +576,7 @@ def _get_datum_for_version_from_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", 404: None, } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py index 34f6ea2d..6bbea870 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py @@ -26,7 +26,7 @@ from ..models import * -class DataExportApi(ApiBase): # type: ignore[misc] +class DataExportApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -130,7 +130,7 @@ def _export_data_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataExportDataExportResponse", 404: None, 403: None, @@ -235,7 +235,7 @@ def _export_data_from_integration_schema_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataExportDataExportResponse", 404: None, } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py index 56ad52c3..bccefa29 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py @@ -26,7 +26,7 @@ from ..models import * -class DatabaseApi(ApiBase): # type: ignore[misc] +class DatabaseApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -118,7 +118,7 @@ def _generate_schema_from_layout_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -225,7 +225,7 @@ def _generate_schema_from_layout_name_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -328,7 +328,7 @@ def _generate_schema_from_layout_name_with_table_name_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -435,7 +435,7 @@ def _generate_schema_from_layout_with_table_name_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -534,7 +534,7 @@ def _generate_schema_from_standard_names_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -624,7 +624,7 @@ def _generate_schema_from_standard_names_all_databases_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -718,7 +718,7 @@ def _generate_schema_from_table_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -812,7 +812,7 @@ def _generate_schema_from_table_name_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, @@ -904,7 +904,7 @@ def _get_status_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSearchIndexStatus", 403: None, 404: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py index f4bcf491..f86bb0e4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py @@ -26,7 +26,7 @@ from ..models import * -class IntegrationApi(ApiBase): # type: ignore[misc] +class IntegrationApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,7 +103,7 @@ def _add_schema_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", 400: None, 403: None, @@ -183,7 +183,7 @@ def _all_schema_status_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "dict(str, GrantaServerApiIntegrationIntegrationSchemaStatus)", } @@ -257,7 +257,7 @@ def _delete_schema_with_http_info(self, schema: "str", **kwargs: Any) -> Any: body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 204: None, 403: None, 404: None, @@ -356,7 +356,7 @@ def _get_schema_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", 404: None, } @@ -444,7 +444,7 @@ def _get_status_for_integration_schema_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiIntegrationIntegrationSchemaStatus", } @@ -545,7 +545,7 @@ def _schema_table_mappings_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]", 404: None, } @@ -643,7 +643,7 @@ def _schema_targets_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "list[GrantaServerApiIntegrationSchemaAttribute]", 404: None, } @@ -705,7 +705,7 @@ def _schemas_with_http_info(self, **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "list[str]", } @@ -808,7 +808,7 @@ def _update_schema_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py index c9fa5bd0..c27a2f30 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py @@ -26,7 +26,7 @@ from ..models import * -class JobQueueApi(ApiBase): # type: ignore[misc] +class JobQueueApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -101,7 +101,7 @@ def _create_job_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiAsyncJobsJob", } @@ -174,7 +174,7 @@ def _delete_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 204: None, 404: None, @@ -262,7 +262,7 @@ def _delete_jobs_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "list[str]", 422: None, 500: None, @@ -325,7 +325,7 @@ def _get_current_user_with_http_info(self, **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAsyncJobsCurrentUser", } @@ -402,7 +402,7 @@ def _get_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAsyncJobsJob", 404: None, } @@ -493,7 +493,7 @@ def _get_job_output_file_with_http_info( ["application/octet-stream"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "file", 404: None, } @@ -621,7 +621,7 @@ def _get_jobs_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAsyncJobsGetJobsResponse", } @@ -700,7 +700,7 @@ def _get_output_filenames_with_http_info(self, id: "str", **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "list[str]", 404: None, } @@ -762,7 +762,7 @@ def _get_processing_config_with_http_info(self, **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAsyncJobsProcessingConfig", } @@ -835,7 +835,7 @@ def _move_to_top_with_http_info(self, id: "str", **kwargs: Any) -> Any: body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 404: None, } @@ -915,7 +915,7 @@ def _restore_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAsyncJobsCreateJobRequest", 404: None, } @@ -1017,7 +1017,7 @@ def _resubmit_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAsyncJobsJob", 404: None, } @@ -1119,7 +1119,7 @@ def _update_job_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAsyncJobsJob", 404: None, } @@ -1199,7 +1199,7 @@ def _upload_file_with_http_info( # multipart/form-data request detected. Content-Type header will be # populated by openapi-common based on request content. - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "str", } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py index 574006ba..c6717592 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py @@ -26,7 +26,7 @@ from ..models import * -class LicenseApi(ApiBase): # type: ignore[misc] +class LicenseApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,7 +103,7 @@ def _checkout_app_license_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAppNameLicenseCheckoutResponse", } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py index a5729735..e77651af 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py @@ -26,7 +26,7 @@ from ..models import * -class ListItemApi(ApiBase): # type: ignore[misc] +class ListItemApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _add_items_to_list_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 202: "GrantaServerApiListsDtoRecordListItemsInfo", 400: None, 403: None, @@ -202,7 +202,7 @@ def _get_list_items_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListItemsInfo", 403: None, 404: None, @@ -307,7 +307,7 @@ def _remove_items_from_list_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 202: "GrantaServerApiListsDtoRecordListItemsInfo", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py index 82b9f03e..8bc5a950 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py @@ -26,7 +26,7 @@ from ..models import * -class ListManagementApi(ApiBase): # type: ignore[misc] +class ListManagementApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -94,7 +94,7 @@ def _copy_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> An ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiListsDtoRecordListHeader", 403: None, 404: None, @@ -184,7 +184,7 @@ def _create_list_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, @@ -261,7 +261,7 @@ def _delete_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -326,7 +326,7 @@ def _get_all_lists_with_http_info(self, **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListHeadersInfo", 403: None, } @@ -408,7 +408,7 @@ def _get_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListHeader", 403: None, 404: None, @@ -501,7 +501,7 @@ def _get_record_list_search_results_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListSearchResultsInfo", 403: None, 404: None, @@ -587,7 +587,7 @@ def _publish_list_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, @@ -673,7 +673,7 @@ def _request_approval_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, @@ -759,7 +759,7 @@ def _reset_awaiting_approval_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, @@ -843,7 +843,7 @@ def _revise_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, @@ -936,7 +936,7 @@ def _run_record_lists_search_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiListsDtoRecordListSearchInfo", 400: None, 403: None, @@ -1021,7 +1021,7 @@ def _unpublish_list_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, @@ -1127,7 +1127,7 @@ def _update_list_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListHeader", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py index 4556dde2..ce6dd072 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py @@ -26,7 +26,7 @@ from ..models import * -class ListPermissionsApi(ApiBase): # type: ignore[misc] +class ListPermissionsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -96,7 +96,7 @@ def _get_permissions_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoUserPermissionsInfo", 403: None, 404: None, @@ -190,7 +190,7 @@ def _get_permissions_for_user_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiListsDtoRecordListPermissionFlags", 403: None, 404: None, @@ -295,7 +295,7 @@ def _set_permissions_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 202: "GrantaServerApiListsDtoUserPermissionsInfo", 400: None, 403: None, @@ -412,7 +412,7 @@ def _set_permissions_for_user_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiListsDtoRecordListPermissionFlags", 400: None, 403: None, @@ -496,7 +496,7 @@ def _subscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> An ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 202: "GrantaServerApiListsDtoUserPermission", 400: None, 403: None, @@ -580,7 +580,7 @@ def _unsubscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 202: "GrantaServerApiListsDtoUserPermission", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py index 811345de..35ee1e63 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py @@ -26,7 +26,7 @@ from ..models import * -class RecordsRecordHistoriesApi(ApiBase): # type: ignore[misc] +class RecordsRecordHistoriesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -127,7 +127,7 @@ def _copy_record_history_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", 403: None, @@ -259,7 +259,7 @@ def _copy_record_history_in_table_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", 403: None, @@ -376,7 +376,7 @@ def _create_record_history_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 400: None, 403: None, @@ -495,7 +495,7 @@ def _get_latest_record_version_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 404: None, } @@ -624,7 +624,7 @@ def _get_latest_record_version_from_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 404: None, } @@ -741,7 +741,7 @@ def _get_record_history_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 404: None, } @@ -870,7 +870,7 @@ def _get_record_history_from_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 404: None, } @@ -985,7 +985,7 @@ def _move_record_history_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", 403: None, @@ -1117,7 +1117,7 @@ def _move_record_history_in_table_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py index bd610a7f..0bf56daf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py @@ -26,7 +26,7 @@ from ..models import * -class RecordsRecordVersionsApi(ApiBase): # type: ignore[misc] +class RecordsRecordVersionsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -133,7 +133,7 @@ def _delete_record_version_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 404: None, @@ -259,7 +259,7 @@ def _get_modifiable_record_version_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiRecordsRecordVersionsRecordVersion", 400: "GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException", 403: None, @@ -402,7 +402,7 @@ def _get_record_version_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 404: None, } @@ -527,7 +527,7 @@ def _release_record_version_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 400: "GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException", 403: None, @@ -654,7 +654,7 @@ def _withdraw_record_version_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 400: "GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException", 404: None, 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 df87ed44..eb6084f7 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 @@ -26,7 +26,7 @@ from ..models import * -class SchemaAttributesApi(ApiBase): # type: ignore[misc] +class SchemaAttributesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -127,7 +127,7 @@ def _create_attribute_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaAttributesAttribute", 400: None, 403: None, @@ -235,7 +235,7 @@ def _delete_attribute_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", 200: None, 403: None, @@ -343,7 +343,7 @@ def _delete_meta_attribute_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", 200: None, 403: None, @@ -474,7 +474,7 @@ def _get_attribute_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttribute", 404: None, } @@ -587,7 +587,7 @@ def _get_attributes_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributesInfo", 404: None, } @@ -716,7 +716,7 @@ def _get_meta_attribute_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttribute", 404: None, } @@ -829,7 +829,7 @@ def _get_meta_attributes_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributesInfo", 404: None, } @@ -958,7 +958,7 @@ def _get_meta_attributes_for_attribute_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributesInfo", 404: None, } @@ -1084,7 +1084,7 @@ def _update_attribute_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttribute", 400: None, 403: None, @@ -1216,7 +1216,7 @@ def _update_meta_attribute_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttribute", 400: None, 403: None, @@ -1344,7 +1344,7 @@ def _validate_attribute_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributeValidateResponse", 400: None, 403: None, @@ -1476,7 +1476,7 @@ def _validate_meta_attribute_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributeValidateResponse", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py index 339095d8..834b7804 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaConfigurationsApi(ApiBase): # type: ignore[misc] +class SchemaConfigurationsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -128,7 +128,7 @@ def _create_configuration_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaConfigurationsConfiguration", 400: None, 403: None, @@ -240,7 +240,7 @@ def _delete_configuration_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -351,7 +351,7 @@ def _export_configuration_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 404: None, } @@ -465,7 +465,7 @@ def _get_configuration_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConfigurationsConfiguration", 404: None, } @@ -559,7 +559,7 @@ def _get_configurations_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConfigurationsConfigurationsInfo", 404: None, } @@ -690,7 +690,7 @@ def _update_configuration_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConfigurationsConfiguration", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py index 45d1833d..cbf19292 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaConstantsApi(ApiBase): # type: ignore[misc] +class SchemaConstantsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -118,7 +118,7 @@ def _create_constant_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaConstantsConstant", 400: None, 403: None, @@ -215,7 +215,7 @@ def _delete_constant_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionConstantDeletionException", 200: None, 403: None, @@ -312,7 +312,7 @@ def _get_constant_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConstantsConstant", 404: None, } @@ -394,7 +394,7 @@ def _get_constants_with_http_info(self, database_key: "str", **kwargs: Any) -> A ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConstantsConstantsInfo", 404: None, } @@ -512,7 +512,7 @@ def _update_constant_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConstantsConstant", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py index eb3d9d54..8b70112b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaDataRulesApi(ApiBase): # type: ignore[misc] +class SchemaDataRulesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _create_data_rule_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaDataRulesDataRule", 400: None, 403: None, @@ -205,7 +205,7 @@ def _delete_data_rule_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -300,7 +300,7 @@ def _get_data_rule_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDataRulesDataRule", 404: None, } @@ -382,7 +382,7 @@ def _get_data_rules_with_http_info(self, database_key: "str", **kwargs: Any) -> ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDataRulesDataRulesInfo", 404: None, } @@ -497,7 +497,7 @@ def _update_data_rule_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDataRulesDataRule", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py index 6c0c08ed..62754d21 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaDatabasesApi(ApiBase): # type: ignore[misc] +class SchemaDatabasesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -74,7 +74,7 @@ def _get_all_databases_with_http_info(self, **kwargs: Any) -> Any: ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabasesInfo", } @@ -155,7 +155,7 @@ def _get_database_with_http_info(self, database_key: "str", **kwargs: Any) -> An ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabase", 404: None, } @@ -238,7 +238,7 @@ def _lock_database_with_http_info(self, database_key: "str", **kwargs: Any) -> A ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabase", 400: None, 403: None, @@ -325,7 +325,7 @@ def _unlock_database_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabase", 400: None, 403: None, @@ -431,7 +431,7 @@ def _update_database_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabase", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py index 3d037050..f7e79aa9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaDiscreteTypesDiscreteValuesApi(ApiBase): # type: ignore[misc] +class SchemaDiscreteTypesDiscreteValuesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -127,7 +127,7 @@ def _create_discrete_value_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", 400: None, 403: None, @@ -242,7 +242,7 @@ def _delete_discrete_value_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException", 200: None, 403: None, @@ -337,7 +337,7 @@ def _find_unused_discrete_values_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", 400: None, 404: None, @@ -451,7 +451,7 @@ def _get_discrete_value_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", 404: None, } @@ -544,7 +544,7 @@ def _get_discrete_values_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", 404: None, } @@ -659,7 +659,7 @@ def _replace_discrete_values_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", 400: None, 403: None, @@ -791,7 +791,7 @@ def _update_discrete_value_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py index 650a32a9..8d74e972 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaDiscreteTypesApi(ApiBase): # type: ignore[misc] +class SchemaDiscreteTypesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _create_discrete_type_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaDiscreteTypesDiscreteType", 400: None, 403: None, @@ -211,7 +211,7 @@ def _delete_discrete_type_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException", 200: None, 403: None, @@ -306,7 +306,7 @@ def _get_attributes_for_type_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", 400: None, 404: None, @@ -400,7 +400,7 @@ def _get_discrete_type_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteTypesDiscreteType", 404: None, } @@ -484,7 +484,7 @@ def _get_discrete_types_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo", 400: None, 404: None, @@ -600,7 +600,7 @@ def _update_discrete_type_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteTypesDiscreteType", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py index 72d10fa3..a3b6d364 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaExportersApi(ApiBase): # type: ignore[misc] +class SchemaExportersApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -126,7 +126,7 @@ def _create_exporters_file_with_http_info( # multipart/form-data request detected. Content-Type header will be # populated by openapi-common based on request content. - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -232,7 +232,7 @@ def _create_exporters_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, @@ -332,7 +332,7 @@ def _delete_exporters_file_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -422,7 +422,7 @@ def _delete_exporters_folder_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -521,7 +521,7 @@ def _export_exporters_file_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 404: None, } @@ -623,7 +623,7 @@ def _get_exporter_file_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 404: None, } @@ -716,7 +716,7 @@ def _get_exporters_child_folders_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } @@ -809,7 +809,7 @@ def _get_exporters_files_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFilesInfo", 404: None, } @@ -902,7 +902,7 @@ def _get_exporters_folder_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 404: None, } @@ -986,7 +986,7 @@ def _get_exporters_folders_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } @@ -1070,7 +1070,7 @@ def _get_exporters_root_folder_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 404: None, } @@ -1196,7 +1196,7 @@ def _move_exporters_file_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -1313,7 +1313,7 @@ def _move_exporters_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, @@ -1399,7 +1399,7 @@ def _refetch_exporters_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesExporterRefetchInfo", 400: None, 403: None, @@ -1527,7 +1527,7 @@ def _update_exporters_file_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -1644,7 +1644,7 @@ def _update_exporters_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py index ab81709b..1457ddec 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaExpressionsApi(ApiBase): # type: ignore[misc] +class SchemaExpressionsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -127,7 +127,7 @@ def _create_expression_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaExpressionsExpression", 400: None, 403: None, @@ -231,7 +231,7 @@ def _delete_expression_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -362,7 +362,7 @@ def _get_expression_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaExpressionsExpression", 404: None, } @@ -475,7 +475,7 @@ def _get_expressions_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaExpressionsExpressionsInfo", 404: None, } @@ -601,7 +601,7 @@ def _update_expression_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaExpressionsExpression", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py index 9e8b15e1..107a4751 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaHelpFilesApi(ApiBase): # type: ignore[misc] +class SchemaHelpFilesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -126,7 +126,7 @@ def _create_help_file_with_http_info( # multipart/form-data request detected. Content-Type header will be # populated by openapi-common based on request content. - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -232,7 +232,7 @@ def _create_help_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, @@ -332,7 +332,7 @@ def _delete_help_file_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -420,7 +420,7 @@ def _delete_help_folder_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -519,7 +519,7 @@ def _export_help_file_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 404: None, } @@ -612,7 +612,7 @@ def _get_help_child_folders_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } @@ -714,7 +714,7 @@ def _get_help_file_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 404: None, } @@ -807,7 +807,7 @@ def _get_help_files_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFilesInfo", 404: None, } @@ -900,7 +900,7 @@ def _get_help_folder_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 404: None, } @@ -984,7 +984,7 @@ def _get_help_folders_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } @@ -1068,7 +1068,7 @@ def _get_help_root_folder_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 404: None, } @@ -1194,7 +1194,7 @@ def _move_help_file_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -1311,7 +1311,7 @@ def _move_help_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, @@ -1439,7 +1439,7 @@ def _update_help_file_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -1556,7 +1556,7 @@ def _update_help_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py index 4777e03b..90204817 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaHomePagesApi(ApiBase): # type: ignore[misc] +class SchemaHomePagesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -126,7 +126,7 @@ def _create_home_page_file_with_http_info( # multipart/form-data request detected. Content-Type header will be # populated by openapi-common based on request content. - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -232,7 +232,7 @@ def _create_home_page_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, @@ -332,7 +332,7 @@ def _delete_home_page_file_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -422,7 +422,7 @@ def _delete_home_page_folder_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -521,7 +521,7 @@ def _export_home_page_file_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 404: None, } @@ -614,7 +614,7 @@ def _get_home_page_child_folders_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } @@ -716,7 +716,7 @@ def _get_home_page_file_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 404: None, } @@ -809,7 +809,7 @@ def _get_home_page_files_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFilesInfo", 404: None, } @@ -902,7 +902,7 @@ def _get_home_page_folder_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 404: None, } @@ -986,7 +986,7 @@ def _get_home_page_folders_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFoldersInfo", 404: None, } @@ -1070,7 +1070,7 @@ def _get_home_page_root_folder_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 404: None, } @@ -1196,7 +1196,7 @@ def _move_home_page_file_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -1313,7 +1313,7 @@ def _move_home_page_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, @@ -1441,7 +1441,7 @@ def _update_home_page_file_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFileHeader", 400: None, 403: None, @@ -1558,7 +1558,7 @@ def _update_home_page_folder_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaFilesFolder", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py index 59c902f8..87ba56ed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaLayoutSectionsApi(ApiBase): # type: ignore[misc] +class SchemaLayoutSectionsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -154,7 +154,7 @@ def _create_layout_item_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaLayoutsNewLayoutItem", 400: None, 403: None, @@ -282,7 +282,7 @@ def _create_section_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaSlimEntitiesSlimLayoutSection", 400: None, 403: None, @@ -417,7 +417,7 @@ def _delete_item_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -540,7 +540,7 @@ def _delete_section_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -690,7 +690,7 @@ def _get_layout_section_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayoutSection", 404: None, } @@ -826,7 +826,7 @@ def _get_layout_sections_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", 404: None, } @@ -952,7 +952,7 @@ def _reorder_sections_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py index 8c59c636..32b34085 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaLayoutsApi(ApiBase): # type: ignore[misc] +class SchemaLayoutsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -127,7 +127,7 @@ def _create_layout_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaSlimEntitiesSlimLayout", 400: None, 403: None, @@ -227,7 +227,7 @@ def _delete_layout_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -365,7 +365,7 @@ def _get_layout_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayout", 404: None, } @@ -478,7 +478,7 @@ def _get_layouts_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayoutsInfo", 404: None, } @@ -604,7 +604,7 @@ def _update_layout_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayout", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py index dc5f1d9c..64d919bd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaParametersApi(ApiBase): # type: ignore[misc] +class SchemaParametersApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _create_parameter_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaParametersParameter", 400: None, 403: None, @@ -233,7 +233,7 @@ def _create_parameter_value_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaParametersParameterValue", 400: None, 403: None, @@ -328,7 +328,7 @@ def _delete_parameter_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionParameterDeletionException", 200: None, 403: None, @@ -444,7 +444,7 @@ def _delete_parameter_value_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionParameterValueDeletionException", 200: None, 403: None, @@ -539,7 +539,7 @@ def _get_objects_using_parameter_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", 404: None, } @@ -632,7 +632,7 @@ def _get_parameter_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParameter", 404: None, } @@ -744,7 +744,7 @@ def _get_parameter_value_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParameterValue", 404: None, } @@ -826,7 +826,7 @@ def _get_parameters_with_http_info(self, database_key: "str", **kwargs: Any) -> ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParametersInfo", 404: None, } @@ -941,7 +941,7 @@ def _update_parameter_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParameter", 400: None, 403: None, @@ -1076,7 +1076,7 @@ def _update_parameter_value_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParameterValue", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py index 0699d08c..2821a7df 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaProfileTablesApi(ApiBase): # type: ignore[misc] +class SchemaProfileTablesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _create_profile_table_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaProfileTablesProfileTable", 400: None, 403: None, @@ -207,7 +207,7 @@ def _delete_profile_table_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -301,7 +301,7 @@ def _get_profile_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfileTablesProfileTable", 403: None, 404: None, @@ -386,7 +386,7 @@ def _get_profile_tables_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfileTablesProfileTablesInfo", 403: None, 404: None, @@ -502,7 +502,7 @@ def _update_profile_table_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfileTablesProfileTable", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py index 4a3b7cf2..12454ce3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaProfilesApi(ApiBase): # type: ignore[misc] +class SchemaProfilesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -101,7 +101,7 @@ def _create_profile_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaProfilesProfile", 400: None, 403: None, @@ -178,7 +178,7 @@ def _delete_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -262,7 +262,7 @@ def _get_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfilesProfile", 403: None, 404: None, @@ -327,7 +327,7 @@ def _get_profiles_with_http_info(self, **kwargs: Any) -> Any: ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfilesAllProfilesInfo", 403: None, } @@ -420,7 +420,7 @@ def _update_all_profiles_info_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfilesAllProfilesInfo", 400: None, 403: None, @@ -526,7 +526,7 @@ def _update_profile_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfilesProfile", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py index 91137eff..83c508d3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaRecordLinkGroupsApi(ApiBase): # type: ignore[misc] +class SchemaRecordLinkGroupsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -127,7 +127,7 @@ def _create_record_link_group_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", 400: None, 403: None, @@ -257,7 +257,7 @@ def _delete_record_link_group_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -371,7 +371,7 @@ def _get_inbound_record_link_groups_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", 404: None, } @@ -519,7 +519,7 @@ def _get_record_link_group_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", 404: None, } @@ -632,7 +632,7 @@ def _get_record_link_groups_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", 404: None, } @@ -765,7 +765,7 @@ def _update_record_link_group_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py index f8c348ef..f16a536f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaStandardNamesApi(ApiBase): # type: ignore[misc] +class SchemaStandardNamesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _create_standard_name_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaStandardNamesStandardName", 400: None, 403: None, @@ -207,7 +207,7 @@ def _delete_standard_name_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -302,7 +302,7 @@ def _get_standard_name_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaStandardNamesStandardName", 404: None, } @@ -386,7 +386,7 @@ def _get_standard_names_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaStandardNamesStandardNamesInfo", 404: None, } @@ -501,7 +501,7 @@ def _update_standard_name_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaStandardNamesStandardName", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py index 162e3346..96f29d4b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaSubsetsApi(ApiBase): # type: ignore[misc] +class SchemaSubsetsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -133,7 +133,7 @@ def _add_to_subset_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -250,7 +250,7 @@ def _create_subset_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaSubsetsSubset", 400: None, 403: None, @@ -350,7 +350,7 @@ def _delete_subset_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -481,7 +481,7 @@ def _get_subset_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSubsetsSubset", 404: None, } @@ -594,7 +594,7 @@ def _get_subsets_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSubsetsSubsetsInfo", 404: None, } @@ -715,7 +715,7 @@ def _remove_from_subset_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -843,7 +843,7 @@ def _update_subset_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSubsetsSubset", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py index b1d02025..fed3be57 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaTablesApi(ApiBase): # type: ignore[misc] +class SchemaTablesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _create_table_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaTablesTable", 400: None, 403: None, @@ -211,7 +211,7 @@ def _delete_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionTableDeletionException", 200: None, 403: None, @@ -306,7 +306,7 @@ def _enable_version_control_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTable", 400: None, 403: None, @@ -421,7 +421,7 @@ def _get_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTable", 404: None, } @@ -523,7 +523,7 @@ def _get_tables_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTablesInfo", 404: None, } @@ -616,7 +616,7 @@ def _release_table_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTable", 400: "GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException", 403: None, @@ -733,7 +733,7 @@ def _update_table_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTable", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py index 60124241..bb7289e5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaUnitsApi(ApiBase): # type: ignore[misc] +class SchemaUnitsApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,7 +116,7 @@ def _create_unit_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaUnitsUnit", 400: None, 403: None, @@ -222,7 +222,7 @@ def _create_unit_system_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSchemaUnitsUnitSystem", 400: None, 403: None, @@ -311,7 +311,7 @@ def _delete_unit_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -402,7 +402,7 @@ def _delete_unit_system_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -497,7 +497,7 @@ def _get_compatible_units_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitsInfo", 404: None, } @@ -590,7 +590,7 @@ def _get_unit_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnit", 404: None, } @@ -683,7 +683,7 @@ def _get_unit_equivalents_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitEquivalentsInfo", 404: None, } @@ -776,7 +776,7 @@ def _get_unit_system_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitSystem", 404: None, } @@ -860,7 +860,7 @@ def _get_unit_systems_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitSystemsInfo", 404: None, } @@ -953,7 +953,7 @@ def _get_unit_usages_with_http_info( ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitUsage", 404: None, } @@ -1033,7 +1033,7 @@ def _get_units_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitsInfo", 404: None, } @@ -1157,7 +1157,7 @@ def _set_unit_equivalent_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 404: None, } @@ -1272,7 +1272,7 @@ def _update_unit_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnit", 400: None, 403: None, @@ -1389,7 +1389,7 @@ def _update_unit_system_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitSystem", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py index bbb24366..b08760d7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py @@ -26,7 +26,7 @@ from ..models import * -class SchemaApi(ApiBase): # type: ignore[misc] +class SchemaApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -74,7 +74,7 @@ def _get_version_with_http_info(self, **kwargs: Any) -> Any: ["application/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAdminMiVersion", } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py index d5c9c5f0..8c1f0912 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py @@ -26,7 +26,7 @@ from ..models import * -class SearchApi(ApiBase): # type: ignore[misc] +class SearchApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -130,7 +130,7 @@ def _database_search_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSearchSearchResponse", } @@ -263,7 +263,7 @@ def _database_search_in_table_with_guid_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSearchSearchResponse", } @@ -396,7 +396,7 @@ def _database_search_in_table_with_identity_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSearchSearchResponse", } @@ -473,7 +473,7 @@ def _delete_search_results_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 404: None, } @@ -577,7 +577,7 @@ def _get_search_results_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSearchSearchResponse", 404: None, } @@ -681,7 +681,7 @@ def _integration_search_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSearchSearchResponse", 404: None, } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py index 9ae96d8d..a4fa9772 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py @@ -26,7 +26,7 @@ from ..models import * -class SelectionSearchesApi(ApiBase): # type: ignore[misc] +class SelectionSearchesApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,7 +103,7 @@ def _create_search_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiSelectionSearchesSelectionSearch", 400: None, 403: None, @@ -182,7 +182,7 @@ def _delete_search_with_http_info( body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 403: None, 404: None, @@ -247,7 +247,7 @@ def _get_all_with_http_info(self, **kwargs: Any) -> Any: ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "list[GrantaServerApiSelectionSearchesSelectionSearch]", 403: None, } @@ -331,7 +331,7 @@ def _get_search_with_http_info( ["text/plain", "application/json", "text/json"] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSelectionSearchesSelectionSearch", 403: None, 404: None, @@ -432,7 +432,7 @@ def _save_search_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: None, 400: None, 403: None, @@ -525,7 +525,7 @@ def _search_with_http_info( ] ) - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSelectionSearchesSelectionSearch", 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py index 80428830..b3a18aec 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py @@ -26,7 +26,7 @@ from ..models import * -class StatusApi(ApiBase): # type: ignore[misc] +class StatusApi(ApiBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,7 +70,7 @@ def _get_with_http_info(self, **kwargs: Any) -> Any: body_params = None - response_type_map = { + response_type_map: Dict[int, Optional[str]] = { 200: 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 73f6accb..13600f9f 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 @@ -11,7 +11,7 @@ """ # import Model ABC -from ansys.openapi.common import ModelBase # type: ignore[import-untyped] +from ansys.openapi.common import ModelBase, Unset, Unset_Type # import models into model package from .folderguid_files_body import FolderguidFilesBody @@ -1816,8 +1816,11 @@ from .json_patch_document import JsonPatchDocument from .system_net_http_status_code import SystemNetHttpStatusCode + __all__ = [ "ModelBase", + "Unset", + "Unset_Type", "FolderguidFilesBody", "FolderguidFilesBody1", "FolderguidFilesBody2", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py index 4dd002da..d92d16b7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class FolderguidFilesBody(ModelBase): # type: ignore[misc] +class FolderguidFilesBody(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class FolderguidFilesBody(ModelBase): # type: ignore[misc] def __init__( self, *, - description: "Optional[str]" = None, - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Union[str, Unset_Type]" = Unset, + file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]" = Unset, ) -> None: """FolderguidFilesBody - a model defined in Swagger Parameters ---------- - description: str, optional - file: Union[BinaryIO, pathlib.Path], optional + description: str, optional + file: Union[BinaryIO, pathlib.Path], optional """ - self._file = None - self._description = None + self._file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] = Unset + self._description: Union[str, Unset_Type] = Unset - if file is not None: + if file is not Unset: self.file = file - if description is not None: + if description is not Unset: self.description = description @property - def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": + def file(self) -> "Union[Union[BinaryIO, pathlib.Path], Unset_Type]": """Gets the file of this FolderguidFilesBody. Returns ------- - str + Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this FolderguidFilesBody. """ return self._file @file.setter - def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: + def file(self, file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]") -> None: """Sets the file of this FolderguidFilesBody. Parameters ---------- - file: Union[BinaryIO, pathlib.Path] + file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this FolderguidFilesBody. """ + # Field is not nullable + if file is None: + raise ValueError("Invalid value for 'file', must not be 'None'") self._file = file @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, Unset_Type]": """Gets the description of this FolderguidFilesBody. Returns ------- - str + Union[str, Unset_Type] The description of this FolderguidFilesBody. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, Unset_Type]") -> None: """Sets the description of this FolderguidFilesBody. Parameters ---------- - description: str + description: Union[str, Unset_Type] The description of this FolderguidFilesBody. """ + # Field is not nullable + if description is None: + raise ValueError("Invalid value for 'description', must not be 'None'") self._description = description @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py index 72445a11..7a1dbdcd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class FolderguidFilesBody1(ModelBase): # type: ignore[misc] +class FolderguidFilesBody1(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class FolderguidFilesBody1(ModelBase): # type: ignore[misc] def __init__( self, *, - description: "Optional[str]" = None, - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Union[str, Unset_Type]" = Unset, + file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]" = Unset, ) -> None: """FolderguidFilesBody1 - a model defined in Swagger Parameters ---------- - description: str, optional - file: Union[BinaryIO, pathlib.Path], optional + description: str, optional + file: Union[BinaryIO, pathlib.Path], optional """ - self._file = None - self._description = None + self._file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] = Unset + self._description: Union[str, Unset_Type] = Unset - if file is not None: + if file is not Unset: self.file = file - if description is not None: + if description is not Unset: self.description = description @property - def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": + def file(self) -> "Union[Union[BinaryIO, pathlib.Path], Unset_Type]": """Gets the file of this FolderguidFilesBody1. Returns ------- - str + Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this FolderguidFilesBody1. """ return self._file @file.setter - def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: + def file(self, file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]") -> None: """Sets the file of this FolderguidFilesBody1. Parameters ---------- - file: Union[BinaryIO, pathlib.Path] + file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this FolderguidFilesBody1. """ + # Field is not nullable + if file is None: + raise ValueError("Invalid value for 'file', must not be 'None'") self._file = file @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, Unset_Type]": """Gets the description of this FolderguidFilesBody1. Returns ------- - str + Union[str, Unset_Type] The description of this FolderguidFilesBody1. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, Unset_Type]") -> None: """Sets the description of this FolderguidFilesBody1. Parameters ---------- - description: str + description: Union[str, Unset_Type] The description of this FolderguidFilesBody1. """ + # Field is not nullable + if description is None: + raise ValueError("Invalid value for 'description', must not be 'None'") self._description = description @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py index 52f4087b..c988738f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class FolderguidFilesBody2(ModelBase): # type: ignore[misc] +class FolderguidFilesBody2(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class FolderguidFilesBody2(ModelBase): # type: ignore[misc] def __init__( self, *, - description: "Optional[str]" = None, - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + description: "Union[str, Unset_Type]" = Unset, + file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]" = Unset, ) -> None: """FolderguidFilesBody2 - a model defined in Swagger Parameters ---------- - description: str, optional - file: Union[BinaryIO, pathlib.Path], optional + description: str, optional + file: Union[BinaryIO, pathlib.Path], optional """ - self._file = None - self._description = None + self._file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] = Unset + self._description: Union[str, Unset_Type] = Unset - if file is not None: + if file is not Unset: self.file = file - if description is not None: + if description is not Unset: self.description = description @property - def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": + def file(self) -> "Union[Union[BinaryIO, pathlib.Path], Unset_Type]": """Gets the file of this FolderguidFilesBody2. Returns ------- - str + Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this FolderguidFilesBody2. """ return self._file @file.setter - def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: + def file(self, file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]") -> None: """Sets the file of this FolderguidFilesBody2. Parameters ---------- - file: Union[BinaryIO, pathlib.Path] + file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this FolderguidFilesBody2. """ + # Field is not nullable + if file is None: + raise ValueError("Invalid value for 'file', must not be 'None'") self._file = file @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, Unset_Type]": """Gets the description of this FolderguidFilesBody2. Returns ------- - str + Union[str, Unset_Type] The description of this FolderguidFilesBody2. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, Unset_Type]") -> None: """Sets the description of this FolderguidFilesBody2. Parameters ---------- - description: str + description: Union[str, Unset_Type] The description of this FolderguidFilesBody2. """ + # Field is not nullable + if description is None: + raise ValueError("Invalid value for 'description', must not be 'None'") self._description = description @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py index b036097f..f9930ad2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAdminMiVersion(ModelBase): # type: ignore[misc] +class GrantaServerApiAdminMiVersion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,99 +65,114 @@ class GrantaServerApiAdminMiVersion(ModelBase): # type: ignore[misc] def __init__( self, *, - binary_compatibility_version: "Optional[str]" = None, - major_minor_version: "Optional[str]" = None, - version: "Optional[str]" = None, + binary_compatibility_version: "Union[str, Unset_Type]" = Unset, + major_minor_version: "Union[str, Unset_Type]" = Unset, + version: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAdminMiVersion - a model defined in Swagger Parameters ---------- - binary_compatibility_version: str, optional - major_minor_version: str, optional - version: str, optional + binary_compatibility_version: str, optional + major_minor_version: str, optional + version: str, optional """ - self._binary_compatibility_version = None - self._version = None - self._major_minor_version = None + self._binary_compatibility_version: Union[str, Unset_Type] = Unset + self._version: Union[str, Unset_Type] = Unset + self._major_minor_version: Union[str, Unset_Type] = Unset - if binary_compatibility_version is not None: + if binary_compatibility_version is not Unset: self.binary_compatibility_version = binary_compatibility_version - if version is not None: + if version is not Unset: self.version = version - if major_minor_version is not None: + if major_minor_version is not Unset: self.major_minor_version = major_minor_version @property - def binary_compatibility_version(self) -> "Optional[str]": + def binary_compatibility_version(self) -> "Union[str, Unset_Type]": """Gets the binary_compatibility_version of this GrantaServerApiAdminMiVersion. Returns ------- - str + Union[str, Unset_Type] The binary_compatibility_version of this GrantaServerApiAdminMiVersion. """ return self._binary_compatibility_version @binary_compatibility_version.setter def binary_compatibility_version( - self, binary_compatibility_version: "Optional[str]" + self, binary_compatibility_version: "Union[str, Unset_Type]" ) -> None: """Sets the binary_compatibility_version of this GrantaServerApiAdminMiVersion. Parameters ---------- - binary_compatibility_version: str + binary_compatibility_version: Union[str, Unset_Type] The binary_compatibility_version of this GrantaServerApiAdminMiVersion. """ + # Field is not nullable + if binary_compatibility_version is None: + raise ValueError( + "Invalid value for 'binary_compatibility_version', must not be 'None'" + ) self._binary_compatibility_version = binary_compatibility_version @property - def version(self) -> "Optional[str]": + def version(self) -> "Union[str, Unset_Type]": """Gets the version of this GrantaServerApiAdminMiVersion. Returns ------- - str + Union[str, Unset_Type] The version of this GrantaServerApiAdminMiVersion. """ return self._version @version.setter - def version(self, version: "Optional[str]") -> None: + def version(self, version: "Union[str, Unset_Type]") -> None: """Sets the version of this GrantaServerApiAdminMiVersion. Parameters ---------- - version: str + version: Union[str, Unset_Type] The version of this GrantaServerApiAdminMiVersion. """ + # Field is not nullable + if version is None: + raise ValueError("Invalid value for 'version', must not be 'None'") self._version = version @property - def major_minor_version(self) -> "Optional[str]": + def major_minor_version(self) -> "Union[str, Unset_Type]": """Gets the major_minor_version of this GrantaServerApiAdminMiVersion. Returns ------- - str + Union[str, Unset_Type] The major_minor_version of this GrantaServerApiAdminMiVersion. """ return self._major_minor_version @major_minor_version.setter - def major_minor_version(self, major_minor_version: "Optional[str]") -> None: + def major_minor_version( + self, major_minor_version: "Union[str, Unset_Type]" + ) -> None: """Sets the major_minor_version of this GrantaServerApiAdminMiVersion. Parameters ---------- - major_minor_version: str + major_minor_version: Union[str, Unset_Type] The major_minor_version of this GrantaServerApiAdminMiVersion. """ + # Field is not nullable + if major_minor_version is None: + raise ValueError( + "Invalid value for 'major_minor_version', must not be 'None'" + ) self._major_minor_version = major_minor_version @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py index bd579972..b8a21619 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsAggregation(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsAggregation(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,7 +67,7 @@ def __init__( """GrantaServerApiAggregationsAggregation - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -89,7 +89,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py index 5fcf7009..f478d2e7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsAggregationCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsAggregationCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,7 +67,7 @@ def __init__( """GrantaServerApiAggregationsAggregationCriterion - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -89,7 +89,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py index dca2f9f6..0daecca0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsAggregationDatum(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsAggregationDatum(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,7 +78,7 @@ def __init__( """GrantaServerApiAggregationsAggregationDatum - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -100,7 +100,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py index b7060f4d..a49e1bb6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsAggregationDatumCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsAggregationDatumCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -83,7 +83,7 @@ def __init__( """GrantaServerApiAggregationsAggregationDatumCriterion - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -105,7 +105,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py index fc0d008d..bad58521 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsAggregationDatumExistsCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsAggregationDatumExistsCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,43 +63,46 @@ class GrantaServerApiAggregationsAggregationDatumExistsCriterion(ModelBase): # def __init__( self, *, - type: "Optional[GrantaServerApiAttributeType]" = None, + type: "Union[GrantaServerApiAttributeType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsAggregationDatumExistsCriterion - a model defined in Swagger Parameters ---------- - type: GrantaServerApiAttributeType, optional + type: GrantaServerApiAttributeType, optional """ - self._type = None + self._type: Union[GrantaServerApiAttributeType, Unset_Type] = Unset - if type is not None: + if type is not Unset: self.type = type @property - def type(self) -> "Optional[GrantaServerApiAttributeType]": + def type(self) -> "Union[GrantaServerApiAttributeType, Unset_Type]": """Gets the type of this GrantaServerApiAggregationsAggregationDatumExistsCriterion. Returns ------- - GrantaServerApiAttributeType + Union[GrantaServerApiAttributeType, Unset_Type] The type of this GrantaServerApiAggregationsAggregationDatumExistsCriterion. """ return self._type @type.setter - def type(self, type: "Optional[GrantaServerApiAttributeType]") -> None: + def type(self, type: "Union[GrantaServerApiAttributeType, Unset_Type]") -> None: """Sets the type of this GrantaServerApiAggregationsAggregationDatumExistsCriterion. Parameters ---------- - type: GrantaServerApiAttributeType + type: Union[GrantaServerApiAttributeType, Unset_Type] The type of this GrantaServerApiAggregationsAggregationDatumExistsCriterion. """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -116,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py index 726a89fb..5da0de3e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsAggregationsRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsAggregationsRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,56 +66,65 @@ class GrantaServerApiAggregationsAggregationsRequest(ModelBase): # type: ignore def __init__( self, *, - aggregation_criteria: "Optional[List[GrantaServerApiAggregationsAggregationCriterion]]" = None, - criterion: "Optional[GrantaServerApiSearchCriterion]" = None, + aggregation_criteria: "Union[List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type]" = Unset, + criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsAggregationsRequest - a model defined in Swagger Parameters ---------- - aggregation_criteria: List[GrantaServerApiAggregationsAggregationCriterion], optional - criterion: GrantaServerApiSearchCriterion, optional + aggregation_criteria: List[GrantaServerApiAggregationsAggregationCriterion], optional + criterion: GrantaServerApiSearchCriterion, optional """ - self._criterion = None - self._aggregation_criteria = None + self._criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset + self._aggregation_criteria: Union[ + List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type + ] = Unset - if criterion is not None: + if criterion is not Unset: self.criterion = criterion - if aggregation_criteria is not None: + if aggregation_criteria is not Unset: self.aggregation_criteria = aggregation_criteria @property - def criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": + def criterion(self) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": """Gets the criterion of this GrantaServerApiAggregationsAggregationsRequest. Returns ------- - GrantaServerApiSearchCriterion + Union[GrantaServerApiSearchCriterion, Unset_Type] The criterion of this GrantaServerApiAggregationsAggregationsRequest. """ return self._criterion @criterion.setter - def criterion(self, criterion: "Optional[GrantaServerApiSearchCriterion]") -> None: + def criterion( + self, criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" + ) -> None: """Sets the criterion of this GrantaServerApiAggregationsAggregationsRequest. Parameters ---------- - criterion: GrantaServerApiSearchCriterion + criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] The criterion of this GrantaServerApiAggregationsAggregationsRequest. """ + # Field is not nullable + if criterion is None: + raise ValueError("Invalid value for 'criterion', must not be 'None'") self._criterion = criterion @property def aggregation_criteria( self, - ) -> "Optional[List[GrantaServerApiAggregationsAggregationCriterion]]": + ) -> ( + "Union[List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type]" + ): """Gets the aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. The aggregations you wish to perform. Returns ------- - list[GrantaServerApiAggregationsAggregationCriterion] + Union[List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type] The aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. """ return self._aggregation_criteria @@ -123,20 +132,20 @@ def aggregation_criteria( @aggregation_criteria.setter def aggregation_criteria( self, - aggregation_criteria: "Optional[List[GrantaServerApiAggregationsAggregationCriterion]]", + aggregation_criteria: "Union[List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type]", ) -> None: """Sets the aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. The aggregations you wish to perform. Parameters ---------- - aggregation_criteria: List[GrantaServerApiAggregationsAggregationCriterion] + aggregation_criteria: Union[List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type] The aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. """ self._aggregation_criteria = aggregation_criteria @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -153,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py index 0a60774f..019dfe59 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsAggregationsResponse(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsAggregationsResponse(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiAggregationsAggregationsResponse(ModelBase): # type: ignor def __init__( self, *, - results: "Optional[List[GrantaServerApiAggregationsAggregation]]" = None, + results: "Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsAggregationsResponse - a model defined in Swagger Parameters ---------- - results: List[GrantaServerApiAggregationsAggregation], optional + results: List[GrantaServerApiAggregationsAggregation], optional """ - self._results = None + self._results: Union[ + List[GrantaServerApiAggregationsAggregation], None, Unset_Type + ] = Unset - if results is not None: + if results is not Unset: self.results = results @property - def results(self) -> "Optional[List[GrantaServerApiAggregationsAggregation]]": + def results( + self, + ) -> "Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type]": """Gets the results of this GrantaServerApiAggregationsAggregationsResponse. Returns ------- - list[GrantaServerApiAggregationsAggregation] + Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type] The results of this GrantaServerApiAggregationsAggregationsResponse. """ return self._results @results.setter def results( - self, results: "Optional[List[GrantaServerApiAggregationsAggregation]]" + self, + results: "Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type]", ) -> None: """Sets the results of this GrantaServerApiAggregationsAggregationsResponse. Parameters ---------- - results: List[GrantaServerApiAggregationsAggregation] + results: Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type] The results of this GrantaServerApiAggregationsAggregationsResponse. """ self._results = results @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py index e8b3f161..3f5733b8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation import ( GrantaServerApiAggregationsAggregation, ) # noqa: F401 @@ -79,78 +79,80 @@ class GrantaServerApiAggregationsAttributeAggregation( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - count: "Optional[int]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + count: "Union[int, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiAggregationsAttributeAggregation - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - count: int, optional - type: str + attribute_guid: str, optional + attribute_identity: int, optional + count: int, optional + type: str """ super().__init__() - self._attribute_identity = None - self._attribute_guid = None - self._type: str = None # type: ignore[assignment] - self._count = None + self._attribute_identity: Union[int, None, Unset_Type] = Unset + self._attribute_guid: Union[str, None, Unset_Type] = Unset + self._type: str + self._count: Union[int, Unset_Type] = Unset - if attribute_identity is not None: + if attribute_identity is not Unset: self.attribute_identity = attribute_identity - if attribute_guid is not None: + if attribute_guid is not Unset: self.attribute_guid = attribute_guid self.type = type - if count is not None: + if count is not Unset: self.count = count @property - def attribute_identity(self) -> "Optional[int]": + def attribute_identity(self) -> "Union[int, None, Unset_Type]": """Gets the attribute_identity of this GrantaServerApiAggregationsAttributeAggregation. The identity of the attribute that was aggregated over. Returns ------- - int + Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiAggregationsAttributeAggregation. """ return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "Optional[int]") -> None: + def attribute_identity( + self, attribute_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the attribute_identity of this GrantaServerApiAggregationsAttributeAggregation. The identity of the attribute that was aggregated over. Parameters ---------- - attribute_identity: int + attribute_identity: Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiAggregationsAttributeAggregation. """ self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "Optional[str]": + def attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. The GUID of the attribute that was aggregated over. Returns ------- - str + Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. """ return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "Optional[str]") -> None: + def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. The GUID of the attribute that was aggregated over. Parameters ---------- - attribute_guid: str + attribute_guid: Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. """ self._attribute_guid = attribute_guid @@ -175,36 +177,43 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsAttributeAggregation. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsAttributeAggregation. The number of records that have a populated (applicable) value for this attribute. (For multi-valued attributes: the number of records that have one or more populated (applicable) values for this attribute.) For a tabular attribute, this will be the number of records that have at least one tabular row in this attribute, even if those rows might be filtered out from users' views in some clients. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsAttributeAggregation. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsAttributeAggregation. The number of records that have a populated (applicable) value for this attribute. (For multi-valued attributes: the number of records that have one or more populated (applicable) values for this attribute.) For a tabular attribute, this will be the number of records that have at least one tabular row in this attribute, even if those rows might be filtered out from users' views in some clients. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsAttributeAggregation. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -226,7 +235,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py index c9a7b27c..3d6f9fc1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_criterion import ( GrantaServerApiAggregationsAggregationCriterion, ) # noqa: F401 @@ -79,98 +79,103 @@ class GrantaServerApiAggregationsAttributeAggregationCriterion( def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - is_meta_attribute: "Optional[bool]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + is_meta_attribute: "Union[bool, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiAggregationsAttributeAggregationCriterion - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional - is_meta_attribute: bool, optional - type: str + guid: str, optional + identity: int, optional + is_meta_attribute: bool, optional + type: str """ super().__init__() - self._identity = None - self._guid = None - self._is_meta_attribute = None - self._type: str = None # type: ignore[assignment] + self._identity: Union[int, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._is_meta_attribute: Union[bool, Unset_Type] = Unset + self._type: str - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid - if is_meta_attribute is not None: + if is_meta_attribute is not Unset: self.is_meta_attribute = is_meta_attribute self.type = type @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiAggregationsAttributeAggregationCriterion. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiAggregationsAttributeAggregationCriterion. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiAggregationsAttributeAggregationCriterion. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiAggregationsAttributeAggregationCriterion. """ self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. """ self._guid = guid @property - def is_meta_attribute(self) -> "Optional[bool]": + def is_meta_attribute(self) -> "Union[bool, Unset_Type]": """Gets the is_meta_attribute of this GrantaServerApiAggregationsAttributeAggregationCriterion. Returns ------- - bool + Union[bool, Unset_Type] The is_meta_attribute of this GrantaServerApiAggregationsAttributeAggregationCriterion. """ return self._is_meta_attribute @is_meta_attribute.setter - def is_meta_attribute(self, is_meta_attribute: "Optional[bool]") -> None: + def is_meta_attribute(self, is_meta_attribute: "Union[bool, Unset_Type]") -> None: """Sets the is_meta_attribute of this GrantaServerApiAggregationsAttributeAggregationCriterion. Parameters ---------- - is_meta_attribute: bool + is_meta_attribute: Union[bool, Unset_Type] The is_meta_attribute of this GrantaServerApiAggregationsAttributeAggregationCriterion. """ + # Field is not nullable + if is_meta_attribute is None: + raise ValueError( + "Invalid value for 'is_meta_attribute', must not be 'None'" + ) self._is_meta_attribute = is_meta_attribute @property @@ -193,12 +198,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsAttributeAggregationCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -220,7 +229,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py index b677db5c..078e389f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation_criterion import ( GrantaServerApiAggregationsAttributeAggregationCriterion, ) # noqa: F401 @@ -79,31 +79,33 @@ def __init__( self, *, attribute_aggregation_criterion_type: "str" = "exists", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]" = None, - is_meta_attribute: "Optional[bool]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]" = Unset, + is_meta_attribute: "Union[bool, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiAggregationsAttributeAggregationExistsCriterion - a model defined in Swagger Parameters ---------- - attribute_aggregation_criterion_type: str - guid: str, optional - identity: int, optional - inner_criterion: GrantaServerApiAggregationsAggregationDatumExistsCriterion, optional - is_meta_attribute: bool, optional - type: str + attribute_aggregation_criterion_type: str + guid: str, optional + identity: int, optional + inner_criterion: GrantaServerApiAggregationsAggregationDatumExistsCriterion, optional + is_meta_attribute: bool, optional + type: str """ super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._attribute_aggregation_criterion_type: str = None # type: ignore[assignment] - self._inner_criterion = None + self._attribute_aggregation_criterion_type: str + self._inner_criterion: Union[ + GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type + ] = Unset self.attribute_aggregation_criterion_type = attribute_aggregation_criterion_type - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion @property @@ -128,10 +130,16 @@ def attribute_aggregation_criterion_type( attribute_aggregation_criterion_type: str The attribute_aggregation_criterion_type of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. """ + # Field is not nullable if attribute_aggregation_criterion_type is None: raise ValueError( "Invalid value for 'attribute_aggregation_criterion_type', must not be 'None'" ) + # Field is required + if attribute_aggregation_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_aggregation_criterion_type', must not be 'Unset'" + ) self._attribute_aggregation_criterion_type = ( attribute_aggregation_criterion_type ) @@ -139,12 +147,14 @@ def attribute_aggregation_criterion_type( @property def inner_criterion( self, - ) -> "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]": + ) -> ( + "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]" + ): """Gets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. Returns ------- - GrantaServerApiAggregationsAggregationDatumExistsCriterion + Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. """ return self._inner_criterion @@ -152,19 +162,22 @@ def inner_criterion( @inner_criterion.setter def inner_criterion( self, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]", + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. Parameters ---------- - inner_criterion: GrantaServerApiAggregationsAggregationDatumExistsCriterion + inner_criterion: Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +194,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py index fe915bdd..a0af7773 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation_criterion import ( GrantaServerApiAggregationsAttributeAggregationCriterion, ) # noqa: F401 @@ -79,31 +79,33 @@ def __init__( self, *, attribute_aggregation_criterion_type: "str" = "value", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]" = None, - is_meta_attribute: "Optional[bool]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type]" = Unset, + is_meta_attribute: "Union[bool, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiAggregationsAttributeAggregationValueCriterion - a model defined in Swagger Parameters ---------- - attribute_aggregation_criterion_type: str - guid: str, optional - identity: int, optional - inner_criterion: GrantaServerApiAggregationsAggregationDatumCriterion, optional - is_meta_attribute: bool, optional - type: str + attribute_aggregation_criterion_type: str + guid: str, optional + identity: int, optional + inner_criterion: GrantaServerApiAggregationsAggregationDatumCriterion, optional + is_meta_attribute: bool, optional + type: str """ super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._attribute_aggregation_criterion_type: str = None # type: ignore[assignment] - self._inner_criterion = None + self._attribute_aggregation_criterion_type: str + self._inner_criterion: Union[ + GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type + ] = Unset self.attribute_aggregation_criterion_type = attribute_aggregation_criterion_type - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion @property @@ -128,10 +130,16 @@ def attribute_aggregation_criterion_type( attribute_aggregation_criterion_type: str The attribute_aggregation_criterion_type of this GrantaServerApiAggregationsAttributeAggregationValueCriterion. """ + # Field is not nullable if attribute_aggregation_criterion_type is None: raise ValueError( "Invalid value for 'attribute_aggregation_criterion_type', must not be 'None'" ) + # Field is required + if attribute_aggregation_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_aggregation_criterion_type', must not be 'Unset'" + ) self._attribute_aggregation_criterion_type = ( attribute_aggregation_criterion_type ) @@ -139,12 +147,12 @@ def attribute_aggregation_criterion_type( @property def inner_criterion( self, - ) -> "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]": + ) -> "Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationValueCriterion. Returns ------- - GrantaServerApiAggregationsAggregationDatumCriterion + Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsAttributeAggregationValueCriterion. """ return self._inner_criterion @@ -152,19 +160,22 @@ def inner_criterion( @inner_criterion.setter def inner_criterion( self, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]", + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationValueCriterion. Parameters ---------- - inner_criterion: GrantaServerApiAggregationsAggregationDatumCriterion + inner_criterion: Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsAttributeAggregationValueCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +192,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py index cebc847d..2388ad6c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation import ( GrantaServerApiAggregationsAttributeAggregation, ) # noqa: F401 @@ -75,20 +75,20 @@ def __init__( self, *, attribute_aggregation_type: "str" = "exists", - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - count: "Optional[int]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + count: "Union[int, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiAggregationsAttributeExistsAggregation - a model defined in Swagger Parameters ---------- - attribute_aggregation_type: str - attribute_guid: str, optional - attribute_identity: int, optional - count: int, optional - type: str + attribute_aggregation_type: str + attribute_guid: str, optional + attribute_identity: int, optional + count: int, optional + type: str """ super().__init__( attribute_guid=attribute_guid, @@ -96,7 +96,7 @@ def __init__( count=count, type=type, ) - self._attribute_aggregation_type: str = None # type: ignore[assignment] + self._attribute_aggregation_type: str self.attribute_aggregation_type = attribute_aggregation_type @@ -120,14 +120,20 @@ def attribute_aggregation_type(self, attribute_aggregation_type: "str") -> None: attribute_aggregation_type: str The attribute_aggregation_type of this GrantaServerApiAggregationsAttributeExistsAggregation. """ + # Field is not nullable if attribute_aggregation_type is None: raise ValueError( "Invalid value for 'attribute_aggregation_type', must not be 'None'" ) + # Field is required + if attribute_aggregation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_aggregation_type', must not be 'Unset'" + ) self._attribute_aggregation_type = attribute_aggregation_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -144,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py index 46d60b0e..db839816 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation import ( GrantaServerApiAggregationsAttributeAggregation, ) # noqa: F401 @@ -78,23 +78,23 @@ class GrantaServerApiAggregationsAttributeValueAggregation( def __init__( self, *, - aggregation_datum: "Optional[GrantaServerApiAggregationsAggregationDatum]" = None, + aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]" = Unset, attribute_aggregation_type: "str" = "value", - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - count: "Optional[int]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + count: "Union[int, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiAggregationsAttributeValueAggregation - a model defined in Swagger Parameters ---------- - aggregation_datum: GrantaServerApiAggregationsAggregationDatum, optional - attribute_aggregation_type: str - attribute_guid: str, optional - attribute_identity: int, optional - count: int, optional - type: str + aggregation_datum: GrantaServerApiAggregationsAggregationDatum, optional + attribute_aggregation_type: str + attribute_guid: str, optional + attribute_identity: int, optional + count: int, optional + type: str """ super().__init__( attribute_guid=attribute_guid, @@ -102,11 +102,13 @@ def __init__( count=count, type=type, ) - self._attribute_aggregation_type: str = None # type: ignore[assignment] - self._aggregation_datum = None + self._attribute_aggregation_type: str + self._aggregation_datum: Union[ + GrantaServerApiAggregationsAggregationDatum, Unset_Type + ] = Unset self.attribute_aggregation_type = attribute_aggregation_type - if aggregation_datum is not None: + if aggregation_datum is not Unset: self.aggregation_datum = aggregation_datum @property @@ -129,40 +131,52 @@ def attribute_aggregation_type(self, attribute_aggregation_type: "str") -> None: attribute_aggregation_type: str The attribute_aggregation_type of this GrantaServerApiAggregationsAttributeValueAggregation. """ + # Field is not nullable if attribute_aggregation_type is None: raise ValueError( "Invalid value for 'attribute_aggregation_type', must not be 'None'" ) + # Field is required + if attribute_aggregation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_aggregation_type', must not be 'Unset'" + ) self._attribute_aggregation_type = attribute_aggregation_type @property def aggregation_datum( self, - ) -> "Optional[GrantaServerApiAggregationsAggregationDatum]": + ) -> "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]": """Gets the aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. Returns ------- - GrantaServerApiAggregationsAggregationDatum + Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type] The aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. """ return self._aggregation_datum @aggregation_datum.setter def aggregation_datum( - self, aggregation_datum: "Optional[GrantaServerApiAggregationsAggregationDatum]" + self, + aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]", ) -> None: """Sets the aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. Parameters ---------- - aggregation_datum: GrantaServerApiAggregationsAggregationDatum + aggregation_datum: Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type] The aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. """ + # Field is not nullable + if aggregation_datum is None: + raise ValueError( + "Invalid value for 'aggregation_datum', must not be 'None'" + ) self._aggregation_datum = aggregation_datum @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +193,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py index 66205259..641dc5cc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,68 +71,68 @@ def __init__( self, *, datum_type: "str" = "dateTime", - maximum: "Optional[datetime]" = None, - minimum: "Optional[datetime]" = None, + maximum: "Union[datetime, None, Unset_Type]" = Unset, + minimum: "Union[datetime, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsDateTimeAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - maximum: datetime, optional - minimum: datetime, optional + datum_type: str + maximum: datetime, optional + minimum: datetime, optional """ super().__init__() - self._minimum = None - self._maximum = None - self._datum_type: str = None # type: ignore[assignment] + self._minimum: Union[datetime, None, Unset_Type] = Unset + self._maximum: Union[datetime, None, Unset_Type] = Unset + self._datum_type: str - if minimum is not None: + if minimum is not Unset: self.minimum = minimum - if maximum is not None: + if maximum is not Unset: self.maximum = maximum self.datum_type = datum_type @property - def minimum(self) -> "Optional[datetime]": + def minimum(self) -> "Union[datetime, None, Unset_Type]": """Gets the minimum of this GrantaServerApiAggregationsDateTimeAggregation. Returns ------- - datetime + Union[datetime, None, Unset_Type] The minimum of this GrantaServerApiAggregationsDateTimeAggregation. """ return self._minimum @minimum.setter - def minimum(self, minimum: "Optional[datetime]") -> None: + def minimum(self, minimum: "Union[datetime, None, Unset_Type]") -> None: """Sets the minimum of this GrantaServerApiAggregationsDateTimeAggregation. Parameters ---------- - minimum: datetime + minimum: Union[datetime, None, Unset_Type] The minimum of this GrantaServerApiAggregationsDateTimeAggregation. """ self._minimum = minimum @property - def maximum(self) -> "Optional[datetime]": + def maximum(self) -> "Union[datetime, None, Unset_Type]": """Gets the maximum of this GrantaServerApiAggregationsDateTimeAggregation. Returns ------- - datetime + Union[datetime, None, Unset_Type] The maximum of this GrantaServerApiAggregationsDateTimeAggregation. """ return self._maximum @maximum.setter - def maximum(self, maximum: "Optional[datetime]") -> None: + def maximum(self, maximum: "Union[datetime, None, Unset_Type]") -> None: """Sets the maximum of this GrantaServerApiAggregationsDateTimeAggregation. Parameters ---------- - maximum: datetime + maximum: Union[datetime, None, Unset_Type] The maximum of this GrantaServerApiAggregationsDateTimeAggregation. """ self._maximum = maximum @@ -157,12 +157,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsDateTimeAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py index 226bebd0..cb737fd8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -72,10 +72,10 @@ def __init__( Parameters ---------- - type: str + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -99,12 +99,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsDateTimeAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py index 2673c1ef..d09663a1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -72,73 +72,80 @@ class GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationD def __init__( self, *, - interval: "Optional[GrantaServerApiAggregationsCalendarInterval]" = None, - offset: "Optional[str]" = None, + interval: "Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type]" = Unset, + offset: "Union[str, None, Unset_Type]" = Unset, type: "str" = "dateTimeFixedCalendarWidthHistogram", ) -> None: """GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - interval: GrantaServerApiAggregationsCalendarInterval, optional - offset: str, optional - type: str + interval: GrantaServerApiAggregationsCalendarInterval, optional + offset: str, optional + type: str """ super().__init__() - self._interval = None - self._offset = None - self._type: str = None # type: ignore[assignment] + self._interval: Union[ + GrantaServerApiAggregationsCalendarInterval, Unset_Type + ] = Unset + self._offset: Union[str, None, Unset_Type] = Unset + self._type: str - if interval is not None: + if interval is not Unset: self.interval = interval - if offset is not None: + if offset is not Unset: self.offset = offset self.type = type @property - def interval(self) -> "Optional[GrantaServerApiAggregationsCalendarInterval]": + def interval( + self, + ) -> "Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type]": """Gets the interval of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. Returns ------- - GrantaServerApiAggregationsCalendarInterval + Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type] The interval of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. """ return self._interval @interval.setter def interval( - self, interval: "Optional[GrantaServerApiAggregationsCalendarInterval]" + self, interval: "Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type]" ) -> None: """Sets the interval of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. Parameters ---------- - interval: GrantaServerApiAggregationsCalendarInterval + interval: Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type] The interval of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable + if interval is None: + raise ValueError("Invalid value for 'interval', must not be 'None'") self._interval = interval @property - def offset(self) -> "Optional[str]": + def offset(self) -> "Union[str, None, Unset_Type]": """Gets the offset of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. Optional offset of the lowest bucket boundary, in SI time units. Must be an integer followed by one of the following units: ms (milliseconds), s (seconds), m (minutes), h (hours), d (days). Defaults to 0. Must be less than the interval. Negative offsets (e.g. \"-6h\") are supported Returns ------- - str + Union[str, None, Unset_Type] The offset of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. """ return self._offset @offset.setter - def offset(self, offset: "Optional[str]") -> None: + def offset(self, offset: "Union[str, None, Unset_Type]") -> None: """Sets the offset of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. Optional offset of the lowest bucket boundary, in SI time units. Must be an integer followed by one of the following units: ms (milliseconds), s (seconds), m (minutes), h (hours), d (days). Defaults to 0. Must be less than the interval. Negative offsets (e.g. \"-6h\") are supported Parameters ---------- - offset: str + offset: Union[str, None, Unset_Type] The offset of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. """ self._offset = offset @@ -163,12 +170,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -185,7 +196,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py index 377bbb8f..7bae0256 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -70,73 +70,73 @@ class GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCrit def __init__( self, *, - interval: "Optional[str]" = None, - offset: "Optional[str]" = None, + interval: "Union[str, None, Unset_Type]" = Unset, + offset: "Union[str, None, Unset_Type]" = Unset, type: "str" = "dateTimeFixedWidthHistogram", ) -> None: """GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - interval: str, optional - offset: str, optional - type: str + interval: str, optional + offset: str, optional + type: str """ super().__init__() - self._interval = None - self._offset = None - self._type: str = None # type: ignore[assignment] + self._interval: Union[str, None, Unset_Type] = Unset + self._offset: Union[str, None, Unset_Type] = Unset + self._type: str - if interval is not None: + if interval is not Unset: self.interval = interval - if offset is not None: + if offset is not Unset: self.offset = offset self.type = type @property - def interval(self) -> "Optional[str]": + def interval(self) -> "Union[str, None, Unset_Type]": """Gets the interval of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets, in SI time units. Must be an integer followed by one of the following units: ms (milliseconds), s (seconds), m (minutes), h (hours), d (days) Returns ------- - str + Union[str, None, Unset_Type] The interval of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. """ return self._interval @interval.setter - def interval(self, interval: "Optional[str]") -> None: + def interval(self, interval: "Union[str, None, Unset_Type]") -> None: """Sets the interval of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets, in SI time units. Must be an integer followed by one of the following units: ms (milliseconds), s (seconds), m (minutes), h (hours), d (days) Parameters ---------- - interval: str + interval: Union[str, None, Unset_Type] The interval of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. """ self._interval = interval @property - def offset(self) -> "Optional[str]": + def offset(self) -> "Union[str, None, Unset_Type]": """Gets the offset of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. Optional offset of the lowest bucket boundary, in SI time units. Must be an integer followed by one of the following units: ms (milliseconds), s (seconds), m (minutes), h (hours), d (days). Defaults to 0. Must be less than the interval. Negative offsets (e.g. \"-6h\") are supported Returns ------- - str + Union[str, None, Unset_Type] The offset of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. """ return self._offset @offset.setter - def offset(self, offset: "Optional[str]") -> None: + def offset(self, offset: "Union[str, None, Unset_Type]") -> None: """Sets the offset of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. Optional offset of the lowest bucket boundary, in SI time units. Must be an integer followed by one of the following units: ms (milliseconds), s (seconds), m (minutes), h (hours), d (days). Defaults to 0. Must be less than the interval. Negative offsets (e.g. \"-6h\") are supported Parameters ---------- - offset: str + offset: Union[str, None, Unset_Type] The offset of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. """ self._offset = offset @@ -161,12 +161,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py index 94d2aec4..d06f8863 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsDateTimeHistogram(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsDateTimeHistogram(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiAggregationsDateTimeHistogram(ModelBase): # type: ignore[m def __init__( self, *, - buckets: "Optional[List[GrantaServerApiAggregationsDateTimeHistogramBucket]]" = None, + buckets: "Union[List[GrantaServerApiAggregationsDateTimeHistogramBucket], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsDateTimeHistogram - a model defined in Swagger Parameters ---------- - buckets: List[GrantaServerApiAggregationsDateTimeHistogramBucket], optional + buckets: List[GrantaServerApiAggregationsDateTimeHistogramBucket], optional """ - self._buckets = None + self._buckets: Union[ + List[GrantaServerApiAggregationsDateTimeHistogramBucket], None, Unset_Type + ] = Unset - if buckets is not None: + if buckets is not Unset: self.buckets = buckets @property def buckets( self, - ) -> "Optional[List[GrantaServerApiAggregationsDateTimeHistogramBucket]]": + ) -> "Union[List[GrantaServerApiAggregationsDateTimeHistogramBucket], None, Unset_Type]": """Gets the buckets of this GrantaServerApiAggregationsDateTimeHistogram. Returns ------- - list[GrantaServerApiAggregationsDateTimeHistogramBucket] + Union[List[GrantaServerApiAggregationsDateTimeHistogramBucket], None, Unset_Type] The buckets of this GrantaServerApiAggregationsDateTimeHistogram. """ return self._buckets @@ -92,19 +94,19 @@ def buckets( @buckets.setter def buckets( self, - buckets: "Optional[List[GrantaServerApiAggregationsDateTimeHistogramBucket]]", + buckets: "Union[List[GrantaServerApiAggregationsDateTimeHistogramBucket], None, Unset_Type]", ) -> None: """Sets the buckets of this GrantaServerApiAggregationsDateTimeHistogram. Parameters ---------- - buckets: List[GrantaServerApiAggregationsDateTimeHistogramBucket] + buckets: Union[List[GrantaServerApiAggregationsDateTimeHistogramBucket], None, Unset_Type] The buckets of this GrantaServerApiAggregationsDateTimeHistogram. """ self._buckets = buckets @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py index 1808aa56..488bf513 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,45 +71,53 @@ def __init__( self, *, datum_type: "str" = "dateTimeHistogram", - histogram: "Optional[GrantaServerApiAggregationsDateTimeHistogram]" = None, + histogram: "Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsDateTimeHistogramAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - histogram: GrantaServerApiAggregationsDateTimeHistogram, optional + datum_type: str + histogram: GrantaServerApiAggregationsDateTimeHistogram, optional """ super().__init__() - self._histogram = None - self._datum_type: str = None # type: ignore[assignment] + self._histogram: Union[ + GrantaServerApiAggregationsDateTimeHistogram, Unset_Type + ] = Unset + self._datum_type: str - if histogram is not None: + if histogram is not Unset: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "Optional[GrantaServerApiAggregationsDateTimeHistogram]": + def histogram( + self, + ) -> "Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type]": """Gets the histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. Returns ------- - GrantaServerApiAggregationsDateTimeHistogram + Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. """ return self._histogram @histogram.setter def histogram( - self, histogram: "Optional[GrantaServerApiAggregationsDateTimeHistogram]" + self, + histogram: "Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type]", ) -> None: """Sets the histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. Parameters ---------- - histogram: GrantaServerApiAggregationsDateTimeHistogram + histogram: Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. """ + # Field is not nullable + if histogram is None: + raise ValueError("Invalid value for 'histogram', must not be 'None'") self._histogram = histogram @property @@ -132,12 +140,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsDateTimeHistogramAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py index d241152a..3a9c7f2e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -68,48 +68,53 @@ class GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion( def __init__( self, *, - maximum_number_of_buckets: "Optional[int]" = None, + maximum_number_of_buckets: "Union[int, Unset_Type]" = Unset, type: "str" = "dateTimeHistogram", ) -> None: """GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - maximum_number_of_buckets: int, optional - type: str + maximum_number_of_buckets: int, optional + type: str """ super().__init__() - self._maximum_number_of_buckets = None - self._type: str = None # type: ignore[assignment] + self._maximum_number_of_buckets: Union[int, Unset_Type] = Unset + self._type: str - if maximum_number_of_buckets is not None: + if maximum_number_of_buckets is not Unset: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "Optional[int]": + def maximum_number_of_buckets(self) -> "Union[int, Unset_Type]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion. The maximum number of buckets to return. Returns ------- - int + Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion. """ return self._maximum_number_of_buckets @maximum_number_of_buckets.setter def maximum_number_of_buckets( - self, maximum_number_of_buckets: "Optional[int]" + self, maximum_number_of_buckets: "Union[int, Unset_Type]" ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion. The maximum number of buckets to return. Parameters ---------- - maximum_number_of_buckets: int + maximum_number_of_buckets: Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion. """ + # Field is not nullable + if maximum_number_of_buckets is None: + raise ValueError( + "Invalid value for 'maximum_number_of_buckets', must not be 'None'" + ) self._maximum_number_of_buckets = maximum_number_of_buckets @property @@ -132,12 +137,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py index d7f39562..3b6964d8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsDateTimeHistogramBucket(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsDateTimeHistogramBucket(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiAggregationsDateTimeHistogramBucket(ModelBase): # type: ig def __init__( self, *, - count: "Optional[int]" = None, - lower: "Optional[datetime]" = None, + count: "Union[int, Unset_Type]" = Unset, + lower: "Union[datetime, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsDateTimeHistogramBucket - a model defined in Swagger Parameters ---------- - count: int, optional - lower: datetime, optional + count: int, optional + lower: datetime, optional """ - self._lower = None - self._count = None + self._lower: Union[datetime, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset - if lower is not None: + if lower is not Unset: self.lower = lower - if count is not None: + if count is not Unset: self.count = count @property - def lower(self) -> "Optional[datetime]": + def lower(self) -> "Union[datetime, Unset_Type]": """Gets the lower of this GrantaServerApiAggregationsDateTimeHistogramBucket. Returns ------- - datetime + Union[datetime, Unset_Type] The lower of this GrantaServerApiAggregationsDateTimeHistogramBucket. """ return self._lower @lower.setter - def lower(self, lower: "Optional[datetime]") -> None: + def lower(self, lower: "Union[datetime, Unset_Type]") -> None: """Sets the lower of this GrantaServerApiAggregationsDateTimeHistogramBucket. Parameters ---------- - lower: datetime + lower: Union[datetime, Unset_Type] The lower of this GrantaServerApiAggregationsDateTimeHistogramBucket. """ + # Field is not nullable + if lower is None: + raise ValueError("Invalid value for 'lower', must not be 'None'") self._lower = lower @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsDateTimeHistogramBucket. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsDateTimeHistogramBucket. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsDateTimeHistogramBucket. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsDateTimeHistogramBucket. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py index 59cd29ba..d7fd41f3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,43 +71,48 @@ def __init__( self, *, datum_type: "str" = "discreteText", - terms: "Optional[List[GrantaServerApiAggregationsTermWithCount]]" = None, + terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsDiscreteTextAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - terms: List[GrantaServerApiAggregationsTermWithCount], optional + datum_type: str + terms: List[GrantaServerApiAggregationsTermWithCount], optional """ super().__init__() - self._terms = None - self._datum_type: str = None # type: ignore[assignment] + self._terms: Union[ + List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type + ] = Unset + self._datum_type: str - if terms is not None: + if terms is not Unset: self.terms = terms self.datum_type = datum_type @property - def terms(self) -> "Optional[List[GrantaServerApiAggregationsTermWithCount]]": + def terms( + self, + ) -> "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]": """Gets the terms of this GrantaServerApiAggregationsDiscreteTextAggregation. Returns ------- - list[GrantaServerApiAggregationsTermWithCount] + Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type] The terms of this GrantaServerApiAggregationsDiscreteTextAggregation. """ return self._terms @terms.setter def terms( - self, terms: "Optional[List[GrantaServerApiAggregationsTermWithCount]]" + self, + terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]", ) -> None: """Sets the terms of this GrantaServerApiAggregationsDiscreteTextAggregation. Parameters ---------- - terms: List[GrantaServerApiAggregationsTermWithCount] + terms: Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type] The terms of this GrantaServerApiAggregationsDiscreteTextAggregation. """ self._terms = terms @@ -132,12 +137,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsDiscreteTextAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py index 4c2c3ff3..b40b7633 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -70,73 +70,76 @@ class GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion( def __init__( self, *, - number_of_terms: "Optional[int]" = None, - prefix: "Optional[str]" = None, + number_of_terms: "Union[int, Unset_Type]" = Unset, + prefix: "Union[str, None, Unset_Type]" = Unset, type: "str" = "discreteText", ) -> None: """GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - number_of_terms: int, optional - prefix: str, optional - type: str + number_of_terms: int, optional + prefix: str, optional + type: str """ super().__init__() - self._number_of_terms = None - self._prefix = None - self._type: str = None # type: ignore[assignment] + self._number_of_terms: Union[int, Unset_Type] = Unset + self._prefix: Union[str, None, Unset_Type] = Unset + self._type: str - if number_of_terms is not None: + if number_of_terms is not Unset: self.number_of_terms = number_of_terms - if prefix is not None: + if prefix is not Unset: self.prefix = prefix self.type = type @property - def number_of_terms(self) -> "Optional[int]": + def number_of_terms(self) -> "Union[int, Unset_Type]": """Gets the number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. Returns ------- - int + Union[int, Unset_Type] The number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. """ return self._number_of_terms @number_of_terms.setter - def number_of_terms(self, number_of_terms: "Optional[int]") -> None: + def number_of_terms(self, number_of_terms: "Union[int, Unset_Type]") -> None: """Sets the number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. Parameters ---------- - number_of_terms: int + number_of_terms: Union[int, Unset_Type] The number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. """ + # Field is not nullable + if number_of_terms is None: + raise ValueError("Invalid value for 'number_of_terms', must not be 'None'") self._number_of_terms = number_of_terms @property - def prefix(self) -> "Optional[str]": + def prefix(self) -> "Union[str, None, Unset_Type]": """Gets the prefix of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. An optional textual prefix. If provided, only terms that start with this prefix will be considered in the aggregation. Returns ------- - str + Union[str, None, Unset_Type] The prefix of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. """ return self._prefix @prefix.setter - def prefix(self, prefix: "Optional[str]") -> None: + def prefix(self, prefix: "Union[str, None, Unset_Type]") -> None: """Sets the prefix of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. An optional textual prefix. If provided, only terms that start with this prefix will be considered in the aggregation. Parameters ---------- - prefix: str + prefix: Union[str, None, Unset_Type] The prefix of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. """ self._prefix = prefix @@ -161,12 +164,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py index ea2b3c1f..76be6f2a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -74,37 +74,41 @@ def __init__( self, *, datum_type: "str" = "floatFunctionalGraph", - grid_graphs: "Optional[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation]" = None, - series_graphs: "Optional[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation]" = None, + grid_graphs: "Union[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, Unset_Type]" = Unset, + series_graphs: "Union[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsFloatFunctionalAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - grid_graphs: GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, optional - series_graphs: GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, optional + datum_type: str + grid_graphs: GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, optional + series_graphs: GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, optional """ super().__init__() - self._series_graphs = None - self._grid_graphs = None - self._datum_type: str = None # type: ignore[assignment] - - if series_graphs is not None: + self._series_graphs: Union[ + GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, Unset_Type + ] = Unset + self._grid_graphs: Union[ + GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, Unset_Type + ] = Unset + self._datum_type: str + + if series_graphs is not Unset: self.series_graphs = series_graphs - if grid_graphs is not None: + if grid_graphs is not Unset: self.grid_graphs = grid_graphs self.datum_type = datum_type @property def series_graphs( self, - ) -> "Optional[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation]": + ) -> "Union[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, Unset_Type]": """Gets the series_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. Returns ------- - GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation + Union[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, Unset_Type] The series_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. """ return self._series_graphs @@ -112,26 +116,29 @@ def series_graphs( @series_graphs.setter def series_graphs( self, - series_graphs: "Optional[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation]", + series_graphs: "Union[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, Unset_Type]", ) -> None: """Sets the series_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. Parameters ---------- - series_graphs: GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation + series_graphs: Union[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation, Unset_Type] The series_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. """ + # Field is not nullable + if series_graphs is None: + raise ValueError("Invalid value for 'series_graphs', must not be 'None'") self._series_graphs = series_graphs @property def grid_graphs( self, - ) -> "Optional[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation]": + ) -> "Union[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, Unset_Type]": """Gets the grid_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. Returns ------- - GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation + Union[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, Unset_Type] The grid_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. """ return self._grid_graphs @@ -139,15 +146,18 @@ def grid_graphs( @grid_graphs.setter def grid_graphs( self, - grid_graphs: "Optional[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation]", + grid_graphs: "Union[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, Unset_Type]", ) -> None: """Sets the grid_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. Parameters ---------- - grid_graphs: GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation + grid_graphs: Union[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation, Unset_Type] The grid_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. """ + # Field is not nullable + if grid_graphs is None: + raise ValueError("Invalid value for 'grid_graphs', must not be 'None'") self._grid_graphs = grid_graphs @property @@ -170,12 +180,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsFloatFunctionalAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -192,7 +206,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py index 677d622a..7c8fd72a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -68,48 +68,53 @@ class GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion( def __init__( self, *, - number_of_parameter_values: "Optional[int]" = None, + number_of_parameter_values: "Union[int, Unset_Type]" = Unset, type: "str" = "floatFunctionalGraph", ) -> None: """GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - number_of_parameter_values: int, optional - type: str + number_of_parameter_values: int, optional + type: str """ super().__init__() - self._number_of_parameter_values = None - self._type: str = None # type: ignore[assignment] + self._number_of_parameter_values: Union[int, Unset_Type] = Unset + self._type: str - if number_of_parameter_values is not None: + if number_of_parameter_values is not Unset: self.number_of_parameter_values = number_of_parameter_values self.type = type @property - def number_of_parameter_values(self) -> "Optional[int]": + def number_of_parameter_values(self) -> "Union[int, Unset_Type]": """Gets the number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. The maximum number of values to return in this aggregation. Returns ------- - int + Union[int, Unset_Type] The number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. """ return self._number_of_parameter_values @number_of_parameter_values.setter def number_of_parameter_values( - self, number_of_parameter_values: "Optional[int]" + self, number_of_parameter_values: "Union[int, Unset_Type]" ) -> None: """Sets the number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. The maximum number of values to return in this aggregation. Parameters ---------- - number_of_parameter_values: int + number_of_parameter_values: Union[int, Unset_Type] The number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. """ + # Field is not nullable + if number_of_parameter_values is None: + raise ValueError( + "Invalid value for 'number_of_parameter_values', must not be 'None'" + ) self._number_of_parameter_values = number_of_parameter_values @property @@ -132,12 +137,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py index c2c7caae..531797fb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -75,57 +75,69 @@ class GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): def __init__( self, *, - count: "Optional[int]" = None, - default_x_axis_parameter_guid_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]" = None, - default_x_axis_parameter_identity_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]" = None, - maximum_number_of_points: "Optional[int]" = None, - minimum_number_of_points: "Optional[int]" = None, - show_as_table_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]" = None, + count: "Union[int, Unset_Type]" = Unset, + default_x_axis_parameter_guid_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type]" = Unset, + default_x_axis_parameter_identity_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type]" = Unset, + maximum_number_of_points: "Union[int, None, Unset_Type]" = Unset, + minimum_number_of_points: "Union[int, None, Unset_Type]" = Unset, + show_as_table_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation - a model defined in Swagger Parameters ---------- - count: int, optional - default_x_axis_parameter_guid_values: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], optional - default_x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], optional - maximum_number_of_points: int, optional - minimum_number_of_points: int, optional - show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], optional + count: int, optional + default_x_axis_parameter_guid_values: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], optional + default_x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], optional + maximum_number_of_points: int, optional + minimum_number_of_points: int, optional + show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], optional """ - self._default_x_axis_parameter_identity_values = None - self._default_x_axis_parameter_guid_values = None - self._show_as_table_values = None - self._minimum_number_of_points = None - self._maximum_number_of_points = None - self._count = None - - if default_x_axis_parameter_identity_values is not None: + self._default_x_axis_parameter_identity_values: Union[ + List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], + None, + Unset_Type, + ] = Unset + self._default_x_axis_parameter_guid_values: Union[ + List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], + None, + Unset_Type, + ] = Unset + self._show_as_table_values: Union[ + List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], + None, + Unset_Type, + ] = Unset + self._minimum_number_of_points: Union[int, None, Unset_Type] = Unset + self._maximum_number_of_points: Union[int, None, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset + + if default_x_axis_parameter_identity_values is not Unset: self.default_x_axis_parameter_identity_values = ( default_x_axis_parameter_identity_values ) - if default_x_axis_parameter_guid_values is not None: + if default_x_axis_parameter_guid_values is not Unset: self.default_x_axis_parameter_guid_values = ( default_x_axis_parameter_guid_values ) - if show_as_table_values is not None: + if show_as_table_values is not Unset: self.show_as_table_values = show_as_table_values - if minimum_number_of_points is not None: + if minimum_number_of_points is not Unset: self.minimum_number_of_points = minimum_number_of_points - if maximum_number_of_points is not None: + if maximum_number_of_points is not Unset: self.maximum_number_of_points = maximum_number_of_points - if count is not None: + if count is not Unset: self.count = count @property def default_x_axis_parameter_identity_values( self, - ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]": + ) -> "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type]": """Gets the default_x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns ------- - list[GrantaServerApiAggregationsValueWithCountOfSystemInt32] + Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type] The default_x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ return self._default_x_axis_parameter_identity_values @@ -133,13 +145,13 @@ def default_x_axis_parameter_identity_values( @default_x_axis_parameter_identity_values.setter def default_x_axis_parameter_identity_values( self, - default_x_axis_parameter_identity_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]", + default_x_axis_parameter_identity_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type]", ) -> None: """Sets the default_x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters ---------- - default_x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32] + default_x_axis_parameter_identity_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type] The default_x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._default_x_axis_parameter_identity_values = ( @@ -149,12 +161,12 @@ def default_x_axis_parameter_identity_values( @property def default_x_axis_parameter_guid_values( self, - ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]": + ) -> "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type]": """Gets the default_x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns ------- - list[GrantaServerApiAggregationsValueWithCountOfSystemGuid] + Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type] The default_x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ return self._default_x_axis_parameter_guid_values @@ -162,13 +174,13 @@ def default_x_axis_parameter_guid_values( @default_x_axis_parameter_guid_values.setter def default_x_axis_parameter_guid_values( self, - default_x_axis_parameter_guid_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]", + default_x_axis_parameter_guid_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type]", ) -> None: """Sets the default_x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters ---------- - default_x_axis_parameter_guid_values: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid] + default_x_axis_parameter_guid_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type] The default_x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._default_x_axis_parameter_guid_values = ( @@ -178,12 +190,12 @@ def default_x_axis_parameter_guid_values( @property def show_as_table_values( self, - ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]": + ) -> "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]": """Gets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns ------- - list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type] The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ return self._show_as_table_values @@ -191,91 +203,94 @@ def show_as_table_values( @show_as_table_values.setter def show_as_table_values( self, - show_as_table_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]", + show_as_table_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]", ) -> None: """Sets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters ---------- - show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + show_as_table_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type] The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._show_as_table_values = show_as_table_values @property - def minimum_number_of_points(self) -> "Optional[int]": + def minimum_number_of_points(self) -> "Union[int, None, Unset_Type]": """Gets the minimum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns ------- - int + Union[int, None, Unset_Type] The minimum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ return self._minimum_number_of_points @minimum_number_of_points.setter def minimum_number_of_points( - self, minimum_number_of_points: "Optional[int]" + self, minimum_number_of_points: "Union[int, None, Unset_Type]" ) -> None: """Sets the minimum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters ---------- - minimum_number_of_points: int + minimum_number_of_points: Union[int, None, Unset_Type] The minimum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._minimum_number_of_points = minimum_number_of_points @property - def maximum_number_of_points(self) -> "Optional[int]": + def maximum_number_of_points(self) -> "Union[int, None, Unset_Type]": """Gets the maximum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns ------- - int + Union[int, None, Unset_Type] The maximum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ return self._maximum_number_of_points @maximum_number_of_points.setter def maximum_number_of_points( - self, maximum_number_of_points: "Optional[int]" + self, maximum_number_of_points: "Union[int, None, Unset_Type]" ) -> None: """Sets the maximum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters ---------- - maximum_number_of_points: int + maximum_number_of_points: Union[int, None, Unset_Type] The maximum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._maximum_number_of_points = maximum_number_of_points @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. The number of record where the data is a series graph Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. The number of record where the data is a series graph Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -292,7 +307,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py index 97ec4c48..0aca1556 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -75,53 +75,65 @@ class GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase def __init__( self, *, - count: "Optional[int]" = None, - maximum_number_of_series: "Optional[int]" = None, - minimum_number_of_series: "Optional[int]" = None, - show_as_table_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]" = None, - x_axis_parameter_guid_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]" = None, - x_axis_parameter_identity_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]" = None, + count: "Union[int, Unset_Type]" = Unset, + maximum_number_of_series: "Union[int, None, Unset_Type]" = Unset, + minimum_number_of_series: "Union[int, None, Unset_Type]" = Unset, + show_as_table_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]" = Unset, + x_axis_parameter_guid_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type]" = Unset, + x_axis_parameter_identity_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation - a model defined in Swagger Parameters ---------- - count: int, optional - maximum_number_of_series: int, optional - minimum_number_of_series: int, optional - show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], optional - x_axis_parameter_guid_values: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], optional - x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], optional + count: int, optional + maximum_number_of_series: int, optional + minimum_number_of_series: int, optional + show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], optional + x_axis_parameter_guid_values: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], optional + x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], optional """ - self._x_axis_parameter_identity_values = None - self._x_axis_parameter_guid_values = None - self._show_as_table_values = None - self._minimum_number_of_series = None - self._maximum_number_of_series = None - self._count = None - - if x_axis_parameter_identity_values is not None: + self._x_axis_parameter_identity_values: Union[ + List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], + None, + Unset_Type, + ] = Unset + self._x_axis_parameter_guid_values: Union[ + List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], + None, + Unset_Type, + ] = Unset + self._show_as_table_values: Union[ + List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], + None, + Unset_Type, + ] = Unset + self._minimum_number_of_series: Union[int, None, Unset_Type] = Unset + self._maximum_number_of_series: Union[int, None, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset + + if x_axis_parameter_identity_values is not Unset: self.x_axis_parameter_identity_values = x_axis_parameter_identity_values - if x_axis_parameter_guid_values is not None: + if x_axis_parameter_guid_values is not Unset: self.x_axis_parameter_guid_values = x_axis_parameter_guid_values - if show_as_table_values is not None: + if show_as_table_values is not Unset: self.show_as_table_values = show_as_table_values - if minimum_number_of_series is not None: + if minimum_number_of_series is not Unset: self.minimum_number_of_series = minimum_number_of_series - if maximum_number_of_series is not None: + if maximum_number_of_series is not Unset: self.maximum_number_of_series = maximum_number_of_series - if count is not None: + if count is not Unset: self.count = count @property def x_axis_parameter_identity_values( self, - ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]": + ) -> "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type]": """Gets the x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns ------- - list[GrantaServerApiAggregationsValueWithCountOfSystemInt32] + Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type] The x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ return self._x_axis_parameter_identity_values @@ -129,13 +141,13 @@ def x_axis_parameter_identity_values( @x_axis_parameter_identity_values.setter def x_axis_parameter_identity_values( self, - x_axis_parameter_identity_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]", + x_axis_parameter_identity_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type]", ) -> None: """Sets the x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32] + x_axis_parameter_identity_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type] The x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._x_axis_parameter_identity_values = x_axis_parameter_identity_values @@ -143,12 +155,12 @@ def x_axis_parameter_identity_values( @property def x_axis_parameter_guid_values( self, - ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]": + ) -> "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type]": """Gets the x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns ------- - list[GrantaServerApiAggregationsValueWithCountOfSystemGuid] + Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type] The x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ return self._x_axis_parameter_guid_values @@ -156,13 +168,13 @@ def x_axis_parameter_guid_values( @x_axis_parameter_guid_values.setter def x_axis_parameter_guid_values( self, - x_axis_parameter_guid_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]", + x_axis_parameter_guid_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type]", ) -> None: """Sets the x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - x_axis_parameter_guid_values: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid] + x_axis_parameter_guid_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type] The x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._x_axis_parameter_guid_values = x_axis_parameter_guid_values @@ -170,12 +182,12 @@ def x_axis_parameter_guid_values( @property def show_as_table_values( self, - ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]": + ) -> "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]": """Gets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns ------- - list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type] The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ return self._show_as_table_values @@ -183,91 +195,94 @@ def show_as_table_values( @show_as_table_values.setter def show_as_table_values( self, - show_as_table_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]", + show_as_table_values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]", ) -> None: """Sets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + show_as_table_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type] The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._show_as_table_values = show_as_table_values @property - def minimum_number_of_series(self) -> "Optional[int]": + def minimum_number_of_series(self) -> "Union[int, None, Unset_Type]": """Gets the minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns ------- - int + Union[int, None, Unset_Type] The minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ return self._minimum_number_of_series @minimum_number_of_series.setter def minimum_number_of_series( - self, minimum_number_of_series: "Optional[int]" + self, minimum_number_of_series: "Union[int, None, Unset_Type]" ) -> None: """Sets the minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - minimum_number_of_series: int + minimum_number_of_series: Union[int, None, Unset_Type] The minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._minimum_number_of_series = minimum_number_of_series @property - def maximum_number_of_series(self) -> "Optional[int]": + def maximum_number_of_series(self) -> "Union[int, None, Unset_Type]": """Gets the maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns ------- - int + Union[int, None, Unset_Type] The maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ return self._maximum_number_of_series @maximum_number_of_series.setter def maximum_number_of_series( - self, maximum_number_of_series: "Optional[int]" + self, maximum_number_of_series: "Union[int, None, Unset_Type]" ) -> None: """Sets the maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - maximum_number_of_series: int + maximum_number_of_series: Union[int, None, Unset_Type] The maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._maximum_number_of_series = maximum_number_of_series @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. The number of record where the data is a series graph Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. The number of record where the data is a series graph Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -284,7 +299,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py index bdde154d..f0a8ed40 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation import ( GrantaServerApiAggregationsAggregation, ) # noqa: F401 @@ -70,73 +70,76 @@ class GrantaServerApiAggregationsFreeTextAggregation( def __init__( self, *, - guid: "Optional[str]" = None, - terms: "Optional[List[str]]" = None, + guid: "Union[str, Unset_Type]" = Unset, + terms: "Union[List[str], None, Unset_Type]" = Unset, type: "str" = "text", ) -> None: """GrantaServerApiAggregationsFreeTextAggregation - a model defined in Swagger Parameters ---------- - guid: str, optional - terms: List[str], optional - type: str + guid: str, optional + terms: List[str], optional + type: str """ super().__init__() - self._guid = None - self._terms = None - self._type: str = None # type: ignore[assignment] + self._guid: Union[str, Unset_Type] = Unset + self._terms: Union[List[str], None, Unset_Type] = Unset + self._type: str - if guid is not None: + if guid is not Unset: self.guid = guid - if terms is not None: + if terms is not Unset: self.terms = terms self.type = type @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiAggregationsFreeTextAggregation. The GUID of the input aggregation criterion. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiAggregationsFreeTextAggregation. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiAggregationsFreeTextAggregation. The GUID of the input aggregation criterion. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiAggregationsFreeTextAggregation. """ + # Field is not nullable + if guid is None: + raise ValueError("Invalid value for 'guid', must not be 'None'") self._guid = guid @property - def terms(self) -> "Optional[List[str]]": + def terms(self) -> "Union[List[str], None, Unset_Type]": """Gets the terms of this GrantaServerApiAggregationsFreeTextAggregation. The topmost terms in the specified attributes, across all relevant records. Due to how matches in multiple attributes are reconciled, we cannot easily provide a document count, nor can we guarantee that the terms are perfectly correctly ordered. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The terms of this GrantaServerApiAggregationsFreeTextAggregation. """ return self._terms @terms.setter - def terms(self, terms: "Optional[List[str]]") -> None: + def terms(self, terms: "Union[List[str], None, Unset_Type]") -> None: """Sets the terms of this GrantaServerApiAggregationsFreeTextAggregation. The topmost terms in the specified attributes, across all relevant records. Due to how matches in multiple attributes are reconciled, we cannot easily provide a document count, nor can we guarantee that the terms are perfectly correctly ordered. Parameters ---------- - terms: List[str] + terms: Union[List[str], None, Unset_Type] The terms of this GrantaServerApiAggregationsFreeTextAggregation. """ self._terms = terms @@ -161,12 +164,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsFreeTextAggregation. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py index 1cd63837..b3d9a989 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_criterion import ( GrantaServerApiAggregationsAggregationCriterion, ) # noqa: F401 @@ -79,158 +79,172 @@ class GrantaServerApiAggregationsFreeTextAggregationCriterion( def __init__( self, *, - attributes: "Optional[GrantaServerApiValueSpecifier]" = None, - criterion_guid: "Optional[str]" = None, - local_columns: "Optional[GrantaServerApiValueSpecifier]" = None, - number_of_terms: "Optional[int]" = None, - prefix: "Optional[str]" = None, + attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]" = Unset, + criterion_guid: "Union[str, Unset_Type]" = Unset, + local_columns: "Union[GrantaServerApiValueSpecifier, Unset_Type]" = Unset, + number_of_terms: "Union[int, Unset_Type]" = Unset, + prefix: "Union[str, None, Unset_Type]" = Unset, type: "str" = "text", ) -> None: """GrantaServerApiAggregationsFreeTextAggregationCriterion - a model defined in Swagger Parameters ---------- - attributes: GrantaServerApiValueSpecifier, optional - criterion_guid: str, optional - local_columns: GrantaServerApiValueSpecifier, optional - number_of_terms: int, optional - prefix: str, optional - type: str + attributes: GrantaServerApiValueSpecifier, optional + criterion_guid: str, optional + local_columns: GrantaServerApiValueSpecifier, optional + number_of_terms: int, optional + prefix: str, optional + type: str """ super().__init__() - self._criterion_guid = None - self._number_of_terms = None - self._prefix = None - self._attributes = None - self._local_columns = None - self._type: str = None # type: ignore[assignment] - - if criterion_guid is not None: + self._criterion_guid: Union[str, Unset_Type] = Unset + self._number_of_terms: Union[int, Unset_Type] = Unset + self._prefix: Union[str, None, Unset_Type] = Unset + self._attributes: Union[GrantaServerApiValueSpecifier, Unset_Type] = Unset + self._local_columns: Union[GrantaServerApiValueSpecifier, Unset_Type] = Unset + self._type: str + + if criterion_guid is not Unset: self.criterion_guid = criterion_guid - if number_of_terms is not None: + if number_of_terms is not Unset: self.number_of_terms = number_of_terms - if prefix is not None: + if prefix is not Unset: self.prefix = prefix - if attributes is not None: + if attributes is not Unset: self.attributes = attributes - if local_columns is not None: + if local_columns is not Unset: self.local_columns = local_columns self.type = type @property - def criterion_guid(self) -> "Optional[str]": + def criterion_guid(self) -> "Union[str, Unset_Type]": """Gets the criterion_guid of this GrantaServerApiAggregationsFreeTextAggregationCriterion. A GUID to identify this free-text criterion, so that its results can be determined in the output. For each input free-text aggregation criterion, there will be a free-text aggregation in the output with a matching GUID. Returns ------- - str + Union[str, Unset_Type] The criterion_guid of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ return self._criterion_guid @criterion_guid.setter - def criterion_guid(self, criterion_guid: "Optional[str]") -> None: + def criterion_guid(self, criterion_guid: "Union[str, Unset_Type]") -> None: """Sets the criterion_guid of this GrantaServerApiAggregationsFreeTextAggregationCriterion. A GUID to identify this free-text criterion, so that its results can be determined in the output. For each input free-text aggregation criterion, there will be a free-text aggregation in the output with a matching GUID. Parameters ---------- - criterion_guid: str + criterion_guid: Union[str, Unset_Type] The criterion_guid of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ + # Field is not nullable + if criterion_guid is None: + raise ValueError("Invalid value for 'criterion_guid', must not be 'None'") self._criterion_guid = criterion_guid @property - def number_of_terms(self) -> "Optional[int]": + def number_of_terms(self) -> "Union[int, Unset_Type]": """Gets the number_of_terms of this GrantaServerApiAggregationsFreeTextAggregationCriterion. The number of terms that should be returned Returns ------- - int + Union[int, Unset_Type] The number_of_terms of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ return self._number_of_terms @number_of_terms.setter - def number_of_terms(self, number_of_terms: "Optional[int]") -> None: + def number_of_terms(self, number_of_terms: "Union[int, Unset_Type]") -> None: """Sets the number_of_terms of this GrantaServerApiAggregationsFreeTextAggregationCriterion. The number of terms that should be returned Parameters ---------- - number_of_terms: int + number_of_terms: Union[int, Unset_Type] The number_of_terms of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ + # Field is not nullable + if number_of_terms is None: + raise ValueError("Invalid value for 'number_of_terms', must not be 'None'") self._number_of_terms = number_of_terms @property - def prefix(self) -> "Optional[str]": + def prefix(self) -> "Union[str, None, Unset_Type]": """Gets the prefix of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Returns ------- - str + Union[str, None, Unset_Type] The prefix of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ return self._prefix @prefix.setter - def prefix(self, prefix: "Optional[str]") -> None: + def prefix(self, prefix: "Union[str, None, Unset_Type]") -> None: """Sets the prefix of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Parameters ---------- - prefix: str + prefix: Union[str, None, Unset_Type] The prefix of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ self._prefix = prefix @property - def attributes(self) -> "Optional[GrantaServerApiValueSpecifier]": + def attributes(self) -> "Union[GrantaServerApiValueSpecifier, Unset_Type]": """Gets the attributes of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Returns ------- - GrantaServerApiValueSpecifier + Union[GrantaServerApiValueSpecifier, Unset_Type] The attributes of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ return self._attributes @attributes.setter - def attributes(self, attributes: "Optional[GrantaServerApiValueSpecifier]") -> None: + def attributes( + self, attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]" + ) -> None: """Sets the attributes of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Parameters ---------- - attributes: GrantaServerApiValueSpecifier + attributes: Union[GrantaServerApiValueSpecifier, Unset_Type] The attributes of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ + # Field is not nullable + if attributes is None: + raise ValueError("Invalid value for 'attributes', must not be 'None'") self._attributes = attributes @property - def local_columns(self) -> "Optional[GrantaServerApiValueSpecifier]": + def local_columns(self) -> "Union[GrantaServerApiValueSpecifier, Unset_Type]": """Gets the local_columns of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Returns ------- - GrantaServerApiValueSpecifier + Union[GrantaServerApiValueSpecifier, Unset_Type] The local_columns of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ return self._local_columns @local_columns.setter def local_columns( - self, local_columns: "Optional[GrantaServerApiValueSpecifier]" + self, local_columns: "Union[GrantaServerApiValueSpecifier, Unset_Type]" ) -> None: """Sets the local_columns of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Parameters ---------- - local_columns: GrantaServerApiValueSpecifier + local_columns: Union[GrantaServerApiValueSpecifier, Unset_Type] The local_columns of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ + # Field is not nullable + if local_columns is None: + raise ValueError("Invalid value for 'local_columns', must not be 'None'") self._local_columns = local_columns @property @@ -253,12 +267,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsFreeTextAggregationCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -275,7 +293,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py index c7c212f9..0c85a361 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsHistogram(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsHistogram(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiAggregationsHistogram(ModelBase): # type: ignore[misc] def __init__( self, *, - buckets: "Optional[List[GrantaServerApiAggregationsHistogramBucket]]" = None, + buckets: "Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsHistogram - a model defined in Swagger Parameters ---------- - buckets: List[GrantaServerApiAggregationsHistogramBucket], optional + buckets: List[GrantaServerApiAggregationsHistogramBucket], optional """ - self._buckets = None + self._buckets: Union[ + List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type + ] = Unset - if buckets is not None: + if buckets is not Unset: self.buckets = buckets @property - def buckets(self) -> "Optional[List[GrantaServerApiAggregationsHistogramBucket]]": + def buckets( + self, + ) -> "Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type]": """Gets the buckets of this GrantaServerApiAggregationsHistogram. Returns ------- - list[GrantaServerApiAggregationsHistogramBucket] + Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type] The buckets of this GrantaServerApiAggregationsHistogram. """ return self._buckets @buckets.setter def buckets( - self, buckets: "Optional[List[GrantaServerApiAggregationsHistogramBucket]]" + self, + buckets: "Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type]", ) -> None: """Sets the buckets of this GrantaServerApiAggregationsHistogram. Parameters ---------- - buckets: List[GrantaServerApiAggregationsHistogramBucket] + buckets: Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type] The buckets of this GrantaServerApiAggregationsHistogram. """ self._buckets = buckets @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py index 38f319a0..91971fbe 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsHistogramBucket(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsHistogramBucket(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,103 @@ class GrantaServerApiAggregationsHistogramBucket(ModelBase): # type: ignore[mis def __init__( self, *, - count: "Optional[int]" = None, - lower: "Optional[float]" = None, - upper: "Optional[float]" = None, + count: "Union[int, Unset_Type]" = Unset, + lower: "Union[float, Unset_Type]" = Unset, + upper: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsHistogramBucket - a model defined in Swagger Parameters ---------- - count: int, optional - lower: float, optional - upper: float, optional + count: int, optional + lower: float, optional + upper: float, optional """ - self._lower = None - self._upper = None - self._count = None + self._lower: Union[float, Unset_Type] = Unset + self._upper: Union[float, None, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset - if lower is not None: + if lower is not Unset: self.lower = lower - if upper is not None: + if upper is not Unset: self.upper = upper - if count is not None: + if count is not Unset: self.count = count @property - def lower(self) -> "Optional[float]": + def lower(self) -> "Union[float, Unset_Type]": """Gets the lower of this GrantaServerApiAggregationsHistogramBucket. Returns ------- - float + Union[float, Unset_Type] The lower of this GrantaServerApiAggregationsHistogramBucket. """ return self._lower @lower.setter - def lower(self, lower: "Optional[float]") -> None: + def lower(self, lower: "Union[float, Unset_Type]") -> None: """Sets the lower of this GrantaServerApiAggregationsHistogramBucket. Parameters ---------- - lower: float + lower: Union[float, Unset_Type] The lower of this GrantaServerApiAggregationsHistogramBucket. """ + # Field is not nullable + if lower is None: + raise ValueError("Invalid value for 'lower', must not be 'None'") self._lower = lower @property - def upper(self) -> "Optional[float]": + def upper(self) -> "Union[float, None, Unset_Type]": """Gets the upper of this GrantaServerApiAggregationsHistogramBucket. Returns ------- - float + Union[float, None, Unset_Type] The upper of this GrantaServerApiAggregationsHistogramBucket. """ return self._upper @upper.setter - def upper(self, upper: "Optional[float]") -> None: + def upper(self, upper: "Union[float, None, Unset_Type]") -> None: """Sets the upper of this GrantaServerApiAggregationsHistogramBucket. Parameters ---------- - upper: float + upper: Union[float, None, Unset_Type] The upper of this GrantaServerApiAggregationsHistogramBucket. """ self._upper = upper @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsHistogramBucket. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsHistogramBucket. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsHistogramBucket. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsHistogramBucket. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py index d667442f..17ba64ab 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,68 +71,68 @@ def __init__( self, *, datum_type: "str" = "integer", - maximum: "Optional[int]" = None, - minimum: "Optional[int]" = None, + maximum: "Union[int, None, Unset_Type]" = Unset, + minimum: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsIntegerAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - maximum: int, optional - minimum: int, optional + datum_type: str + maximum: int, optional + minimum: int, optional """ super().__init__() - self._minimum = None - self._maximum = None - self._datum_type: str = None # type: ignore[assignment] + self._minimum: Union[int, None, Unset_Type] = Unset + self._maximum: Union[int, None, Unset_Type] = Unset + self._datum_type: str - if minimum is not None: + if minimum is not Unset: self.minimum = minimum - if maximum is not None: + if maximum is not Unset: self.maximum = maximum self.datum_type = datum_type @property - def minimum(self) -> "Optional[int]": + def minimum(self) -> "Union[int, None, Unset_Type]": """Gets the minimum of this GrantaServerApiAggregationsIntegerAggregation. Returns ------- - int + Union[int, None, Unset_Type] The minimum of this GrantaServerApiAggregationsIntegerAggregation. """ return self._minimum @minimum.setter - def minimum(self, minimum: "Optional[int]") -> None: + def minimum(self, minimum: "Union[int, None, Unset_Type]") -> None: """Sets the minimum of this GrantaServerApiAggregationsIntegerAggregation. Parameters ---------- - minimum: int + minimum: Union[int, None, Unset_Type] The minimum of this GrantaServerApiAggregationsIntegerAggregation. """ self._minimum = minimum @property - def maximum(self) -> "Optional[int]": + def maximum(self) -> "Union[int, None, Unset_Type]": """Gets the maximum of this GrantaServerApiAggregationsIntegerAggregation. Returns ------- - int + Union[int, None, Unset_Type] The maximum of this GrantaServerApiAggregationsIntegerAggregation. """ return self._maximum @maximum.setter - def maximum(self, maximum: "Optional[int]") -> None: + def maximum(self, maximum: "Union[int, None, Unset_Type]") -> None: """Sets the maximum of this GrantaServerApiAggregationsIntegerAggregation. Parameters ---------- - maximum: int + maximum: Union[int, None, Unset_Type] The maximum of this GrantaServerApiAggregationsIntegerAggregation. """ self._maximum = maximum @@ -157,12 +157,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsIntegerAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py index f8a94379..396d2529 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -72,10 +72,10 @@ def __init__( Parameters ---------- - type: str + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -99,12 +99,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsIntegerAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py index 59b7e120..49aec71f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -70,75 +70,81 @@ class GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCrite def __init__( self, *, - interval: "Optional[float]" = None, - offset: "Optional[float]" = None, + interval: "Union[float, Unset_Type]" = Unset, + offset: "Union[float, Unset_Type]" = Unset, type: "str" = "integerFixedWidthHistogram", ) -> None: """GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - interval: float, optional - offset: float, optional - type: str + interval: float, optional + offset: float, optional + type: str """ super().__init__() - self._interval = None - self._offset = None - self._type: str = None # type: ignore[assignment] + self._interval: Union[float, Unset_Type] = Unset + self._offset: Union[float, Unset_Type] = Unset + self._type: str - if interval is not None: + if interval is not Unset: self.interval = interval - if offset is not None: + if offset is not Unset: self.offset = offset self.type = type @property - def interval(self) -> "Optional[float]": + def interval(self) -> "Union[float, Unset_Type]": """Gets the interval of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets Returns ------- - float + Union[float, Unset_Type] The interval of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. """ return self._interval @interval.setter - def interval(self, interval: "Optional[float]") -> None: + def interval(self, interval: "Union[float, Unset_Type]") -> None: """Sets the interval of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets Parameters ---------- - interval: float + interval: Union[float, Unset_Type] The interval of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable + if interval is None: + raise ValueError("Invalid value for 'interval', must not be 'None'") self._interval = interval @property - def offset(self) -> "Optional[float]": + def offset(self) -> "Union[float, Unset_Type]": """Gets the offset of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. Returns ------- - float + Union[float, Unset_Type] The offset of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. """ return self._offset @offset.setter - def offset(self, offset: "Optional[float]") -> None: + def offset(self, offset: "Union[float, Unset_Type]") -> None: """Sets the offset of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. Parameters ---------- - offset: float + offset: Union[float, Unset_Type] The offset of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable + if offset is None: + raise ValueError("Invalid value for 'offset', must not be 'None'") self._offset = offset @property @@ -161,12 +167,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +193,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py index c463e5ec..9a5cd5fb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,45 +71,48 @@ def __init__( self, *, datum_type: "str" = "integerHistogram", - histogram: "Optional[GrantaServerApiAggregationsHistogram]" = None, + histogram: "Union[GrantaServerApiAggregationsHistogram, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsIntegerHistogramAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - histogram: GrantaServerApiAggregationsHistogram, optional + datum_type: str + histogram: GrantaServerApiAggregationsHistogram, optional """ super().__init__() - self._histogram = None - self._datum_type: str = None # type: ignore[assignment] + self._histogram: Union[GrantaServerApiAggregationsHistogram, Unset_Type] = Unset + self._datum_type: str - if histogram is not None: + if histogram is not Unset: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "Optional[GrantaServerApiAggregationsHistogram]": + def histogram(self) -> "Union[GrantaServerApiAggregationsHistogram, Unset_Type]": """Gets the histogram of this GrantaServerApiAggregationsIntegerHistogramAggregation. Returns ------- - GrantaServerApiAggregationsHistogram + Union[GrantaServerApiAggregationsHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsIntegerHistogramAggregation. """ return self._histogram @histogram.setter def histogram( - self, histogram: "Optional[GrantaServerApiAggregationsHistogram]" + self, histogram: "Union[GrantaServerApiAggregationsHistogram, Unset_Type]" ) -> None: """Sets the histogram of this GrantaServerApiAggregationsIntegerHistogramAggregation. Parameters ---------- - histogram: GrantaServerApiAggregationsHistogram + histogram: Union[GrantaServerApiAggregationsHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsIntegerHistogramAggregation. """ + # Field is not nullable + if histogram is None: + raise ValueError("Invalid value for 'histogram', must not be 'None'") self._histogram = histogram @property @@ -132,12 +135,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsIntegerHistogramAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py index f8dc4ee4..82c265d1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -68,46 +68,51 @@ class GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion( def __init__( self, *, - maximum_number_of_buckets: "Optional[int]" = None, + maximum_number_of_buckets: "Union[int, Unset_Type]" = Unset, type: "str" = "integerHistogram", ) -> None: """GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - maximum_number_of_buckets: int, optional - type: str + maximum_number_of_buckets: int, optional + type: str """ super().__init__() - self._maximum_number_of_buckets = None - self._type: str = None # type: ignore[assignment] + self._maximum_number_of_buckets: Union[int, Unset_Type] = Unset + self._type: str - if maximum_number_of_buckets is not None: + if maximum_number_of_buckets is not Unset: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "Optional[int]": + def maximum_number_of_buckets(self) -> "Union[int, Unset_Type]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion. Returns ------- - int + Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion. """ return self._maximum_number_of_buckets @maximum_number_of_buckets.setter def maximum_number_of_buckets( - self, maximum_number_of_buckets: "Optional[int]" + self, maximum_number_of_buckets: "Union[int, Unset_Type]" ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion. Parameters ---------- - maximum_number_of_buckets: int + maximum_number_of_buckets: Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion. """ + # Field is not nullable + if maximum_number_of_buckets is None: + raise ValueError( + "Invalid value for 'maximum_number_of_buckets', must not be 'None'" + ) self._maximum_number_of_buckets = maximum_number_of_buckets @property @@ -130,12 +135,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py index ce5ff2f9..ea4e836e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,32 +71,34 @@ def __init__( self, *, datum_type: "str" = "link", - local_aggregations: "Optional[List[GrantaServerApiAggregationsLocalColumnAggregation]]" = None, + local_aggregations: "Union[List[GrantaServerApiAggregationsLocalColumnAggregation], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsLinkAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - local_aggregations: List[GrantaServerApiAggregationsLocalColumnAggregation], optional + datum_type: str + local_aggregations: List[GrantaServerApiAggregationsLocalColumnAggregation], optional """ super().__init__() - self._local_aggregations = None - self._datum_type: str = None # type: ignore[assignment] + self._local_aggregations: Union[ + List[GrantaServerApiAggregationsLocalColumnAggregation], None, Unset_Type + ] = Unset + self._datum_type: str - if local_aggregations is not None: + if local_aggregations is not Unset: self.local_aggregations = local_aggregations self.datum_type = datum_type @property def local_aggregations( self, - ) -> "Optional[List[GrantaServerApiAggregationsLocalColumnAggregation]]": + ) -> "Union[List[GrantaServerApiAggregationsLocalColumnAggregation], None, Unset_Type]": """Gets the local_aggregations of this GrantaServerApiAggregationsLinkAggregation. Returns ------- - list[GrantaServerApiAggregationsLocalColumnAggregation] + Union[List[GrantaServerApiAggregationsLocalColumnAggregation], None, Unset_Type] The local_aggregations of this GrantaServerApiAggregationsLinkAggregation. """ return self._local_aggregations @@ -104,13 +106,13 @@ def local_aggregations( @local_aggregations.setter def local_aggregations( self, - local_aggregations: "Optional[List[GrantaServerApiAggregationsLocalColumnAggregation]]", + local_aggregations: "Union[List[GrantaServerApiAggregationsLocalColumnAggregation], None, Unset_Type]", ) -> None: """Sets the local_aggregations of this GrantaServerApiAggregationsLinkAggregation. Parameters ---------- - local_aggregations: List[GrantaServerApiAggregationsLocalColumnAggregation] + local_aggregations: Union[List[GrantaServerApiAggregationsLocalColumnAggregation], None, Unset_Type] The local_aggregations of this GrantaServerApiAggregationsLinkAggregation. """ self._local_aggregations = local_aggregations @@ -135,12 +137,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsLinkAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -157,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py index d984facd..9f89e894 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -70,22 +70,26 @@ class GrantaServerApiAggregationsLinkAggregationDatumCriterion( def __init__( self, *, - local_aggregation_criteria: "Optional[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion]]" = None, + local_aggregation_criteria: "Union[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type]" = Unset, type: "str" = "link", ) -> None: """GrantaServerApiAggregationsLinkAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - local_aggregation_criteria: List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], optional - type: str + local_aggregation_criteria: List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], optional + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] - self._local_aggregation_criteria = None + self._type: str + self._local_aggregation_criteria: Union[ + List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], + None, + Unset_Type, + ] = Unset self.type = type - if local_aggregation_criteria is not None: + if local_aggregation_criteria is not Unset: self.local_aggregation_criteria = local_aggregation_criteria @property @@ -108,19 +112,23 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property def local_aggregation_criteria( self, - ) -> "Optional[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion]]": + ) -> "Union[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type]": """Gets the local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. Returns ------- - list[GrantaServerApiAggregationsLocalColumnAggregationCriterion] + Union[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type] The local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. """ return self._local_aggregation_criteria @@ -128,19 +136,19 @@ def local_aggregation_criteria( @local_aggregation_criteria.setter def local_aggregation_criteria( self, - local_aggregation_criteria: "Optional[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion]]", + local_aggregation_criteria: "Union[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type]", ) -> None: """Sets the local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. Parameters ---------- - local_aggregation_criteria: List[GrantaServerApiAggregationsLocalColumnAggregationCriterion] + local_aggregation_criteria: Union[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type] The local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. """ self._local_aggregation_criteria = local_aggregation_criteria @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -157,7 +165,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py index 157938b8..fa3dcee2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsLocalColumnAggregation(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsLocalColumnAggregation(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,103 +72,110 @@ class GrantaServerApiAggregationsLocalColumnAggregation(ModelBase): # type: ign def __init__( self, *, - count: "Optional[int]" = None, - local_column_guid: "Optional[str]" = None, - local_column_identity: "Optional[int]" = None, + count: "Union[int, Unset_Type]" = Unset, + local_column_guid: "Union[str, None, Unset_Type]" = Unset, + local_column_identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsLocalColumnAggregation - a model defined in Swagger Parameters ---------- - count: int, optional - local_column_guid: str, optional - local_column_identity: int, optional + count: int, optional + local_column_guid: str, optional + local_column_identity: int, optional """ - self._local_column_identity = None - self._local_column_guid = None - self._count = None + self._local_column_identity: Union[int, None, Unset_Type] = Unset + self._local_column_guid: Union[str, None, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset - if local_column_identity is not None: + if local_column_identity is not Unset: self.local_column_identity = local_column_identity - if local_column_guid is not None: + if local_column_guid is not Unset: self.local_column_guid = local_column_guid - if count is not None: + if count is not Unset: self.count = count @property - def local_column_identity(self) -> "Optional[int]": + def local_column_identity(self) -> "Union[int, None, Unset_Type]": """Gets the local_column_identity of this GrantaServerApiAggregationsLocalColumnAggregation. The identity of the local column that was aggregated over. Returns ------- - int + Union[int, None, Unset_Type] The local_column_identity of this GrantaServerApiAggregationsLocalColumnAggregation. """ return self._local_column_identity @local_column_identity.setter - def local_column_identity(self, local_column_identity: "Optional[int]") -> None: + def local_column_identity( + self, local_column_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the local_column_identity of this GrantaServerApiAggregationsLocalColumnAggregation. The identity of the local column that was aggregated over. Parameters ---------- - local_column_identity: int + local_column_identity: Union[int, None, Unset_Type] The local_column_identity of this GrantaServerApiAggregationsLocalColumnAggregation. """ self._local_column_identity = local_column_identity @property - def local_column_guid(self) -> "Optional[str]": + def local_column_guid(self) -> "Union[str, None, Unset_Type]": """Gets the local_column_guid of this GrantaServerApiAggregationsLocalColumnAggregation. The GUID of the local column that was aggregated over. Returns ------- - str + Union[str, None, Unset_Type] The local_column_guid of this GrantaServerApiAggregationsLocalColumnAggregation. """ return self._local_column_guid @local_column_guid.setter - def local_column_guid(self, local_column_guid: "Optional[str]") -> None: + def local_column_guid( + self, local_column_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the local_column_guid of this GrantaServerApiAggregationsLocalColumnAggregation. The GUID of the local column that was aggregated over. Parameters ---------- - local_column_guid: str + local_column_guid: Union[str, None, Unset_Type] The local_column_guid of this GrantaServerApiAggregationsLocalColumnAggregation. """ self._local_column_guid = local_column_guid @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsLocalColumnAggregation. The number of records that have a populated (applicable) value for this local column. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsLocalColumnAggregation. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsLocalColumnAggregation. The number of records that have a populated (applicable) value for this local column. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsLocalColumnAggregation. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -190,7 +197,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py index f941f0c9..dcbd6028 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsLocalColumnAggregationCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsLocalColumnAggregationCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,70 +70,70 @@ class GrantaServerApiAggregationsLocalColumnAggregationCriterion(ModelBase): # def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsLocalColumnAggregationCriterion - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional + guid: str, optional + identity: int, optional """ - self._identity = None - self._guid = None + self._identity: Union[int, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. """ self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. """ self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -155,7 +155,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py index aabac998..3837f415 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation_criterion import ( GrantaServerApiAggregationsLocalColumnAggregationCriterion, ) # noqa: F401 @@ -74,28 +74,30 @@ class GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion( def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]" = Unset, local_column_aggregation_criterion_type: "str" = "exists", ) -> None: """GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional - inner_criterion: GrantaServerApiAggregationsAggregationDatumExistsCriterion, optional - local_column_aggregation_criterion_type: str + guid: str, optional + identity: int, optional + inner_criterion: GrantaServerApiAggregationsAggregationDatumExistsCriterion, optional + local_column_aggregation_criterion_type: str """ super().__init__(guid=guid, identity=identity) - self._local_column_aggregation_criterion_type: str = None # type: ignore[assignment] - self._inner_criterion = None + self._local_column_aggregation_criterion_type: str + self._inner_criterion: Union[ + GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type + ] = Unset self.local_column_aggregation_criterion_type = ( local_column_aggregation_criterion_type ) - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion @property @@ -120,10 +122,16 @@ def local_column_aggregation_criterion_type( local_column_aggregation_criterion_type: str The local_column_aggregation_criterion_type of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. """ + # Field is not nullable if local_column_aggregation_criterion_type is None: raise ValueError( "Invalid value for 'local_column_aggregation_criterion_type', must not be 'None'" ) + # Field is required + if local_column_aggregation_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'local_column_aggregation_criterion_type', must not be 'Unset'" + ) self._local_column_aggregation_criterion_type = ( local_column_aggregation_criterion_type ) @@ -131,12 +139,14 @@ def local_column_aggregation_criterion_type( @property def inner_criterion( self, - ) -> "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]": + ) -> ( + "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]" + ): """Gets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. Returns ------- - GrantaServerApiAggregationsAggregationDatumExistsCriterion + Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. """ return self._inner_criterion @@ -144,19 +154,22 @@ def inner_criterion( @inner_criterion.setter def inner_criterion( self, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]", + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. Parameters ---------- - inner_criterion: GrantaServerApiAggregationsAggregationDatumExistsCriterion + inner_criterion: Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -173,7 +186,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py index 646042c3..74b4a7fc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation_criterion import ( GrantaServerApiAggregationsLocalColumnAggregationCriterion, ) # noqa: F401 @@ -74,28 +74,30 @@ class GrantaServerApiAggregationsLocalColumnAggregationValueCriterion( def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type]" = Unset, local_column_aggregation_criterion_type: "str" = "value", ) -> None: """GrantaServerApiAggregationsLocalColumnAggregationValueCriterion - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional - inner_criterion: GrantaServerApiAggregationsAggregationDatumCriterion, optional - local_column_aggregation_criterion_type: str + guid: str, optional + identity: int, optional + inner_criterion: GrantaServerApiAggregationsAggregationDatumCriterion, optional + local_column_aggregation_criterion_type: str """ super().__init__(guid=guid, identity=identity) - self._local_column_aggregation_criterion_type: str = None # type: ignore[assignment] - self._inner_criterion = None + self._local_column_aggregation_criterion_type: str + self._inner_criterion: Union[ + GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type + ] = Unset self.local_column_aggregation_criterion_type = ( local_column_aggregation_criterion_type ) - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion @property @@ -120,10 +122,16 @@ def local_column_aggregation_criterion_type( local_column_aggregation_criterion_type: str The local_column_aggregation_criterion_type of this GrantaServerApiAggregationsLocalColumnAggregationValueCriterion. """ + # Field is not nullable if local_column_aggregation_criterion_type is None: raise ValueError( "Invalid value for 'local_column_aggregation_criterion_type', must not be 'None'" ) + # Field is required + if local_column_aggregation_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'local_column_aggregation_criterion_type', must not be 'Unset'" + ) self._local_column_aggregation_criterion_type = ( local_column_aggregation_criterion_type ) @@ -131,12 +139,12 @@ def local_column_aggregation_criterion_type( @property def inner_criterion( self, - ) -> "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]": + ) -> "Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationValueCriterion. Returns ------- - GrantaServerApiAggregationsAggregationDatumCriterion + Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationValueCriterion. """ return self._inner_criterion @@ -144,19 +152,22 @@ def inner_criterion( @inner_criterion.setter def inner_criterion( self, - inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]", + inner_criterion: "Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationValueCriterion. Parameters ---------- - inner_criterion: GrantaServerApiAggregationsAggregationDatumCriterion + inner_criterion: Union[GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationValueCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -173,7 +184,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py index 200c2039..865c2756 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation import ( GrantaServerApiAggregationsLocalColumnAggregation, ) # noqa: F401 @@ -72,26 +72,26 @@ class GrantaServerApiAggregationsLocalColumnExistsAggregation( def __init__( self, *, - count: "Optional[int]" = None, + count: "Union[int, Unset_Type]" = Unset, local_column_aggregation_type: "str" = "exists", - local_column_guid: "Optional[str]" = None, - local_column_identity: "Optional[int]" = None, + local_column_guid: "Union[str, None, Unset_Type]" = Unset, + local_column_identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsLocalColumnExistsAggregation - a model defined in Swagger Parameters ---------- - count: int, optional - local_column_aggregation_type: str - local_column_guid: str, optional - local_column_identity: int, optional + count: int, optional + local_column_aggregation_type: str + local_column_guid: str, optional + local_column_identity: int, optional """ super().__init__( count=count, local_column_guid=local_column_guid, local_column_identity=local_column_identity, ) - self._local_column_aggregation_type: str = None # type: ignore[assignment] + self._local_column_aggregation_type: str self.local_column_aggregation_type = local_column_aggregation_type @@ -117,14 +117,20 @@ def local_column_aggregation_type( local_column_aggregation_type: str The local_column_aggregation_type of this GrantaServerApiAggregationsLocalColumnExistsAggregation. """ + # Field is not nullable if local_column_aggregation_type is None: raise ValueError( "Invalid value for 'local_column_aggregation_type', must not be 'None'" ) + # Field is required + if local_column_aggregation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'local_column_aggregation_type', must not be 'Unset'" + ) self._local_column_aggregation_type = local_column_aggregation_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -141,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py index 72d7b460..bd449f81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation import ( GrantaServerApiAggregationsLocalColumnAggregation, ) # noqa: F401 @@ -76,58 +76,66 @@ class GrantaServerApiAggregationsLocalColumnValueAggregation( def __init__( self, *, - aggregation_datum: "Optional[GrantaServerApiAggregationsAggregationDatum]" = None, - count: "Optional[int]" = None, + aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]" = Unset, + count: "Union[int, Unset_Type]" = Unset, local_column_aggregation_type: "str" = "value", - local_column_guid: "Optional[str]" = None, - local_column_identity: "Optional[int]" = None, + local_column_guid: "Union[str, None, Unset_Type]" = Unset, + local_column_identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsLocalColumnValueAggregation - a model defined in Swagger Parameters ---------- - aggregation_datum: GrantaServerApiAggregationsAggregationDatum, optional - count: int, optional - local_column_aggregation_type: str - local_column_guid: str, optional - local_column_identity: int, optional + aggregation_datum: GrantaServerApiAggregationsAggregationDatum, optional + count: int, optional + local_column_aggregation_type: str + local_column_guid: str, optional + local_column_identity: int, optional """ super().__init__( count=count, local_column_guid=local_column_guid, local_column_identity=local_column_identity, ) - self._aggregation_datum = None - self._local_column_aggregation_type: str = None # type: ignore[assignment] + self._aggregation_datum: Union[ + GrantaServerApiAggregationsAggregationDatum, Unset_Type + ] = Unset + self._local_column_aggregation_type: str - if aggregation_datum is not None: + if aggregation_datum is not Unset: self.aggregation_datum = aggregation_datum self.local_column_aggregation_type = local_column_aggregation_type @property def aggregation_datum( self, - ) -> "Optional[GrantaServerApiAggregationsAggregationDatum]": + ) -> "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]": """Gets the aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. Returns ------- - GrantaServerApiAggregationsAggregationDatum + Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type] The aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. """ return self._aggregation_datum @aggregation_datum.setter def aggregation_datum( - self, aggregation_datum: "Optional[GrantaServerApiAggregationsAggregationDatum]" + self, + aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]", ) -> None: """Sets the aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. Parameters ---------- - aggregation_datum: GrantaServerApiAggregationsAggregationDatum + aggregation_datum: Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type] The aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. """ + # Field is not nullable + if aggregation_datum is None: + raise ValueError( + "Invalid value for 'aggregation_datum', must not be 'None'" + ) self._aggregation_datum = aggregation_datum @property @@ -152,14 +160,20 @@ def local_column_aggregation_type( local_column_aggregation_type: str The local_column_aggregation_type of this GrantaServerApiAggregationsLocalColumnValueAggregation. """ + # Field is not nullable if local_column_aggregation_type is None: raise ValueError( "Invalid value for 'local_column_aggregation_type', must not be 'None'" ) + # Field is required + if local_column_aggregation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'local_column_aggregation_type', must not be 'Unset'" + ) self._local_column_aggregation_type = local_column_aggregation_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -176,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py index 073d96aa..3a55a063 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,32 +71,36 @@ def __init__( self, *, datum_type: "str" = "logical", - values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]" = None, + values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsLogicalAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], optional + datum_type: str + values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], optional """ super().__init__() - self._values = None - self._datum_type: str = None # type: ignore[assignment] - - if values is not None: + self._values: Union[ + List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], + None, + Unset_Type, + ] = Unset + self._datum_type: str + + if values is not Unset: self.values = values self.datum_type = datum_type @property def values( self, - ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]": + ) -> "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]": """Gets the values of this GrantaServerApiAggregationsLogicalAggregation. Returns ------- - list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type] The values of this GrantaServerApiAggregationsLogicalAggregation. """ return self._values @@ -104,13 +108,13 @@ def values( @values.setter def values( self, - values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]", + values: "Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type]", ) -> None: """Sets the values of this GrantaServerApiAggregationsLogicalAggregation. Parameters ---------- - values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type] The values of this GrantaServerApiAggregationsLogicalAggregation. """ self._values = values @@ -135,12 +139,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsLogicalAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -157,7 +165,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py index 4049472f..61da016b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -72,10 +72,10 @@ def __init__( Parameters ---------- - type: str + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -99,12 +99,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsLogicalAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py index d78e628e..44c8c69a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,68 +71,68 @@ def __init__( self, *, datum_type: "str" = "point", - maximum: "Optional[float]" = None, - minimum: "Optional[float]" = None, + maximum: "Union[float, None, Unset_Type]" = Unset, + minimum: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsPointAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - maximum: float, optional - minimum: float, optional + datum_type: str + maximum: float, optional + minimum: float, optional """ super().__init__() - self._minimum = None - self._maximum = None - self._datum_type: str = None # type: ignore[assignment] + self._minimum: Union[float, None, Unset_Type] = Unset + self._maximum: Union[float, None, Unset_Type] = Unset + self._datum_type: str - if minimum is not None: + if minimum is not Unset: self.minimum = minimum - if maximum is not None: + if maximum is not Unset: self.maximum = maximum self.datum_type = datum_type @property - def minimum(self) -> "Optional[float]": + def minimum(self) -> "Union[float, None, Unset_Type]": """Gets the minimum of this GrantaServerApiAggregationsPointAggregation. Returns ------- - float + Union[float, None, Unset_Type] The minimum of this GrantaServerApiAggregationsPointAggregation. """ return self._minimum @minimum.setter - def minimum(self, minimum: "Optional[float]") -> None: + def minimum(self, minimum: "Union[float, None, Unset_Type]") -> None: """Sets the minimum of this GrantaServerApiAggregationsPointAggregation. Parameters ---------- - minimum: float + minimum: Union[float, None, Unset_Type] The minimum of this GrantaServerApiAggregationsPointAggregation. """ self._minimum = minimum @property - def maximum(self) -> "Optional[float]": + def maximum(self) -> "Union[float, None, Unset_Type]": """Gets the maximum of this GrantaServerApiAggregationsPointAggregation. Returns ------- - float + Union[float, None, Unset_Type] The maximum of this GrantaServerApiAggregationsPointAggregation. """ return self._maximum @maximum.setter - def maximum(self, maximum: "Optional[float]") -> None: + def maximum(self, maximum: "Union[float, None, Unset_Type]") -> None: """Sets the maximum of this GrantaServerApiAggregationsPointAggregation. Parameters ---------- - maximum: float + maximum: Union[float, None, Unset_Type] The maximum of this GrantaServerApiAggregationsPointAggregation. """ self._maximum = maximum @@ -157,12 +157,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsPointAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py index ceb2d633..2cf94731 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -72,10 +72,10 @@ def __init__( Parameters ---------- - type: str + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -99,12 +99,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsPointAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py index ff0d3ed1..6dc33f41 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -70,75 +70,81 @@ class GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriteri def __init__( self, *, - interval: "Optional[float]" = None, - offset: "Optional[float]" = None, + interval: "Union[float, Unset_Type]" = Unset, + offset: "Union[float, Unset_Type]" = Unset, type: "str" = "pointFixedWidthHistogram", ) -> None: """GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - interval: float, optional - offset: float, optional - type: str + interval: float, optional + offset: float, optional + type: str """ super().__init__() - self._interval = None - self._offset = None - self._type: str = None # type: ignore[assignment] + self._interval: Union[float, Unset_Type] = Unset + self._offset: Union[float, Unset_Type] = Unset + self._type: str - if interval is not None: + if interval is not Unset: self.interval = interval - if offset is not None: + if offset is not Unset: self.offset = offset self.type = type @property - def interval(self) -> "Optional[float]": + def interval(self) -> "Union[float, Unset_Type]": """Gets the interval of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets Returns ------- - float + Union[float, Unset_Type] The interval of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. """ return self._interval @interval.setter - def interval(self, interval: "Optional[float]") -> None: + def interval(self, interval: "Union[float, Unset_Type]") -> None: """Sets the interval of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets Parameters ---------- - interval: float + interval: Union[float, Unset_Type] The interval of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable + if interval is None: + raise ValueError("Invalid value for 'interval', must not be 'None'") self._interval = interval @property - def offset(self) -> "Optional[float]": + def offset(self) -> "Union[float, Unset_Type]": """Gets the offset of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. Returns ------- - float + Union[float, Unset_Type] The offset of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. """ return self._offset @offset.setter - def offset(self, offset: "Optional[float]") -> None: + def offset(self, offset: "Union[float, Unset_Type]") -> None: """Sets the offset of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. Parameters ---------- - offset: float + offset: Union[float, Unset_Type] The offset of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable + if offset is None: + raise ValueError("Invalid value for 'offset', must not be 'None'") self._offset = offset @property @@ -161,12 +167,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +193,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py index 37f08de1..c293d9d2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,45 +71,48 @@ def __init__( self, *, datum_type: "str" = "pointHistogram", - histogram: "Optional[GrantaServerApiAggregationsHistogram]" = None, + histogram: "Union[GrantaServerApiAggregationsHistogram, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsPointHistogramAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - histogram: GrantaServerApiAggregationsHistogram, optional + datum_type: str + histogram: GrantaServerApiAggregationsHistogram, optional """ super().__init__() - self._histogram = None - self._datum_type: str = None # type: ignore[assignment] + self._histogram: Union[GrantaServerApiAggregationsHistogram, Unset_Type] = Unset + self._datum_type: str - if histogram is not None: + if histogram is not Unset: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "Optional[GrantaServerApiAggregationsHistogram]": + def histogram(self) -> "Union[GrantaServerApiAggregationsHistogram, Unset_Type]": """Gets the histogram of this GrantaServerApiAggregationsPointHistogramAggregation. Returns ------- - GrantaServerApiAggregationsHistogram + Union[GrantaServerApiAggregationsHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsPointHistogramAggregation. """ return self._histogram @histogram.setter def histogram( - self, histogram: "Optional[GrantaServerApiAggregationsHistogram]" + self, histogram: "Union[GrantaServerApiAggregationsHistogram, Unset_Type]" ) -> None: """Sets the histogram of this GrantaServerApiAggregationsPointHistogramAggregation. Parameters ---------- - histogram: GrantaServerApiAggregationsHistogram + histogram: Union[GrantaServerApiAggregationsHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsPointHistogramAggregation. """ + # Field is not nullable + if histogram is None: + raise ValueError("Invalid value for 'histogram', must not be 'None'") self._histogram = histogram @property @@ -132,12 +135,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsPointHistogramAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py index 8adfd32e..74c33040 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -68,46 +68,51 @@ class GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion( def __init__( self, *, - maximum_number_of_buckets: "Optional[int]" = None, + maximum_number_of_buckets: "Union[int, Unset_Type]" = Unset, type: "str" = "pointHistogram", ) -> None: """GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - maximum_number_of_buckets: int, optional - type: str + maximum_number_of_buckets: int, optional + type: str """ super().__init__() - self._maximum_number_of_buckets = None - self._type: str = None # type: ignore[assignment] + self._maximum_number_of_buckets: Union[int, Unset_Type] = Unset + self._type: str - if maximum_number_of_buckets is not None: + if maximum_number_of_buckets is not Unset: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "Optional[int]": + def maximum_number_of_buckets(self) -> "Union[int, Unset_Type]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion. Returns ------- - int + Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion. """ return self._maximum_number_of_buckets @maximum_number_of_buckets.setter def maximum_number_of_buckets( - self, maximum_number_of_buckets: "Optional[int]" + self, maximum_number_of_buckets: "Union[int, Unset_Type]" ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion. Parameters ---------- - maximum_number_of_buckets: int + maximum_number_of_buckets: Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion. """ + # Field is not nullable + if maximum_number_of_buckets is None: + raise ValueError( + "Invalid value for 'maximum_number_of_buckets', must not be 'None'" + ) self._maximum_number_of_buckets = maximum_number_of_buckets @property @@ -130,12 +135,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py index 38973244..aaa11838 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,68 +71,68 @@ def __init__( self, *, datum_type: "str" = "range", - maximum: "Optional[float]" = None, - minimum: "Optional[float]" = None, + maximum: "Union[float, None, Unset_Type]" = Unset, + minimum: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsRangeAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - maximum: float, optional - minimum: float, optional + datum_type: str + maximum: float, optional + minimum: float, optional """ super().__init__() - self._minimum = None - self._maximum = None - self._datum_type: str = None # type: ignore[assignment] + self._minimum: Union[float, None, Unset_Type] = Unset + self._maximum: Union[float, None, Unset_Type] = Unset + self._datum_type: str - if minimum is not None: + if minimum is not Unset: self.minimum = minimum - if maximum is not None: + if maximum is not Unset: self.maximum = maximum self.datum_type = datum_type @property - def minimum(self) -> "Optional[float]": + def minimum(self) -> "Union[float, None, Unset_Type]": """Gets the minimum of this GrantaServerApiAggregationsRangeAggregation. Returns ------- - float + Union[float, None, Unset_Type] The minimum of this GrantaServerApiAggregationsRangeAggregation. """ return self._minimum @minimum.setter - def minimum(self, minimum: "Optional[float]") -> None: + def minimum(self, minimum: "Union[float, None, Unset_Type]") -> None: """Sets the minimum of this GrantaServerApiAggregationsRangeAggregation. Parameters ---------- - minimum: float + minimum: Union[float, None, Unset_Type] The minimum of this GrantaServerApiAggregationsRangeAggregation. """ self._minimum = minimum @property - def maximum(self) -> "Optional[float]": + def maximum(self) -> "Union[float, None, Unset_Type]": """Gets the maximum of this GrantaServerApiAggregationsRangeAggregation. Returns ------- - float + Union[float, None, Unset_Type] The maximum of this GrantaServerApiAggregationsRangeAggregation. """ return self._maximum @maximum.setter - def maximum(self, maximum: "Optional[float]") -> None: + def maximum(self, maximum: "Union[float, None, Unset_Type]") -> None: """Sets the maximum of this GrantaServerApiAggregationsRangeAggregation. Parameters ---------- - maximum: float + maximum: Union[float, None, Unset_Type] The maximum of this GrantaServerApiAggregationsRangeAggregation. """ self._maximum = maximum @@ -157,12 +157,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsRangeAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py index 108f0200..ff38ad4c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -72,10 +72,10 @@ def __init__( Parameters ---------- - type: str + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -99,12 +99,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsRangeAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py index 25a71ed9..82ab9177 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -70,75 +70,81 @@ class GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriteri def __init__( self, *, - interval: "Optional[float]" = None, - offset: "Optional[float]" = None, + interval: "Union[float, Unset_Type]" = Unset, + offset: "Union[float, Unset_Type]" = Unset, type: "str" = "rangeFixedWidthHistogram", ) -> None: """GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - interval: float, optional - offset: float, optional - type: str + interval: float, optional + offset: float, optional + type: str """ super().__init__() - self._interval = None - self._offset = None - self._type: str = None # type: ignore[assignment] + self._interval: Union[float, Unset_Type] = Unset + self._offset: Union[float, Unset_Type] = Unset + self._type: str - if interval is not None: + if interval is not Unset: self.interval = interval - if offset is not None: + if offset is not Unset: self.offset = offset self.type = type @property - def interval(self) -> "Optional[float]": + def interval(self) -> "Union[float, Unset_Type]": """Gets the interval of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets Returns ------- - float + Union[float, Unset_Type] The interval of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. """ return self._interval @interval.setter - def interval(self, interval: "Optional[float]") -> None: + def interval(self, interval: "Union[float, Unset_Type]") -> None: """Sets the interval of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets Parameters ---------- - interval: float + interval: Union[float, Unset_Type] The interval of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable + if interval is None: + raise ValueError("Invalid value for 'interval', must not be 'None'") self._interval = interval @property - def offset(self) -> "Optional[float]": + def offset(self) -> "Union[float, Unset_Type]": """Gets the offset of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. Returns ------- - float + Union[float, Unset_Type] The offset of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. """ return self._offset @offset.setter - def offset(self, offset: "Optional[float]") -> None: + def offset(self, offset: "Union[float, Unset_Type]") -> None: """Sets the offset of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. Parameters ---------- - offset: float + offset: Union[float, Unset_Type] The offset of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable + if offset is None: + raise ValueError("Invalid value for 'offset', must not be 'None'") self._offset = offset @property @@ -161,12 +167,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +193,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py index 58590f63..3fa43169 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,45 +71,48 @@ def __init__( self, *, datum_type: "str" = "rangeHistogram", - histogram: "Optional[GrantaServerApiAggregationsHistogram]" = None, + histogram: "Union[GrantaServerApiAggregationsHistogram, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsRangeHistogramAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - histogram: GrantaServerApiAggregationsHistogram, optional + datum_type: str + histogram: GrantaServerApiAggregationsHistogram, optional """ super().__init__() - self._histogram = None - self._datum_type: str = None # type: ignore[assignment] + self._histogram: Union[GrantaServerApiAggregationsHistogram, Unset_Type] = Unset + self._datum_type: str - if histogram is not None: + if histogram is not Unset: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "Optional[GrantaServerApiAggregationsHistogram]": + def histogram(self) -> "Union[GrantaServerApiAggregationsHistogram, Unset_Type]": """Gets the histogram of this GrantaServerApiAggregationsRangeHistogramAggregation. Returns ------- - GrantaServerApiAggregationsHistogram + Union[GrantaServerApiAggregationsHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsRangeHistogramAggregation. """ return self._histogram @histogram.setter def histogram( - self, histogram: "Optional[GrantaServerApiAggregationsHistogram]" + self, histogram: "Union[GrantaServerApiAggregationsHistogram, Unset_Type]" ) -> None: """Sets the histogram of this GrantaServerApiAggregationsRangeHistogramAggregation. Parameters ---------- - histogram: GrantaServerApiAggregationsHistogram + histogram: Union[GrantaServerApiAggregationsHistogram, Unset_Type] The histogram of this GrantaServerApiAggregationsRangeHistogramAggregation. """ + # Field is not nullable + if histogram is None: + raise ValueError("Invalid value for 'histogram', must not be 'None'") self._histogram = histogram @property @@ -132,12 +135,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsRangeHistogramAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py index 35d9cd8e..41b47209 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -68,46 +68,51 @@ class GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion( def __init__( self, *, - maximum_number_of_buckets: "Optional[int]" = None, + maximum_number_of_buckets: "Union[int, Unset_Type]" = Unset, type: "str" = "rangeHistogram", ) -> None: """GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - maximum_number_of_buckets: int, optional - type: str + maximum_number_of_buckets: int, optional + type: str """ super().__init__() - self._maximum_number_of_buckets = None - self._type: str = None # type: ignore[assignment] + self._maximum_number_of_buckets: Union[int, Unset_Type] = Unset + self._type: str - if maximum_number_of_buckets is not None: + if maximum_number_of_buckets is not Unset: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "Optional[int]": + def maximum_number_of_buckets(self) -> "Union[int, Unset_Type]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion. Returns ------- - int + Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion. """ return self._maximum_number_of_buckets @maximum_number_of_buckets.setter def maximum_number_of_buckets( - self, maximum_number_of_buckets: "Optional[int]" + self, maximum_number_of_buckets: "Union[int, Unset_Type]" ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion. Parameters ---------- - maximum_number_of_buckets: int + maximum_number_of_buckets: Union[int, Unset_Type] The maximum_number_of_buckets of this GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion. """ + # Field is not nullable + if maximum_number_of_buckets is None: + raise ValueError( + "Invalid value for 'maximum_number_of_buckets', must not be 'None'" + ) self._maximum_number_of_buckets = maximum_number_of_buckets @property @@ -130,12 +135,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py index 3bb160a8..deab4bb8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( GrantaServerApiAggregationsAggregationDatum, ) # noqa: F401 @@ -71,43 +71,48 @@ def __init__( self, *, datum_type: "str" = "shortText", - terms: "Optional[List[GrantaServerApiAggregationsTermWithCount]]" = None, + terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsShortTextAggregation - a model defined in Swagger Parameters ---------- - datum_type: str - terms: List[GrantaServerApiAggregationsTermWithCount], optional + datum_type: str + terms: List[GrantaServerApiAggregationsTermWithCount], optional """ super().__init__() - self._terms = None - self._datum_type: str = None # type: ignore[assignment] + self._terms: Union[ + List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type + ] = Unset + self._datum_type: str - if terms is not None: + if terms is not Unset: self.terms = terms self.datum_type = datum_type @property - def terms(self) -> "Optional[List[GrantaServerApiAggregationsTermWithCount]]": + def terms( + self, + ) -> "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]": """Gets the terms of this GrantaServerApiAggregationsShortTextAggregation. Returns ------- - list[GrantaServerApiAggregationsTermWithCount] + Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type] The terms of this GrantaServerApiAggregationsShortTextAggregation. """ return self._terms @terms.setter def terms( - self, terms: "Optional[List[GrantaServerApiAggregationsTermWithCount]]" + self, + terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]", ) -> None: """Sets the terms of this GrantaServerApiAggregationsShortTextAggregation. Parameters ---------- - terms: List[GrantaServerApiAggregationsTermWithCount] + terms: Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type] The terms of this GrantaServerApiAggregationsShortTextAggregation. """ self._terms = terms @@ -132,12 +137,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiAggregationsShortTextAggregation. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py index 8c70ec97..8af176d3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( GrantaServerApiAggregationsAggregationDatumCriterion, ) # noqa: F401 @@ -70,73 +70,76 @@ class GrantaServerApiAggregationsShortTextAggregationDatumCriterion( def __init__( self, *, - number_of_terms: "Optional[int]" = None, - prefix: "Optional[str]" = None, + number_of_terms: "Union[int, Unset_Type]" = Unset, + prefix: "Union[str, None, Unset_Type]" = Unset, type: "str" = "shortText", ) -> None: """GrantaServerApiAggregationsShortTextAggregationDatumCriterion - a model defined in Swagger Parameters ---------- - number_of_terms: int, optional - prefix: str, optional - type: str + number_of_terms: int, optional + prefix: str, optional + type: str """ super().__init__() - self._number_of_terms = None - self._prefix = None - self._type: str = None # type: ignore[assignment] + self._number_of_terms: Union[int, Unset_Type] = Unset + self._prefix: Union[str, None, Unset_Type] = Unset + self._type: str - if number_of_terms is not None: + if number_of_terms is not Unset: self.number_of_terms = number_of_terms - if prefix is not None: + if prefix is not Unset: self.prefix = prefix self.type = type @property - def number_of_terms(self) -> "Optional[int]": + def number_of_terms(self) -> "Union[int, Unset_Type]": """Gets the number_of_terms of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. Returns ------- - int + Union[int, Unset_Type] The number_of_terms of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. """ return self._number_of_terms @number_of_terms.setter - def number_of_terms(self, number_of_terms: "Optional[int]") -> None: + def number_of_terms(self, number_of_terms: "Union[int, Unset_Type]") -> None: """Sets the number_of_terms of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. Parameters ---------- - number_of_terms: int + number_of_terms: Union[int, Unset_Type] The number_of_terms of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. """ + # Field is not nullable + if number_of_terms is None: + raise ValueError("Invalid value for 'number_of_terms', must not be 'None'") self._number_of_terms = number_of_terms @property - def prefix(self) -> "Optional[str]": + def prefix(self) -> "Union[str, None, Unset_Type]": """Gets the prefix of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. An optional textual prefix. If provided, only terms that start with this prefix will be considered in the aggregation. Returns ------- - str + Union[str, None, Unset_Type] The prefix of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. """ return self._prefix @prefix.setter - def prefix(self, prefix: "Optional[str]") -> None: + def prefix(self, prefix: "Union[str, None, Unset_Type]") -> None: """Sets the prefix of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. An optional textual prefix. If provided, only terms that start with this prefix will be considered in the aggregation. Parameters ---------- - prefix: str + prefix: Union[str, None, Unset_Type] The prefix of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. """ self._prefix = prefix @@ -161,12 +164,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py index 0b6ab489..8959edd9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsTermWithCount(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsTermWithCount(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,73 @@ class GrantaServerApiAggregationsTermWithCount(ModelBase): # type: ignore[misc] def __init__( self, *, - count: "Optional[int]" = None, - term: "Optional[str]" = None, + count: "Union[int, Unset_Type]" = Unset, + term: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsTermWithCount - a model defined in Swagger Parameters ---------- - count: int, optional - term: str, optional + count: int, optional + term: str, optional """ - self._term = None - self._count = None + self._term: Union[str, None, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset - if term is not None: + if term is not Unset: self.term = term - if count is not None: + if count is not Unset: self.count = count @property - def term(self) -> "Optional[str]": + def term(self) -> "Union[str, None, Unset_Type]": """Gets the term of this GrantaServerApiAggregationsTermWithCount. Returns ------- - str + Union[str, None, Unset_Type] The term of this GrantaServerApiAggregationsTermWithCount. """ return self._term @term.setter - def term(self, term: "Optional[str]") -> None: + def term(self, term: "Union[str, None, Unset_Type]") -> None: """Sets the term of this GrantaServerApiAggregationsTermWithCount. Parameters ---------- - term: str + term: Union[str, None, Unset_Type] The term of this GrantaServerApiAggregationsTermWithCount. """ self._term = term @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsTermWithCount. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsTermWithCount. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsTermWithCount. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsTermWithCount. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +146,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py index e16fe974..39cfe21a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsValueWithCountOfSystemBoolean(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsValueWithCountOfSystemBoolean(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiAggregationsValueWithCountOfSystemBoolean(ModelBase): # ty def __init__( self, *, - count: "Optional[int]" = None, - value: "Optional[bool]" = None, + count: "Union[int, Unset_Type]" = Unset, + value: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsValueWithCountOfSystemBoolean - a model defined in Swagger Parameters ---------- - count: int, optional - value: bool, optional + count: int, optional + value: bool, optional """ - self._value = None - self._count = None + self._value: Union[bool, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset - if value is not None: + if value is not Unset: self.value = value - if count is not None: + if count is not Unset: self.count = count @property - def value(self) -> "Optional[bool]": + def value(self) -> "Union[bool, Unset_Type]": """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Returns ------- - bool + Union[bool, Unset_Type] The value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. """ return self._value @value.setter - def value(self, value: "Optional[bool]") -> None: + def value(self, value: "Union[bool, Unset_Type]") -> None: """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Parameters ---------- - value: bool + value: Union[bool, Unset_Type] The value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py index 3599eb36..500cc2c7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsValueWithCountOfSystemGuid(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsValueWithCountOfSystemGuid(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiAggregationsValueWithCountOfSystemGuid(ModelBase): # type: def __init__( self, *, - count: "Optional[int]" = None, - value: "Optional[str]" = None, + count: "Union[int, Unset_Type]" = Unset, + value: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsValueWithCountOfSystemGuid - a model defined in Swagger Parameters ---------- - count: int, optional - value: str, optional + count: int, optional + value: str, optional """ - self._value = None - self._count = None + self._value: Union[str, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset - if value is not None: + if value is not Unset: self.value = value - if count is not None: + if count is not Unset: self.count = count @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, Unset_Type]": """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Returns ------- - str + Union[str, Unset_Type] The value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, Unset_Type]") -> None: """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Parameters ---------- - value: str + value: Union[str, Unset_Type] The value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py index 1544b4b3..464f9784 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAggregationsValueWithCountOfSystemInt32(ModelBase): # type: ignore[misc] +class GrantaServerApiAggregationsValueWithCountOfSystemInt32(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiAggregationsValueWithCountOfSystemInt32(ModelBase): # type def __init__( self, *, - count: "Optional[int]" = None, - value: "Optional[int]" = None, + count: "Union[int, Unset_Type]" = Unset, + value: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAggregationsValueWithCountOfSystemInt32 - a model defined in Swagger Parameters ---------- - count: int, optional - value: int, optional + count: int, optional + value: int, optional """ - self._value = None - self._count = None + self._value: Union[int, Unset_Type] = Unset + self._count: Union[int, Unset_Type] = Unset - if value is not None: + if value is not Unset: self.value = value - if count is not None: + if count is not Unset: self.count = count @property - def value(self) -> "Optional[int]": + def value(self) -> "Union[int, Unset_Type]": """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Returns ------- - int + Union[int, Unset_Type] The value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. """ return self._value @value.setter - def value(self, value: "Optional[int]") -> None: + def value(self, value: "Union[int, Unset_Type]") -> None: """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Parameters ---------- - value: int + value: Union[int, Unset_Type] The value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py index c3466738..3217bb69 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( GrantaServerApiValueSpecifier, ) # noqa: F401 @@ -70,10 +70,10 @@ def __init__( Parameters ---------- - filter_on: str + filter_on: str """ super().__init__() - self._filter_on: str = None # type: ignore[assignment] + self._filter_on: str self.filter_on = filter_on @@ -97,12 +97,16 @@ def filter_on(self, filter_on: "str") -> None: filter_on: str The filter_on of this GrantaServerApiAllValuesSpecifier. """ + # Field is not nullable if filter_on is None: raise ValueError("Invalid value for 'filter_on', must not be 'None'") + # Field is required + if filter_on is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'filter_on', must not be 'Unset'") self._filter_on = filter_on @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py index 3411f04f..632e90b8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAppNameLicenseCheckoutRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiAppNameLicenseCheckoutRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,43 +61,43 @@ class GrantaServerApiAppNameLicenseCheckoutRequest(ModelBase): # type: ignore[m def __init__( self, *, - app_names: "Optional[List[str]]" = None, + app_names: "Union[List[str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAppNameLicenseCheckoutRequest - a model defined in Swagger Parameters ---------- - app_names: List[str], optional + app_names: List[str], optional """ - self._app_names = None + self._app_names: Union[List[str], None, Unset_Type] = Unset - if app_names is not None: + if app_names is not Unset: self.app_names = app_names @property - def app_names(self) -> "Optional[List[str]]": + def app_names(self) -> "Union[List[str], None, Unset_Type]": """Gets the app_names of this GrantaServerApiAppNameLicenseCheckoutRequest. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The app_names of this GrantaServerApiAppNameLicenseCheckoutRequest. """ return self._app_names @app_names.setter - def app_names(self, app_names: "Optional[List[str]]") -> None: + def app_names(self, app_names: "Union[List[str], None, Unset_Type]") -> None: """Sets the app_names of this GrantaServerApiAppNameLicenseCheckoutRequest. Parameters ---------- - app_names: List[str] + app_names: Union[List[str], None, Unset_Type] The app_names of this GrantaServerApiAppNameLicenseCheckoutRequest. """ self._app_names = app_names @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -114,7 +114,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py index 069c9b11..a8d9bd2e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAppNameLicenseCheckoutResponse(ModelBase): # type: ignore[misc] +class GrantaServerApiAppNameLicenseCheckoutResponse(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiAppNameLicenseCheckoutResponse(ModelBase): # type: ignore[ def __init__( self, *, - results: "Optional[List[GrantaServerApiAppNameLicenseCheckoutResult]]" = None, + results: "Union[List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAppNameLicenseCheckoutResponse - a model defined in Swagger Parameters ---------- - results: List[GrantaServerApiAppNameLicenseCheckoutResult], optional + results: List[GrantaServerApiAppNameLicenseCheckoutResult], optional """ - self._results = None + self._results: Union[ + List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type + ] = Unset - if results is not None: + if results is not Unset: self.results = results @property - def results(self) -> "Optional[List[GrantaServerApiAppNameLicenseCheckoutResult]]": + def results( + self, + ) -> "Union[List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type]": """Gets the results of this GrantaServerApiAppNameLicenseCheckoutResponse. Returns ------- - list[GrantaServerApiAppNameLicenseCheckoutResult] + Union[List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type] The results of this GrantaServerApiAppNameLicenseCheckoutResponse. """ return self._results @results.setter def results( - self, results: "Optional[List[GrantaServerApiAppNameLicenseCheckoutResult]]" + self, + results: "Union[List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type]", ) -> None: """Sets the results of this GrantaServerApiAppNameLicenseCheckoutResponse. Parameters ---------- - results: List[GrantaServerApiAppNameLicenseCheckoutResult] + results: Union[List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type] The results of this GrantaServerApiAppNameLicenseCheckoutResponse. """ self._results = results @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py index 27796db5..23dbb374 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAppNameLicenseCheckoutResult(ModelBase): # type: ignore[misc] +class GrantaServerApiAppNameLicenseCheckoutResult(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,73 @@ class GrantaServerApiAppNameLicenseCheckoutResult(ModelBase): # type: ignore[mi def __init__( self, *, - app_name: "Optional[str]" = None, - license_state_ok: "Optional[bool]" = None, + app_name: "Union[str, None, Unset_Type]" = Unset, + license_state_ok: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAppNameLicenseCheckoutResult - a model defined in Swagger Parameters ---------- - app_name: str, optional - license_state_ok: bool, optional + app_name: str, optional + license_state_ok: bool, optional """ - self._app_name = None - self._license_state_ok = None + self._app_name: Union[str, None, Unset_Type] = Unset + self._license_state_ok: Union[bool, Unset_Type] = Unset - if app_name is not None: + if app_name is not Unset: self.app_name = app_name - if license_state_ok is not None: + if license_state_ok is not Unset: self.license_state_ok = license_state_ok @property - def app_name(self) -> "Optional[str]": + def app_name(self) -> "Union[str, None, Unset_Type]": """Gets the app_name of this GrantaServerApiAppNameLicenseCheckoutResult. Returns ------- - str + Union[str, None, Unset_Type] The app_name of this GrantaServerApiAppNameLicenseCheckoutResult. """ return self._app_name @app_name.setter - def app_name(self, app_name: "Optional[str]") -> None: + def app_name(self, app_name: "Union[str, None, Unset_Type]") -> None: """Sets the app_name of this GrantaServerApiAppNameLicenseCheckoutResult. Parameters ---------- - app_name: str + app_name: Union[str, None, Unset_Type] The app_name of this GrantaServerApiAppNameLicenseCheckoutResult. """ self._app_name = app_name @property - def license_state_ok(self) -> "Optional[bool]": + def license_state_ok(self) -> "Union[bool, Unset_Type]": """Gets the license_state_ok of this GrantaServerApiAppNameLicenseCheckoutResult. Returns ------- - bool + Union[bool, Unset_Type] The license_state_ok of this GrantaServerApiAppNameLicenseCheckoutResult. """ return self._license_state_ok @license_state_ok.setter - def license_state_ok(self, license_state_ok: "Optional[bool]") -> None: + def license_state_ok(self, license_state_ok: "Union[bool, Unset_Type]") -> None: """Sets the license_state_ok of this GrantaServerApiAppNameLicenseCheckoutResult. Parameters ---------- - license_state_ok: bool + license_state_ok: Union[bool, Unset_Type] The license_state_ok of this GrantaServerApiAppNameLicenseCheckoutResult. """ + # Field is not nullable + if license_state_ok is None: + raise ValueError("Invalid value for 'license_state_ok', must not be 'None'") self._license_state_ok = license_state_ok @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +146,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py index 47f83f87..f56bcb6d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -75,236 +75,241 @@ class GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): # type: ignore[misc] def __init__( self, *, - culture: "Optional[str]" = None, - description: "Optional[str]" = None, - input_file_ids: "Optional[List[str]]" = None, - name: "Optional[str]" = None, - parameters: "Optional[str]" = None, - scheduled_execution_date: "Optional[datetime]" = None, - type: "Optional[str]" = None, - version: "Optional[int]" = None, + culture: "Union[str, None, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + input_file_ids: "Union[List[str], None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + parameters: "Union[str, None, Unset_Type]" = Unset, + scheduled_execution_date: "Union[datetime, None, Unset_Type]" = Unset, + type: "Union[str, None, Unset_Type]" = Unset, + version: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAsyncJobsCreateJobRequest - a model defined in Swagger Parameters ---------- - culture: str, optional - description: str, optional - input_file_ids: List[str], optional - name: str, optional - parameters: str, optional - scheduled_execution_date: datetime, optional - type: str, optional - version: int, optional + culture: str, optional + description: str, optional + input_file_ids: List[str], optional + name: str, optional + parameters: str, optional + scheduled_execution_date: datetime, optional + type: str, optional + version: int, optional """ - self._name = None - self._description = None - self._culture = None - self._type = None - self._version = None - self._scheduled_execution_date = None - self._input_file_ids = None - self._parameters = None - - if name is not None: + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._culture: Union[str, None, Unset_Type] = Unset + self._type: Union[str, None, Unset_Type] = Unset + self._version: Union[int, Unset_Type] = Unset + self._scheduled_execution_date: Union[datetime, None, Unset_Type] = Unset + self._input_file_ids: Union[List[str], None, Unset_Type] = Unset + self._parameters: Union[str, None, Unset_Type] = Unset + + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if culture is not None: + if culture is not Unset: self.culture = culture - if type is not None: + if type is not Unset: self.type = type - if version is not None: + if version is not Unset: self.version = version - if scheduled_execution_date is not None: + if scheduled_execution_date is not Unset: self.scheduled_execution_date = scheduled_execution_date - if input_file_ids is not None: + if input_file_ids is not Unset: self.input_file_ids = input_file_ids - if parameters is not None: + if parameters is not Unset: self.parameters = parameters @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiAsyncJobsCreateJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiAsyncJobsCreateJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._description = description @property - def culture(self) -> "Optional[str]": + def culture(self) -> "Union[str, None, Unset_Type]": """Gets the culture of this GrantaServerApiAsyncJobsCreateJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The culture of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._culture @culture.setter - def culture(self, culture: "Optional[str]") -> None: + def culture(self, culture: "Union[str, None, Unset_Type]") -> None: """Sets the culture of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters ---------- - culture: str + culture: Union[str, None, Unset_Type] The culture of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._culture = culture @property - def type(self) -> "Optional[str]": + def type(self) -> "Union[str, None, Unset_Type]": """Gets the type of this GrantaServerApiAsyncJobsCreateJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The type of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._type @type.setter - def type(self, type: "Optional[str]") -> None: + def type(self, type: "Union[str, None, Unset_Type]") -> None: """Sets the type of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters ---------- - type: str + type: Union[str, None, Unset_Type] The type of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._type = type @property - def version(self) -> "Optional[int]": + def version(self) -> "Union[int, Unset_Type]": """Gets the version of this GrantaServerApiAsyncJobsCreateJobRequest. Returns ------- - int + Union[int, Unset_Type] The version of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._version @version.setter - def version(self, version: "Optional[int]") -> None: + def version(self, version: "Union[int, Unset_Type]") -> None: """Sets the version of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters ---------- - version: int + version: Union[int, Unset_Type] The version of this GrantaServerApiAsyncJobsCreateJobRequest. """ + # Field is not nullable + if version is None: + raise ValueError("Invalid value for 'version', must not be 'None'") self._version = version @property - def scheduled_execution_date(self) -> "Optional[datetime]": + def scheduled_execution_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsCreateJobRequest. Returns ------- - datetime + Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._scheduled_execution_date @scheduled_execution_date.setter def scheduled_execution_date( - self, scheduled_execution_date: "Optional[datetime]" + self, scheduled_execution_date: "Union[datetime, None, Unset_Type]" ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters ---------- - scheduled_execution_date: datetime + scheduled_execution_date: Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._scheduled_execution_date = scheduled_execution_date @property - def input_file_ids(self) -> "Optional[List[str]]": + def input_file_ids(self) -> "Union[List[str], None, Unset_Type]": """Gets the input_file_ids of this GrantaServerApiAsyncJobsCreateJobRequest. Names of temporary input files that were uploaded prior to creating this job. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The input_file_ids of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._input_file_ids @input_file_ids.setter - def input_file_ids(self, input_file_ids: "Optional[List[str]]") -> None: + def input_file_ids( + self, input_file_ids: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the input_file_ids of this GrantaServerApiAsyncJobsCreateJobRequest. Names of temporary input files that were uploaded prior to creating this job. Parameters ---------- - input_file_ids: List[str] + input_file_ids: Union[List[str], None, Unset_Type] The input_file_ids of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._input_file_ids = input_file_ids @property - def parameters(self) -> "Optional[str]": + def parameters(self) -> "Union[str, None, Unset_Type]": """Gets the parameters of this GrantaServerApiAsyncJobsCreateJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The parameters of this GrantaServerApiAsyncJobsCreateJobRequest. """ return self._parameters @parameters.setter - def parameters(self, parameters: "Optional[str]") -> None: + def parameters(self, parameters: "Union[str, None, Unset_Type]") -> None: """Sets the parameters of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters ---------- - parameters: str + parameters: Union[str, None, Unset_Type] The parameters of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._parameters = parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -321,7 +326,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py index 6e48cb21..6adb3a61 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAsyncJobsCurrentUser(ModelBase): # type: ignore[misc] +class GrantaServerApiAsyncJobsCurrentUser(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,103 @@ class GrantaServerApiAsyncJobsCurrentUser(ModelBase): # type: ignore[misc] def __init__( self, *, - has_write_access: "Optional[bool]" = None, - is_admin: "Optional[bool]" = None, - username: "Optional[str]" = None, + has_write_access: "Union[bool, Unset_Type]" = Unset, + is_admin: "Union[bool, Unset_Type]" = Unset, + username: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAsyncJobsCurrentUser - a model defined in Swagger Parameters ---------- - has_write_access: bool, optional - is_admin: bool, optional - username: str, optional + has_write_access: bool, optional + is_admin: bool, optional + username: str, optional """ - self._is_admin = None - self._username = None - self._has_write_access = None + self._is_admin: Union[bool, Unset_Type] = Unset + self._username: Union[str, None, Unset_Type] = Unset + self._has_write_access: Union[bool, Unset_Type] = Unset - if is_admin is not None: + if is_admin is not Unset: self.is_admin = is_admin - if username is not None: + if username is not Unset: self.username = username - if has_write_access is not None: + if has_write_access is not Unset: self.has_write_access = has_write_access @property - def is_admin(self) -> "Optional[bool]": + def is_admin(self) -> "Union[bool, Unset_Type]": """Gets the is_admin of this GrantaServerApiAsyncJobsCurrentUser. Returns ------- - bool + Union[bool, Unset_Type] The is_admin of this GrantaServerApiAsyncJobsCurrentUser. """ return self._is_admin @is_admin.setter - def is_admin(self, is_admin: "Optional[bool]") -> None: + def is_admin(self, is_admin: "Union[bool, Unset_Type]") -> None: """Sets the is_admin of this GrantaServerApiAsyncJobsCurrentUser. Parameters ---------- - is_admin: bool + is_admin: Union[bool, Unset_Type] The is_admin of this GrantaServerApiAsyncJobsCurrentUser. """ + # Field is not nullable + if is_admin is None: + raise ValueError("Invalid value for 'is_admin', must not be 'None'") self._is_admin = is_admin @property - def username(self) -> "Optional[str]": + def username(self) -> "Union[str, None, Unset_Type]": """Gets the username of this GrantaServerApiAsyncJobsCurrentUser. Returns ------- - str + Union[str, None, Unset_Type] The username of this GrantaServerApiAsyncJobsCurrentUser. """ return self._username @username.setter - def username(self, username: "Optional[str]") -> None: + def username(self, username: "Union[str, None, Unset_Type]") -> None: """Sets the username of this GrantaServerApiAsyncJobsCurrentUser. Parameters ---------- - username: str + username: Union[str, None, Unset_Type] The username of this GrantaServerApiAsyncJobsCurrentUser. """ self._username = username @property - def has_write_access(self) -> "Optional[bool]": + def has_write_access(self) -> "Union[bool, Unset_Type]": """Gets the has_write_access of this GrantaServerApiAsyncJobsCurrentUser. Returns ------- - bool + Union[bool, Unset_Type] The has_write_access of this GrantaServerApiAsyncJobsCurrentUser. """ return self._has_write_access @has_write_access.setter - def has_write_access(self, has_write_access: "Optional[bool]") -> None: + def has_write_access(self, has_write_access: "Union[bool, Unset_Type]") -> None: """Sets the has_write_access of this GrantaServerApiAsyncJobsCurrentUser. Parameters ---------- - has_write_access: bool + has_write_access: Union[bool, Unset_Type] The has_write_access of this GrantaServerApiAsyncJobsCurrentUser. """ + # Field is not nullable + if has_write_access is None: + raise ValueError("Invalid value for 'has_write_access', must not be 'None'") self._has_write_access = has_write_access @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py index 13e79081..a608ecd3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAsyncJobsGetJobsResponse(ModelBase): # type: ignore[misc] +class GrantaServerApiAsyncJobsGetJobsResponse(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,70 +65,79 @@ class GrantaServerApiAsyncJobsGetJobsResponse(ModelBase): # type: ignore[misc] def __init__( self, *, - results: "Optional[List[GrantaServerApiAsyncJobsJob]]" = None, - total_result_count: "Optional[int]" = None, + results: "Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type]" = Unset, + total_result_count: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAsyncJobsGetJobsResponse - a model defined in Swagger Parameters ---------- - results: List[GrantaServerApiAsyncJobsJob], optional - total_result_count: int, optional + results: List[GrantaServerApiAsyncJobsJob], optional + total_result_count: int, optional """ - self._total_result_count = None - self._results = None + self._total_result_count: Union[int, Unset_Type] = Unset + self._results: Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type] = ( + Unset + ) - if total_result_count is not None: + if total_result_count is not Unset: self.total_result_count = total_result_count - if results is not None: + if results is not Unset: self.results = results @property - def total_result_count(self) -> "Optional[int]": + def total_result_count(self) -> "Union[int, Unset_Type]": """Gets the total_result_count of this GrantaServerApiAsyncJobsGetJobsResponse. Returns ------- - int + Union[int, Unset_Type] The total_result_count of this GrantaServerApiAsyncJobsGetJobsResponse. """ return self._total_result_count @total_result_count.setter - def total_result_count(self, total_result_count: "Optional[int]") -> None: + def total_result_count(self, total_result_count: "Union[int, Unset_Type]") -> None: """Sets the total_result_count of this GrantaServerApiAsyncJobsGetJobsResponse. Parameters ---------- - total_result_count: int + total_result_count: Union[int, Unset_Type] The total_result_count of this GrantaServerApiAsyncJobsGetJobsResponse. """ + # Field is not nullable + if total_result_count is None: + raise ValueError( + "Invalid value for 'total_result_count', must not be 'None'" + ) self._total_result_count = total_result_count @property - def results(self) -> "Optional[List[GrantaServerApiAsyncJobsJob]]": + def results(self) -> "Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type]": """Gets the results of this GrantaServerApiAsyncJobsGetJobsResponse. Returns ------- - list[GrantaServerApiAsyncJobsJob] + Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type] The results of this GrantaServerApiAsyncJobsGetJobsResponse. """ return self._results @results.setter - def results(self, results: "Optional[List[GrantaServerApiAsyncJobsJob]]") -> None: + def results( + self, results: "Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type]" + ) -> None: """Sets the results of this GrantaServerApiAsyncJobsGetJobsResponse. Parameters ---------- - results: List[GrantaServerApiAsyncJobsJob] + results: Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type] The results of this GrantaServerApiAsyncJobsGetJobsResponse. """ self._results = results @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py index 05153d81..ea9a0a38 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAsyncJobsJob(ModelBase): # type: ignore[misc] +class GrantaServerApiAsyncJobsJob(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -91,425 +91,445 @@ class GrantaServerApiAsyncJobsJob(ModelBase): # type: ignore[misc] def __init__( self, *, - completion_date: "Optional[datetime]" = None, - description: "Optional[str]" = None, - execution_date: "Optional[datetime]" = None, - id: "Optional[str]" = None, - input_file_ids: "Optional[List[str]]" = None, - job_specific_outputs: "Optional[Dict[str, object]]" = None, - name: "Optional[str]" = None, - output_file_names: "Optional[List[str]]" = None, - position: "Optional[int]" = None, - scheduled_execution_date: "Optional[datetime]" = None, - status: "Optional[GrantaServerApiAsyncJobsJobStatus]" = None, - submission_date: "Optional[datetime]" = None, - submitter_name: "Optional[str]" = None, - submitter_roles: "Optional[List[str]]" = None, - type: "Optional[str]" = None, + completion_date: "Union[datetime, None, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + execution_date: "Union[datetime, None, Unset_Type]" = Unset, + id: "Union[str, Unset_Type]" = Unset, + input_file_ids: "Union[List[str], None, Unset_Type]" = Unset, + job_specific_outputs: "Union[Dict[str, object], None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + output_file_names: "Union[List[str], None, Unset_Type]" = Unset, + position: "Union[int, None, Unset_Type]" = Unset, + scheduled_execution_date: "Union[datetime, None, Unset_Type]" = Unset, + status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]" = Unset, + submission_date: "Union[datetime, None, Unset_Type]" = Unset, + submitter_name: "Union[str, None, Unset_Type]" = Unset, + submitter_roles: "Union[List[str], None, Unset_Type]" = Unset, + type: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAsyncJobsJob - a model defined in Swagger Parameters ---------- - completion_date: datetime, optional - description: str, optional - execution_date: datetime, optional - id: str, optional - input_file_ids: List[str], optional - job_specific_outputs: Dict[str, object], optional - name: str, optional - output_file_names: List[str], optional - position: int, optional - scheduled_execution_date: datetime, optional - status: GrantaServerApiAsyncJobsJobStatus, optional - submission_date: datetime, optional - submitter_name: str, optional - submitter_roles: List[str], optional - type: str, optional - """ - self._id = None - self._name = None - self._description = None - self._type = None - self._submitter_name = None - self._submitter_roles = None - self._submission_date = None - self._scheduled_execution_date = None - self._execution_date = None - self._completion_date = None - self._status = None - self._input_file_ids = None - self._output_file_names = None - self._position = None - self._job_specific_outputs = None - - if id is not None: + completion_date: datetime, optional + description: str, optional + execution_date: datetime, optional + id: str, optional + input_file_ids: List[str], optional + job_specific_outputs: Dict[str, object], optional + name: str, optional + output_file_names: List[str], optional + position: int, optional + scheduled_execution_date: datetime, optional + status: GrantaServerApiAsyncJobsJobStatus, optional + submission_date: datetime, optional + submitter_name: str, optional + submitter_roles: List[str], optional + type: str, optional + """ + self._id: Union[str, Unset_Type] = Unset + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._type: Union[str, None, Unset_Type] = Unset + self._submitter_name: Union[str, None, Unset_Type] = Unset + self._submitter_roles: Union[List[str], None, Unset_Type] = Unset + self._submission_date: Union[datetime, None, Unset_Type] = Unset + self._scheduled_execution_date: Union[datetime, None, Unset_Type] = Unset + self._execution_date: Union[datetime, None, Unset_Type] = Unset + self._completion_date: Union[datetime, None, Unset_Type] = Unset + self._status: Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type] = Unset + self._input_file_ids: Union[List[str], None, Unset_Type] = Unset + self._output_file_names: Union[List[str], None, Unset_Type] = Unset + self._position: Union[int, None, Unset_Type] = Unset + self._job_specific_outputs: Union[Dict[str, object], None, Unset_Type] = Unset + + if id is not Unset: self.id = id - if name is not None: + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if type is not None: + if type is not Unset: self.type = type - if submitter_name is not None: + if submitter_name is not Unset: self.submitter_name = submitter_name - if submitter_roles is not None: + if submitter_roles is not Unset: self.submitter_roles = submitter_roles - if submission_date is not None: + if submission_date is not Unset: self.submission_date = submission_date - if scheduled_execution_date is not None: + if scheduled_execution_date is not Unset: self.scheduled_execution_date = scheduled_execution_date - if execution_date is not None: + if execution_date is not Unset: self.execution_date = execution_date - if completion_date is not None: + if completion_date is not Unset: self.completion_date = completion_date - if status is not None: + if status is not Unset: self.status = status - if input_file_ids is not None: + if input_file_ids is not Unset: self.input_file_ids = input_file_ids - if output_file_names is not None: + if output_file_names is not Unset: self.output_file_names = output_file_names - if position is not None: + if position is not Unset: self.position = position - if job_specific_outputs is not None: + if job_specific_outputs is not Unset: self.job_specific_outputs = job_specific_outputs @property - def id(self) -> "Optional[str]": + def id(self) -> "Union[str, Unset_Type]": """Gets the id of this GrantaServerApiAsyncJobsJob. Returns ------- - str + Union[str, Unset_Type] The id of this GrantaServerApiAsyncJobsJob. """ return self._id @id.setter - def id(self, id: "Optional[str]") -> None: + def id(self, id: "Union[str, Unset_Type]") -> None: """Sets the id of this GrantaServerApiAsyncJobsJob. Parameters ---------- - id: str + id: Union[str, Unset_Type] The id of this GrantaServerApiAsyncJobsJob. """ + # Field is not nullable + if id is None: + raise ValueError("Invalid value for 'id', must not be 'None'") self._id = id @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiAsyncJobsJob. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsJob. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiAsyncJobsJob. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsJob. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiAsyncJobsJob. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsJob. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiAsyncJobsJob. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsJob. """ self._description = description @property - def type(self) -> "Optional[str]": + def type(self) -> "Union[str, None, Unset_Type]": """Gets the type of this GrantaServerApiAsyncJobsJob. Returns ------- - str + Union[str, None, Unset_Type] The type of this GrantaServerApiAsyncJobsJob. """ return self._type @type.setter - def type(self, type: "Optional[str]") -> None: + def type(self, type: "Union[str, None, Unset_Type]") -> None: """Sets the type of this GrantaServerApiAsyncJobsJob. Parameters ---------- - type: str + type: Union[str, None, Unset_Type] The type of this GrantaServerApiAsyncJobsJob. """ self._type = type @property - def submitter_name(self) -> "Optional[str]": + def submitter_name(self) -> "Union[str, None, Unset_Type]": """Gets the submitter_name of this GrantaServerApiAsyncJobsJob. Returns ------- - str + Union[str, None, Unset_Type] The submitter_name of this GrantaServerApiAsyncJobsJob. """ return self._submitter_name @submitter_name.setter - def submitter_name(self, submitter_name: "Optional[str]") -> None: + def submitter_name(self, submitter_name: "Union[str, None, Unset_Type]") -> None: """Sets the submitter_name of this GrantaServerApiAsyncJobsJob. Parameters ---------- - submitter_name: str + submitter_name: Union[str, None, Unset_Type] The submitter_name of this GrantaServerApiAsyncJobsJob. """ self._submitter_name = submitter_name @property - def submitter_roles(self) -> "Optional[List[str]]": + def submitter_roles(self) -> "Union[List[str], None, Unset_Type]": """Gets the submitter_roles of this GrantaServerApiAsyncJobsJob. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The submitter_roles of this GrantaServerApiAsyncJobsJob. """ return self._submitter_roles @submitter_roles.setter - def submitter_roles(self, submitter_roles: "Optional[List[str]]") -> None: + def submitter_roles( + self, submitter_roles: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the submitter_roles of this GrantaServerApiAsyncJobsJob. Parameters ---------- - submitter_roles: List[str] + submitter_roles: Union[List[str], None, Unset_Type] The submitter_roles of this GrantaServerApiAsyncJobsJob. """ self._submitter_roles = submitter_roles @property - def submission_date(self) -> "Optional[datetime]": + def submission_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the submission_date of this GrantaServerApiAsyncJobsJob. Returns ------- - datetime + Union[datetime, None, Unset_Type] The submission_date of this GrantaServerApiAsyncJobsJob. """ return self._submission_date @submission_date.setter - def submission_date(self, submission_date: "Optional[datetime]") -> None: + def submission_date( + self, submission_date: "Union[datetime, None, Unset_Type]" + ) -> None: """Sets the submission_date of this GrantaServerApiAsyncJobsJob. Parameters ---------- - submission_date: datetime + submission_date: Union[datetime, None, Unset_Type] The submission_date of this GrantaServerApiAsyncJobsJob. """ self._submission_date = submission_date @property - def scheduled_execution_date(self) -> "Optional[datetime]": + def scheduled_execution_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsJob. Returns ------- - datetime + Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsJob. """ return self._scheduled_execution_date @scheduled_execution_date.setter def scheduled_execution_date( - self, scheduled_execution_date: "Optional[datetime]" + self, scheduled_execution_date: "Union[datetime, None, Unset_Type]" ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsJob. Parameters ---------- - scheduled_execution_date: datetime + scheduled_execution_date: Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsJob. """ self._scheduled_execution_date = scheduled_execution_date @property - def execution_date(self) -> "Optional[datetime]": + def execution_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the execution_date of this GrantaServerApiAsyncJobsJob. Returns ------- - datetime + Union[datetime, None, Unset_Type] The execution_date of this GrantaServerApiAsyncJobsJob. """ return self._execution_date @execution_date.setter - def execution_date(self, execution_date: "Optional[datetime]") -> None: + def execution_date( + self, execution_date: "Union[datetime, None, Unset_Type]" + ) -> None: """Sets the execution_date of this GrantaServerApiAsyncJobsJob. Parameters ---------- - execution_date: datetime + execution_date: Union[datetime, None, Unset_Type] The execution_date of this GrantaServerApiAsyncJobsJob. """ self._execution_date = execution_date @property - def completion_date(self) -> "Optional[datetime]": + def completion_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the completion_date of this GrantaServerApiAsyncJobsJob. Returns ------- - datetime + Union[datetime, None, Unset_Type] The completion_date of this GrantaServerApiAsyncJobsJob. """ return self._completion_date @completion_date.setter - def completion_date(self, completion_date: "Optional[datetime]") -> None: + def completion_date( + self, completion_date: "Union[datetime, None, Unset_Type]" + ) -> None: """Sets the completion_date of this GrantaServerApiAsyncJobsJob. Parameters ---------- - completion_date: datetime + completion_date: Union[datetime, None, Unset_Type] The completion_date of this GrantaServerApiAsyncJobsJob. """ self._completion_date = completion_date @property - def status(self) -> "Optional[GrantaServerApiAsyncJobsJobStatus]": + def status(self) -> "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]": """Gets the status of this GrantaServerApiAsyncJobsJob. Returns ------- - GrantaServerApiAsyncJobsJobStatus + Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type] The status of this GrantaServerApiAsyncJobsJob. """ return self._status @status.setter - def status(self, status: "Optional[GrantaServerApiAsyncJobsJobStatus]") -> None: + def status( + self, status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]" + ) -> None: """Sets the status of this GrantaServerApiAsyncJobsJob. Parameters ---------- - status: GrantaServerApiAsyncJobsJobStatus + status: Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type] The status of this GrantaServerApiAsyncJobsJob. """ + # Field is not nullable + if status is None: + raise ValueError("Invalid value for 'status', must not be 'None'") self._status = status @property - def input_file_ids(self) -> "Optional[List[str]]": + def input_file_ids(self) -> "Union[List[str], None, Unset_Type]": """Gets the input_file_ids of this GrantaServerApiAsyncJobsJob. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The input_file_ids of this GrantaServerApiAsyncJobsJob. """ return self._input_file_ids @input_file_ids.setter - def input_file_ids(self, input_file_ids: "Optional[List[str]]") -> None: + def input_file_ids( + self, input_file_ids: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the input_file_ids of this GrantaServerApiAsyncJobsJob. Parameters ---------- - input_file_ids: List[str] + input_file_ids: Union[List[str], None, Unset_Type] The input_file_ids of this GrantaServerApiAsyncJobsJob. """ self._input_file_ids = input_file_ids @property - def output_file_names(self) -> "Optional[List[str]]": + def output_file_names(self) -> "Union[List[str], None, Unset_Type]": """Gets the output_file_names of this GrantaServerApiAsyncJobsJob. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The output_file_names of this GrantaServerApiAsyncJobsJob. """ return self._output_file_names @output_file_names.setter - def output_file_names(self, output_file_names: "Optional[List[str]]") -> None: + def output_file_names( + self, output_file_names: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the output_file_names of this GrantaServerApiAsyncJobsJob. Parameters ---------- - output_file_names: List[str] + output_file_names: Union[List[str], None, Unset_Type] The output_file_names of this GrantaServerApiAsyncJobsJob. """ self._output_file_names = output_file_names @property - def position(self) -> "Optional[int]": + def position(self) -> "Union[int, None, Unset_Type]": """Gets the position of this GrantaServerApiAsyncJobsJob. Returns ------- - int + Union[int, None, Unset_Type] The position of this GrantaServerApiAsyncJobsJob. """ return self._position @position.setter - def position(self, position: "Optional[int]") -> None: + def position(self, position: "Union[int, None, Unset_Type]") -> None: """Sets the position of this GrantaServerApiAsyncJobsJob. Parameters ---------- - position: int + position: Union[int, None, Unset_Type] The position of this GrantaServerApiAsyncJobsJob. """ self._position = position @property - def job_specific_outputs(self) -> "Optional[Dict[str, object]]": + def job_specific_outputs(self) -> "Union[Dict[str, object], None, Unset_Type]": """Gets the job_specific_outputs of this GrantaServerApiAsyncJobsJob. Returns ------- - dict(str, object) + Union[Dict[str, object], None, Unset_Type] The job_specific_outputs of this GrantaServerApiAsyncJobsJob. """ return self._job_specific_outputs @job_specific_outputs.setter def job_specific_outputs( - self, job_specific_outputs: "Optional[Dict[str, object]]" + self, job_specific_outputs: "Union[Dict[str, object], None, Unset_Type]" ) -> None: """Sets the job_specific_outputs of this GrantaServerApiAsyncJobsJob. Parameters ---------- - job_specific_outputs: Dict[str, object] + job_specific_outputs: Union[Dict[str, object], None, Unset_Type] The job_specific_outputs of this GrantaServerApiAsyncJobsJob. """ self._job_specific_outputs = job_specific_outputs @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -526,7 +546,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py index bce63578..1740372c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAsyncJobsProcessingConfig(ModelBase): # type: ignore[misc] +class GrantaServerApiAsyncJobsProcessingConfig(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,130 +67,148 @@ class GrantaServerApiAsyncJobsProcessingConfig(ModelBase): # type: ignore[misc] def __init__( self, *, - concurrency: "Optional[int]" = None, - polling_interval_in_milliseconds: "Optional[int]" = None, - purge_interval_in_milliseconds: "Optional[int]" = None, - purge_job_age_in_milliseconds: "Optional[int]" = None, + concurrency: "Union[int, Unset_Type]" = Unset, + polling_interval_in_milliseconds: "Union[int, Unset_Type]" = Unset, + purge_interval_in_milliseconds: "Union[int, Unset_Type]" = Unset, + purge_job_age_in_milliseconds: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAsyncJobsProcessingConfig - a model defined in Swagger Parameters ---------- - concurrency: int, optional - polling_interval_in_milliseconds: int, optional - purge_interval_in_milliseconds: int, optional - purge_job_age_in_milliseconds: int, optional + concurrency: int, optional + polling_interval_in_milliseconds: int, optional + purge_interval_in_milliseconds: int, optional + purge_job_age_in_milliseconds: int, optional """ - self._purge_job_age_in_milliseconds = None - self._purge_interval_in_milliseconds = None - self._polling_interval_in_milliseconds = None - self._concurrency = None + self._purge_job_age_in_milliseconds: Union[int, Unset_Type] = Unset + self._purge_interval_in_milliseconds: Union[int, Unset_Type] = Unset + self._polling_interval_in_milliseconds: Union[int, Unset_Type] = Unset + self._concurrency: Union[int, Unset_Type] = Unset - if purge_job_age_in_milliseconds is not None: + if purge_job_age_in_milliseconds is not Unset: self.purge_job_age_in_milliseconds = purge_job_age_in_milliseconds - if purge_interval_in_milliseconds is not None: + if purge_interval_in_milliseconds is not Unset: self.purge_interval_in_milliseconds = purge_interval_in_milliseconds - if polling_interval_in_milliseconds is not None: + if polling_interval_in_milliseconds is not Unset: self.polling_interval_in_milliseconds = polling_interval_in_milliseconds - if concurrency is not None: + if concurrency is not Unset: self.concurrency = concurrency @property - def purge_job_age_in_milliseconds(self) -> "Optional[int]": + def purge_job_age_in_milliseconds(self) -> "Union[int, Unset_Type]": """Gets the purge_job_age_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Returns ------- - int + Union[int, Unset_Type] The purge_job_age_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. """ return self._purge_job_age_in_milliseconds @purge_job_age_in_milliseconds.setter def purge_job_age_in_milliseconds( - self, purge_job_age_in_milliseconds: "Optional[int]" + self, purge_job_age_in_milliseconds: "Union[int, Unset_Type]" ) -> None: """Sets the purge_job_age_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Parameters ---------- - purge_job_age_in_milliseconds: int + purge_job_age_in_milliseconds: Union[int, Unset_Type] The purge_job_age_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. """ + # Field is not nullable + if purge_job_age_in_milliseconds is None: + raise ValueError( + "Invalid value for 'purge_job_age_in_milliseconds', must not be 'None'" + ) self._purge_job_age_in_milliseconds = purge_job_age_in_milliseconds @property - def purge_interval_in_milliseconds(self) -> "Optional[int]": + def purge_interval_in_milliseconds(self) -> "Union[int, Unset_Type]": """Gets the purge_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Returns ------- - int + Union[int, Unset_Type] The purge_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. """ return self._purge_interval_in_milliseconds @purge_interval_in_milliseconds.setter def purge_interval_in_milliseconds( - self, purge_interval_in_milliseconds: "Optional[int]" + self, purge_interval_in_milliseconds: "Union[int, Unset_Type]" ) -> None: """Sets the purge_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Parameters ---------- - purge_interval_in_milliseconds: int + purge_interval_in_milliseconds: Union[int, Unset_Type] The purge_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. """ + # Field is not nullable + if purge_interval_in_milliseconds is None: + raise ValueError( + "Invalid value for 'purge_interval_in_milliseconds', must not be 'None'" + ) self._purge_interval_in_milliseconds = purge_interval_in_milliseconds @property - def polling_interval_in_milliseconds(self) -> "Optional[int]": + def polling_interval_in_milliseconds(self) -> "Union[int, Unset_Type]": """Gets the polling_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Returns ------- - int + Union[int, Unset_Type] The polling_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. """ return self._polling_interval_in_milliseconds @polling_interval_in_milliseconds.setter def polling_interval_in_milliseconds( - self, polling_interval_in_milliseconds: "Optional[int]" + self, polling_interval_in_milliseconds: "Union[int, Unset_Type]" ) -> None: """Sets the polling_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Parameters ---------- - polling_interval_in_milliseconds: int + polling_interval_in_milliseconds: Union[int, Unset_Type] The polling_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. """ + # Field is not nullable + if polling_interval_in_milliseconds is None: + raise ValueError( + "Invalid value for 'polling_interval_in_milliseconds', must not be 'None'" + ) self._polling_interval_in_milliseconds = polling_interval_in_milliseconds @property - def concurrency(self) -> "Optional[int]": + def concurrency(self) -> "Union[int, Unset_Type]": """Gets the concurrency of this GrantaServerApiAsyncJobsProcessingConfig. Returns ------- - int + Union[int, Unset_Type] The concurrency of this GrantaServerApiAsyncJobsProcessingConfig. """ return self._concurrency @concurrency.setter - def concurrency(self, concurrency: "Optional[int]") -> None: + def concurrency(self, concurrency: "Union[int, Unset_Type]") -> None: """Sets the concurrency of this GrantaServerApiAsyncJobsProcessingConfig. Parameters ---------- - concurrency: int + concurrency: Union[int, Unset_Type] The concurrency of this GrantaServerApiAsyncJobsProcessingConfig. """ + # Field is not nullable + if concurrency is None: + raise ValueError("Invalid value for 'concurrency', must not be 'None'") self._concurrency = concurrency @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -207,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py index 3a811227..66fc2ae1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAsyncJobsResubmitJobRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiAsyncJobsResubmitJobRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,99 +65,99 @@ class GrantaServerApiAsyncJobsResubmitJobRequest(ModelBase): # type: ignore[mis def __init__( self, *, - description: "Optional[str]" = None, - name: "Optional[str]" = None, - scheduled_execution_date: "Optional[datetime]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + scheduled_execution_date: "Union[datetime, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAsyncJobsResubmitJobRequest - a model defined in Swagger Parameters ---------- - description: str, optional - name: str, optional - scheduled_execution_date: datetime, optional + description: str, optional + name: str, optional + scheduled_execution_date: datetime, optional """ - self._name = None - self._description = None - self._scheduled_execution_date = None + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._scheduled_execution_date: Union[datetime, None, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if scheduled_execution_date is not None: + if scheduled_execution_date is not Unset: self.scheduled_execution_date = scheduled_execution_date @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiAsyncJobsResubmitJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsResubmitJobRequest. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiAsyncJobsResubmitJobRequest. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsResubmitJobRequest. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiAsyncJobsResubmitJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsResubmitJobRequest. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiAsyncJobsResubmitJobRequest. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsResubmitJobRequest. """ self._description = description @property - def scheduled_execution_date(self) -> "Optional[datetime]": + def scheduled_execution_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsResubmitJobRequest. Returns ------- - datetime + Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsResubmitJobRequest. """ return self._scheduled_execution_date @scheduled_execution_date.setter def scheduled_execution_date( - self, scheduled_execution_date: "Optional[datetime]" + self, scheduled_execution_date: "Union[datetime, None, Unset_Type]" ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsResubmitJobRequest. Parameters ---------- - scheduled_execution_date: datetime + scheduled_execution_date: Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsResubmitJobRequest. """ self._scheduled_execution_date = scheduled_execution_date @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py index 747ed499..044fc266 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiAsyncJobsUpdateJobRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiAsyncJobsUpdateJobRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,126 +69,131 @@ class GrantaServerApiAsyncJobsUpdateJobRequest(ModelBase): # type: ignore[misc] def __init__( self, *, - description: "Optional[str]" = None, - name: "Optional[str]" = None, - scheduled_execution_date: "Optional[datetime]" = None, - status: "Optional[GrantaServerApiAsyncJobsJobStatus]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + scheduled_execution_date: "Union[datetime, None, Unset_Type]" = Unset, + status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]" = Unset, ) -> None: """GrantaServerApiAsyncJobsUpdateJobRequest - a model defined in Swagger Parameters ---------- - description: str, optional - name: str, optional - scheduled_execution_date: datetime, optional - status: GrantaServerApiAsyncJobsJobStatus, optional + description: str, optional + name: str, optional + scheduled_execution_date: datetime, optional + status: GrantaServerApiAsyncJobsJobStatus, optional """ - self._name = None - self._description = None - self._scheduled_execution_date = None - self._status = None + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._scheduled_execution_date: Union[datetime, None, Unset_Type] = Unset + self._status: Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if scheduled_execution_date is not None: + if scheduled_execution_date is not Unset: self.scheduled_execution_date = scheduled_execution_date - if status is not None: + if status is not Unset: self.status = status @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsUpdateJobRequest. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiAsyncJobsUpdateJobRequest. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsUpdateJobRequest. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiAsyncJobsUpdateJobRequest. """ self._description = description @property - def scheduled_execution_date(self) -> "Optional[datetime]": + def scheduled_execution_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns ------- - datetime + Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsUpdateJobRequest. """ return self._scheduled_execution_date @scheduled_execution_date.setter def scheduled_execution_date( - self, scheduled_execution_date: "Optional[datetime]" + self, scheduled_execution_date: "Union[datetime, None, Unset_Type]" ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters ---------- - scheduled_execution_date: datetime + scheduled_execution_date: Union[datetime, None, Unset_Type] The scheduled_execution_date of this GrantaServerApiAsyncJobsUpdateJobRequest. """ self._scheduled_execution_date = scheduled_execution_date @property - def status(self) -> "Optional[GrantaServerApiAsyncJobsJobStatus]": + def status(self) -> "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]": """Gets the status of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns ------- - GrantaServerApiAsyncJobsJobStatus + Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type] The status of this GrantaServerApiAsyncJobsUpdateJobRequest. """ return self._status @status.setter - def status(self, status: "Optional[GrantaServerApiAsyncJobsJobStatus]") -> None: + def status( + self, status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]" + ) -> None: """Sets the status of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters ---------- - status: GrantaServerApiAsyncJobsJobStatus + status: Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type] The status of this GrantaServerApiAsyncJobsUpdateJobRequest. """ + # Field is not nullable + if status is None: + raise ValueError("Invalid value for 'status', must not be 'None'") self._status = status @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -205,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py index 8f843cf8..49ca74ec 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( GrantaServerApiDataDatum, ) # noqa: F401 @@ -84,10 +84,10 @@ def __init__( Parameters ---------- - not_applicable: str + not_applicable: str """ super().__init__() - self._not_applicable: str = None # type: ignore[assignment] + self._not_applicable: str self.not_applicable = not_applicable @@ -111,12 +111,16 @@ def not_applicable(self, not_applicable: "str") -> None: not_applicable: str The not_applicable of this GrantaServerApiDataApplicableDatum. """ + # Field is not nullable if not_applicable is None: raise ValueError("Invalid value for 'not_applicable', must not be 'None'") + # Field is required + if not_applicable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'not_applicable', must not be 'Unset'") self._not_applicable = not_applicable @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -138,7 +142,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py index 880b3ee9..7d474d7d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -76,13 +76,13 @@ def __init__( Parameters ---------- - date_time: datetime - datum_type: str - not_applicable: str + date_time: datetime + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._date_time: datetime = None # type: ignore[assignment] + self._datum_type: str + self._date_time: datetime self.datum_type = datum_type self.date_time = date_time @@ -107,8 +107,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataDateTimeDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -131,12 +135,16 @@ def date_time(self, date_time: "datetime") -> None: date_time: datetime The date_time of this GrantaServerApiDataDateTimeDatum. """ + # Field is not nullable if date_time is None: raise ValueError("Invalid value for 'date_time', must not be 'None'") + # Field is required + if date_time is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'date_time', must not be 'Unset'") self._date_time = date_time @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -153,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py index 70438424..88ca2403 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataDatum(ModelBase): # type: ignore[misc] +class GrantaServerApiDataDatum(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,7 +67,7 @@ def __init__( """GrantaServerApiDataDatum - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -89,7 +89,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py index 3025114b..9548b18a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -78,13 +78,13 @@ def __init__( Parameters ---------- - discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] - datum_type: str - not_applicable: str + discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] = None # type: ignore[assignment] + self._datum_type: str + self._discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] self.datum_type = datum_type self.discrete_values = discrete_values @@ -109,8 +109,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataDiscreteDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -121,7 +125,7 @@ def discrete_values( Returns ------- - list[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] The discrete_values of this GrantaServerApiDataDiscreteDatum. """ return self._discrete_values @@ -137,12 +141,16 @@ def discrete_values( discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] The discrete_values of this GrantaServerApiDataDiscreteDatum. """ + # Field is not nullable if discrete_values is None: raise ValueError("Invalid value for 'discrete_values', must not be 'None'") + # Field is required + if discrete_values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'discrete_values', must not be 'Unset'") self._discrete_values = discrete_values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -159,7 +167,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py index f5c9c2ca..bd5ad657 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( GrantaServerApiDataParameterWithValue, ) # noqa: F401 @@ -80,13 +80,13 @@ def __init__( Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue - type: str + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue + type: str """ super().__init__(parameter=parameter) - self._type: str = None # type: ignore[assignment] - self._parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue = None # type: ignore[assignment] + self._type: str + self._parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue self.type = type self.parameter_value = parameter_value @@ -111,8 +111,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataDiscreteParameterWithValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -139,12 +143,16 @@ def parameter_value( parameter_value: GrantaServerApiSchemaParametersDiscreteParameterValue The parameter_value of this GrantaServerApiDataDiscreteParameterWithValue. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -161,7 +169,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py index f7d09645..500a8752 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportAttributeToExport(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportAttributeToExport(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,70 +70,70 @@ class GrantaServerApiDataExportAttributeToExport(ModelBase): # type: ignore[mis def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportAttributeToExport - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional + guid: str, optional + identity: int, optional """ - self._identity = None - self._guid = None + self._identity: Union[int, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiDataExportAttributeToExport. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiDataExportAttributeToExport. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiDataExportAttributeToExport. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiDataExportAttributeToExport. """ self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiDataExportAttributeToExport. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiDataExportAttributeToExport. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiDataExportAttributeToExport. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiDataExportAttributeToExport. """ self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -155,7 +155,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py index 57b1f24f..ce36ee85 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDataExportRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDataExportRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,105 +68,113 @@ class GrantaServerApiDataExportDataExportRequest(ModelBase): # type: ignore[mis def __init__( self, *, - attributes: "Optional[List[GrantaServerApiDataExportAttributeToExport]]" = None, - record_history_identities: "Optional[List[int]]" = None, - record_properties: "Optional[List[GrantaServerApiRecordProperty]]" = None, + attributes: "Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type]" = Unset, + record_history_identities: "Union[List[int], None, Unset_Type]" = Unset, + record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDataExportRequest - a model defined in Swagger Parameters ---------- - attributes: List[GrantaServerApiDataExportAttributeToExport], optional - record_history_identities: List[int], optional - record_properties: List[GrantaServerApiRecordProperty], optional + attributes: List[GrantaServerApiDataExportAttributeToExport], optional + record_history_identities: List[int], optional + record_properties: List[GrantaServerApiRecordProperty], optional """ - self._attributes = None - self._record_properties = None - self._record_history_identities = None - - if attributes is not None: + self._attributes: Union[ + List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type + ] = Unset + self._record_properties: Union[ + List[GrantaServerApiRecordProperty], None, Unset_Type + ] = Unset + self._record_history_identities: Union[List[int], None, Unset_Type] = Unset + + if attributes is not Unset: self.attributes = attributes - if record_properties is not None: + if record_properties is not Unset: self.record_properties = record_properties - if record_history_identities is not None: + if record_history_identities is not Unset: self.record_history_identities = record_history_identities @property def attributes( self, - ) -> "Optional[List[GrantaServerApiDataExportAttributeToExport]]": + ) -> "Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type]": """Gets the attributes of this GrantaServerApiDataExportDataExportRequest. Returns ------- - list[GrantaServerApiDataExportAttributeToExport] + Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type] The attributes of this GrantaServerApiDataExportDataExportRequest. """ return self._attributes @attributes.setter def attributes( - self, attributes: "Optional[List[GrantaServerApiDataExportAttributeToExport]]" + self, + attributes: "Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type]", ) -> None: """Sets the attributes of this GrantaServerApiDataExportDataExportRequest. Parameters ---------- - attributes: List[GrantaServerApiDataExportAttributeToExport] + attributes: Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type] The attributes of this GrantaServerApiDataExportDataExportRequest. """ self._attributes = attributes @property - def record_properties(self) -> "Optional[List[GrantaServerApiRecordProperty]]": + def record_properties( + self, + ) -> "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]": """Gets the record_properties of this GrantaServerApiDataExportDataExportRequest. Returns ------- - list[GrantaServerApiRecordProperty] + Union[List[GrantaServerApiRecordProperty], None, Unset_Type] The record_properties of this GrantaServerApiDataExportDataExportRequest. """ return self._record_properties @record_properties.setter def record_properties( - self, record_properties: "Optional[List[GrantaServerApiRecordProperty]]" + self, + record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]", ) -> None: """Sets the record_properties of this GrantaServerApiDataExportDataExportRequest. Parameters ---------- - record_properties: List[GrantaServerApiRecordProperty] + record_properties: Union[List[GrantaServerApiRecordProperty], None, Unset_Type] The record_properties of this GrantaServerApiDataExportDataExportRequest. """ self._record_properties = record_properties @property - def record_history_identities(self) -> "Optional[List[int]]": + def record_history_identities(self) -> "Union[List[int], None, Unset_Type]": """Gets the record_history_identities of this GrantaServerApiDataExportDataExportRequest. Returns ------- - list[int] + Union[List[int], None, Unset_Type] The record_history_identities of this GrantaServerApiDataExportDataExportRequest. """ return self._record_history_identities @record_history_identities.setter def record_history_identities( - self, record_history_identities: "Optional[List[int]]" + self, record_history_identities: "Union[List[int], None, Unset_Type]" ) -> None: """Sets the record_history_identities of this GrantaServerApiDataExportDataExportRequest. Parameters ---------- - record_history_identities: List[int] + record_history_identities: Union[List[int], None, Unset_Type] The record_history_identities of this GrantaServerApiDataExportDataExportRequest. """ self._record_history_identities = record_history_identities @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +191,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py index 7f1a8b41..ba71788a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDataExportResponse(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDataExportResponse(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,11 +73,11 @@ def __init__( Parameters ---------- - failures: List[GrantaServerApiDataExportExportFailuresExportFailure] - results: List[GrantaServerApiDataExportRecordWithData] + failures: List[GrantaServerApiDataExportExportFailuresExportFailure] + results: List[GrantaServerApiDataExportRecordWithData] """ - self._results: List[GrantaServerApiDataExportRecordWithData] = None # type: ignore[assignment] - self._failures: List[GrantaServerApiDataExportExportFailuresExportFailure] = None # type: ignore[assignment] + self._results: List[GrantaServerApiDataExportRecordWithData] + self._failures: List[GrantaServerApiDataExportExportFailuresExportFailure] self.results = results self.failures = failures @@ -88,7 +88,7 @@ def results(self) -> "List[GrantaServerApiDataExportRecordWithData]": Returns ------- - list[GrantaServerApiDataExportRecordWithData] + List[GrantaServerApiDataExportRecordWithData] The results of this GrantaServerApiDataExportDataExportResponse. """ return self._results @@ -102,8 +102,12 @@ def results(self, results: "List[GrantaServerApiDataExportRecordWithData]") -> N results: List[GrantaServerApiDataExportRecordWithData] The results of this GrantaServerApiDataExportDataExportResponse. """ + # Field is not nullable if results is None: raise ValueError("Invalid value for 'results', must not be 'None'") + # Field is required + if results is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'results', must not be 'Unset'") self._results = results @property @@ -113,7 +117,7 @@ def failures(self) -> "List[GrantaServerApiDataExportExportFailuresExportFailure Returns ------- - list[GrantaServerApiDataExportExportFailuresExportFailure] + List[GrantaServerApiDataExportExportFailuresExportFailure] The failures of this GrantaServerApiDataExportDataExportResponse. """ return self._failures @@ -130,12 +134,16 @@ def failures( failures: List[GrantaServerApiDataExportExportFailuresExportFailure] The failures of this GrantaServerApiDataExportDataExportResponse. """ + # Field is not nullable if failures is None: raise ValueError("Invalid value for 'failures', must not be 'None'") + # Field is required + if failures is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'failures', must not be 'Unset'") self._failures = failures @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +160,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py index 3f5c611f..53aa64d2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( GrantaServerApiDataExportDatumsDatum, ) # noqa: F401 @@ -91,26 +91,26 @@ class GrantaServerApiDataExportDatumsApplicableDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsApplicableDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, attribute_identity=attribute_identity, meta_datums=meta_datums, ) - self._not_applicable: str = None # type: ignore[assignment] + self._not_applicable: str self.not_applicable = not_applicable @@ -134,12 +134,16 @@ def not_applicable(self, not_applicable: "str") -> None: not_applicable: str The not_applicable of this GrantaServerApiDataExportDatumsApplicableDatum. """ + # Field is not nullable if not_applicable is None: raise ValueError("Invalid value for 'not_applicable', must not be 'None'") + # Field is required + if not_applicable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'not_applicable', must not be 'Unset'") self._not_applicable = not_applicable @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -161,7 +165,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py index 121be149..eecd9a65 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsBinaryData(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsBinaryData(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,124 @@ class GrantaServerApiDataExportDatumsBinaryData(ModelBase): # type: ignore[misc def __init__( self, *, - content_type: "Optional[str]" = None, - data: "Optional[str]" = None, - description: "Optional[str]" = None, - name: "Optional[str]" = None, + content_type: "Union[str, None, Unset_Type]" = Unset, + data: "Union[str, None, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsBinaryData - a model defined in Swagger Parameters ---------- - content_type: str, optional - data: str, optional - description: str, optional - name: str, optional + content_type: str, optional + data: str, optional + description: str, optional + name: str, optional """ - self._name = None - self._description = None - self._content_type = None - self._data = None + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._content_type: Union[str, None, Unset_Type] = Unset + self._data: Union[str, None, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if content_type is not None: + if content_type is not Unset: self.content_type = content_type - if data is not None: + if data is not Unset: self.data = data @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiDataExportDatumsBinaryData. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiDataExportDatumsBinaryData. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiDataExportDatumsBinaryData. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiDataExportDatumsBinaryData. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiDataExportDatumsBinaryData. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiDataExportDatumsBinaryData. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiDataExportDatumsBinaryData. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiDataExportDatumsBinaryData. """ self._description = description @property - def content_type(self) -> "Optional[str]": + def content_type(self) -> "Union[str, None, Unset_Type]": """Gets the content_type of this GrantaServerApiDataExportDatumsBinaryData. Returns ------- - str + Union[str, None, Unset_Type] The content_type of this GrantaServerApiDataExportDatumsBinaryData. """ return self._content_type @content_type.setter - def content_type(self, content_type: "Optional[str]") -> None: + def content_type(self, content_type: "Union[str, None, Unset_Type]") -> None: """Sets the content_type of this GrantaServerApiDataExportDatumsBinaryData. Parameters ---------- - content_type: str + content_type: Union[str, None, Unset_Type] The content_type of this GrantaServerApiDataExportDatumsBinaryData. """ self._content_type = content_type @property - def data(self) -> "Optional[str]": + def data(self) -> "Union[str, None, Unset_Type]": """Gets the data of this GrantaServerApiDataExportDatumsBinaryData. Returns ------- - str + Union[str, None, Unset_Type] The data of this GrantaServerApiDataExportDatumsBinaryData. """ return self._data @data.setter - def data(self, data: "Optional[str]") -> None: + def data(self, data: "Union[str, None, Unset_Type]") -> None: """Sets the data of this GrantaServerApiDataExportDatumsBinaryData. Parameters ---------- - data: str + data: Union[str, None, Unset_Type] The data of this GrantaServerApiDataExportDatumsBinaryData. """ self._data = data @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +201,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py index a2d8a1c0..b2b04d01 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -76,23 +76,23 @@ class GrantaServerApiDataExportDatumsBooleanDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "logical", - datum_value: "Optional[bool]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[bool, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsBooleanDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: bool, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: bool, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -100,11 +100,11 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[bool, Unset_Type] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -127,34 +127,41 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsBooleanDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[bool]": + def datum_value(self) -> "Union[bool, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsBooleanDatum. Returns ------- - bool + Union[bool, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsBooleanDatum. """ return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "Optional[bool]") -> None: + def datum_value(self, datum_value: "Union[bool, Unset_Type]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsBooleanDatum. Parameters ---------- - datum_value: bool + datum_value: Union[bool, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsBooleanDatum. """ + # Field is not nullable + if datum_value is None: + raise ValueError("Invalid value for 'datum_value', must not be 'None'") self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -171,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py index acb60af5..5d161faa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -76,23 +76,23 @@ class GrantaServerApiDataExportDatumsDateTimeDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "dateTime", - datum_value: "Optional[datetime]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[datetime, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsDateTimeDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: datetime, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: datetime, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -100,11 +100,11 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[datetime, Unset_Type] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -127,34 +127,41 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsDateTimeDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[datetime]": + def datum_value(self) -> "Union[datetime, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsDateTimeDatum. Returns ------- - datetime + Union[datetime, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsDateTimeDatum. """ return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "Optional[datetime]") -> None: + def datum_value(self, datum_value: "Union[datetime, Unset_Type]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsDateTimeDatum. Parameters ---------- - datum_value: datetime + datum_value: Union[datetime, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsDateTimeDatum. """ + # Field is not nullable + if datum_value is None: + raise ValueError("Invalid value for 'datum_value', must not be 'None'") self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -171,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py index f5a5292f..23dc628a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsDatum(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsDatum(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -75,99 +75,112 @@ class GrantaServerApiDataExportDatumsDatum(ModelBase): # type: ignore[misc] def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + attribute_guid: str, optional + attribute_identity: int, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional """ - self._attribute_identity = None - self._attribute_guid = None - self._meta_datums = None + self._attribute_identity: Union[int, Unset_Type] = Unset + self._attribute_guid: Union[str, Unset_Type] = Unset + self._meta_datums: Union[ + List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type + ] = Unset - if attribute_identity is not None: + if attribute_identity is not Unset: self.attribute_identity = attribute_identity - if attribute_guid is not None: + if attribute_guid is not Unset: self.attribute_guid = attribute_guid - if meta_datums is not None: + if meta_datums is not Unset: self.meta_datums = meta_datums @property - def attribute_identity(self) -> "Optional[int]": + def attribute_identity(self) -> "Union[int, Unset_Type]": """Gets the attribute_identity of this GrantaServerApiDataExportDatumsDatum. Returns ------- - int + Union[int, Unset_Type] The attribute_identity of this GrantaServerApiDataExportDatumsDatum. """ return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "Optional[int]") -> None: + def attribute_identity(self, attribute_identity: "Union[int, Unset_Type]") -> None: """Sets the attribute_identity of this GrantaServerApiDataExportDatumsDatum. Parameters ---------- - attribute_identity: int + attribute_identity: Union[int, Unset_Type] The attribute_identity of this GrantaServerApiDataExportDatumsDatum. """ + # Field is not nullable + if attribute_identity is None: + raise ValueError( + "Invalid value for 'attribute_identity', must not be 'None'" + ) self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "Optional[str]": + def attribute_guid(self) -> "Union[str, Unset_Type]": """Gets the attribute_guid of this GrantaServerApiDataExportDatumsDatum. Returns ------- - str + Union[str, Unset_Type] The attribute_guid of this GrantaServerApiDataExportDatumsDatum. """ return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "Optional[str]") -> None: + def attribute_guid(self, attribute_guid: "Union[str, Unset_Type]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportDatumsDatum. Parameters ---------- - attribute_guid: str + attribute_guid: Union[str, Unset_Type] The attribute_guid of this GrantaServerApiDataExportDatumsDatum. """ + # Field is not nullable + if attribute_guid is None: + raise ValueError("Invalid value for 'attribute_guid', must not be 'None'") self._attribute_guid = attribute_guid @property - def meta_datums(self) -> "Optional[List[GrantaServerApiDataExportDatumsDatum]]": + def meta_datums( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": """Gets the meta_datums of this GrantaServerApiDataExportDatumsDatum. Returns ------- - list[GrantaServerApiDataExportDatumsDatum] + Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] The meta_datums of this GrantaServerApiDataExportDatumsDatum. """ return self._meta_datums @meta_datums.setter def meta_datums( - self, meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" + self, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]", ) -> None: """Sets the meta_datums of this GrantaServerApiDataExportDatumsDatum. Parameters ---------- - meta_datums: List[GrantaServerApiDataExportDatumsDatum] + meta_datums: Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] The meta_datums of this GrantaServerApiDataExportDatumsDatum. """ self._meta_datums = meta_datums @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -189,7 +202,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py index 6ca4aae6..efe4096f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -78,23 +78,23 @@ class GrantaServerApiDataExportDatumsDiscreteDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "discrete", - datum_value: "Optional[List[GrantaServerApiDiscreteValue]]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[List[GrantaServerApiDiscreteValue], None, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsDiscreteDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: List[GrantaServerApiDiscreteValue], optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: List[GrantaServerApiDiscreteValue], optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -102,11 +102,13 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[ + List[GrantaServerApiDiscreteValue], None, Unset_Type + ] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -129,36 +131,42 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsDiscreteDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[List[GrantaServerApiDiscreteValue]]": + def datum_value( + self, + ) -> "Union[List[GrantaServerApiDiscreteValue], None, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. Returns ------- - list[GrantaServerApiDiscreteValue] + Union[List[GrantaServerApiDiscreteValue], None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. """ return self._datum_value @datum_value.setter def datum_value( - self, datum_value: "Optional[List[GrantaServerApiDiscreteValue]]" + self, datum_value: "Union[List[GrantaServerApiDiscreteValue], None, Unset_Type]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. Parameters ---------- - datum_value: List[GrantaServerApiDiscreteValue] + datum_value: Union[List[GrantaServerApiDiscreteValue], None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. """ self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py index 3e54e729..80bc11fa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -88,25 +88,25 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "discreteFunctional", - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" = None, - x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" = None, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsDiscreteFunctionalDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional + x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional """ super().__init__( attribute_guid=attribute_guid, @@ -114,14 +114,18 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._x_axis_parameter = None - self._parameters = None + self._datum_type: str + self._x_axis_parameter: Union[ + GrantaServerApiFunctionalDatumParameterInfo, Unset_Type + ] = Unset + self._parameters: Union[ + List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type + ] = Unset self.datum_type = datum_type - if x_axis_parameter is not None: + if x_axis_parameter is not Unset: self.x_axis_parameter = x_axis_parameter - if parameters is not None: + if parameters is not Unset: self.parameters = parameters @property @@ -144,64 +148,73 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property def x_axis_parameter( self, - ) -> "Optional[GrantaServerApiFunctionalDatumParameterInfo]": + ) -> "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]": """Gets the x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Returns ------- - GrantaServerApiFunctionalDatumParameterInfo + Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type] The x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. """ return self._x_axis_parameter @x_axis_parameter.setter def x_axis_parameter( - self, x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" + self, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]", ) -> None: """Sets the x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Parameters ---------- - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo + x_axis_parameter: Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type] The x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. """ + # Field is not nullable + if x_axis_parameter is None: + raise ValueError("Invalid value for 'x_axis_parameter', must not be 'None'") self._x_axis_parameter = x_axis_parameter @property def parameters( self, - ) -> "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]": + ) -> "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]": """Gets the parameters of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Returns ------- - list[GrantaServerApiFunctionalDatumParameterInfo] + Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. """ return self._parameters @parameters.setter def parameters( - self, parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" + self, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]", ) -> None: """Sets the parameters of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Parameters ---------- - parameters: List[GrantaServerApiFunctionalDatumParameterInfo] + parameters: Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. """ self._parameters = parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -223,7 +236,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py index 6d836d47..4ce53dc9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_discrete_functional_datum import ( GrantaServerApiDataExportDatumsDiscreteFunctionalDatum, ) # noqa: F401 @@ -84,29 +84,29 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "discreteFunctional", graph_type: "str" = "grid", - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" = None, - values: "Optional[List[GrantaServerApiDataExportDatumsDiscreteGridPoint]]" = None, - x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" = None, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, + values: "Union[List[GrantaServerApiDataExportDatumsDiscreteGridPoint], None, Unset_Type]" = Unset, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - graph_type: str - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional - values: List[GrantaServerApiDataExportDatumsDiscreteGridPoint], optional - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + graph_type: str + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional + values: List[GrantaServerApiDataExportDatumsDiscreteGridPoint], optional + x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional """ super().__init__( attribute_guid=attribute_guid, @@ -117,11 +117,13 @@ def __init__( parameters=parameters, x_axis_parameter=x_axis_parameter, ) - self._graph_type: str = None # type: ignore[assignment] - self._values = None + self._graph_type: str + self._values: Union[ + List[GrantaServerApiDataExportDatumsDiscreteGridPoint], None, Unset_Type + ] = Unset self.graph_type = graph_type - if values is not None: + if values is not Unset: self.values = values @property @@ -144,38 +146,43 @@ def graph_type(self, graph_type: "str") -> None: graph_type: str The graph_type of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. """ + # Field is not nullable if graph_type is None: raise ValueError("Invalid value for 'graph_type', must not be 'None'") + # Field is required + if graph_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'graph_type', must not be 'Unset'") self._graph_type = graph_type @property def values( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsDiscreteGridPoint]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsDiscreteGridPoint], None, Unset_Type]": """Gets the values of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. Returns ------- - list[GrantaServerApiDataExportDatumsDiscreteGridPoint] + Union[List[GrantaServerApiDataExportDatumsDiscreteGridPoint], None, Unset_Type] The values of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. """ return self._values @values.setter def values( - self, values: "Optional[List[GrantaServerApiDataExportDatumsDiscreteGridPoint]]" + self, + values: "Union[List[GrantaServerApiDataExportDatumsDiscreteGridPoint], None, Unset_Type]", ) -> None: """Sets the values of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. Parameters ---------- - values: List[GrantaServerApiDataExportDatumsDiscreteGridPoint] + values: Union[List[GrantaServerApiDataExportDatumsDiscreteGridPoint], None, Unset_Type] The values of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. """ self._values = values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -192,7 +199,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py index 716d71f5..146c14fa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_discrete_functional_datum import ( GrantaServerApiDataExportDatumsDiscreteFunctionalDatum, ) # noqa: F401 @@ -84,29 +84,29 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "discreteFunctional", graph_type: "str" = "series", - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" = None, - series: "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeries]]" = None, - x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" = None, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, + series: "Union[List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type]" = Unset, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - graph_type: str - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional - series: List[GrantaServerApiDataExportDatumsDiscreteSeries], optional - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + graph_type: str + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional + series: List[GrantaServerApiDataExportDatumsDiscreteSeries], optional + x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional """ super().__init__( attribute_guid=attribute_guid, @@ -117,11 +117,13 @@ def __init__( parameters=parameters, x_axis_parameter=x_axis_parameter, ) - self._graph_type: str = None # type: ignore[assignment] - self._series = None + self._graph_type: str + self._series: Union[ + List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type + ] = Unset self.graph_type = graph_type - if series is not None: + if series is not Unset: self.series = series @property @@ -144,36 +146,43 @@ def graph_type(self, graph_type: "str") -> None: graph_type: str The graph_type of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. """ + # Field is not nullable if graph_type is None: raise ValueError("Invalid value for 'graph_type', must not be 'None'") + # Field is required + if graph_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'graph_type', must not be 'Unset'") self._graph_type = graph_type @property - def series(self) -> "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeries]]": + def series( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type]": """Gets the series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. Returns ------- - list[GrantaServerApiDataExportDatumsDiscreteSeries] + Union[List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type] The series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. """ return self._series @series.setter def series( - self, series: "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeries]]" + self, + series: "Union[List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type]", ) -> None: """Sets the series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. Parameters ---------- - series: List[GrantaServerApiDataExportDatumsDiscreteSeries] + series: Union[List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type] The series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. """ self._series = series @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -190,7 +199,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py index f28caf5e..5b279149 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsDiscreteGridPoint(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsDiscreteGridPoint(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,33 +66,35 @@ class GrantaServerApiDataExportDatumsDiscreteGridPoint(ModelBase): # type: igno def __init__( self, *, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]" = None, - value: "Optional[GrantaServerApiDiscreteValue]" = None, + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]" = Unset, + value: "Union[GrantaServerApiDiscreteValue, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsDiscreteGridPoint - a model defined in Swagger Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional - value: GrantaServerApiDiscreteValue, optional + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional + value: GrantaServerApiDiscreteValue, optional """ - self._parameter_values = None - self._value = None + self._parameter_values: Union[ + List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type + ] = Unset + self._value: Union[GrantaServerApiDiscreteValue, Unset_Type] = Unset - if parameter_values is not None: + if parameter_values is not Unset: self.parameter_values = parameter_values - if value is not None: + if value is not Unset: self.value = value @property def parameter_values( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Returns ------- - list[GrantaServerApiDataExportDatumsParameterValue] + Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsDiscreteGridPoint. """ return self._parameter_values @@ -100,41 +102,44 @@ def parameter_values( @parameter_values.setter def parameter_values( self, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsDiscreteGridPoint. """ self._parameter_values = parameter_values @property - def value(self) -> "Optional[GrantaServerApiDiscreteValue]": + def value(self) -> "Union[GrantaServerApiDiscreteValue, Unset_Type]": """Gets the value of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Returns ------- - GrantaServerApiDiscreteValue + Union[GrantaServerApiDiscreteValue, Unset_Type] The value of this GrantaServerApiDataExportDatumsDiscreteGridPoint. """ return self._value @value.setter - def value(self, value: "Optional[GrantaServerApiDiscreteValue]") -> None: + def value(self, value: "Union[GrantaServerApiDiscreteValue, Unset_Type]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Parameters ---------- - value: GrantaServerApiDiscreteValue + value: Union[GrantaServerApiDiscreteValue, Unset_Type] The value of this GrantaServerApiDataExportDatumsDiscreteGridPoint. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -151,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py index c4715e81..fb09d69d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsDiscreteSeries(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsDiscreteSeries(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,33 +66,37 @@ class GrantaServerApiDataExportDatumsDiscreteSeries(ModelBase): # type: ignore[ def __init__( self, *, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]" = None, - points: "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]]" = None, + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]" = Unset, + points: "Union[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsDiscreteSeries - a model defined in Swagger Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional - points: List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], optional + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional + points: List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], optional """ - self._parameter_values = None - self._points = None - - if parameter_values is not None: + self._parameter_values: Union[ + List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type + ] = Unset + self._points: Union[ + List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], None, Unset_Type + ] = Unset + + if parameter_values is not Unset: self.parameter_values = parameter_values - if points is not None: + if points is not Unset: self.points = points @property def parameter_values( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteSeries. Returns ------- - list[GrantaServerApiDataExportDatumsParameterValue] + Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsDiscreteSeries. """ return self._parameter_values @@ -100,13 +104,13 @@ def parameter_values( @parameter_values.setter def parameter_values( self, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteSeries. Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsDiscreteSeries. """ self._parameter_values = parameter_values @@ -114,12 +118,12 @@ def parameter_values( @property def points( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], None, Unset_Type]": """Gets the points of this GrantaServerApiDataExportDatumsDiscreteSeries. Returns ------- - list[GrantaServerApiDataExportDatumsDiscreteSeriesPoint] + Union[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], None, Unset_Type] The points of this GrantaServerApiDataExportDatumsDiscreteSeries. """ return self._points @@ -127,19 +131,19 @@ def points( @points.setter def points( self, - points: "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]]", + points: "Union[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], None, Unset_Type]", ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsDiscreteSeries. Parameters ---------- - points: List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint] + points: Union[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint], None, Unset_Type] The points of this GrantaServerApiDataExportDatumsDiscreteSeries. """ self._points = points @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -156,7 +160,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py index ea949833..a651607a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsDiscreteSeriesPoint(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsDiscreteSeriesPoint(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,97 +67,103 @@ class GrantaServerApiDataExportDatumsDiscreteSeriesPoint(ModelBase): # type: ig def __init__( self, *, - x: "Optional[float]" = None, - x_name: "Optional[str]" = None, - y: "Optional[GrantaServerApiDiscreteValue]" = None, + x: "Union[float, Unset_Type]" = Unset, + x_name: "Union[str, None, Unset_Type]" = Unset, + y: "Union[GrantaServerApiDiscreteValue, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsDiscreteSeriesPoint - a model defined in Swagger Parameters ---------- - x: float, optional - x_name: str, optional - y: GrantaServerApiDiscreteValue, optional + x: float, optional + x_name: str, optional + y: GrantaServerApiDiscreteValue, optional """ - self._x = None - self._x_name = None - self._y = None + self._x: Union[float, Unset_Type] = Unset + self._x_name: Union[str, None, Unset_Type] = Unset + self._y: Union[GrantaServerApiDiscreteValue, Unset_Type] = Unset - if x is not None: + if x is not Unset: self.x = x - if x_name is not None: + if x_name is not Unset: self.x_name = x_name - if y is not None: + if y is not Unset: self.y = y @property - def x(self) -> "Optional[float]": + def x(self) -> "Union[float, Unset_Type]": """Gets the x of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Returns ------- - float + Union[float, Unset_Type] The x of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. """ return self._x @x.setter - def x(self, x: "Optional[float]") -> None: + def x(self, x: "Union[float, Unset_Type]") -> None: """Sets the x of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Parameters ---------- - x: float + x: Union[float, Unset_Type] The x of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. """ + # Field is not nullable + if x is None: + raise ValueError("Invalid value for 'x', must not be 'None'") self._x = x @property - def x_name(self) -> "Optional[str]": + def x_name(self) -> "Union[str, None, Unset_Type]": """Gets the x_name of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Returns ------- - str + Union[str, None, Unset_Type] The x_name of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. """ return self._x_name @x_name.setter - def x_name(self, x_name: "Optional[str]") -> None: + def x_name(self, x_name: "Union[str, None, Unset_Type]") -> None: """Sets the x_name of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Parameters ---------- - x_name: str + x_name: Union[str, None, Unset_Type] The x_name of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. """ self._x_name = x_name @property - def y(self) -> "Optional[GrantaServerApiDiscreteValue]": + def y(self) -> "Union[GrantaServerApiDiscreteValue, Unset_Type]": """Gets the y of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Returns ------- - GrantaServerApiDiscreteValue + Union[GrantaServerApiDiscreteValue, Unset_Type] The y of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. """ return self._y @y.setter - def y(self, y: "Optional[GrantaServerApiDiscreteValue]") -> None: + def y(self, y: "Union[GrantaServerApiDiscreteValue, Unset_Type]") -> None: """Sets the y of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Parameters ---------- - y: GrantaServerApiDiscreteValue + y: Union[GrantaServerApiDiscreteValue, Unset_Type] The y of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. """ + # Field is not nullable + if y is None: + raise ValueError("Invalid value for 'y', must not be 'None'") self._y = y @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py index d657630d..76538818 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -78,23 +78,23 @@ class GrantaServerApiDataExportDatumsFileDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "file", - datum_value: "Optional[GrantaServerApiDataExportDatumsBinaryData]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsFileDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: GrantaServerApiDataExportDatumsBinaryData, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: GrantaServerApiDataExportDatumsBinaryData, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -102,11 +102,13 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[ + GrantaServerApiDataExportDatumsBinaryData, Unset_Type + ] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -129,36 +131,46 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsFileDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsBinaryData]": + def datum_value( + self, + ) -> "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsFileDatum. Returns ------- - GrantaServerApiDataExportDatumsBinaryData + Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsFileDatum. """ return self._datum_value @datum_value.setter def datum_value( - self, datum_value: "Optional[GrantaServerApiDataExportDatumsBinaryData]" + self, + datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]", ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsFileDatum. Parameters ---------- - datum_value: GrantaServerApiDataExportDatumsBinaryData + datum_value: Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsFileDatum. """ + # Field is not nullable + if datum_value is None: + raise ValueError("Invalid value for 'datum_value', must not be 'None'") self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py index 25f7608d..0890750e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -92,29 +92,29 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "floatFunctional", - is_estimated: "Optional[bool]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + is_estimated: "Union[bool, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" = None, - unit_symbol: "Optional[str]" = None, - x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" = None, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsFloatFunctionalDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - is_estimated: bool, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional - unit_symbol: str, optional - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + is_estimated: bool, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional + unit_symbol: str, optional + x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional """ super().__init__( attribute_guid=attribute_guid, @@ -122,20 +122,24 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._unit_symbol = None - self._x_axis_parameter = None - self._parameters = None - self._is_estimated = None + self._datum_type: str + self._unit_symbol: Union[str, None, Unset_Type] = Unset + self._x_axis_parameter: Union[ + GrantaServerApiFunctionalDatumParameterInfo, Unset_Type + ] = Unset + self._parameters: Union[ + List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type + ] = Unset + self._is_estimated: Union[bool, Unset_Type] = Unset self.datum_type = datum_type - if unit_symbol is not None: + if unit_symbol is not Unset: self.unit_symbol = unit_symbol - if x_axis_parameter is not None: + if x_axis_parameter is not Unset: self.x_axis_parameter = x_axis_parameter - if parameters is not None: + if parameters is not Unset: self.parameters = parameters - if is_estimated is not None: + if is_estimated is not Unset: self.is_estimated = is_estimated @property @@ -158,28 +162,32 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def unit_symbol(self) -> "Optional[str]": + def unit_symbol(self) -> "Union[str, None, Unset_Type]": """Gets the unit_symbol of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns ------- - str + Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "Optional[str]") -> None: + def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: """Sets the unit_symbol of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Parameters ---------- - unit_symbol: str + unit_symbol: Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ self._unit_symbol = unit_symbol @@ -187,79 +195,87 @@ def unit_symbol(self, unit_symbol: "Optional[str]") -> None: @property def x_axis_parameter( self, - ) -> "Optional[GrantaServerApiFunctionalDatumParameterInfo]": + ) -> "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]": """Gets the x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns ------- - GrantaServerApiFunctionalDatumParameterInfo + Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type] The x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ return self._x_axis_parameter @x_axis_parameter.setter def x_axis_parameter( - self, x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" + self, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]", ) -> None: """Sets the x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Parameters ---------- - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo + x_axis_parameter: Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type] The x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ + # Field is not nullable + if x_axis_parameter is None: + raise ValueError("Invalid value for 'x_axis_parameter', must not be 'None'") self._x_axis_parameter = x_axis_parameter @property def parameters( self, - ) -> "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]": + ) -> "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]": """Gets the parameters of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns ------- - list[GrantaServerApiFunctionalDatumParameterInfo] + Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ return self._parameters @parameters.setter def parameters( - self, parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" + self, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]", ) -> None: """Sets the parameters of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Parameters ---------- - parameters: List[GrantaServerApiFunctionalDatumParameterInfo] + parameters: Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ self._parameters = parameters @property - def is_estimated(self) -> "Optional[bool]": + def is_estimated(self) -> "Union[bool, Unset_Type]": """Gets the is_estimated of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns ------- - bool + Union[bool, Unset_Type] The is_estimated of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ return self._is_estimated @is_estimated.setter - def is_estimated(self, is_estimated: "Optional[bool]") -> None: + def is_estimated(self, is_estimated: "Union[bool, Unset_Type]") -> None: """Sets the is_estimated of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Parameters ---------- - is_estimated: bool + is_estimated: Union[bool, Unset_Type] The is_estimated of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ + # Field is not nullable + if is_estimated is None: + raise ValueError("Invalid value for 'is_estimated', must not be 'None'") self._is_estimated = is_estimated @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -281,7 +297,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py index 2551edba..d63fc758 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_float_functional_datum import ( GrantaServerApiDataExportDatumsFloatFunctionalDatum, ) # noqa: F401 @@ -88,33 +88,33 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "floatFunctional", graph_type: "str" = "grid", - is_estimated: "Optional[bool]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + is_estimated: "Union[bool, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" = None, - points: "Optional[List[GrantaServerApiDataExportDatumsGridPoint]]" = None, - unit_symbol: "Optional[str]" = None, - x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" = None, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, + points: "Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsFunctionalGridDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - graph_type: str - is_estimated: bool, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional - points: List[GrantaServerApiDataExportDatumsGridPoint], optional - unit_symbol: str, optional - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + graph_type: str + is_estimated: bool, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional + points: List[GrantaServerApiDataExportDatumsGridPoint], optional + unit_symbol: str, optional + x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional """ super().__init__( attribute_guid=attribute_guid, @@ -127,11 +127,13 @@ def __init__( unit_symbol=unit_symbol, x_axis_parameter=x_axis_parameter, ) - self._graph_type: str = None # type: ignore[assignment] - self._points = None + self._graph_type: str + self._points: Union[ + List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type + ] = Unset self.graph_type = graph_type - if points is not None: + if points is not Unset: self.points = points @property @@ -154,36 +156,43 @@ def graph_type(self, graph_type: "str") -> None: graph_type: str The graph_type of this GrantaServerApiDataExportDatumsFunctionalGridDatum. """ + # Field is not nullable if graph_type is None: raise ValueError("Invalid value for 'graph_type', must not be 'None'") + # Field is required + if graph_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'graph_type', must not be 'Unset'") self._graph_type = graph_type @property - def points(self) -> "Optional[List[GrantaServerApiDataExportDatumsGridPoint]]": + def points( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type]": """Gets the points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. Returns ------- - list[GrantaServerApiDataExportDatumsGridPoint] + Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type] The points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. """ return self._points @points.setter def points( - self, points: "Optional[List[GrantaServerApiDataExportDatumsGridPoint]]" + self, + points: "Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type]", ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. Parameters ---------- - points: List[GrantaServerApiDataExportDatumsGridPoint] + points: Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type] The points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. """ self._points = points @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -200,7 +209,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py index 92be22fd..60c36d8b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_float_functional_datum import ( GrantaServerApiDataExportDatumsFloatFunctionalDatum, ) # noqa: F401 @@ -94,39 +94,39 @@ class GrantaServerApiDataExportDatumsFunctionalSeriesDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "floatFunctional", graph_type: "str" = "series", - is_estimated: "Optional[bool]" = None, - is_logarithmic: "Optional[bool]" = None, - is_range: "Optional[bool]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + is_estimated: "Union[bool, Unset_Type]" = Unset, + is_logarithmic: "Union[bool, Unset_Type]" = Unset, + is_range: "Union[bool, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" = None, - series: "Optional[List[GrantaServerApiDataExportDatumsSeries]]" = None, - show_as_table: "Optional[bool]" = None, - unit_symbol: "Optional[str]" = None, - x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" = None, + parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, + series: "Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type]" = Unset, + show_as_table: "Union[bool, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, + x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsFunctionalSeriesDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - graph_type: str - is_estimated: bool, optional - is_logarithmic: bool, optional - is_range: bool, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional - series: List[GrantaServerApiDataExportDatumsSeries], optional - show_as_table: bool, optional - unit_symbol: str, optional - x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + graph_type: str + is_estimated: bool, optional + is_logarithmic: bool, optional + is_range: bool, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional + series: List[GrantaServerApiDataExportDatumsSeries], optional + show_as_table: bool, optional + unit_symbol: str, optional + x_axis_parameter: GrantaServerApiFunctionalDatumParameterInfo, optional """ super().__init__( attribute_guid=attribute_guid, @@ -139,20 +139,22 @@ def __init__( unit_symbol=unit_symbol, x_axis_parameter=x_axis_parameter, ) - self._graph_type: str = None # type: ignore[assignment] - self._series = None - self._is_logarithmic = None - self._is_range = None - self._show_as_table = None + self._graph_type: str + self._series: Union[ + List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type + ] = Unset + self._is_logarithmic: Union[bool, Unset_Type] = Unset + self._is_range: Union[bool, Unset_Type] = Unset + self._show_as_table: Union[bool, Unset_Type] = Unset self.graph_type = graph_type - if series is not None: + if series is not Unset: self.series = series - if is_logarithmic is not None: + if is_logarithmic is not Unset: self.is_logarithmic = is_logarithmic - if is_range is not None: + if is_range is not Unset: self.is_range = is_range - if show_as_table is not None: + if show_as_table is not Unset: self.show_as_table = show_as_table @property @@ -175,102 +177,118 @@ def graph_type(self, graph_type: "str") -> None: graph_type: str The graph_type of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ + # Field is not nullable if graph_type is None: raise ValueError("Invalid value for 'graph_type', must not be 'None'") + # Field is required + if graph_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'graph_type', must not be 'Unset'") self._graph_type = graph_type @property - def series(self) -> "Optional[List[GrantaServerApiDataExportDatumsSeries]]": + def series( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type]": """Gets the series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns ------- - list[GrantaServerApiDataExportDatumsSeries] + Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type] The series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ return self._series @series.setter def series( - self, series: "Optional[List[GrantaServerApiDataExportDatumsSeries]]" + self, + series: "Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type]", ) -> None: """Sets the series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters ---------- - series: List[GrantaServerApiDataExportDatumsSeries] + series: Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type] The series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ self._series = series @property - def is_logarithmic(self) -> "Optional[bool]": + def is_logarithmic(self) -> "Union[bool, Unset_Type]": """Gets the is_logarithmic of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns ------- - bool + Union[bool, Unset_Type] The is_logarithmic of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ return self._is_logarithmic @is_logarithmic.setter - def is_logarithmic(self, is_logarithmic: "Optional[bool]") -> None: + def is_logarithmic(self, is_logarithmic: "Union[bool, Unset_Type]") -> None: """Sets the is_logarithmic of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters ---------- - is_logarithmic: bool + is_logarithmic: Union[bool, Unset_Type] The is_logarithmic of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ + # Field is not nullable + if is_logarithmic is None: + raise ValueError("Invalid value for 'is_logarithmic', must not be 'None'") self._is_logarithmic = is_logarithmic @property - def is_range(self) -> "Optional[bool]": + def is_range(self) -> "Union[bool, Unset_Type]": """Gets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns ------- - bool + Union[bool, Unset_Type] The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ return self._is_range @is_range.setter - def is_range(self, is_range: "Optional[bool]") -> None: + def is_range(self, is_range: "Union[bool, Unset_Type]") -> None: """Sets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters ---------- - is_range: bool + is_range: Union[bool, Unset_Type] The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ + # Field is not nullable + if is_range is None: + raise ValueError("Invalid value for 'is_range', must not be 'None'") self._is_range = is_range @property - def show_as_table(self) -> "Optional[bool]": + def show_as_table(self) -> "Union[bool, Unset_Type]": """Gets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns ------- - bool + Union[bool, Unset_Type] The show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ return self._show_as_table @show_as_table.setter - def show_as_table(self, show_as_table: "Optional[bool]") -> None: + def show_as_table(self, show_as_table: "Union[bool, Unset_Type]") -> None: """Sets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters ---------- - show_as_table: bool + show_as_table: Union[bool, Unset_Type] The show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ + # Field is not nullable + if show_as_table is None: + raise ValueError("Invalid value for 'show_as_table', must not be 'None'") self._show_as_table = show_as_table @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -287,7 +305,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py index 11af1110..9b13798e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsGridPoint(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsGridPoint(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,38 +67,40 @@ class GrantaServerApiDataExportDatumsGridPoint(ModelBase): # type: ignore[misc] def __init__( self, *, - high: "Optional[float]" = None, - low: "Optional[float]" = None, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]" = None, + high: "Union[float, Unset_Type]" = Unset, + low: "Union[float, Unset_Type]" = Unset, + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsGridPoint - a model defined in Swagger Parameters ---------- - high: float, optional - low: float, optional - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional + high: float, optional + low: float, optional + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional """ - self._parameter_values = None - self._low = None - self._high = None + self._parameter_values: Union[ + List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type + ] = Unset + self._low: Union[float, Unset_Type] = Unset + self._high: Union[float, Unset_Type] = Unset - if parameter_values is not None: + if parameter_values is not Unset: self.parameter_values = parameter_values - if low is not None: + if low is not Unset: self.low = low - if high is not None: + if high is not Unset: self.high = high @property def parameter_values( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsGridPoint. Returns ------- - list[GrantaServerApiDataExportDatumsParameterValue] + Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsGridPoint. """ return self._parameter_values @@ -106,63 +108,69 @@ def parameter_values( @parameter_values.setter def parameter_values( self, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsGridPoint. Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsGridPoint. """ self._parameter_values = parameter_values @property - def low(self) -> "Optional[float]": + def low(self) -> "Union[float, Unset_Type]": """Gets the low of this GrantaServerApiDataExportDatumsGridPoint. Returns ------- - float + Union[float, Unset_Type] The low of this GrantaServerApiDataExportDatumsGridPoint. """ return self._low @low.setter - def low(self, low: "Optional[float]") -> None: + def low(self, low: "Union[float, Unset_Type]") -> None: """Sets the low of this GrantaServerApiDataExportDatumsGridPoint. Parameters ---------- - low: float + low: Union[float, Unset_Type] The low of this GrantaServerApiDataExportDatumsGridPoint. """ + # Field is not nullable + if low is None: + raise ValueError("Invalid value for 'low', must not be 'None'") self._low = low @property - def high(self) -> "Optional[float]": + def high(self) -> "Union[float, Unset_Type]": """Gets the high of this GrantaServerApiDataExportDatumsGridPoint. Returns ------- - float + Union[float, Unset_Type] The high of this GrantaServerApiDataExportDatumsGridPoint. """ return self._high @high.setter - def high(self, high: "Optional[float]") -> None: + def high(self, high: "Union[float, Unset_Type]") -> None: """Sets the high of this GrantaServerApiDataExportDatumsGridPoint. Parameters ---------- - high: float + high: Union[float, Unset_Type] The high of this GrantaServerApiDataExportDatumsGridPoint. """ + # Field is not nullable + if high is None: + raise ValueError("Invalid value for 'high', must not be 'None'") self._high = high @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py index 884e7ebe..cf8aa4e0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsHyperlink(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsHyperlink(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,99 @@ class GrantaServerApiDataExportDatumsHyperlink(ModelBase): # type: ignore[misc] def __init__( self, *, - address: "Optional[str]" = None, - description: "Optional[str]" = None, - formatted_address: "Optional[str]" = None, + address: "Union[str, None, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + formatted_address: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsHyperlink - a model defined in Swagger Parameters ---------- - address: str, optional - description: str, optional - formatted_address: str, optional + address: str, optional + description: str, optional + formatted_address: str, optional """ - self._address = None - self._formatted_address = None - self._description = None + self._address: Union[str, None, Unset_Type] = Unset + self._formatted_address: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset - if address is not None: + if address is not Unset: self.address = address - if formatted_address is not None: + if formatted_address is not Unset: self.formatted_address = formatted_address - if description is not None: + if description is not Unset: self.description = description @property - def address(self) -> "Optional[str]": + def address(self) -> "Union[str, None, Unset_Type]": """Gets the address of this GrantaServerApiDataExportDatumsHyperlink. Returns ------- - str + Union[str, None, Unset_Type] The address of this GrantaServerApiDataExportDatumsHyperlink. """ return self._address @address.setter - def address(self, address: "Optional[str]") -> None: + def address(self, address: "Union[str, None, Unset_Type]") -> None: """Sets the address of this GrantaServerApiDataExportDatumsHyperlink. Parameters ---------- - address: str + address: Union[str, None, Unset_Type] The address of this GrantaServerApiDataExportDatumsHyperlink. """ self._address = address @property - def formatted_address(self) -> "Optional[str]": + def formatted_address(self) -> "Union[str, None, Unset_Type]": """Gets the formatted_address of this GrantaServerApiDataExportDatumsHyperlink. Returns ------- - str + Union[str, None, Unset_Type] The formatted_address of this GrantaServerApiDataExportDatumsHyperlink. """ return self._formatted_address @formatted_address.setter - def formatted_address(self, formatted_address: "Optional[str]") -> None: + def formatted_address( + self, formatted_address: "Union[str, None, Unset_Type]" + ) -> None: """Sets the formatted_address of this GrantaServerApiDataExportDatumsHyperlink. Parameters ---------- - formatted_address: str + formatted_address: Union[str, None, Unset_Type] The formatted_address of this GrantaServerApiDataExportDatumsHyperlink. """ self._formatted_address = formatted_address @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiDataExportDatumsHyperlink. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiDataExportDatumsHyperlink. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiDataExportDatumsHyperlink. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiDataExportDatumsHyperlink. """ self._description = description @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py index c703e7b0..43dbf4e7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -78,23 +78,23 @@ class GrantaServerApiDataExportDatumsHyperlinkDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "hyperlink", - datum_value: "Optional[GrantaServerApiDataExportDatumsHyperlink]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsHyperlinkDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: GrantaServerApiDataExportDatumsHyperlink, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: GrantaServerApiDataExportDatumsHyperlink, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -102,11 +102,13 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[ + GrantaServerApiDataExportDatumsHyperlink, Unset_Type + ] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -129,36 +131,45 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsHyperlinkDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsHyperlink]": + def datum_value( + self, + ) -> "Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsHyperlinkDatum. Returns ------- - GrantaServerApiDataExportDatumsHyperlink + Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsHyperlinkDatum. """ return self._datum_value @datum_value.setter def datum_value( - self, datum_value: "Optional[GrantaServerApiDataExportDatumsHyperlink]" + self, datum_value: "Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsHyperlinkDatum. Parameters ---------- - datum_value: GrantaServerApiDataExportDatumsHyperlink + datum_value: Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsHyperlinkDatum. """ + # Field is not nullable + if datum_value is None: + raise ValueError("Invalid value for 'datum_value', must not be 'None'") self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +186,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py index 0dd33296..b9441265 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -81,21 +81,21 @@ class GrantaServerApiDataExportDatumsLinkDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "link", - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsLinkDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -103,7 +103,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] + self._datum_type: str self.datum_type = datum_type @@ -127,12 +127,16 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsLinkDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -154,7 +158,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py index 4df71757..380f4651 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_link_datum import ( GrantaServerApiDataExportDatumsLinkDatum, ) # noqa: F401 @@ -96,39 +96,39 @@ class GrantaServerApiDataExportDatumsLinkedRecordsDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "link", - export_in_reversed_direction: "Optional[bool]" = None, - link_attribute_type: "Optional[GrantaServerApiLinkAttributeType]" = None, + export_in_reversed_direction: "Union[bool, Unset_Type]" = Unset, + link_attribute_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" = Unset, link_datum_type: "str" = "linkGroup", - link_group_identities_by_database_key: "Optional[Dict[str, int]]" = None, - link_group_name: "Optional[str]" = None, - link_group_names_by_database_key: "Optional[Dict[str, str]]" = None, - linked_records: "Optional[List[GrantaServerApiDataExportRecordWithData]]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + link_group_identities_by_database_key: "Union[Dict[str, int], None, Unset_Type]" = Unset, + link_group_name: "Union[str, None, Unset_Type]" = Unset, + link_group_names_by_database_key: "Union[Dict[str, str], None, Unset_Type]" = Unset, + linked_records: "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - rolled_up_data: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]" = None, - target_database_guid: "Optional[str]" = None, + rolled_up_data: "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]" = Unset, + target_database_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsLinkedRecordsDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - export_in_reversed_direction: bool, optional - link_attribute_type: GrantaServerApiLinkAttributeType, optional - link_datum_type: str - link_group_identities_by_database_key: Dict[str, int], optional - link_group_name: str, optional - link_group_names_by_database_key: Dict[str, str], optional - linked_records: List[GrantaServerApiDataExportRecordWithData], optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum], optional - target_database_guid: str, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + export_in_reversed_direction: bool, optional + link_attribute_type: GrantaServerApiLinkAttributeType, optional + link_datum_type: str + link_group_identities_by_database_key: Dict[str, int], optional + link_group_name: str, optional + link_group_names_by_database_key: Dict[str, str], optional + linked_records: List[GrantaServerApiDataExportRecordWithData], optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum], optional + target_database_guid: str, optional """ super().__init__( attribute_guid=attribute_guid, @@ -137,124 +137,148 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._link_group_name = None - self._link_attribute_type = None - self._export_in_reversed_direction = None - self._target_database_guid = None - self._linked_records = None - self._link_group_names_by_database_key = None - self._link_group_identities_by_database_key = None - self._rolled_up_data = None - self._link_datum_type: str = None # type: ignore[assignment] - - if link_group_name is not None: + self._link_group_name: Union[str, None, Unset_Type] = Unset + self._link_attribute_type: Union[ + GrantaServerApiLinkAttributeType, Unset_Type + ] = Unset + self._export_in_reversed_direction: Union[bool, Unset_Type] = Unset + self._target_database_guid: Union[str, None, Unset_Type] = Unset + self._linked_records: Union[ + List[GrantaServerApiDataExportRecordWithData], None, Unset_Type + ] = Unset + self._link_group_names_by_database_key: Union[ + Dict[str, str], None, Unset_Type + ] = Unset + self._link_group_identities_by_database_key: Union[ + Dict[str, int], None, Unset_Type + ] = Unset + self._rolled_up_data: Union[ + List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type + ] = Unset + self._link_datum_type: str + + if link_group_name is not Unset: self.link_group_name = link_group_name - if link_attribute_type is not None: + if link_attribute_type is not Unset: self.link_attribute_type = link_attribute_type - if export_in_reversed_direction is not None: + if export_in_reversed_direction is not Unset: self.export_in_reversed_direction = export_in_reversed_direction - if target_database_guid is not None: + if target_database_guid is not Unset: self.target_database_guid = target_database_guid - if linked_records is not None: + if linked_records is not Unset: self.linked_records = linked_records - if link_group_names_by_database_key is not None: + if link_group_names_by_database_key is not Unset: self.link_group_names_by_database_key = link_group_names_by_database_key - if link_group_identities_by_database_key is not None: + if link_group_identities_by_database_key is not Unset: self.link_group_identities_by_database_key = ( link_group_identities_by_database_key ) - if rolled_up_data is not None: + if rolled_up_data is not Unset: self.rolled_up_data = rolled_up_data self.link_datum_type = link_datum_type @property - def link_group_name(self) -> "Optional[str]": + def link_group_name(self) -> "Union[str, None, Unset_Type]": """Gets the link_group_name of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - str + Union[str, None, Unset_Type] The link_group_name of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._link_group_name @link_group_name.setter - def link_group_name(self, link_group_name: "Optional[str]") -> None: + def link_group_name(self, link_group_name: "Union[str, None, Unset_Type]") -> None: """Sets the link_group_name of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - link_group_name: str + link_group_name: Union[str, None, Unset_Type] The link_group_name of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._link_group_name = link_group_name @property - def link_attribute_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": + def link_attribute_type( + self, + ) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": """Gets the link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - GrantaServerApiLinkAttributeType + Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._link_attribute_type @link_attribute_type.setter def link_attribute_type( - self, link_attribute_type: "Optional[GrantaServerApiLinkAttributeType]" + self, link_attribute_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" ) -> None: """Sets the link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - link_attribute_type: GrantaServerApiLinkAttributeType + link_attribute_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ + # Field is not nullable + if link_attribute_type is None: + raise ValueError( + "Invalid value for 'link_attribute_type', must not be 'None'" + ) self._link_attribute_type = link_attribute_type @property - def export_in_reversed_direction(self) -> "Optional[bool]": + def export_in_reversed_direction(self) -> "Union[bool, Unset_Type]": """Gets the export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - bool + Union[bool, Unset_Type] The export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._export_in_reversed_direction @export_in_reversed_direction.setter def export_in_reversed_direction( - self, export_in_reversed_direction: "Optional[bool]" + self, export_in_reversed_direction: "Union[bool, Unset_Type]" ) -> None: """Sets the export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - export_in_reversed_direction: bool + export_in_reversed_direction: Union[bool, Unset_Type] The export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ + # Field is not nullable + if export_in_reversed_direction is None: + raise ValueError( + "Invalid value for 'export_in_reversed_direction', must not be 'None'" + ) self._export_in_reversed_direction = export_in_reversed_direction @property - def target_database_guid(self) -> "Optional[str]": + def target_database_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - str + Union[str, None, Unset_Type] The target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "Optional[str]") -> None: + def target_database_guid( + self, target_database_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - target_database_guid: str + target_database_guid: Union[str, None, Unset_Type] The target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._target_database_guid = target_database_guid @@ -262,73 +286,80 @@ def target_database_guid(self, target_database_guid: "Optional[str]") -> None: @property def linked_records( self, - ) -> "Optional[List[GrantaServerApiDataExportRecordWithData]]": + ) -> "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]": """Gets the linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - list[GrantaServerApiDataExportRecordWithData] + Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type] The linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._linked_records @linked_records.setter def linked_records( - self, linked_records: "Optional[List[GrantaServerApiDataExportRecordWithData]]" + self, + linked_records: "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]", ) -> None: """Sets the linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - linked_records: List[GrantaServerApiDataExportRecordWithData] + linked_records: Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type] The linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._linked_records = linked_records @property - def link_group_names_by_database_key(self) -> "Optional[Dict[str, str]]": + def link_group_names_by_database_key( + self, + ) -> "Union[Dict[str, str], None, Unset_Type]": """Gets the link_group_names_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - dict(str, str) + Union[Dict[str, str], None, Unset_Type] The link_group_names_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._link_group_names_by_database_key @link_group_names_by_database_key.setter def link_group_names_by_database_key( - self, link_group_names_by_database_key: "Optional[Dict[str, str]]" + self, + link_group_names_by_database_key: "Union[Dict[str, str], None, Unset_Type]", ) -> None: """Sets the link_group_names_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - link_group_names_by_database_key: Dict[str, str] + link_group_names_by_database_key: Union[Dict[str, str], None, Unset_Type] The link_group_names_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._link_group_names_by_database_key = link_group_names_by_database_key @property - def link_group_identities_by_database_key(self) -> "Optional[Dict[str, int]]": + def link_group_identities_by_database_key( + self, + ) -> "Union[Dict[str, int], None, Unset_Type]": """Gets the link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - dict(str, int) + Union[Dict[str, int], None, Unset_Type] The link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._link_group_identities_by_database_key @link_group_identities_by_database_key.setter def link_group_identities_by_database_key( - self, link_group_identities_by_database_key: "Optional[Dict[str, int]]" + self, + link_group_identities_by_database_key: "Union[Dict[str, int], None, Unset_Type]", ) -> None: """Sets the link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - link_group_identities_by_database_key: Dict[str, int] + link_group_identities_by_database_key: Union[Dict[str, int], None, Unset_Type] The link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._link_group_identities_by_database_key = ( @@ -338,12 +369,12 @@ def link_group_identities_by_database_key( @property def rolled_up_data( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]": """Gets the rolled_up_data of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns ------- - list[GrantaServerApiDataExportDatumsRollupRollupDatum] + Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type] The rolled_up_data of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ return self._rolled_up_data @@ -351,13 +382,13 @@ def rolled_up_data( @rolled_up_data.setter def rolled_up_data( self, - rolled_up_data: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]", + rolled_up_data: "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]", ) -> None: """Sets the rolled_up_data of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum] + rolled_up_data: Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type] The rolled_up_data of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._rolled_up_data = rolled_up_data @@ -382,12 +413,16 @@ def link_datum_type(self, link_datum_type: "str") -> None: link_datum_type: str The link_datum_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ + # Field is not nullable if link_datum_type is None: raise ValueError("Invalid value for 'link_datum_type', must not be 'None'") + # Field is required + if link_datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_datum_type', must not be 'Unset'") self._link_datum_type = link_datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -404,7 +439,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py index 4e62f075..957caad2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -76,23 +76,23 @@ class GrantaServerApiDataExportDatumsLongTextDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "longText", - datum_value: "Optional[str]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[str, None, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsLongTextDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: str, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: str, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -100,11 +100,11 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[str, None, Unset_Type] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -127,34 +127,38 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsLongTextDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[str]": + def datum_value(self) -> "Union[str, None, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsLongTextDatum. Returns ------- - str + Union[str, None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsLongTextDatum. """ return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "Optional[str]") -> None: + def datum_value(self, datum_value: "Union[str, None, Unset_Type]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsLongTextDatum. Parameters ---------- - datum_value: str + datum_value: Union[str, None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsLongTextDatum. """ self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -171,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py index 3820e545..3ae42d4f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( GrantaServerApiDataExportDatumsDatum, ) # noqa: F401 @@ -76,54 +76,59 @@ class GrantaServerApiDataExportDatumsNotApplicableDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - datum_type: "Optional[GrantaServerApiAttributeType]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, + datum_type: "Union[GrantaServerApiAttributeType, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "notApplicable", ) -> None: """GrantaServerApiDataExportDatumsNotApplicableDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: GrantaServerApiAttributeType, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: GrantaServerApiAttributeType, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, attribute_identity=attribute_identity, meta_datums=meta_datums, ) - self._datum_type = None - self._not_applicable: str = None # type: ignore[assignment] + self._datum_type: Union[GrantaServerApiAttributeType, Unset_Type] = Unset + self._not_applicable: str - if datum_type is not None: + if datum_type is not Unset: self.datum_type = datum_type self.not_applicable = not_applicable @property - def datum_type(self) -> "Optional[GrantaServerApiAttributeType]": + def datum_type(self) -> "Union[GrantaServerApiAttributeType, Unset_Type]": """Gets the datum_type of this GrantaServerApiDataExportDatumsNotApplicableDatum. Returns ------- - GrantaServerApiAttributeType + Union[GrantaServerApiAttributeType, Unset_Type] The datum_type of this GrantaServerApiDataExportDatumsNotApplicableDatum. """ return self._datum_type @datum_type.setter - def datum_type(self, datum_type: "Optional[GrantaServerApiAttributeType]") -> None: + def datum_type( + self, datum_type: "Union[GrantaServerApiAttributeType, Unset_Type]" + ) -> None: """Sets the datum_type of this GrantaServerApiDataExportDatumsNotApplicableDatum. Parameters ---------- - datum_type: GrantaServerApiAttributeType + datum_type: Union[GrantaServerApiAttributeType, Unset_Type] The datum_type of this GrantaServerApiDataExportDatumsNotApplicableDatum. """ + # Field is not nullable + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") self._datum_type = datum_type @property @@ -146,12 +151,16 @@ def not_applicable(self, not_applicable: "str") -> None: not_applicable: str The not_applicable of this GrantaServerApiDataExportDatumsNotApplicableDatum. """ + # Field is not nullable if not_applicable is None: raise ValueError("Invalid value for 'not_applicable', must not be 'None'") + # Field is required + if not_applicable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'not_applicable', must not be 'Unset'") self._not_applicable = not_applicable @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -168,7 +177,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py index f7198fea..58f55d1e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -76,23 +76,23 @@ class GrantaServerApiDataExportDatumsNumericDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "integer", - datum_value: "Optional[int]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[int, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsNumericDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: int, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: int, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -100,11 +100,11 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[int, Unset_Type] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -127,34 +127,41 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsNumericDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[int]": + def datum_value(self) -> "Union[int, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsNumericDatum. Returns ------- - int + Union[int, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsNumericDatum. """ return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "Optional[int]") -> None: + def datum_value(self, datum_value: "Union[int, Unset_Type]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsNumericDatum. Parameters ---------- - datum_value: int + datum_value: Union[int, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsNumericDatum. """ + # Field is not nullable + if datum_value is None: + raise ValueError("Invalid value for 'datum_value', must not be 'None'") self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -171,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py index 1ee50600..8bb8fcda 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsParameterValue(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsParameterValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,97 +67,105 @@ class GrantaServerApiDataExportDatumsParameterValue(ModelBase): # type: ignore[ def __init__( self, *, - parameter: "Optional[GrantaServerApiParameterInfo]" = None, - value: "Optional[float]" = None, - value_name: "Optional[str]" = None, + parameter: "Union[GrantaServerApiParameterInfo, Unset_Type]" = Unset, + value: "Union[float, Unset_Type]" = Unset, + value_name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsParameterValue - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiParameterInfo, optional - value: float, optional - value_name: str, optional + parameter: GrantaServerApiParameterInfo, optional + value: float, optional + value_name: str, optional """ - self._parameter = None - self._value_name = None - self._value = None + self._parameter: Union[GrantaServerApiParameterInfo, Unset_Type] = Unset + self._value_name: Union[str, None, Unset_Type] = Unset + self._value: Union[float, Unset_Type] = Unset - if parameter is not None: + if parameter is not Unset: self.parameter = parameter - if value_name is not None: + if value_name is not Unset: self.value_name = value_name - if value is not None: + if value is not Unset: self.value = value @property - def parameter(self) -> "Optional[GrantaServerApiParameterInfo]": + def parameter(self) -> "Union[GrantaServerApiParameterInfo, Unset_Type]": """Gets the parameter of this GrantaServerApiDataExportDatumsParameterValue. Returns ------- - GrantaServerApiParameterInfo + Union[GrantaServerApiParameterInfo, Unset_Type] The parameter of this GrantaServerApiDataExportDatumsParameterValue. """ return self._parameter @parameter.setter - def parameter(self, parameter: "Optional[GrantaServerApiParameterInfo]") -> None: + def parameter( + self, parameter: "Union[GrantaServerApiParameterInfo, Unset_Type]" + ) -> None: """Sets the parameter of this GrantaServerApiDataExportDatumsParameterValue. Parameters ---------- - parameter: GrantaServerApiParameterInfo + parameter: Union[GrantaServerApiParameterInfo, Unset_Type] The parameter of this GrantaServerApiDataExportDatumsParameterValue. """ + # Field is not nullable + if parameter is None: + raise ValueError("Invalid value for 'parameter', must not be 'None'") self._parameter = parameter @property - def value_name(self) -> "Optional[str]": + def value_name(self) -> "Union[str, None, Unset_Type]": """Gets the value_name of this GrantaServerApiDataExportDatumsParameterValue. Returns ------- - str + Union[str, None, Unset_Type] The value_name of this GrantaServerApiDataExportDatumsParameterValue. """ return self._value_name @value_name.setter - def value_name(self, value_name: "Optional[str]") -> None: + def value_name(self, value_name: "Union[str, None, Unset_Type]") -> None: """Sets the value_name of this GrantaServerApiDataExportDatumsParameterValue. Parameters ---------- - value_name: str + value_name: Union[str, None, Unset_Type] The value_name of this GrantaServerApiDataExportDatumsParameterValue. """ self._value_name = value_name @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, Unset_Type]": """Gets the value of this GrantaServerApiDataExportDatumsParameterValue. Returns ------- - float + Union[float, Unset_Type] The value of this GrantaServerApiDataExportDatumsParameterValue. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, Unset_Type]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsParameterValue. Parameters ---------- - value: float + value: Union[float, Unset_Type] The value of this GrantaServerApiDataExportDatumsParameterValue. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +182,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py index 73c2de4b..45aa7316 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -78,23 +78,23 @@ class GrantaServerApiDataExportDatumsPictureDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "picture", - datum_value: "Optional[GrantaServerApiDataExportDatumsBinaryData]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsPictureDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: GrantaServerApiDataExportDatumsBinaryData, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: GrantaServerApiDataExportDatumsBinaryData, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -102,11 +102,13 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[ + GrantaServerApiDataExportDatumsBinaryData, Unset_Type + ] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -129,36 +131,46 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsPictureDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsBinaryData]": + def datum_value( + self, + ) -> "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsPictureDatum. Returns ------- - GrantaServerApiDataExportDatumsBinaryData + Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsPictureDatum. """ return self._datum_value @datum_value.setter def datum_value( - self, datum_value: "Optional[GrantaServerApiDataExportDatumsBinaryData]" + self, + datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]", ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsPictureDatum. Parameters ---------- - datum_value: GrantaServerApiDataExportDatumsBinaryData + datum_value: Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsPictureDatum. """ + # Field is not nullable + if datum_value is None: + raise ValueError("Invalid value for 'datum_value', must not be 'None'") self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py index 44f1308c..9ae2eb94 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsPoint(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsPoint(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,55 +65,60 @@ class GrantaServerApiDataExportDatumsPoint(ModelBase): # type: ignore[misc] def __init__( self, *, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]" = None, - value: "Optional[float]" = None, + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]" = Unset, + value: "Union[float, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsPoint - a model defined in Swagger Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional - value: float, optional + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional + value: float, optional """ - self._value = None - self._parameter_values = None + self._value: Union[float, Unset_Type] = Unset + self._parameter_values: Union[ + List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type + ] = Unset - if value is not None: + if value is not Unset: self.value = value - if parameter_values is not None: + if parameter_values is not Unset: self.parameter_values = parameter_values @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, Unset_Type]": """Gets the value of this GrantaServerApiDataExportDatumsPoint. Returns ------- - float + Union[float, Unset_Type] The value of this GrantaServerApiDataExportDatumsPoint. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, Unset_Type]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsPoint. Parameters ---------- - value: float + value: Union[float, Unset_Type] The value of this GrantaServerApiDataExportDatumsPoint. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property def parameter_values( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsPoint. Returns ------- - list[GrantaServerApiDataExportDatumsParameterValue] + Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsPoint. """ return self._parameter_values @@ -121,19 +126,19 @@ def parameter_values( @parameter_values.setter def parameter_values( self, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsPoint. Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsPoint. """ self._parameter_values = parameter_values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py index 2090017e..f2f4ae81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -82,27 +82,27 @@ class GrantaServerApiDataExportDatumsPointDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "point", - datum_value: "Optional[List[GrantaServerApiDataExportDatumsPoint]]" = None, - is_estimated: "Optional[bool]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type]" = Unset, + is_estimated: "Union[bool, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - unit: "Optional[str]" = None, + unit: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsPointDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: List[GrantaServerApiDataExportDatumsPoint], optional - is_estimated: bool, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - unit: str, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: List[GrantaServerApiDataExportDatumsPoint], optional + is_estimated: bool, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + unit: str, optional """ super().__init__( attribute_guid=attribute_guid, @@ -110,17 +110,19 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None - self._is_estimated = None - self._unit = None + self._datum_type: str + self._datum_value: Union[ + List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type + ] = Unset + self._is_estimated: Union[bool, Unset_Type] = Unset + self._unit: Union[str, None, Unset_Type] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value - if is_estimated is not None: + if is_estimated is not Unset: self.is_estimated = is_estimated - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -143,80 +145,90 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsPointDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[List[GrantaServerApiDataExportDatumsPoint]]": + def datum_value( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsPointDatum. Returns ------- - list[GrantaServerApiDataExportDatumsPoint] + Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsPointDatum. """ return self._datum_value @datum_value.setter def datum_value( - self, datum_value: "Optional[List[GrantaServerApiDataExportDatumsPoint]]" + self, + datum_value: "Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type]", ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsPointDatum. Parameters ---------- - datum_value: List[GrantaServerApiDataExportDatumsPoint] + datum_value: Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsPointDatum. """ self._datum_value = datum_value @property - def is_estimated(self) -> "Optional[bool]": + def is_estimated(self) -> "Union[bool, Unset_Type]": """Gets the is_estimated of this GrantaServerApiDataExportDatumsPointDatum. Returns ------- - bool + Union[bool, Unset_Type] The is_estimated of this GrantaServerApiDataExportDatumsPointDatum. """ return self._is_estimated @is_estimated.setter - def is_estimated(self, is_estimated: "Optional[bool]") -> None: + def is_estimated(self, is_estimated: "Union[bool, Unset_Type]") -> None: """Sets the is_estimated of this GrantaServerApiDataExportDatumsPointDatum. Parameters ---------- - is_estimated: bool + is_estimated: Union[bool, Unset_Type] The is_estimated of this GrantaServerApiDataExportDatumsPointDatum. """ + # Field is not nullable + if is_estimated is None: + raise ValueError("Invalid value for 'is_estimated', must not be 'None'") self._is_estimated = is_estimated @property - def unit(self) -> "Optional[str]": + def unit(self) -> "Union[str, None, Unset_Type]": """Gets the unit of this GrantaServerApiDataExportDatumsPointDatum. Returns ------- - str + Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsPointDatum. """ return self._unit @unit.setter - def unit(self, unit: "Optional[str]") -> None: + def unit(self, unit: "Union[str, None, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsPointDatum. Parameters ---------- - unit: str + unit: Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsPointDatum. """ self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -233,7 +245,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py index b590fcea..dd74e196 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsRange(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsRange(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,126 +67,138 @@ class GrantaServerApiDataExportDatumsRange(ModelBase): # type: ignore[misc] def __init__( self, *, - high_value: "Optional[float]" = None, - high_value_is_inclusive: "Optional[bool]" = None, - low_value: "Optional[float]" = None, - low_value_is_inclusive: "Optional[bool]" = None, + high_value: "Union[float, None, Unset_Type]" = Unset, + high_value_is_inclusive: "Union[bool, Unset_Type]" = Unset, + low_value: "Union[float, None, Unset_Type]" = Unset, + low_value_is_inclusive: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsRange - a model defined in Swagger Parameters ---------- - high_value: float, optional - high_value_is_inclusive: bool, optional - low_value: float, optional - low_value_is_inclusive: bool, optional + high_value: float, optional + high_value_is_inclusive: bool, optional + low_value: float, optional + low_value_is_inclusive: bool, optional """ - self._high_value = None - self._low_value = None - self._high_value_is_inclusive = None - self._low_value_is_inclusive = None + self._high_value: Union[float, None, Unset_Type] = Unset + self._low_value: Union[float, None, Unset_Type] = Unset + self._high_value_is_inclusive: Union[bool, Unset_Type] = Unset + self._low_value_is_inclusive: Union[bool, Unset_Type] = Unset - if high_value is not None: + if high_value is not Unset: self.high_value = high_value - if low_value is not None: + if low_value is not Unset: self.low_value = low_value - if high_value_is_inclusive is not None: + if high_value_is_inclusive is not Unset: self.high_value_is_inclusive = high_value_is_inclusive - if low_value_is_inclusive is not None: + if low_value_is_inclusive is not Unset: self.low_value_is_inclusive = low_value_is_inclusive @property - def high_value(self) -> "Optional[float]": + def high_value(self) -> "Union[float, None, Unset_Type]": """Gets the high_value of this GrantaServerApiDataExportDatumsRange. Returns ------- - float + Union[float, None, Unset_Type] The high_value of this GrantaServerApiDataExportDatumsRange. """ return self._high_value @high_value.setter - def high_value(self, high_value: "Optional[float]") -> None: + def high_value(self, high_value: "Union[float, None, Unset_Type]") -> None: """Sets the high_value of this GrantaServerApiDataExportDatumsRange. Parameters ---------- - high_value: float + high_value: Union[float, None, Unset_Type] The high_value of this GrantaServerApiDataExportDatumsRange. """ self._high_value = high_value @property - def low_value(self) -> "Optional[float]": + def low_value(self) -> "Union[float, None, Unset_Type]": """Gets the low_value of this GrantaServerApiDataExportDatumsRange. Returns ------- - float + Union[float, None, Unset_Type] The low_value of this GrantaServerApiDataExportDatumsRange. """ return self._low_value @low_value.setter - def low_value(self, low_value: "Optional[float]") -> None: + def low_value(self, low_value: "Union[float, None, Unset_Type]") -> None: """Sets the low_value of this GrantaServerApiDataExportDatumsRange. Parameters ---------- - low_value: float + low_value: Union[float, None, Unset_Type] The low_value of this GrantaServerApiDataExportDatumsRange. """ self._low_value = low_value @property - def high_value_is_inclusive(self) -> "Optional[bool]": + def high_value_is_inclusive(self) -> "Union[bool, Unset_Type]": """Gets the high_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Returns ------- - bool + Union[bool, Unset_Type] The high_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. """ return self._high_value_is_inclusive @high_value_is_inclusive.setter def high_value_is_inclusive( - self, high_value_is_inclusive: "Optional[bool]" + self, high_value_is_inclusive: "Union[bool, Unset_Type]" ) -> None: """Sets the high_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Parameters ---------- - high_value_is_inclusive: bool + high_value_is_inclusive: Union[bool, Unset_Type] The high_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. """ + # Field is not nullable + if high_value_is_inclusive is None: + raise ValueError( + "Invalid value for 'high_value_is_inclusive', must not be 'None'" + ) self._high_value_is_inclusive = high_value_is_inclusive @property - def low_value_is_inclusive(self) -> "Optional[bool]": + def low_value_is_inclusive(self) -> "Union[bool, Unset_Type]": """Gets the low_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Returns ------- - bool + Union[bool, Unset_Type] The low_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. """ return self._low_value_is_inclusive @low_value_is_inclusive.setter - def low_value_is_inclusive(self, low_value_is_inclusive: "Optional[bool]") -> None: + def low_value_is_inclusive( + self, low_value_is_inclusive: "Union[bool, Unset_Type]" + ) -> None: """Sets the low_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Parameters ---------- - low_value_is_inclusive: bool + low_value_is_inclusive: Union[bool, Unset_Type] The low_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. """ + # Field is not nullable + if low_value_is_inclusive is None: + raise ValueError( + "Invalid value for 'low_value_is_inclusive', must not be 'None'" + ) self._low_value_is_inclusive = low_value_is_inclusive @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -203,7 +215,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py index 0f959a74..778d58dc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -82,27 +82,27 @@ class GrantaServerApiDataExportDatumsRangeDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "range", - datum_value: "Optional[GrantaServerApiDataExportDatumsRange]" = None, - is_estimated: "Optional[bool]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[GrantaServerApiDataExportDatumsRange, Unset_Type]" = Unset, + is_estimated: "Union[bool, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - unit: "Optional[str]" = None, + unit: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsRangeDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: GrantaServerApiDataExportDatumsRange, optional - is_estimated: bool, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - unit: str, optional + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: GrantaServerApiDataExportDatumsRange, optional + is_estimated: bool, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + unit: str, optional """ super().__init__( attribute_guid=attribute_guid, @@ -110,17 +110,19 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None - self._is_estimated = None - self._unit = None + self._datum_type: str + self._datum_value: Union[GrantaServerApiDataExportDatumsRange, Unset_Type] = ( + Unset + ) + self._is_estimated: Union[bool, Unset_Type] = Unset + self._unit: Union[str, None, Unset_Type] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value - if is_estimated is not None: + if is_estimated is not Unset: self.is_estimated = is_estimated - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -143,80 +145,90 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsRangeDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsRange]": + def datum_value(self) -> "Union[GrantaServerApiDataExportDatumsRange, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsRangeDatum. Returns ------- - GrantaServerApiDataExportDatumsRange + Union[GrantaServerApiDataExportDatumsRange, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsRangeDatum. """ return self._datum_value @datum_value.setter def datum_value( - self, datum_value: "Optional[GrantaServerApiDataExportDatumsRange]" + self, datum_value: "Union[GrantaServerApiDataExportDatumsRange, Unset_Type]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsRangeDatum. Parameters ---------- - datum_value: GrantaServerApiDataExportDatumsRange + datum_value: Union[GrantaServerApiDataExportDatumsRange, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsRangeDatum. """ + # Field is not nullable + if datum_value is None: + raise ValueError("Invalid value for 'datum_value', must not be 'None'") self._datum_value = datum_value @property - def is_estimated(self) -> "Optional[bool]": + def is_estimated(self) -> "Union[bool, Unset_Type]": """Gets the is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. Returns ------- - bool + Union[bool, Unset_Type] The is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. """ return self._is_estimated @is_estimated.setter - def is_estimated(self, is_estimated: "Optional[bool]") -> None: + def is_estimated(self, is_estimated: "Union[bool, Unset_Type]") -> None: """Sets the is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. Parameters ---------- - is_estimated: bool + is_estimated: Union[bool, Unset_Type] The is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. """ + # Field is not nullable + if is_estimated is None: + raise ValueError("Invalid value for 'is_estimated', must not be 'None'") self._is_estimated = is_estimated @property - def unit(self) -> "Optional[str]": + def unit(self) -> "Union[str, None, Unset_Type]": """Gets the unit of this GrantaServerApiDataExportDatumsRangeDatum. Returns ------- - str + Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsRangeDatum. """ return self._unit @unit.setter - def unit(self, unit: "Optional[str]") -> None: + def unit(self, unit: "Union[str, None, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsRangeDatum. Parameters ---------- - unit: str + unit: Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsRangeDatum. """ self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -233,7 +245,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py index 6a1c4e71..05968a5a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( GrantaServerApiDataExportDatumsRollupRollupDatum, ) # noqa: F401 @@ -76,23 +76,23 @@ class GrantaServerApiDataExportDatumsRollupCountRollupDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - count: "Optional[int]" = None, - database_key: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + count: "Union[int, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, type: "str" = "countRollup", ) -> None: """GrantaServerApiDataExportDatumsRollupCountRollupDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - count: int, optional - database_key: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - type: str + attribute_guid: str, optional + attribute_identity: int, optional + count: int, optional + database_key: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + type: str """ super().__init__( attribute_guid=attribute_guid, @@ -100,33 +100,36 @@ def __init__( database_key=database_key, roll_up_type=roll_up_type, ) - self._count = None - self._type: str = None # type: ignore[assignment] + self._count: Union[int, Unset_Type] = Unset + self._type: str - if count is not None: + if count is not Unset: self.count = count self.type = type @property - def count(self) -> "Optional[int]": + def count(self) -> "Union[int, Unset_Type]": """Gets the count of this GrantaServerApiDataExportDatumsRollupCountRollupDatum. Returns ------- - int + Union[int, Unset_Type] The count of this GrantaServerApiDataExportDatumsRollupCountRollupDatum. """ return self._count @count.setter - def count(self, count: "Optional[int]") -> None: + def count(self, count: "Union[int, Unset_Type]") -> None: """Sets the count of this GrantaServerApiDataExportDatumsRollupCountRollupDatum. Parameters ---------- - count: int + count: Union[int, Unset_Type] The count of this GrantaServerApiDataExportDatumsRollupCountRollupDatum. """ + # Field is not nullable + if count is None: + raise ValueError("Invalid value for 'count', must not be 'None'") self._count = count @property @@ -149,12 +152,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportDatumsRollupCountRollupDatum. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -171,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py index c394e5b3..fb200c05 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( GrantaServerApiDataExportDatumsRollupRollupDatum, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiDataExportDatumsRollupNumericRollupDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - database_key: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, type: "str" = "statisticalRollup", - unit: "Optional[str]" = None, - value: "Optional[float]" = None, + unit: "Union[str, None, Unset_Type]" = Unset, + value: "Union[float, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsRollupNumericRollupDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - database_key: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - type: str - unit: str, optional - value: float, optional + attribute_guid: str, optional + attribute_identity: int, optional + database_key: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + type: str + unit: str, optional + value: float, optional """ super().__init__( attribute_guid=attribute_guid, @@ -104,56 +104,59 @@ def __init__( database_key=database_key, roll_up_type=roll_up_type, ) - self._value = None - self._unit = None - self._type: str = None # type: ignore[assignment] + self._value: Union[float, Unset_Type] = Unset + self._unit: Union[str, None, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value - if unit is not None: + if unit is not Unset: self.unit = unit self.type = type @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, Unset_Type]": """Gets the value of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Returns ------- - float + Union[float, Unset_Type] The value of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, Unset_Type]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Parameters ---------- - value: float + value: Union[float, Unset_Type] The value of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property - def unit(self) -> "Optional[str]": + def unit(self) -> "Union[str, None, Unset_Type]": """Gets the unit of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Returns ------- - str + Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. """ return self._unit @unit.setter - def unit(self, unit: "Optional[str]") -> None: + def unit(self, unit: "Union[str, None, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Parameters ---------- - unit: str + unit: Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. """ self._unit = unit @@ -178,12 +181,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -200,7 +207,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py index 3ce1724d..a004b129 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsRollupRollupDatum(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsRollupRollupDatum(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,102 +78,106 @@ class GrantaServerApiDataExportDatumsRollupRollupDatum(ModelBase): # type: igno def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - database_key: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsRollupRollupDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - database_key: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + attribute_guid: str, optional + attribute_identity: int, optional + database_key: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional """ - self._database_key = None - self._attribute_identity = None - self._attribute_guid = None - self._roll_up_type = None - - if database_key is not None: + self._database_key: Union[str, None, Unset_Type] = Unset + self._attribute_identity: Union[int, None, Unset_Type] = Unset + self._attribute_guid: Union[str, None, Unset_Type] = Unset + self._roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + + if database_key is not Unset: self.database_key = database_key - if attribute_identity is not None: + if attribute_identity is not Unset: self.attribute_identity = attribute_identity - if attribute_guid is not None: + if attribute_guid is not Unset: self.attribute_guid = attribute_guid - if roll_up_type is not None: + if roll_up_type is not Unset: self.roll_up_type = roll_up_type @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiDataExportDatumsRollupRollupDatum. The database key of the rolled up data Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiDataExportDatumsRollupRollupDatum. The database key of the rolled up data Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ self._database_key = database_key @property - def attribute_identity(self) -> "Optional[int]": + def attribute_identity(self) -> "Union[int, None, Unset_Type]": """Gets the attribute_identity of this GrantaServerApiDataExportDatumsRollupRollupDatum. The attribute identity of the rolled up data. If the data came from a local column, this is the column identity. If the data came from linked records, this is the identity of the tabular attribute Returns ------- - int + Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "Optional[int]") -> None: + def attribute_identity( + self, attribute_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the attribute_identity of this GrantaServerApiDataExportDatumsRollupRollupDatum. The attribute identity of the rolled up data. If the data came from a local column, this is the column identity. If the data came from linked records, this is the identity of the tabular attribute Parameters ---------- - attribute_identity: int + attribute_identity: Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "Optional[str]": + def attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the attribute_guid of this GrantaServerApiDataExportDatumsRollupRollupDatum. The attribute GUID of the rolled up data. If the data came from a local column, this is the column GUID. If the data came from linked records, this is the GUID of the tabular attribute Returns ------- - str + Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "Optional[str]") -> None: + def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportDatumsRollupRollupDatum. The attribute GUID of the rolled up data. If the data came from a local column, this is the column GUID. If the data came from linked records, this is the GUID of the tabular attribute Parameters ---------- - attribute_guid: str + attribute_guid: Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ self._attribute_guid = attribute_guid @@ -181,12 +185,14 @@ def attribute_guid(self, attribute_guid: "Optional[str]") -> None: @property def roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the roll_up_type of this GrantaServerApiDataExportDatumsRollupRollupDatum. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ return self._roll_up_type @@ -194,19 +200,22 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( self, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the roll_up_type of this GrantaServerApiDataExportDatumsRollupRollupDatum. Parameters ---------- - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiDataExportDatumsRollupRollupDatum. """ + # Field is not nullable + if roll_up_type is None: + raise ValueError("Invalid value for 'roll_up_type', must not be 'None'") self._roll_up_type = roll_up_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -228,7 +237,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py index 980ee74a..72a5dc15 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( GrantaServerApiDataExportDatumsRollupRollupDatum, ) # noqa: F401 @@ -76,23 +76,23 @@ class GrantaServerApiDataExportDatumsRollupValueRollupDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - database_key: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, type: "str" = "valueRollup", - value: "Optional[object]" = None, + value: "Union[object, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsRollupValueRollupDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - database_key: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - type: str - value: object, optional + attribute_guid: str, optional + attribute_identity: int, optional + database_key: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + type: str + value: object, optional """ super().__init__( attribute_guid=attribute_guid, @@ -100,31 +100,31 @@ def __init__( database_key=database_key, roll_up_type=roll_up_type, ) - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[object, None, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[object]": + def value(self) -> "Union[object, None, Unset_Type]": """Gets the value of this GrantaServerApiDataExportDatumsRollupValueRollupDatum. Returns ------- - object + Union[object, None, Unset_Type] The value of this GrantaServerApiDataExportDatumsRollupValueRollupDatum. """ return self._value @value.setter - def value(self, value: "Optional[object]") -> None: + def value(self, value: "Union[object, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsRollupValueRollupDatum. Parameters ---------- - value: object + value: Union[object, None, Unset_Type] The value of this GrantaServerApiDataExportDatumsRollupValueRollupDatum. """ self._value = value @@ -149,12 +149,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportDatumsRollupValueRollupDatum. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -171,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py index 18e7d621..5b4a66cb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( GrantaServerApiDataExportDatumsRollupRollupDatum, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiDataExportDatumsRollupValuesRollupDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - database_key: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, type: "str" = "valuesRollup", - unit: "Optional[str]" = None, - values: "Optional[List[object]]" = None, + unit: "Union[str, None, Unset_Type]" = Unset, + values: "Union[List[object], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsRollupValuesRollupDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - database_key: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - type: str - unit: str, optional - values: List[object], optional + attribute_guid: str, optional + attribute_identity: int, optional + database_key: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + type: str + unit: str, optional + values: List[object], optional """ super().__init__( attribute_guid=attribute_guid, @@ -104,56 +104,56 @@ def __init__( database_key=database_key, roll_up_type=roll_up_type, ) - self._values = None - self._unit = None - self._type: str = None # type: ignore[assignment] + self._values: Union[List[object], None, Unset_Type] = Unset + self._unit: Union[str, None, Unset_Type] = Unset + self._type: str - if values is not None: + if values is not Unset: self.values = values - if unit is not None: + if unit is not Unset: self.unit = unit self.type = type @property - def values(self) -> "Optional[List[object]]": + def values(self) -> "Union[List[object], None, Unset_Type]": """Gets the values of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Returns ------- - list[object] + Union[List[object], None, Unset_Type] The values of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. """ return self._values @values.setter - def values(self, values: "Optional[List[object]]") -> None: + def values(self, values: "Union[List[object], None, Unset_Type]") -> None: """Sets the values of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Parameters ---------- - values: List[object] + values: Union[List[object], None, Unset_Type] The values of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. """ self._values = values @property - def unit(self) -> "Optional[str]": + def unit(self) -> "Union[str, None, Unset_Type]": """Gets the unit of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Returns ------- - str + Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. """ return self._unit @unit.setter - def unit(self, unit: "Optional[str]") -> None: + def unit(self, unit: "Union[str, None, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Parameters ---------- - unit: str + unit: Union[str, None, Unset_Type] The unit of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. """ self._unit = unit @@ -178,12 +178,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -200,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py index cc7471f9..5d9caa7e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsSeries(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsSeries(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,38 +69,44 @@ class GrantaServerApiDataExportDatumsSeries(ModelBase): # type: ignore[misc] def __init__( self, *, - graph_decoration: "Optional[GrantaServerApiDataExportDatumsGraphDecoration]" = None, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]" = None, - points: "Optional[List[GrantaServerApiDataExportDatumsSeriesPoint]]" = None, + graph_decoration: "Union[GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type]" = Unset, + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]" = Unset, + points: "Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsSeries - a model defined in Swagger Parameters ---------- - graph_decoration: GrantaServerApiDataExportDatumsGraphDecoration, optional - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional - points: List[GrantaServerApiDataExportDatumsSeriesPoint], optional + graph_decoration: GrantaServerApiDataExportDatumsGraphDecoration, optional + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue], optional + points: List[GrantaServerApiDataExportDatumsSeriesPoint], optional """ - self._parameter_values = None - self._points = None - self._graph_decoration = None - - if parameter_values is not None: + self._parameter_values: Union[ + List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type + ] = Unset + self._points: Union[ + List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type + ] = Unset + self._graph_decoration: Union[ + GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type + ] = Unset + + if parameter_values is not Unset: self.parameter_values = parameter_values - if points is not None: + if points is not Unset: self.points = points - if graph_decoration is not None: + if graph_decoration is not Unset: self.graph_decoration = graph_decoration @property def parameter_values( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsSeries. Returns ------- - list[GrantaServerApiDataExportDatumsParameterValue] + Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsSeries. """ return self._parameter_values @@ -108,37 +114,40 @@ def parameter_values( @parameter_values.setter def parameter_values( self, - parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", + parameter_values: "Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsSeries. Parameters ---------- - parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: Union[List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type] The parameter_values of this GrantaServerApiDataExportDatumsSeries. """ self._parameter_values = parameter_values @property - def points(self) -> "Optional[List[GrantaServerApiDataExportDatumsSeriesPoint]]": + def points( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type]": """Gets the points of this GrantaServerApiDataExportDatumsSeries. Returns ------- - list[GrantaServerApiDataExportDatumsSeriesPoint] + Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type] The points of this GrantaServerApiDataExportDatumsSeries. """ return self._points @points.setter def points( - self, points: "Optional[List[GrantaServerApiDataExportDatumsSeriesPoint]]" + self, + points: "Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type]", ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsSeries. Parameters ---------- - points: List[GrantaServerApiDataExportDatumsSeriesPoint] + points: Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type] The points of this GrantaServerApiDataExportDatumsSeries. """ self._points = points @@ -146,12 +155,12 @@ def points( @property def graph_decoration( self, - ) -> "Optional[GrantaServerApiDataExportDatumsGraphDecoration]": + ) -> "Union[GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type]": """Gets the graph_decoration of this GrantaServerApiDataExportDatumsSeries. Returns ------- - GrantaServerApiDataExportDatumsGraphDecoration + Union[GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type] The graph_decoration of this GrantaServerApiDataExportDatumsSeries. """ return self._graph_decoration @@ -159,19 +168,22 @@ def graph_decoration( @graph_decoration.setter def graph_decoration( self, - graph_decoration: "Optional[GrantaServerApiDataExportDatumsGraphDecoration]", + graph_decoration: "Union[GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type]", ) -> None: """Sets the graph_decoration of this GrantaServerApiDataExportDatumsSeries. Parameters ---------- - graph_decoration: GrantaServerApiDataExportDatumsGraphDecoration + graph_decoration: Union[GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type] The graph_decoration of this GrantaServerApiDataExportDatumsSeries. """ + # Field is not nullable + if graph_decoration is None: + raise ValueError("Invalid value for 'graph_decoration', must not be 'None'") self._graph_decoration = graph_decoration @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -188,7 +200,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py index 1e72bac3..63727777 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsSeriesPoint(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsSeriesPoint(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,133 @@ class GrantaServerApiDataExportDatumsSeriesPoint(ModelBase): # type: ignore[mis def __init__( self, *, - x: "Optional[float]" = None, - x_name: "Optional[str]" = None, - y_high: "Optional[float]" = None, - y_low: "Optional[float]" = None, + x: "Union[float, Unset_Type]" = Unset, + x_name: "Union[str, None, Unset_Type]" = Unset, + y_high: "Union[float, Unset_Type]" = Unset, + y_low: "Union[float, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsSeriesPoint - a model defined in Swagger Parameters ---------- - x: float, optional - x_name: str, optional - y_high: float, optional - y_low: float, optional + x: float, optional + x_name: str, optional + y_high: float, optional + y_low: float, optional """ - self._x = None - self._x_name = None - self._y_low = None - self._y_high = None + self._x: Union[float, Unset_Type] = Unset + self._x_name: Union[str, None, Unset_Type] = Unset + self._y_low: Union[float, Unset_Type] = Unset + self._y_high: Union[float, Unset_Type] = Unset - if x is not None: + if x is not Unset: self.x = x - if x_name is not None: + if x_name is not Unset: self.x_name = x_name - if y_low is not None: + if y_low is not Unset: self.y_low = y_low - if y_high is not None: + if y_high is not Unset: self.y_high = y_high @property - def x(self) -> "Optional[float]": + def x(self) -> "Union[float, Unset_Type]": """Gets the x of this GrantaServerApiDataExportDatumsSeriesPoint. Returns ------- - float + Union[float, Unset_Type] The x of this GrantaServerApiDataExportDatumsSeriesPoint. """ return self._x @x.setter - def x(self, x: "Optional[float]") -> None: + def x(self, x: "Union[float, Unset_Type]") -> None: """Sets the x of this GrantaServerApiDataExportDatumsSeriesPoint. Parameters ---------- - x: float + x: Union[float, Unset_Type] The x of this GrantaServerApiDataExportDatumsSeriesPoint. """ + # Field is not nullable + if x is None: + raise ValueError("Invalid value for 'x', must not be 'None'") self._x = x @property - def x_name(self) -> "Optional[str]": + def x_name(self) -> "Union[str, None, Unset_Type]": """Gets the x_name of this GrantaServerApiDataExportDatumsSeriesPoint. Returns ------- - str + Union[str, None, Unset_Type] The x_name of this GrantaServerApiDataExportDatumsSeriesPoint. """ return self._x_name @x_name.setter - def x_name(self, x_name: "Optional[str]") -> None: + def x_name(self, x_name: "Union[str, None, Unset_Type]") -> None: """Sets the x_name of this GrantaServerApiDataExportDatumsSeriesPoint. Parameters ---------- - x_name: str + x_name: Union[str, None, Unset_Type] The x_name of this GrantaServerApiDataExportDatumsSeriesPoint. """ self._x_name = x_name @property - def y_low(self) -> "Optional[float]": + def y_low(self) -> "Union[float, Unset_Type]": """Gets the y_low of this GrantaServerApiDataExportDatumsSeriesPoint. Returns ------- - float + Union[float, Unset_Type] The y_low of this GrantaServerApiDataExportDatumsSeriesPoint. """ return self._y_low @y_low.setter - def y_low(self, y_low: "Optional[float]") -> None: + def y_low(self, y_low: "Union[float, Unset_Type]") -> None: """Sets the y_low of this GrantaServerApiDataExportDatumsSeriesPoint. Parameters ---------- - y_low: float + y_low: Union[float, Unset_Type] The y_low of this GrantaServerApiDataExportDatumsSeriesPoint. """ + # Field is not nullable + if y_low is None: + raise ValueError("Invalid value for 'y_low', must not be 'None'") self._y_low = y_low @property - def y_high(self) -> "Optional[float]": + def y_high(self) -> "Union[float, Unset_Type]": """Gets the y_high of this GrantaServerApiDataExportDatumsSeriesPoint. Returns ------- - float + Union[float, Unset_Type] The y_high of this GrantaServerApiDataExportDatumsSeriesPoint. """ return self._y_high @y_high.setter - def y_high(self, y_high: "Optional[float]") -> None: + def y_high(self, y_high: "Union[float, Unset_Type]") -> None: """Sets the y_high of this GrantaServerApiDataExportDatumsSeriesPoint. Parameters ---------- - y_high: float + y_high: Union[float, Unset_Type] The y_high of this GrantaServerApiDataExportDatumsSeriesPoint. """ + # Field is not nullable + if y_high is None: + raise ValueError("Invalid value for 'y_high', must not be 'None'") self._y_high = y_high @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py index 1fb1eaca..21f6f24a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( GrantaServerApiDataExportDatumsApplicableDatum, ) # noqa: F401 @@ -76,23 +76,23 @@ class GrantaServerApiDataExportDatumsShortTextDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "shortText", - datum_value: "Optional[str]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + datum_value: "Union[str, None, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", ) -> None: """GrantaServerApiDataExportDatumsShortTextDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - datum_type: str - datum_value: str, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + datum_type: str + datum_value: str, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, @@ -100,11 +100,11 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type: str = None # type: ignore[assignment] - self._datum_value = None + self._datum_type: str + self._datum_value: Union[str, None, Unset_Type] = Unset self.datum_type = datum_type - if datum_value is not None: + if datum_value is not Unset: self.datum_value = datum_value @property @@ -127,34 +127,38 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataExportDatumsShortTextDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property - def datum_value(self) -> "Optional[str]": + def datum_value(self) -> "Union[str, None, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsShortTextDatum. Returns ------- - str + Union[str, None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsShortTextDatum. """ return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "Optional[str]") -> None: + def datum_value(self, datum_value: "Union[str, None, Unset_Type]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsShortTextDatum. Parameters ---------- - datum_value: str + datum_value: Union[str, None, Unset_Type] The datum_value of this GrantaServerApiDataExportDatumsShortTextDatum. """ self._datum_value = datum_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -171,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py index d0bf68e8..34549354 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_link_datum import ( GrantaServerApiDataExportDatumsLinkDatum, ) # noqa: F401 @@ -85,29 +85,29 @@ class GrantaServerApiDataExportDatumsTabularDatum( def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - attribute_name: "Optional[str]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, + attribute_name: "Union[str, None, Unset_Type]" = Unset, datum_type: "str" = "link", link_datum_type: "str" = "tabular", - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - summary_row: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]" = None, - tabular_rows: "Optional[List[GrantaServerApiDataExportDatumsTabularRow]]" = None, + summary_row: "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]" = Unset, + tabular_rows: "Union[List[GrantaServerApiDataExportDatumsTabularRow], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsTabularDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - attribute_name: str, optional - datum_type: str - link_datum_type: str - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str - summary_row: List[GrantaServerApiDataExportDatumsRollupRollupDatum], optional - tabular_rows: List[GrantaServerApiDataExportDatumsTabularRow], optional + attribute_guid: str, optional + attribute_identity: int, optional + attribute_name: str, optional + datum_type: str + link_datum_type: str + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str + summary_row: List[GrantaServerApiDataExportDatumsRollupRollupDatum], optional + tabular_rows: List[GrantaServerApiDataExportDatumsTabularRow], optional """ super().__init__( attribute_guid=attribute_guid, @@ -116,37 +116,41 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._attribute_name = None - self._tabular_rows = None - self._summary_row = None - self._link_datum_type: str = None # type: ignore[assignment] - - if attribute_name is not None: + self._attribute_name: Union[str, None, Unset_Type] = Unset + self._tabular_rows: Union[ + List[GrantaServerApiDataExportDatumsTabularRow], None, Unset_Type + ] = Unset + self._summary_row: Union[ + List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type + ] = Unset + self._link_datum_type: str + + if attribute_name is not Unset: self.attribute_name = attribute_name - if tabular_rows is not None: + if tabular_rows is not Unset: self.tabular_rows = tabular_rows - if summary_row is not None: + if summary_row is not Unset: self.summary_row = summary_row self.link_datum_type = link_datum_type @property - def attribute_name(self) -> "Optional[str]": + def attribute_name(self) -> "Union[str, None, Unset_Type]": """Gets the attribute_name of this GrantaServerApiDataExportDatumsTabularDatum. Returns ------- - str + Union[str, None, Unset_Type] The attribute_name of this GrantaServerApiDataExportDatumsTabularDatum. """ return self._attribute_name @attribute_name.setter - def attribute_name(self, attribute_name: "Optional[str]") -> None: + def attribute_name(self, attribute_name: "Union[str, None, Unset_Type]") -> None: """Sets the attribute_name of this GrantaServerApiDataExportDatumsTabularDatum. Parameters ---------- - attribute_name: str + attribute_name: Union[str, None, Unset_Type] The attribute_name of this GrantaServerApiDataExportDatumsTabularDatum. """ self._attribute_name = attribute_name @@ -154,25 +158,26 @@ def attribute_name(self, attribute_name: "Optional[str]") -> None: @property def tabular_rows( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsTabularRow]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsTabularRow], None, Unset_Type]": """Gets the tabular_rows of this GrantaServerApiDataExportDatumsTabularDatum. Returns ------- - list[GrantaServerApiDataExportDatumsTabularRow] + Union[List[GrantaServerApiDataExportDatumsTabularRow], None, Unset_Type] The tabular_rows of this GrantaServerApiDataExportDatumsTabularDatum. """ return self._tabular_rows @tabular_rows.setter def tabular_rows( - self, tabular_rows: "Optional[List[GrantaServerApiDataExportDatumsTabularRow]]" + self, + tabular_rows: "Union[List[GrantaServerApiDataExportDatumsTabularRow], None, Unset_Type]", ) -> None: """Sets the tabular_rows of this GrantaServerApiDataExportDatumsTabularDatum. Parameters ---------- - tabular_rows: List[GrantaServerApiDataExportDatumsTabularRow] + tabular_rows: Union[List[GrantaServerApiDataExportDatumsTabularRow], None, Unset_Type] The tabular_rows of this GrantaServerApiDataExportDatumsTabularDatum. """ self._tabular_rows = tabular_rows @@ -180,12 +185,12 @@ def tabular_rows( @property def summary_row( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]": """Gets the summary_row of this GrantaServerApiDataExportDatumsTabularDatum. Returns ------- - list[GrantaServerApiDataExportDatumsRollupRollupDatum] + Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type] The summary_row of this GrantaServerApiDataExportDatumsTabularDatum. """ return self._summary_row @@ -193,13 +198,13 @@ def summary_row( @summary_row.setter def summary_row( self, - summary_row: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]", + summary_row: "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]", ) -> None: """Sets the summary_row of this GrantaServerApiDataExportDatumsTabularDatum. Parameters ---------- - summary_row: List[GrantaServerApiDataExportDatumsRollupRollupDatum] + summary_row: Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type] The summary_row of this GrantaServerApiDataExportDatumsTabularDatum. """ self._summary_row = summary_row @@ -224,12 +229,16 @@ def link_datum_type(self, link_datum_type: "str") -> None: link_datum_type: str The link_datum_type of this GrantaServerApiDataExportDatumsTabularDatum. """ + # Field is not nullable if link_datum_type is None: raise ValueError("Invalid value for 'link_datum_type', must not be 'None'") + # Field is required + if link_datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_datum_type', must not be 'Unset'") self._link_datum_type = link_datum_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -246,7 +255,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py index cb38f088..afe69289 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportDatumsTabularRow(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportDatumsTabularRow(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,135 +78,152 @@ class GrantaServerApiDataExportDatumsTabularRow(ModelBase): # type: ignore[misc def __init__( self, *, - linked_data: "Optional[List[GrantaServerApiDataExportRecordWithData]]" = None, - linked_records: "Optional[List[GrantaServerApiIntegrationDataExportRecordReference]]" = None, - linking_value: "Optional[str]" = None, - local_data: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, - rolled_up_data: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]" = None, - row_guid: "Optional[str]" = None, - row_number: "Optional[int]" = None, + linked_data: "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]" = Unset, + linked_records: "Union[List[GrantaServerApiIntegrationDataExportRecordReference], None, Unset_Type]" = Unset, + linking_value: "Union[str, None, Unset_Type]" = Unset, + local_data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, + rolled_up_data: "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]" = Unset, + row_guid: "Union[str, Unset_Type]" = Unset, + row_number: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportDatumsTabularRow - a model defined in Swagger Parameters ---------- - linked_data: List[GrantaServerApiDataExportRecordWithData], optional - linked_records: List[GrantaServerApiIntegrationDataExportRecordReference], optional - linking_value: str, optional - local_data: List[GrantaServerApiDataExportDatumsDatum], optional - rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum], optional - row_guid: str, optional - row_number: int, optional + linked_data: List[GrantaServerApiDataExportRecordWithData], optional + linked_records: List[GrantaServerApiIntegrationDataExportRecordReference], optional + linking_value: str, optional + local_data: List[GrantaServerApiDataExportDatumsDatum], optional + rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum], optional + row_guid: str, optional + row_number: int, optional """ - self._row_guid = None - self._linking_value = None - self._row_number = None - self._local_data = None - self._linked_records = None - self._linked_data = None - self._rolled_up_data = None - - if row_guid is not None: + self._row_guid: Union[str, Unset_Type] = Unset + self._linking_value: Union[str, None, Unset_Type] = Unset + self._row_number: Union[int, Unset_Type] = Unset + self._local_data: Union[ + List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type + ] = Unset + self._linked_records: Union[ + List[GrantaServerApiIntegrationDataExportRecordReference], None, Unset_Type + ] = Unset + self._linked_data: Union[ + List[GrantaServerApiDataExportRecordWithData], None, Unset_Type + ] = Unset + self._rolled_up_data: Union[ + List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type + ] = Unset + + if row_guid is not Unset: self.row_guid = row_guid - if linking_value is not None: + if linking_value is not Unset: self.linking_value = linking_value - if row_number is not None: + if row_number is not Unset: self.row_number = row_number - if local_data is not None: + if local_data is not Unset: self.local_data = local_data - if linked_records is not None: + if linked_records is not Unset: self.linked_records = linked_records - if linked_data is not None: + if linked_data is not Unset: self.linked_data = linked_data - if rolled_up_data is not None: + if rolled_up_data is not Unset: self.rolled_up_data = rolled_up_data @property - def row_guid(self) -> "Optional[str]": + def row_guid(self) -> "Union[str, Unset_Type]": """Gets the row_guid of this GrantaServerApiDataExportDatumsTabularRow. Returns ------- - str + Union[str, Unset_Type] The row_guid of this GrantaServerApiDataExportDatumsTabularRow. """ return self._row_guid @row_guid.setter - def row_guid(self, row_guid: "Optional[str]") -> None: + def row_guid(self, row_guid: "Union[str, Unset_Type]") -> None: """Sets the row_guid of this GrantaServerApiDataExportDatumsTabularRow. Parameters ---------- - row_guid: str + row_guid: Union[str, Unset_Type] The row_guid of this GrantaServerApiDataExportDatumsTabularRow. """ + # Field is not nullable + if row_guid is None: + raise ValueError("Invalid value for 'row_guid', must not be 'None'") self._row_guid = row_guid @property - def linking_value(self) -> "Optional[str]": + def linking_value(self) -> "Union[str, None, Unset_Type]": """Gets the linking_value of this GrantaServerApiDataExportDatumsTabularRow. Returns ------- - str + Union[str, None, Unset_Type] The linking_value of this GrantaServerApiDataExportDatumsTabularRow. """ return self._linking_value @linking_value.setter - def linking_value(self, linking_value: "Optional[str]") -> None: + def linking_value(self, linking_value: "Union[str, None, Unset_Type]") -> None: """Sets the linking_value of this GrantaServerApiDataExportDatumsTabularRow. Parameters ---------- - linking_value: str + linking_value: Union[str, None, Unset_Type] The linking_value of this GrantaServerApiDataExportDatumsTabularRow. """ self._linking_value = linking_value @property - def row_number(self) -> "Optional[int]": + def row_number(self) -> "Union[int, Unset_Type]": """Gets the row_number of this GrantaServerApiDataExportDatumsTabularRow. Returns ------- - int + Union[int, Unset_Type] The row_number of this GrantaServerApiDataExportDatumsTabularRow. """ return self._row_number @row_number.setter - def row_number(self, row_number: "Optional[int]") -> None: + def row_number(self, row_number: "Union[int, Unset_Type]") -> None: """Sets the row_number of this GrantaServerApiDataExportDatumsTabularRow. Parameters ---------- - row_number: int + row_number: Union[int, Unset_Type] The row_number of this GrantaServerApiDataExportDatumsTabularRow. """ + # Field is not nullable + if row_number is None: + raise ValueError("Invalid value for 'row_number', must not be 'None'") self._row_number = row_number @property - def local_data(self) -> "Optional[List[GrantaServerApiDataExportDatumsDatum]]": + def local_data( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": """Gets the local_data of this GrantaServerApiDataExportDatumsTabularRow. Returns ------- - list[GrantaServerApiDataExportDatumsDatum] + Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] The local_data of this GrantaServerApiDataExportDatumsTabularRow. """ return self._local_data @local_data.setter def local_data( - self, local_data: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" + self, + local_data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]", ) -> None: """Sets the local_data of this GrantaServerApiDataExportDatumsTabularRow. Parameters ---------- - local_data: List[GrantaServerApiDataExportDatumsDatum] + local_data: Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] The local_data of this GrantaServerApiDataExportDatumsTabularRow. """ self._local_data = local_data @@ -214,13 +231,13 @@ def local_data( @property def linked_records( self, - ) -> "Optional[List[GrantaServerApiIntegrationDataExportRecordReference]]": + ) -> "Union[List[GrantaServerApiIntegrationDataExportRecordReference], None, Unset_Type]": """Gets the linked_records of this GrantaServerApiDataExportDatumsTabularRow. Records linked to this tabular row (only populated if the target table/attribute was provided in the request) Returns ------- - list[GrantaServerApiIntegrationDataExportRecordReference] + Union[List[GrantaServerApiIntegrationDataExportRecordReference], None, Unset_Type] The linked_records of this GrantaServerApiDataExportDatumsTabularRow. """ return self._linked_records @@ -228,40 +245,43 @@ def linked_records( @linked_records.setter def linked_records( self, - linked_records: "Optional[List[GrantaServerApiIntegrationDataExportRecordReference]]", + linked_records: "Union[List[GrantaServerApiIntegrationDataExportRecordReference], None, Unset_Type]", ) -> None: """Sets the linked_records of this GrantaServerApiDataExportDatumsTabularRow. Records linked to this tabular row (only populated if the target table/attribute was provided in the request) Parameters ---------- - linked_records: List[GrantaServerApiIntegrationDataExportRecordReference] + linked_records: Union[List[GrantaServerApiIntegrationDataExportRecordReference], None, Unset_Type] The linked_records of this GrantaServerApiDataExportDatumsTabularRow. """ self._linked_records = linked_records @property - def linked_data(self) -> "Optional[List[GrantaServerApiDataExportRecordWithData]]": + def linked_data( + self, + ) -> "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]": """Gets the linked_data of this GrantaServerApiDataExportDatumsTabularRow. Data for the linked records, if the request included linked data to export Returns ------- - list[GrantaServerApiDataExportRecordWithData] + Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type] The linked_data of this GrantaServerApiDataExportDatumsTabularRow. """ return self._linked_data @linked_data.setter def linked_data( - self, linked_data: "Optional[List[GrantaServerApiDataExportRecordWithData]]" + self, + linked_data: "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]", ) -> None: """Sets the linked_data of this GrantaServerApiDataExportDatumsTabularRow. Data for the linked records, if the request included linked data to export Parameters ---------- - linked_data: List[GrantaServerApiDataExportRecordWithData] + linked_data: Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type] The linked_data of this GrantaServerApiDataExportDatumsTabularRow. """ self._linked_data = linked_data @@ -269,12 +289,12 @@ def linked_data( @property def rolled_up_data( self, - ) -> "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]": + ) -> "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]": """Gets the rolled_up_data of this GrantaServerApiDataExportDatumsTabularRow. Returns ------- - list[GrantaServerApiDataExportDatumsRollupRollupDatum] + Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type] The rolled_up_data of this GrantaServerApiDataExportDatumsTabularRow. """ return self._rolled_up_data @@ -282,19 +302,19 @@ def rolled_up_data( @rolled_up_data.setter def rolled_up_data( self, - rolled_up_data: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]", + rolled_up_data: "Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type]", ) -> None: """Sets the rolled_up_data of this GrantaServerApiDataExportDatumsTabularRow. Parameters ---------- - rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum] + rolled_up_data: Union[List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type] The rolled_up_data of this GrantaServerApiDataExportDatumsTabularRow. """ self._rolled_up_data = rolled_up_data @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -311,7 +331,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py index a9c444dd..032d48db 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( GrantaServerApiDataExportDatumsDatum, ) # noqa: F401 @@ -70,26 +70,26 @@ class GrantaServerApiDataExportDatumsUnknownDatum(GrantaServerApiDataExportDatum def __init__( self, *, - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, - meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, + attribute_guid: "Union[str, Unset_Type]" = Unset, + attribute_identity: "Union[int, Unset_Type]" = Unset, + meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "unknown", ) -> None: """GrantaServerApiDataExportDatumsUnknownDatum - a model defined in Swagger Parameters ---------- - attribute_guid: str, optional - attribute_identity: int, optional - meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional - not_applicable: str + attribute_guid: str, optional + attribute_identity: int, optional + meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional + not_applicable: str """ super().__init__( attribute_guid=attribute_guid, attribute_identity=attribute_identity, meta_datums=meta_datums, ) - self._not_applicable: str = None # type: ignore[assignment] + self._not_applicable: str self.not_applicable = not_applicable @@ -113,12 +113,16 @@ def not_applicable(self, not_applicable: "str") -> None: not_applicable: str The not_applicable of this GrantaServerApiDataExportDatumsUnknownDatum. """ + # Field is not nullable if not_applicable is None: raise ValueError("Invalid value for 'not_applicable', must not be 'None'") + # Field is required + if not_applicable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'not_applicable', must not be 'Unset'") self._not_applicable = not_applicable @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -135,7 +139,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py index 869ad639..503c7583 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( GrantaServerApiDataExportExportFailuresExportFailure, ) # noqa: F401 @@ -83,14 +83,16 @@ def __init__( Parameters ---------- - failed_attributes: List[GrantaServerApiDataExportExportFailuresAttributeReference] - failure_details: str - failure_reason: str - type: str + failed_attributes: List[GrantaServerApiDataExportExportFailuresAttributeReference] + failure_details: str + failure_reason: str + type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_attributes: List[GrantaServerApiDataExportExportFailuresAttributeReference] = None # type: ignore[assignment] - self._type: str = None # type: ignore[assignment] + self._failed_attributes: List[ + GrantaServerApiDataExportExportFailuresAttributeReference + ] + self._type: str self.failed_attributes = failed_attributes self.type = type @@ -103,7 +105,7 @@ def failed_attributes( Returns ------- - list[GrantaServerApiDataExportExportFailuresAttributeReference] + List[GrantaServerApiDataExportExportFailuresAttributeReference] The failed_attributes of this GrantaServerApiDataExportExportFailuresAttributeExportFailure. """ return self._failed_attributes @@ -120,10 +122,16 @@ def failed_attributes( failed_attributes: List[GrantaServerApiDataExportExportFailuresAttributeReference] The failed_attributes of this GrantaServerApiDataExportExportFailuresAttributeExportFailure. """ + # Field is not nullable if failed_attributes is None: raise ValueError( "Invalid value for 'failed_attributes', must not be 'None'" ) + # Field is required + if failed_attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'failed_attributes', must not be 'Unset'" + ) self._failed_attributes = failed_attributes @property @@ -146,12 +154,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportExportFailuresAttributeExportFailure. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -168,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py index cb0aa145..ae6d873d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportExportFailuresAttributeReference(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportExportFailuresAttributeReference(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,25 +66,25 @@ def __init__( self, *, database_key: "str", - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportExportFailuresAttributeReference - a model defined in Swagger Parameters ---------- - database_key: str - attribute_guid: str, optional - attribute_identity: int, optional + database_key: str + attribute_guid: str, optional + attribute_identity: int, optional """ - self._database_key: str = None # type: ignore[assignment] - self._attribute_identity = None - self._attribute_guid = None + self._database_key: str + self._attribute_identity: Union[int, None, Unset_Type] = Unset + self._attribute_guid: Union[str, None, Unset_Type] = Unset self.database_key = database_key - if attribute_identity is not None: + if attribute_identity is not Unset: self.attribute_identity = attribute_identity - if attribute_guid is not None: + if attribute_guid is not Unset: self.attribute_guid = attribute_guid @property @@ -107,56 +107,62 @@ def database_key(self, database_key: "str") -> None: database_key: str The database_key of this GrantaServerApiDataExportExportFailuresAttributeReference. """ + # Field is not nullable if database_key is None: raise ValueError("Invalid value for 'database_key', must not be 'None'") + # Field is required + if database_key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_key', must not be 'Unset'") self._database_key = database_key @property - def attribute_identity(self) -> "Optional[int]": + def attribute_identity(self) -> "Union[int, None, Unset_Type]": """Gets the attribute_identity of this GrantaServerApiDataExportExportFailuresAttributeReference. Returns ------- - int + Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiDataExportExportFailuresAttributeReference. """ return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "Optional[int]") -> None: + def attribute_identity( + self, attribute_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the attribute_identity of this GrantaServerApiDataExportExportFailuresAttributeReference. Parameters ---------- - attribute_identity: int + attribute_identity: Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiDataExportExportFailuresAttributeReference. """ self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "Optional[str]": + def attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the attribute_guid of this GrantaServerApiDataExportExportFailuresAttributeReference. Returns ------- - str + Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportExportFailuresAttributeReference. """ return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "Optional[str]") -> None: + def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportExportFailuresAttributeReference. Parameters ---------- - attribute_guid: str + attribute_guid: Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportExportFailuresAttributeReference. """ self._attribute_guid = attribute_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -173,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py index bc1d3782..cc48934a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( GrantaServerApiDataExportExportFailuresExportFailure, ) # noqa: F401 @@ -83,14 +83,14 @@ def __init__( Parameters ---------- - failed_datum: GrantaServerApiDataExportExportFailuresDatumReference - failure_details: str - failure_reason: str - type: str + failed_datum: GrantaServerApiDataExportExportFailuresDatumReference + failure_details: str + failure_reason: str + type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_datum: GrantaServerApiDataExportExportFailuresDatumReference = None # type: ignore[assignment] - self._type: str = None # type: ignore[assignment] + self._failed_datum: GrantaServerApiDataExportExportFailuresDatumReference + self._type: str self.failed_datum = failed_datum self.type = type @@ -117,8 +117,12 @@ def failed_datum( failed_datum: GrantaServerApiDataExportExportFailuresDatumReference The failed_datum of this GrantaServerApiDataExportExportFailuresDatumExportFailure. """ + # Field is not nullable if failed_datum is None: raise ValueError("Invalid value for 'failed_datum', must not be 'None'") + # Field is required + if failed_datum is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'failed_datum', must not be 'Unset'") self._failed_datum = failed_datum @property @@ -141,12 +145,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportExportFailuresDatumExportFailure. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -163,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py index ca021b47..f77de5c3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportExportFailuresDatumReference(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportExportFailuresDatumReference(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,26 +70,26 @@ def __init__( attribute_identity: "int", database_key: "str", record_history_identity: "int", - attribute_guid: "Optional[str]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportExportFailuresDatumReference - a model defined in Swagger Parameters ---------- - attribute_identity: int - database_key: str - record_history_identity: int - attribute_guid: str, optional + attribute_identity: int + database_key: str + record_history_identity: int + attribute_guid: str, optional """ - self._database_key: str = None # type: ignore[assignment] - self._record_history_identity: int = None # type: ignore[assignment] - self._attribute_identity: int = None # type: ignore[assignment] - self._attribute_guid = None + self._database_key: str + self._record_history_identity: int + self._attribute_identity: int + self._attribute_guid: Union[str, None, Unset_Type] = Unset self.database_key = database_key self.record_history_identity = record_history_identity self.attribute_identity = attribute_identity - if attribute_guid is not None: + if attribute_guid is not Unset: self.attribute_guid = attribute_guid @property @@ -112,8 +112,12 @@ def database_key(self, database_key: "str") -> None: database_key: str The database_key of this GrantaServerApiDataExportExportFailuresDatumReference. """ + # Field is not nullable if database_key is None: raise ValueError("Invalid value for 'database_key', must not be 'None'") + # Field is required + if database_key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_key', must not be 'Unset'") self._database_key = database_key @property @@ -136,10 +140,16 @@ def record_history_identity(self, record_history_identity: "int") -> None: record_history_identity: int The record_history_identity of this GrantaServerApiDataExportExportFailuresDatumReference. """ + # Field is not nullable if record_history_identity is None: raise ValueError( "Invalid value for 'record_history_identity', must not be 'None'" ) + # Field is required + if record_history_identity is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'record_history_identity', must not be 'Unset'" + ) self._record_history_identity = record_history_identity @property @@ -162,36 +172,42 @@ def attribute_identity(self, attribute_identity: "int") -> None: attribute_identity: int The attribute_identity of this GrantaServerApiDataExportExportFailuresDatumReference. """ + # Field is not nullable if attribute_identity is None: raise ValueError( "Invalid value for 'attribute_identity', must not be 'None'" ) + # Field is required + if attribute_identity is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_identity', must not be 'Unset'" + ) self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "Optional[str]": + def attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the attribute_guid of this GrantaServerApiDataExportExportFailuresDatumReference. Returns ------- - str + Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportExportFailuresDatumReference. """ return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "Optional[str]") -> None: + def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportExportFailuresDatumReference. Parameters ---------- - attribute_guid: str + attribute_guid: Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportExportFailuresDatumReference. """ self._attribute_guid = attribute_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -208,7 +224,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py index 0df89d4c..f9d9f6ae 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportExportFailuresExportFailure(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportExportFailuresExportFailure(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,11 +80,11 @@ def __init__( Parameters ---------- - failure_details: str - failure_reason: str + failure_details: str + failure_reason: str """ - self._failure_details: str = None # type: ignore[assignment] - self._failure_reason: str = None # type: ignore[assignment] + self._failure_details: str + self._failure_reason: str self.failure_details = failure_details self.failure_reason = failure_reason @@ -109,8 +109,12 @@ def failure_details(self, failure_details: "str") -> None: failure_details: str The failure_details of this GrantaServerApiDataExportExportFailuresExportFailure. """ + # Field is not nullable if failure_details is None: raise ValueError("Invalid value for 'failure_details', must not be 'None'") + # Field is required + if failure_details is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'failure_details', must not be 'Unset'") self._failure_details = failure_details @property @@ -133,12 +137,16 @@ def failure_reason(self, failure_reason: "str") -> None: failure_reason: str The failure_reason of this GrantaServerApiDataExportExportFailuresExportFailure. """ + # Field is not nullable if failure_reason is None: raise ValueError("Invalid value for 'failure_reason', must not be 'None'") + # Field is required + if failure_reason is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'failure_reason', must not be 'Unset'") self._failure_reason = failure_reason @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -160,7 +168,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py index 38c0f8bc..9835c40b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( GrantaServerApiDataExportExportFailuresExportFailure, ) # noqa: F401 @@ -83,14 +83,14 @@ def __init__( Parameters ---------- - failed_link: GrantaServerApiDataExportExportFailuresLinkReference - failure_details: str - failure_reason: str - type: str + failed_link: GrantaServerApiDataExportExportFailuresLinkReference + failure_details: str + failure_reason: str + type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_link: GrantaServerApiDataExportExportFailuresLinkReference = None # type: ignore[assignment] - self._type: str = None # type: ignore[assignment] + self._failed_link: GrantaServerApiDataExportExportFailuresLinkReference + self._type: str self.failed_link = failed_link self.type = type @@ -117,8 +117,12 @@ def failed_link( failed_link: GrantaServerApiDataExportExportFailuresLinkReference The failed_link of this GrantaServerApiDataExportExportFailuresLinkExportFailure. """ + # Field is not nullable if failed_link is None: raise ValueError("Invalid value for 'failed_link', must not be 'None'") + # Field is required + if failed_link is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'failed_link', must not be 'Unset'") self._failed_link = failed_link @property @@ -141,12 +145,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportExportFailuresLinkExportFailure. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -163,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py index 14302ec8..b53e870c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportExportFailuresLinkReference(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportExportFailuresLinkReference(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,94 +70,96 @@ def __init__( self, *, link_type: "GrantaServerApiLinkAttributeType", - link_guid: "Optional[str]" = None, - link_identity: "Optional[int]" = None, - target_database_guid: "Optional[str]" = None, + link_guid: "Union[str, None, Unset_Type]" = Unset, + link_identity: "Union[int, None, Unset_Type]" = Unset, + target_database_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportExportFailuresLinkReference - a model defined in Swagger Parameters ---------- - link_type: GrantaServerApiLinkAttributeType - link_guid: str, optional - link_identity: int, optional - target_database_guid: str, optional + link_type: GrantaServerApiLinkAttributeType + link_guid: str, optional + link_identity: int, optional + target_database_guid: str, optional """ - self._target_database_guid = None - self._link_identity = None - self._link_guid = None - self._link_type: GrantaServerApiLinkAttributeType = None # type: ignore[assignment] + self._target_database_guid: Union[str, None, Unset_Type] = Unset + self._link_identity: Union[int, None, Unset_Type] = Unset + self._link_guid: Union[str, None, Unset_Type] = Unset + self._link_type: GrantaServerApiLinkAttributeType - if target_database_guid is not None: + if target_database_guid is not Unset: self.target_database_guid = target_database_guid - if link_identity is not None: + if link_identity is not Unset: self.link_identity = link_identity - if link_guid is not None: + if link_guid is not Unset: self.link_guid = link_guid self.link_type = link_type @property - def target_database_guid(self) -> "Optional[str]": + def target_database_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_database_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Returns ------- - str + Union[str, None, Unset_Type] The target_database_guid of this GrantaServerApiDataExportExportFailuresLinkReference. """ return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "Optional[str]") -> None: + def target_database_guid( + self, target_database_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_database_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Parameters ---------- - target_database_guid: str + target_database_guid: Union[str, None, Unset_Type] The target_database_guid of this GrantaServerApiDataExportExportFailuresLinkReference. """ self._target_database_guid = target_database_guid @property - def link_identity(self) -> "Optional[int]": + def link_identity(self) -> "Union[int, None, Unset_Type]": """Gets the link_identity of this GrantaServerApiDataExportExportFailuresLinkReference. Returns ------- - int + Union[int, None, Unset_Type] The link_identity of this GrantaServerApiDataExportExportFailuresLinkReference. """ return self._link_identity @link_identity.setter - def link_identity(self, link_identity: "Optional[int]") -> None: + def link_identity(self, link_identity: "Union[int, None, Unset_Type]") -> None: """Sets the link_identity of this GrantaServerApiDataExportExportFailuresLinkReference. Parameters ---------- - link_identity: int + link_identity: Union[int, None, Unset_Type] The link_identity of this GrantaServerApiDataExportExportFailuresLinkReference. """ self._link_identity = link_identity @property - def link_guid(self) -> "Optional[str]": + def link_guid(self) -> "Union[str, None, Unset_Type]": """Gets the link_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Returns ------- - str + Union[str, None, Unset_Type] The link_guid of this GrantaServerApiDataExportExportFailuresLinkReference. """ return self._link_guid @link_guid.setter - def link_guid(self, link_guid: "Optional[str]") -> None: + def link_guid(self, link_guid: "Union[str, None, Unset_Type]") -> None: """Sets the link_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Parameters ---------- - link_guid: str + link_guid: Union[str, None, Unset_Type] The link_guid of this GrantaServerApiDataExportExportFailuresLinkReference. """ self._link_guid = link_guid @@ -182,12 +184,16 @@ def link_type(self, link_type: "GrantaServerApiLinkAttributeType") -> None: link_type: GrantaServerApiLinkAttributeType The link_type of this GrantaServerApiDataExportExportFailuresLinkReference. """ + # Field is not nullable if link_type is None: raise ValueError("Invalid value for 'link_type', must not be 'None'") + # Field is required + if link_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_type', must not be 'Unset'") self._link_type = link_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -204,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py index 5a6e93f9..448e172c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( GrantaServerApiDataExportExportFailuresExportFailure, ) # noqa: F401 @@ -83,14 +83,14 @@ def __init__( Parameters ---------- - failed_records: List[GrantaServerApiIntegrationDataExportRecordReference] - failure_details: str - failure_reason: str - type: str + failed_records: List[GrantaServerApiIntegrationDataExportRecordReference] + failure_details: str + failure_reason: str + type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_records: List[GrantaServerApiIntegrationDataExportRecordReference] = None # type: ignore[assignment] - self._type: str = None # type: ignore[assignment] + self._failed_records: List[GrantaServerApiIntegrationDataExportRecordReference] + self._type: str self.failed_records = failed_records self.type = type @@ -103,7 +103,7 @@ def failed_records( Returns ------- - list[GrantaServerApiIntegrationDataExportRecordReference] + List[GrantaServerApiIntegrationDataExportRecordReference] The failed_records of this GrantaServerApiDataExportExportFailuresRecordExportFailure. """ return self._failed_records @@ -120,8 +120,12 @@ def failed_records( failed_records: List[GrantaServerApiIntegrationDataExportRecordReference] The failed_records of this GrantaServerApiDataExportExportFailuresRecordExportFailure. """ + # Field is not nullable if failed_records is None: raise ValueError("Invalid value for 'failed_records', must not be 'None'") + # Field is required + if failed_records is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'failed_records', must not be 'Unset'") self._failed_records = failed_records @property @@ -144,12 +148,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportExportFailuresRecordExportFailure. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -166,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py index 2416bfc8..7f77a0de 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( GrantaServerApiDataExportExportFailuresExportFailure, ) # noqa: F401 @@ -83,14 +83,14 @@ def __init__( Parameters ---------- - failed_rollup: GrantaServerApiDataExportExportFailuresRollupReference - failure_details: str - failure_reason: str - type: str + failed_rollup: GrantaServerApiDataExportExportFailuresRollupReference + failure_details: str + failure_reason: str + type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_rollup: GrantaServerApiDataExportExportFailuresRollupReference = None # type: ignore[assignment] - self._type: str = None # type: ignore[assignment] + self._failed_rollup: GrantaServerApiDataExportExportFailuresRollupReference + self._type: str self.failed_rollup = failed_rollup self.type = type @@ -117,8 +117,12 @@ def failed_rollup( failed_rollup: GrantaServerApiDataExportExportFailuresRollupReference The failed_rollup of this GrantaServerApiDataExportExportFailuresRollupExportFailure. """ + # Field is not nullable if failed_rollup is None: raise ValueError("Invalid value for 'failed_rollup', must not be 'None'") + # Field is required + if failed_rollup is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'failed_rollup', must not be 'Unset'") self._failed_rollup = failed_rollup @property @@ -141,12 +145,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataExportExportFailuresRollupExportFailure. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -163,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py index b4da943f..bb632098 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportExportFailuresRollupReference(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportExportFailuresRollupReference(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,27 +71,27 @@ def __init__( *, database_key: "str", rollup_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", - attribute_guid: "Optional[str]" = None, - attribute_identity: "Optional[int]" = None, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + attribute_identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportExportFailuresRollupReference - a model defined in Swagger Parameters ---------- - database_key: str - rollup_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - attribute_guid: str, optional - attribute_identity: int, optional + database_key: str + rollup_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + attribute_guid: str, optional + attribute_identity: int, optional """ - self._database_key: str = None # type: ignore[assignment] - self._attribute_identity = None - self._attribute_guid = None - self._rollup_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType = None # type: ignore[assignment] + self._database_key: str + self._attribute_identity: Union[int, None, Unset_Type] = Unset + self._attribute_guid: Union[str, None, Unset_Type] = Unset + self._rollup_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType self.database_key = database_key - if attribute_identity is not None: + if attribute_identity is not Unset: self.attribute_identity = attribute_identity - if attribute_guid is not None: + if attribute_guid is not Unset: self.attribute_guid = attribute_guid self.rollup_type = rollup_type @@ -115,50 +115,56 @@ def database_key(self, database_key: "str") -> None: database_key: str The database_key of this GrantaServerApiDataExportExportFailuresRollupReference. """ + # Field is not nullable if database_key is None: raise ValueError("Invalid value for 'database_key', must not be 'None'") + # Field is required + if database_key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_key', must not be 'Unset'") self._database_key = database_key @property - def attribute_identity(self) -> "Optional[int]": + def attribute_identity(self) -> "Union[int, None, Unset_Type]": """Gets the attribute_identity of this GrantaServerApiDataExportExportFailuresRollupReference. Returns ------- - int + Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiDataExportExportFailuresRollupReference. """ return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "Optional[int]") -> None: + def attribute_identity( + self, attribute_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the attribute_identity of this GrantaServerApiDataExportExportFailuresRollupReference. Parameters ---------- - attribute_identity: int + attribute_identity: Union[int, None, Unset_Type] The attribute_identity of this GrantaServerApiDataExportExportFailuresRollupReference. """ self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "Optional[str]": + def attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the attribute_guid of this GrantaServerApiDataExportExportFailuresRollupReference. Returns ------- - str + Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportExportFailuresRollupReference. """ return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "Optional[str]") -> None: + def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportExportFailuresRollupReference. Parameters ---------- - attribute_guid: str + attribute_guid: Union[str, None, Unset_Type] The attribute_guid of this GrantaServerApiDataExportExportFailuresRollupReference. """ self._attribute_guid = attribute_guid @@ -187,12 +193,16 @@ def rollup_type( rollup_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType The rollup_type of this GrantaServerApiDataExportExportFailuresRollupReference. """ + # Field is not nullable if rollup_type is None: raise ValueError("Invalid value for 'rollup_type', must not be 'None'") + # Field is required + if rollup_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'rollup_type', must not be 'Unset'") self._rollup_type = rollup_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -209,7 +219,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py index ce7883a2..64a58575 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import ( GrantaServerApiDataExportAttributeToExport, ) # noqa: F401 @@ -98,82 +98,94 @@ def __init__( self, *, attribute_type: "str" = "link", - attributes: "Optional[List[GrantaServerApiDataExportAttributeToExport]]" = None, - export_in_reversed_direction: "Optional[bool]" = None, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - indirect_links_behavior: "Optional[GrantaServerApiIndirectLinks]" = None, - link_attribute_type: "Optional[GrantaServerApiLinkAttributeType]" = None, - linked_records_export_behavior: "Optional[GrantaServerApiDataExportLinkedRecordExportBehavior]" = None, - local_data: "Optional[List[GrantaServerApiDataExportSimpleAttributeToExport]]" = None, - record_properties: "Optional[List[GrantaServerApiRecordProperty]]" = None, - target_attribute_guid: "Optional[str]" = None, - target_database_guid: "Optional[str]" = None, - target_table_guid: "Optional[str]" = None, + attributes: "Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type]" = Unset, + export_in_reversed_direction: "Union[bool, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + indirect_links_behavior: "Union[GrantaServerApiIndirectLinks, Unset_Type]" = Unset, + link_attribute_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" = Unset, + linked_records_export_behavior: "Union[GrantaServerApiDataExportLinkedRecordExportBehavior, Unset_Type]" = Unset, + local_data: "Union[List[GrantaServerApiDataExportSimpleAttributeToExport], None, Unset_Type]" = Unset, + record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]" = Unset, + target_attribute_guid: "Union[str, None, Unset_Type]" = Unset, + target_database_guid: "Union[str, None, Unset_Type]" = Unset, + target_table_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportLinkAttributeToExport - a model defined in Swagger Parameters ---------- - attribute_type: str - attributes: List[GrantaServerApiDataExportAttributeToExport], optional - export_in_reversed_direction: bool, optional - guid: str, optional - identity: int, optional - indirect_links_behavior: GrantaServerApiIndirectLinks, optional - link_attribute_type: GrantaServerApiLinkAttributeType, optional - linked_records_export_behavior: GrantaServerApiDataExportLinkedRecordExportBehavior, optional - local_data: List[GrantaServerApiDataExportSimpleAttributeToExport], optional - record_properties: List[GrantaServerApiRecordProperty], optional - target_attribute_guid: str, optional - target_database_guid: str, optional - target_table_guid: str, optional + attribute_type: str + attributes: List[GrantaServerApiDataExportAttributeToExport], optional + export_in_reversed_direction: bool, optional + guid: str, optional + identity: int, optional + indirect_links_behavior: GrantaServerApiIndirectLinks, optional + link_attribute_type: GrantaServerApiLinkAttributeType, optional + linked_records_export_behavior: GrantaServerApiDataExportLinkedRecordExportBehavior, optional + local_data: List[GrantaServerApiDataExportSimpleAttributeToExport], optional + record_properties: List[GrantaServerApiRecordProperty], optional + target_attribute_guid: str, optional + target_database_guid: str, optional + target_table_guid: str, optional """ super().__init__(guid=guid, identity=identity) - self._local_data = None - self._target_table_guid = None - self._target_database_guid = None - self._target_attribute_guid = None - self._attribute_type: str = None # type: ignore[assignment] - self._link_attribute_type = None - self._export_in_reversed_direction = None - self._record_properties = None - self._attributes = None - self._linked_records_export_behavior = None - self._indirect_links_behavior = None - - if local_data is not None: + self._local_data: Union[ + List[GrantaServerApiDataExportSimpleAttributeToExport], None, Unset_Type + ] = Unset + self._target_table_guid: Union[str, None, Unset_Type] = Unset + self._target_database_guid: Union[str, None, Unset_Type] = Unset + self._target_attribute_guid: Union[str, None, Unset_Type] = Unset + self._attribute_type: str + self._link_attribute_type: Union[ + GrantaServerApiLinkAttributeType, Unset_Type + ] = Unset + self._export_in_reversed_direction: Union[bool, Unset_Type] = Unset + self._record_properties: Union[ + List[GrantaServerApiRecordProperty], None, Unset_Type + ] = Unset + self._attributes: Union[ + List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type + ] = Unset + self._linked_records_export_behavior: Union[ + GrantaServerApiDataExportLinkedRecordExportBehavior, Unset_Type + ] = Unset + self._indirect_links_behavior: Union[ + GrantaServerApiIndirectLinks, Unset_Type + ] = Unset + + if local_data is not Unset: self.local_data = local_data - if target_table_guid is not None: + if target_table_guid is not Unset: self.target_table_guid = target_table_guid - if target_database_guid is not None: + if target_database_guid is not Unset: self.target_database_guid = target_database_guid - if target_attribute_guid is not None: + if target_attribute_guid is not Unset: self.target_attribute_guid = target_attribute_guid self.attribute_type = attribute_type - if link_attribute_type is not None: + if link_attribute_type is not Unset: self.link_attribute_type = link_attribute_type - if export_in_reversed_direction is not None: + if export_in_reversed_direction is not Unset: self.export_in_reversed_direction = export_in_reversed_direction - if record_properties is not None: + if record_properties is not Unset: self.record_properties = record_properties - if attributes is not None: + if attributes is not Unset: self.attributes = attributes - if linked_records_export_behavior is not None: + if linked_records_export_behavior is not Unset: self.linked_records_export_behavior = linked_records_export_behavior - if indirect_links_behavior is not None: + if indirect_links_behavior is not Unset: self.indirect_links_behavior = indirect_links_behavior @property def local_data( self, - ) -> "Optional[List[GrantaServerApiDataExportSimpleAttributeToExport]]": + ) -> "Union[List[GrantaServerApiDataExportSimpleAttributeToExport], None, Unset_Type]": """Gets the local_data of this GrantaServerApiDataExportLinkAttributeToExport. The local columns to export. Reuse the attribute object here - but the 'attribute id' is now the column id. Returns ------- - list[GrantaServerApiDataExportSimpleAttributeToExport] + Union[List[GrantaServerApiDataExportSimpleAttributeToExport], None, Unset_Type] The local_data of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._local_data @@ -181,86 +193,92 @@ def local_data( @local_data.setter def local_data( self, - local_data: "Optional[List[GrantaServerApiDataExportSimpleAttributeToExport]]", + local_data: "Union[List[GrantaServerApiDataExportSimpleAttributeToExport], None, Unset_Type]", ) -> None: """Sets the local_data of this GrantaServerApiDataExportLinkAttributeToExport. The local columns to export. Reuse the attribute object here - but the 'attribute id' is now the column id. Parameters ---------- - local_data: List[GrantaServerApiDataExportSimpleAttributeToExport] + local_data: Union[List[GrantaServerApiDataExportSimpleAttributeToExport], None, Unset_Type] The local_data of this GrantaServerApiDataExportLinkAttributeToExport. """ self._local_data = local_data @property - def target_table_guid(self) -> "Optional[str]": + def target_table_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. Table containing the linked records Returns ------- - str + Union[str, None, Unset_Type] The target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "Optional[str]") -> None: + def target_table_guid( + self, target_table_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. Table containing the linked records Parameters ---------- - target_table_guid: str + target_table_guid: Union[str, None, Unset_Type] The target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. """ self._target_table_guid = target_table_guid @property - def target_database_guid(self) -> "Optional[str]": + def target_database_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. Database containing the linked records. For reverse cross database links, this is the database where the link is defined. This is not required for cross-database link groups that don't have a target database. Returns ------- - str + Union[str, None, Unset_Type] The target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "Optional[str]") -> None: + def target_database_guid( + self, target_database_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. Database containing the linked records. For reverse cross database links, this is the database where the link is defined. This is not required for cross-database link groups that don't have a target database. Parameters ---------- - target_database_guid: str + target_database_guid: Union[str, None, Unset_Type] The target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. """ self._target_database_guid = target_database_guid @property - def target_attribute_guid(self) -> "Optional[str]": + def target_attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_attribute_guid of this GrantaServerApiDataExportLinkAttributeToExport. For tabular searching: this is the identifier of the short-text linking attribute. Otherwise null. Returns ------- - str + Union[str, None, Unset_Type] The target_attribute_guid of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> None: + def target_attribute_guid( + self, target_attribute_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_attribute_guid of this GrantaServerApiDataExportLinkAttributeToExport. For tabular searching: this is the identifier of the short-text linking attribute. Otherwise null. Parameters ---------- - target_attribute_guid: str + target_attribute_guid: Union[str, None, Unset_Type] The target_attribute_guid of this GrantaServerApiDataExportLinkAttributeToExport. """ self._target_attribute_guid = target_attribute_guid @@ -285,80 +303,99 @@ def attribute_type(self, attribute_type: "str") -> None: attribute_type: str The attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. """ + # Field is not nullable if attribute_type is None: raise ValueError("Invalid value for 'attribute_type', must not be 'None'") + # Field is required + if attribute_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attribute_type', must not be 'Unset'") self._attribute_type = attribute_type @property - def link_attribute_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": + def link_attribute_type( + self, + ) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": """Gets the link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. Returns ------- - GrantaServerApiLinkAttributeType + Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._link_attribute_type @link_attribute_type.setter def link_attribute_type( - self, link_attribute_type: "Optional[GrantaServerApiLinkAttributeType]" + self, link_attribute_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" ) -> None: """Sets the link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. Parameters ---------- - link_attribute_type: GrantaServerApiLinkAttributeType + link_attribute_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. """ + # Field is not nullable + if link_attribute_type is None: + raise ValueError( + "Invalid value for 'link_attribute_type', must not be 'None'" + ) self._link_attribute_type = link_attribute_type @property - def export_in_reversed_direction(self) -> "Optional[bool]": + def export_in_reversed_direction(self) -> "Union[bool, Unset_Type]": """Gets the export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. Returns ------- - bool + Union[bool, Unset_Type] The export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._export_in_reversed_direction @export_in_reversed_direction.setter def export_in_reversed_direction( - self, export_in_reversed_direction: "Optional[bool]" + self, export_in_reversed_direction: "Union[bool, Unset_Type]" ) -> None: """Sets the export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. Parameters ---------- - export_in_reversed_direction: bool + export_in_reversed_direction: Union[bool, Unset_Type] The export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. """ + # Field is not nullable + if export_in_reversed_direction is None: + raise ValueError( + "Invalid value for 'export_in_reversed_direction', must not be 'None'" + ) self._export_in_reversed_direction = export_in_reversed_direction @property - def record_properties(self) -> "Optional[List[GrantaServerApiRecordProperty]]": + def record_properties( + self, + ) -> "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]": """Gets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. The properties to export on any linked records. Returns ------- - list[GrantaServerApiRecordProperty] + Union[List[GrantaServerApiRecordProperty], None, Unset_Type] The record_properties of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._record_properties @record_properties.setter def record_properties( - self, record_properties: "Optional[List[GrantaServerApiRecordProperty]]" + self, + record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]", ) -> None: """Sets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. The properties to export on any linked records. Parameters ---------- - record_properties: List[GrantaServerApiRecordProperty] + record_properties: Union[List[GrantaServerApiRecordProperty], None, Unset_Type] The record_properties of this GrantaServerApiDataExportLinkAttributeToExport. """ self._record_properties = record_properties @@ -366,27 +403,28 @@ def record_properties( @property def attributes( self, - ) -> "Optional[List[GrantaServerApiDataExportAttributeToExport]]": + ) -> "Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type]": """Gets the attributes of this GrantaServerApiDataExportLinkAttributeToExport. The attributes to export on any linked records. Returns ------- - list[GrantaServerApiDataExportAttributeToExport] + Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type] The attributes of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._attributes @attributes.setter def attributes( - self, attributes: "Optional[List[GrantaServerApiDataExportAttributeToExport]]" + self, + attributes: "Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type]", ) -> None: """Sets the attributes of this GrantaServerApiDataExportLinkAttributeToExport. The attributes to export on any linked records. Parameters ---------- - attributes: List[GrantaServerApiDataExportAttributeToExport] + attributes: Union[List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type] The attributes of this GrantaServerApiDataExportLinkAttributeToExport. """ self._attributes = attributes @@ -394,12 +432,12 @@ def attributes( @property def linked_records_export_behavior( self, - ) -> "Optional[GrantaServerApiDataExportLinkedRecordExportBehavior]": + ) -> "Union[GrantaServerApiDataExportLinkedRecordExportBehavior, Unset_Type]": """Gets the linked_records_export_behavior of this GrantaServerApiDataExportLinkAttributeToExport. Returns ------- - GrantaServerApiDataExportLinkedRecordExportBehavior + Union[GrantaServerApiDataExportLinkedRecordExportBehavior, Unset_Type] The linked_records_export_behavior of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._linked_records_export_behavior @@ -407,43 +445,55 @@ def linked_records_export_behavior( @linked_records_export_behavior.setter def linked_records_export_behavior( self, - linked_records_export_behavior: "Optional[GrantaServerApiDataExportLinkedRecordExportBehavior]", + linked_records_export_behavior: "Union[GrantaServerApiDataExportLinkedRecordExportBehavior, Unset_Type]", ) -> None: """Sets the linked_records_export_behavior of this GrantaServerApiDataExportLinkAttributeToExport. Parameters ---------- - linked_records_export_behavior: GrantaServerApiDataExportLinkedRecordExportBehavior + linked_records_export_behavior: Union[GrantaServerApiDataExportLinkedRecordExportBehavior, Unset_Type] The linked_records_export_behavior of this GrantaServerApiDataExportLinkAttributeToExport. """ + # Field is not nullable + if linked_records_export_behavior is None: + raise ValueError( + "Invalid value for 'linked_records_export_behavior', must not be 'None'" + ) self._linked_records_export_behavior = linked_records_export_behavior @property - def indirect_links_behavior(self) -> "Optional[GrantaServerApiIndirectLinks]": + def indirect_links_behavior( + self, + ) -> "Union[GrantaServerApiIndirectLinks, Unset_Type]": """Gets the indirect_links_behavior of this GrantaServerApiDataExportLinkAttributeToExport. Returns ------- - GrantaServerApiIndirectLinks + Union[GrantaServerApiIndirectLinks, Unset_Type] The indirect_links_behavior of this GrantaServerApiDataExportLinkAttributeToExport. """ return self._indirect_links_behavior @indirect_links_behavior.setter def indirect_links_behavior( - self, indirect_links_behavior: "Optional[GrantaServerApiIndirectLinks]" + self, indirect_links_behavior: "Union[GrantaServerApiIndirectLinks, Unset_Type]" ) -> None: """Sets the indirect_links_behavior of this GrantaServerApiDataExportLinkAttributeToExport. Parameters ---------- - indirect_links_behavior: GrantaServerApiIndirectLinks + indirect_links_behavior: Union[GrantaServerApiIndirectLinks, Unset_Type] The indirect_links_behavior of this GrantaServerApiDataExportLinkAttributeToExport. """ + # Field is not nullable + if indirect_links_behavior is None: + raise ValueError( + "Invalid value for 'indirect_links_behavior', must not be 'None'" + ) self._indirect_links_behavior = indirect_links_behavior @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -460,7 +510,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py index a510077d..003d231b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,38 +69,44 @@ class GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): # type: i def __init__( self, *, - linked_records_criterion: "Optional[GrantaServerApiSearchCriterion]" = None, - summary_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - tabular_row_behavior: "Optional[GrantaServerApiDataExportTabularRowExportBehaviour]" = None, + linked_records_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, + summary_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + tabular_row_behavior: "Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportLinkedRecordExportBehavior - a model defined in Swagger Parameters ---------- - linked_records_criterion: GrantaServerApiSearchCriterion, optional - summary_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - tabular_row_behavior: GrantaServerApiDataExportTabularRowExportBehaviour, optional + linked_records_criterion: GrantaServerApiSearchCriterion, optional + summary_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + tabular_row_behavior: GrantaServerApiDataExportTabularRowExportBehaviour, optional """ - self._tabular_row_behavior = None - self._summary_roll_up_type = None - self._linked_records_criterion = None - - if tabular_row_behavior is not None: + self._tabular_row_behavior: Union[ + GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type + ] = Unset + self._summary_roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + self._linked_records_criterion: Union[ + GrantaServerApiSearchCriterion, Unset_Type + ] = Unset + + if tabular_row_behavior is not Unset: self.tabular_row_behavior = tabular_row_behavior - if summary_roll_up_type is not None: + if summary_roll_up_type is not Unset: self.summary_roll_up_type = summary_roll_up_type - if linked_records_criterion is not None: + if linked_records_criterion is not Unset: self.linked_records_criterion = linked_records_criterion @property def tabular_row_behavior( self, - ) -> "Optional[GrantaServerApiDataExportTabularRowExportBehaviour]": + ) -> "Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type]": """Gets the tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns ------- - GrantaServerApiDataExportTabularRowExportBehaviour + Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type] The tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ return self._tabular_row_behavior @@ -108,26 +114,33 @@ def tabular_row_behavior( @tabular_row_behavior.setter def tabular_row_behavior( self, - tabular_row_behavior: "Optional[GrantaServerApiDataExportTabularRowExportBehaviour]", + tabular_row_behavior: "Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type]", ) -> None: """Sets the tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. Parameters ---------- - tabular_row_behavior: GrantaServerApiDataExportTabularRowExportBehaviour + tabular_row_behavior: Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type] The tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ + # Field is not nullable + if tabular_row_behavior is None: + raise ValueError( + "Invalid value for 'tabular_row_behavior', must not be 'None'" + ) self._tabular_row_behavior = tabular_row_behavior @property def summary_roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the summary_roll_up_type of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_roll_up_type of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ return self._summary_roll_up_type @@ -135,43 +148,56 @@ def summary_roll_up_type( @summary_roll_up_type.setter def summary_roll_up_type( self, - summary_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + summary_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the summary_roll_up_type of this GrantaServerApiDataExportLinkedRecordExportBehavior. Parameters ---------- - summary_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_roll_up_type of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ + # Field is not nullable + if summary_roll_up_type is None: + raise ValueError( + "Invalid value for 'summary_roll_up_type', must not be 'None'" + ) self._summary_roll_up_type = summary_roll_up_type @property - def linked_records_criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": + def linked_records_criterion( + self, + ) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": """Gets the linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns ------- - GrantaServerApiSearchCriterion + Union[GrantaServerApiSearchCriterion, Unset_Type] The linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ return self._linked_records_criterion @linked_records_criterion.setter def linked_records_criterion( - self, linked_records_criterion: "Optional[GrantaServerApiSearchCriterion]" + self, + linked_records_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]", ) -> None: """Sets the linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. Parameters ---------- - linked_records_criterion: GrantaServerApiSearchCriterion + linked_records_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] The linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ + # Field is not nullable + if linked_records_criterion is None: + raise ValueError( + "Invalid value for 'linked_records_criterion', must not be 'None'" + ) self._linked_records_criterion = linked_records_criterion @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -188,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py index 15ec2d5f..3b3ee453 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -68,22 +68,22 @@ class GrantaServerApiDataExportPropertiesCreatedByUserProperty( def __init__( self, *, - created_by_user: "Optional[str]" = None, + created_by_user: "Union[str, None, Unset_Type]" = Unset, property_name: "str" = "createdByUser", ) -> None: """GrantaServerApiDataExportPropertiesCreatedByUserProperty - a model defined in Swagger Parameters ---------- - created_by_user: str, optional - property_name: str + created_by_user: str, optional + property_name: str """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._created_by_user = None + self._property_name: str + self._created_by_user: Union[str, None, Unset_Type] = Unset self.property_name = property_name - if created_by_user is not None: + if created_by_user is not Unset: self.created_by_user = created_by_user @property @@ -106,34 +106,38 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesCreatedByUserProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def created_by_user(self) -> "Optional[str]": + def created_by_user(self) -> "Union[str, None, Unset_Type]": """Gets the created_by_user of this GrantaServerApiDataExportPropertiesCreatedByUserProperty. Returns ------- - str + Union[str, None, Unset_Type] The created_by_user of this GrantaServerApiDataExportPropertiesCreatedByUserProperty. """ return self._created_by_user @created_by_user.setter - def created_by_user(self, created_by_user: "Optional[str]") -> None: + def created_by_user(self, created_by_user: "Union[str, None, Unset_Type]") -> None: """Sets the created_by_user of this GrantaServerApiDataExportPropertiesCreatedByUserProperty. Parameters ---------- - created_by_user: str + created_by_user: Union[str, None, Unset_Type] The created_by_user of this GrantaServerApiDataExportPropertiesCreatedByUserProperty. """ self._created_by_user = created_by_user @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py index a50260e2..3b5b609a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -68,22 +68,22 @@ class GrantaServerApiDataExportPropertiesCreatedDateProperty( def __init__( self, *, - created_date: "Optional[datetime]" = None, + created_date: "Union[datetime, Unset_Type]" = Unset, property_name: "str" = "createdDate", ) -> None: """GrantaServerApiDataExportPropertiesCreatedDateProperty - a model defined in Swagger Parameters ---------- - created_date: datetime, optional - property_name: str + created_date: datetime, optional + property_name: str """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._created_date = None + self._property_name: str + self._created_date: Union[datetime, Unset_Type] = Unset self.property_name = property_name - if created_date is not None: + if created_date is not Unset: self.created_date = created_date @property @@ -106,34 +106,41 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesCreatedDateProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def created_date(self) -> "Optional[datetime]": + def created_date(self) -> "Union[datetime, Unset_Type]": """Gets the created_date of this GrantaServerApiDataExportPropertiesCreatedDateProperty. Returns ------- - datetime + Union[datetime, Unset_Type] The created_date of this GrantaServerApiDataExportPropertiesCreatedDateProperty. """ return self._created_date @created_date.setter - def created_date(self, created_date: "Optional[datetime]") -> None: + def created_date(self, created_date: "Union[datetime, Unset_Type]") -> None: """Sets the created_date of this GrantaServerApiDataExportPropertiesCreatedDateProperty. Parameters ---------- - created_date: datetime + created_date: Union[datetime, Unset_Type] The created_date of this GrantaServerApiDataExportPropertiesCreatedDateProperty. """ + # Field is not nullable + if created_date is None: + raise ValueError("Invalid value for 'created_date', must not be 'None'") self._created_date = created_date @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py index 2de0be5b..a8e751b5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -68,22 +68,22 @@ class GrantaServerApiDataExportPropertiesDatabaseKeyProperty( def __init__( self, *, - database_key: "Optional[str]" = None, + database_key: "Union[str, None, Unset_Type]" = Unset, property_name: "str" = "databaseKey", ) -> None: """GrantaServerApiDataExportPropertiesDatabaseKeyProperty - a model defined in Swagger Parameters ---------- - database_key: str, optional - property_name: str + database_key: str, optional + property_name: str """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._database_key = None + self._property_name: str + self._database_key: Union[str, None, Unset_Type] = Unset self.property_name = property_name - if database_key is not None: + if database_key is not Unset: self.database_key = database_key @property @@ -106,34 +106,38 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesDatabaseKeyProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiDataExportPropertiesDatabaseKeyProperty. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiDataExportPropertiesDatabaseKeyProperty. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiDataExportPropertiesDatabaseKeyProperty. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiDataExportPropertiesDatabaseKeyProperty. """ self._database_key = database_key @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py index d372c56c..fabeb88c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -68,22 +68,22 @@ class GrantaServerApiDataExportPropertiesFullNameProperty( def __init__( self, *, - full_name: "Optional[str]" = None, + full_name: "Union[str, None, Unset_Type]" = Unset, property_name: "str" = "fullName", ) -> None: """GrantaServerApiDataExportPropertiesFullNameProperty - a model defined in Swagger Parameters ---------- - full_name: str, optional - property_name: str + full_name: str, optional + property_name: str """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._full_name = None + self._property_name: str + self._full_name: Union[str, None, Unset_Type] = Unset self.property_name = property_name - if full_name is not None: + if full_name is not Unset: self.full_name = full_name @property @@ -106,34 +106,38 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesFullNameProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def full_name(self) -> "Optional[str]": + def full_name(self) -> "Union[str, None, Unset_Type]": """Gets the full_name of this GrantaServerApiDataExportPropertiesFullNameProperty. Returns ------- - str + Union[str, None, Unset_Type] The full_name of this GrantaServerApiDataExportPropertiesFullNameProperty. """ return self._full_name @full_name.setter - def full_name(self, full_name: "Optional[str]") -> None: + def full_name(self, full_name: "Union[str, None, Unset_Type]") -> None: """Sets the full_name of this GrantaServerApiDataExportPropertiesFullNameProperty. Parameters ---------- - full_name: str + full_name: Union[str, None, Unset_Type] The full_name of this GrantaServerApiDataExportPropertiesFullNameProperty. """ self._full_name = full_name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py index 1275ae7d..6bd66cde 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -68,22 +68,22 @@ class GrantaServerApiDataExportPropertiesLastModifiedByUserProperty( def __init__( self, *, - last_modified_by_user: "Optional[str]" = None, + last_modified_by_user: "Union[str, None, Unset_Type]" = Unset, property_name: "str" = "lastModifiedByUser", ) -> None: """GrantaServerApiDataExportPropertiesLastModifiedByUserProperty - a model defined in Swagger Parameters ---------- - last_modified_by_user: str, optional - property_name: str + last_modified_by_user: str, optional + property_name: str """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._last_modified_by_user = None + self._property_name: str + self._last_modified_by_user: Union[str, None, Unset_Type] = Unset self.property_name = property_name - if last_modified_by_user is not None: + if last_modified_by_user is not Unset: self.last_modified_by_user = last_modified_by_user @property @@ -106,34 +106,40 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def last_modified_by_user(self) -> "Optional[str]": + def last_modified_by_user(self) -> "Union[str, None, Unset_Type]": """Gets the last_modified_by_user of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. Returns ------- - str + Union[str, None, Unset_Type] The last_modified_by_user of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. """ return self._last_modified_by_user @last_modified_by_user.setter - def last_modified_by_user(self, last_modified_by_user: "Optional[str]") -> None: + def last_modified_by_user( + self, last_modified_by_user: "Union[str, None, Unset_Type]" + ) -> None: """Sets the last_modified_by_user of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. Parameters ---------- - last_modified_by_user: str + last_modified_by_user: Union[str, None, Unset_Type] The last_modified_by_user of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. """ self._last_modified_by_user = last_modified_by_user @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py index a652d94e..bca97c26 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -68,22 +68,22 @@ class GrantaServerApiDataExportPropertiesLastModifiedDateProperty( def __init__( self, *, - last_modified_date: "Optional[datetime]" = None, + last_modified_date: "Union[datetime, Unset_Type]" = Unset, property_name: "str" = "lastModifiedDate", ) -> None: """GrantaServerApiDataExportPropertiesLastModifiedDateProperty - a model defined in Swagger Parameters ---------- - last_modified_date: datetime, optional - property_name: str + last_modified_date: datetime, optional + property_name: str """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._last_modified_date = None + self._property_name: str + self._last_modified_date: Union[datetime, Unset_Type] = Unset self.property_name = property_name - if last_modified_date is not None: + if last_modified_date is not Unset: self.last_modified_date = last_modified_date @property @@ -106,34 +106,45 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def last_modified_date(self) -> "Optional[datetime]": + def last_modified_date(self) -> "Union[datetime, Unset_Type]": """Gets the last_modified_date of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. Returns ------- - datetime + Union[datetime, Unset_Type] The last_modified_date of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. """ return self._last_modified_date @last_modified_date.setter - def last_modified_date(self, last_modified_date: "Optional[datetime]") -> None: + def last_modified_date( + self, last_modified_date: "Union[datetime, Unset_Type]" + ) -> None: """Sets the last_modified_date of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. Parameters ---------- - last_modified_date: datetime + last_modified_date: Union[datetime, Unset_Type] The last_modified_date of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. """ + # Field is not nullable + if last_modified_date is None: + raise ValueError( + "Invalid value for 'last_modified_date', must not be 'None'" + ) self._last_modified_date = last_modified_date @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py index 88ef1916..5c9017fe 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportPropertiesProperty(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportPropertiesProperty(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -84,7 +84,7 @@ def __init__( """GrantaServerApiDataExportPropertiesProperty - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -106,7 +106,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py index 2f46978f..e596dd17 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -71,21 +71,21 @@ def __init__( self, *, property_name: "str" = "recordColor", - record_color: "Optional[GrantaServerApiRecordColor]" = None, + record_color: "Union[GrantaServerApiRecordColor, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesRecordColorProperty - a model defined in Swagger Parameters ---------- - property_name: str - record_color: GrantaServerApiRecordColor, optional + property_name: str + record_color: GrantaServerApiRecordColor, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._record_color = None + self._property_name: str + self._record_color: Union[GrantaServerApiRecordColor, Unset_Type] = Unset self.property_name = property_name - if record_color is not None: + if record_color is not Unset: self.record_color = record_color @property @@ -108,36 +108,43 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesRecordColorProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def record_color(self) -> "Optional[GrantaServerApiRecordColor]": + def record_color(self) -> "Union[GrantaServerApiRecordColor, Unset_Type]": """Gets the record_color of this GrantaServerApiDataExportPropertiesRecordColorProperty. Returns ------- - GrantaServerApiRecordColor + Union[GrantaServerApiRecordColor, Unset_Type] The record_color of this GrantaServerApiDataExportPropertiesRecordColorProperty. """ return self._record_color @record_color.setter def record_color( - self, record_color: "Optional[GrantaServerApiRecordColor]" + self, record_color: "Union[GrantaServerApiRecordColor, Unset_Type]" ) -> None: """Sets the record_color of this GrantaServerApiDataExportPropertiesRecordColorProperty. Parameters ---------- - record_color: GrantaServerApiRecordColor + record_color: Union[GrantaServerApiRecordColor, Unset_Type] The record_color of this GrantaServerApiDataExportPropertiesRecordColorProperty. """ + # Field is not nullable + if record_color is None: + raise ValueError("Invalid value for 'record_color', must not be 'None'") self._record_color = record_color @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py index 78736509..9aedf16a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "recordGuid", - record_guid: "Optional[str]" = None, + record_guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesRecordGuidProperty - a model defined in Swagger Parameters ---------- - property_name: str - record_guid: str, optional + property_name: str + record_guid: str, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._record_guid = None + self._property_name: str + self._record_guid: Union[str, Unset_Type] = Unset self.property_name = property_name - if record_guid is not None: + if record_guid is not Unset: self.record_guid = record_guid @property @@ -106,34 +106,41 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesRecordGuidProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def record_guid(self) -> "Optional[str]": + def record_guid(self) -> "Union[str, Unset_Type]": """Gets the record_guid of this GrantaServerApiDataExportPropertiesRecordGuidProperty. Returns ------- - str + Union[str, Unset_Type] The record_guid of this GrantaServerApiDataExportPropertiesRecordGuidProperty. """ return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "Optional[str]") -> None: + def record_guid(self, record_guid: "Union[str, Unset_Type]") -> None: """Sets the record_guid of this GrantaServerApiDataExportPropertiesRecordGuidProperty. Parameters ---------- - record_guid: str + record_guid: Union[str, Unset_Type] The record_guid of this GrantaServerApiDataExportPropertiesRecordGuidProperty. """ + # Field is not nullable + if record_guid is None: + raise ValueError("Invalid value for 'record_guid', must not be 'None'") self._record_guid = record_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py index f9e8cd54..c9cdb061 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "recordHistoryGuid", - record_history_guid: "Optional[str]" = None, + record_history_guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty - a model defined in Swagger Parameters ---------- - property_name: str - record_history_guid: str, optional + property_name: str + record_history_guid: str, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._record_history_guid = None + self._property_name: str + self._record_history_guid: Union[str, Unset_Type] = Unset self.property_name = property_name - if record_history_guid is not None: + if record_history_guid is not Unset: self.record_history_guid = record_history_guid @property @@ -106,34 +106,45 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def record_history_guid(self) -> "Optional[str]": + def record_history_guid(self) -> "Union[str, Unset_Type]": """Gets the record_history_guid of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. Returns ------- - str + Union[str, Unset_Type] The record_history_guid of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. """ return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "Optional[str]") -> None: + def record_history_guid( + self, record_history_guid: "Union[str, Unset_Type]" + ) -> None: """Sets the record_history_guid of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. Parameters ---------- - record_history_guid: str + record_history_guid: Union[str, Unset_Type] The record_history_guid of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. """ + # Field is not nullable + 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 @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py index 4b3bd3e7..f8108ebb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "recordHistoryIdentity", - record_history_identity: "Optional[int]" = None, + record_history_identity: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty - a model defined in Swagger Parameters ---------- - property_name: str - record_history_identity: int, optional + property_name: str + record_history_identity: int, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._record_history_identity = None + self._property_name: str + self._record_history_identity: Union[int, Unset_Type] = Unset self.property_name = property_name - if record_history_identity is not None: + if record_history_identity is not Unset: self.record_history_identity = record_history_identity @property @@ -106,34 +106,45 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def record_history_identity(self) -> "Optional[int]": + def record_history_identity(self) -> "Union[int, Unset_Type]": """Gets the record_history_identity of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. Returns ------- - int + Union[int, Unset_Type] The record_history_identity of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. """ return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "Optional[int]") -> None: + def record_history_identity( + self, record_history_identity: "Union[int, Unset_Type]" + ) -> None: """Sets the record_history_identity of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. Parameters ---------- - record_history_identity: int + record_history_identity: Union[int, Unset_Type] The record_history_identity of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. """ + # 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 @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py index cd203192..0cb4e581 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "recordIdentity", - record_identity: "Optional[int]" = None, + record_identity: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesRecordIdentityProperty - a model defined in Swagger Parameters ---------- - property_name: str - record_identity: int, optional + property_name: str + record_identity: int, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._record_identity = None + self._property_name: str + self._record_identity: Union[int, Unset_Type] = Unset self.property_name = property_name - if record_identity is not None: + if record_identity is not Unset: self.record_identity = record_identity @property @@ -106,34 +106,41 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesRecordIdentityProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def record_identity(self) -> "Optional[int]": + def record_identity(self) -> "Union[int, Unset_Type]": """Gets the record_identity of this GrantaServerApiDataExportPropertiesRecordIdentityProperty. Returns ------- - int + Union[int, Unset_Type] The record_identity of this GrantaServerApiDataExportPropertiesRecordIdentityProperty. """ return self._record_identity @record_identity.setter - def record_identity(self, record_identity: "Optional[int]") -> None: + def record_identity(self, record_identity: "Union[int, Unset_Type]") -> None: """Sets the record_identity of this GrantaServerApiDataExportPropertiesRecordIdentityProperty. Parameters ---------- - record_identity: int + record_identity: Union[int, Unset_Type] The record_identity of this GrantaServerApiDataExportPropertiesRecordIdentityProperty. """ + # Field is not nullable + if record_identity is None: + raise ValueError("Invalid value for 'record_identity', must not be 'None'") self._record_identity = record_identity @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py index 2b63bcc4..86ab586d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -71,21 +71,21 @@ def __init__( self, *, property_name: "str" = "recordType", - record_type: "Optional[GrantaServerApiRecordType]" = None, + record_type: "Union[GrantaServerApiRecordType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesRecordTypeProperty - a model defined in Swagger Parameters ---------- - property_name: str - record_type: GrantaServerApiRecordType, optional + property_name: str + record_type: GrantaServerApiRecordType, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._record_type = None + self._property_name: str + self._record_type: Union[GrantaServerApiRecordType, Unset_Type] = Unset self.property_name = property_name - if record_type is not None: + if record_type is not Unset: self.record_type = record_type @property @@ -108,34 +108,43 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesRecordTypeProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def record_type(self) -> "Optional[GrantaServerApiRecordType]": + def record_type(self) -> "Union[GrantaServerApiRecordType, Unset_Type]": """Gets the record_type of this GrantaServerApiDataExportPropertiesRecordTypeProperty. Returns ------- - GrantaServerApiRecordType + Union[GrantaServerApiRecordType, Unset_Type] The record_type of this GrantaServerApiDataExportPropertiesRecordTypeProperty. """ return self._record_type @record_type.setter - def record_type(self, record_type: "Optional[GrantaServerApiRecordType]") -> None: + def record_type( + self, record_type: "Union[GrantaServerApiRecordType, Unset_Type]" + ) -> None: """Sets the record_type of this GrantaServerApiDataExportPropertiesRecordTypeProperty. Parameters ---------- - record_type: GrantaServerApiRecordType + record_type: Union[GrantaServerApiRecordType, Unset_Type] The record_type of this GrantaServerApiDataExportPropertiesRecordTypeProperty. """ + # Field is not nullable + if record_type is None: + raise ValueError("Invalid value for 'record_type', must not be 'None'") self._record_type = record_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py index 3d194e1e..92089d2f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "releasedDate", - released_date: "Optional[datetime]" = None, + released_date: "Union[datetime, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesReleasedDateProperty - a model defined in Swagger Parameters ---------- - property_name: str - released_date: datetime, optional + property_name: str + released_date: datetime, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._released_date = None + self._property_name: str + self._released_date: Union[datetime, None, Unset_Type] = Unset self.property_name = property_name - if released_date is not None: + if released_date is not Unset: self.released_date = released_date @property @@ -106,34 +106,38 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesReleasedDateProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def released_date(self) -> "Optional[datetime]": + def released_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the released_date of this GrantaServerApiDataExportPropertiesReleasedDateProperty. Returns ------- - datetime + Union[datetime, None, Unset_Type] The released_date of this GrantaServerApiDataExportPropertiesReleasedDateProperty. """ return self._released_date @released_date.setter - def released_date(self, released_date: "Optional[datetime]") -> None: + def released_date(self, released_date: "Union[datetime, None, Unset_Type]") -> None: """Sets the released_date of this GrantaServerApiDataExportPropertiesReleasedDateProperty. Parameters ---------- - released_date: datetime + released_date: Union[datetime, None, Unset_Type] The released_date of this GrantaServerApiDataExportPropertiesReleasedDateProperty. """ self._released_date = released_date @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py index bddbfb45..774a790f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "shortName", - short_name: "Optional[str]" = None, + short_name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesShortNameProperty - a model defined in Swagger Parameters ---------- - property_name: str - short_name: str, optional + property_name: str + short_name: str, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._short_name = None + self._property_name: str + self._short_name: Union[str, None, Unset_Type] = Unset self.property_name = property_name - if short_name is not None: + if short_name is not Unset: self.short_name = short_name @property @@ -106,34 +106,38 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesShortNameProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def short_name(self) -> "Optional[str]": + def short_name(self) -> "Union[str, None, Unset_Type]": """Gets the short_name of this GrantaServerApiDataExportPropertiesShortNameProperty. Returns ------- - str + Union[str, None, Unset_Type] The short_name of this GrantaServerApiDataExportPropertiesShortNameProperty. """ return self._short_name @short_name.setter - def short_name(self, short_name: "Optional[str]") -> None: + def short_name(self, short_name: "Union[str, None, Unset_Type]") -> None: """Sets the short_name of this GrantaServerApiDataExportPropertiesShortNameProperty. Parameters ---------- - short_name: str + short_name: Union[str, None, Unset_Type] The short_name of this GrantaServerApiDataExportPropertiesShortNameProperty. """ self._short_name = short_name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py index cc27ad12..3ad6f2b0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "tableGuid", - table_guid: "Optional[str]" = None, + table_guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesTableGuidProperty - a model defined in Swagger Parameters ---------- - property_name: str - table_guid: str, optional + property_name: str + table_guid: str, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._table_guid = None + self._property_name: str + self._table_guid: Union[str, Unset_Type] = Unset self.property_name = property_name - if table_guid is not None: + if table_guid is not Unset: self.table_guid = table_guid @property @@ -106,34 +106,41 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesTableGuidProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def table_guid(self) -> "Optional[str]": + def table_guid(self) -> "Union[str, Unset_Type]": """Gets the table_guid of this GrantaServerApiDataExportPropertiesTableGuidProperty. Returns ------- - str + Union[str, Unset_Type] The table_guid of this GrantaServerApiDataExportPropertiesTableGuidProperty. """ return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "Optional[str]") -> None: + def table_guid(self, table_guid: "Union[str, Unset_Type]") -> None: """Sets the table_guid of this GrantaServerApiDataExportPropertiesTableGuidProperty. Parameters ---------- - table_guid: str + table_guid: Union[str, Unset_Type] The table_guid of this GrantaServerApiDataExportPropertiesTableGuidProperty. """ + # 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 @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py index 664408b0..68b38251 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "tableIdentity", - table_identity: "Optional[int]" = None, + table_identity: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesTableIdentityProperty - a model defined in Swagger Parameters ---------- - property_name: str - table_identity: int, optional + property_name: str + table_identity: int, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._table_identity = None + self._property_name: str + self._table_identity: Union[int, Unset_Type] = Unset self.property_name = property_name - if table_identity is not None: + if table_identity is not Unset: self.table_identity = table_identity @property @@ -106,34 +106,41 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesTableIdentityProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def table_identity(self) -> "Optional[int]": + def table_identity(self) -> "Union[int, Unset_Type]": """Gets the table_identity of this GrantaServerApiDataExportPropertiesTableIdentityProperty. Returns ------- - int + Union[int, Unset_Type] The table_identity of this GrantaServerApiDataExportPropertiesTableIdentityProperty. """ return self._table_identity @table_identity.setter - def table_identity(self, table_identity: "Optional[int]") -> None: + def table_identity(self, table_identity: "Union[int, Unset_Type]") -> None: """Sets the table_identity of this GrantaServerApiDataExportPropertiesTableIdentityProperty. Parameters ---------- - table_identity: int + table_identity: Union[int, Unset_Type] The table_identity of this GrantaServerApiDataExportPropertiesTableIdentityProperty. """ + # Field is not nullable + if table_identity is None: + raise ValueError("Invalid value for 'table_identity', must not be 'None'") self._table_identity = table_identity @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py index 47682906..fc9aec9f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "tableName", - table_name: "Optional[str]" = None, + table_name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesTableNameProperty - a model defined in Swagger Parameters ---------- - property_name: str - table_name: str, optional + property_name: str + table_name: str, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._table_name = None + self._property_name: str + self._table_name: Union[str, None, Unset_Type] = Unset self.property_name = property_name - if table_name is not None: + if table_name is not Unset: self.table_name = table_name @property @@ -106,34 +106,38 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesTableNameProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def table_name(self) -> "Optional[str]": + def table_name(self) -> "Union[str, None, Unset_Type]": """Gets the table_name of this GrantaServerApiDataExportPropertiesTableNameProperty. Returns ------- - str + Union[str, None, Unset_Type] The table_name of this GrantaServerApiDataExportPropertiesTableNameProperty. """ return self._table_name @table_name.setter - def table_name(self, table_name: "Optional[str]") -> None: + def table_name(self, table_name: "Union[str, None, Unset_Type]") -> None: """Sets the table_name of this GrantaServerApiDataExportPropertiesTableNameProperty. Parameters ---------- - table_name: str + table_name: Union[str, None, Unset_Type] The table_name of this GrantaServerApiDataExportPropertiesTableNameProperty. """ self._table_name = table_name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py index b61d507d..11380d6e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -69,21 +69,21 @@ def __init__( self, *, property_name: "str" = "versionNumber", - version_number: "Optional[int]" = None, + version_number: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesVersionNumberProperty - a model defined in Swagger Parameters ---------- - property_name: str - version_number: int, optional + property_name: str + version_number: int, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._version_number = None + self._property_name: str + self._version_number: Union[int, Unset_Type] = Unset self.property_name = property_name - if version_number is not None: + if version_number is not Unset: self.version_number = version_number @property @@ -106,34 +106,41 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesVersionNumberProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def version_number(self) -> "Optional[int]": + def version_number(self) -> "Union[int, Unset_Type]": """Gets the version_number of this GrantaServerApiDataExportPropertiesVersionNumberProperty. Returns ------- - int + Union[int, Unset_Type] The version_number of this GrantaServerApiDataExportPropertiesVersionNumberProperty. """ return self._version_number @version_number.setter - def version_number(self, version_number: "Optional[int]") -> None: + def version_number(self, version_number: "Union[int, Unset_Type]") -> None: """Sets the version_number of this GrantaServerApiDataExportPropertiesVersionNumberProperty. Parameters ---------- - version_number: int + version_number: Union[int, Unset_Type] The version_number of this GrantaServerApiDataExportPropertiesVersionNumberProperty. """ + # Field is not nullable + if version_number is None: + raise ValueError("Invalid value for 'version_number', must not be 'None'") self._version_number = version_number @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py index aaa7ef5a..da498351 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( GrantaServerApiDataExportPropertiesProperty, ) # noqa: F401 @@ -71,21 +71,21 @@ def __init__( self, *, property_name: "str" = "versionState", - version_state: "Optional[GrantaServerApiVersionState]" = None, + version_state: "Union[GrantaServerApiVersionState, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportPropertiesVersionStateProperty - a model defined in Swagger Parameters ---------- - property_name: str - version_state: GrantaServerApiVersionState, optional + property_name: str + version_state: GrantaServerApiVersionState, optional """ super().__init__() - self._property_name: str = None # type: ignore[assignment] - self._version_state = None + self._property_name: str + self._version_state: Union[GrantaServerApiVersionState, Unset_Type] = Unset self.property_name = property_name - if version_state is not None: + if version_state is not Unset: self.version_state = version_state @property @@ -108,36 +108,43 @@ def property_name(self, property_name: "str") -> None: property_name: str The property_name of this GrantaServerApiDataExportPropertiesVersionStateProperty. """ + # Field is not nullable if property_name is None: raise ValueError("Invalid value for 'property_name', must not be 'None'") + # Field is required + if property_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'property_name', must not be 'Unset'") self._property_name = property_name @property - def version_state(self) -> "Optional[GrantaServerApiVersionState]": + def version_state(self) -> "Union[GrantaServerApiVersionState, Unset_Type]": """Gets the version_state of this GrantaServerApiDataExportPropertiesVersionStateProperty. Returns ------- - GrantaServerApiVersionState + Union[GrantaServerApiVersionState, Unset_Type] The version_state of this GrantaServerApiDataExportPropertiesVersionStateProperty. """ return self._version_state @version_state.setter def version_state( - self, version_state: "Optional[GrantaServerApiVersionState]" + self, version_state: "Union[GrantaServerApiVersionState, Unset_Type]" ) -> None: """Sets the version_state of this GrantaServerApiDataExportPropertiesVersionStateProperty. Parameters ---------- - version_state: GrantaServerApiVersionState + version_state: Union[GrantaServerApiVersionState, Unset_Type] The version_state of this GrantaServerApiDataExportPropertiesVersionStateProperty. """ + # Field is not nullable + if version_state is None: + raise ValueError("Invalid value for 'version_state', must not be 'None'") self._version_state = version_state @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py index 71cde507..8f18e69e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataExportRecordWithData(ModelBase): # type: ignore[misc] +class GrantaServerApiDataExportRecordWithData(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,98 +70,112 @@ class GrantaServerApiDataExportRecordWithData(ModelBase): # type: ignore[misc] def __init__( self, *, - data: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" = None, - database_key: "Optional[str]" = None, - properties: "Optional[List[GrantaServerApiDataExportPropertiesProperty]]" = None, - record_history_identity: "Optional[int]" = None, + data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + properties: "Union[List[GrantaServerApiDataExportPropertiesProperty], None, Unset_Type]" = Unset, + record_history_identity: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportRecordWithData - a model defined in Swagger Parameters ---------- - data: List[GrantaServerApiDataExportDatumsDatum], optional - database_key: str, optional - properties: List[GrantaServerApiDataExportPropertiesProperty], optional - record_history_identity: int, optional + data: List[GrantaServerApiDataExportDatumsDatum], optional + database_key: str, optional + properties: List[GrantaServerApiDataExportPropertiesProperty], optional + record_history_identity: int, optional """ - self._database_key = None - self._record_history_identity = None - self._data = None - self._properties = None - - if database_key is not None: + self._database_key: Union[str, None, Unset_Type] = Unset + self._record_history_identity: Union[int, Unset_Type] = Unset + self._data: Union[ + List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type + ] = Unset + self._properties: Union[ + List[GrantaServerApiDataExportPropertiesProperty], None, Unset_Type + ] = Unset + + if database_key is not Unset: self.database_key = database_key - if record_history_identity is not None: + if record_history_identity is not Unset: self.record_history_identity = record_history_identity - if data is not None: + if data is not Unset: self.data = data - if properties is not None: + if properties is not Unset: self.properties = properties @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiDataExportRecordWithData. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiDataExportRecordWithData. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiDataExportRecordWithData. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiDataExportRecordWithData. """ self._database_key = database_key @property - def record_history_identity(self) -> "Optional[int]": + def record_history_identity(self) -> "Union[int, Unset_Type]": """Gets the record_history_identity of this GrantaServerApiDataExportRecordWithData. Returns ------- - int + Union[int, Unset_Type] The record_history_identity of this GrantaServerApiDataExportRecordWithData. """ return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "Optional[int]") -> None: + def record_history_identity( + self, record_history_identity: "Union[int, Unset_Type]" + ) -> None: """Sets the record_history_identity of this GrantaServerApiDataExportRecordWithData. Parameters ---------- - record_history_identity: int + record_history_identity: Union[int, Unset_Type] The record_history_identity of this GrantaServerApiDataExportRecordWithData. """ + # 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 @property - def data(self) -> "Optional[List[GrantaServerApiDataExportDatumsDatum]]": + def data( + self, + ) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": """Gets the data of this GrantaServerApiDataExportRecordWithData. Returns ------- - list[GrantaServerApiDataExportDatumsDatum] + Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] The data of this GrantaServerApiDataExportRecordWithData. """ return self._data @data.setter def data( - self, data: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" + self, + data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]", ) -> None: """Sets the data of this GrantaServerApiDataExportRecordWithData. Parameters ---------- - data: List[GrantaServerApiDataExportDatumsDatum] + data: Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] The data of this GrantaServerApiDataExportRecordWithData. """ self._data = data @@ -169,31 +183,32 @@ def data( @property def properties( self, - ) -> "Optional[List[GrantaServerApiDataExportPropertiesProperty]]": + ) -> "Union[List[GrantaServerApiDataExportPropertiesProperty], None, Unset_Type]": """Gets the properties of this GrantaServerApiDataExportRecordWithData. Returns ------- - list[GrantaServerApiDataExportPropertiesProperty] + Union[List[GrantaServerApiDataExportPropertiesProperty], None, Unset_Type] The properties of this GrantaServerApiDataExportRecordWithData. """ return self._properties @properties.setter def properties( - self, properties: "Optional[List[GrantaServerApiDataExportPropertiesProperty]]" + self, + properties: "Union[List[GrantaServerApiDataExportPropertiesProperty], None, Unset_Type]", ) -> None: """Sets the properties of this GrantaServerApiDataExportRecordWithData. Parameters ---------- - properties: List[GrantaServerApiDataExportPropertiesProperty] + properties: Union[List[GrantaServerApiDataExportPropertiesProperty], None, Unset_Type] The properties of this GrantaServerApiDataExportRecordWithData. """ self._properties = properties @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -210,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py index d1bf178b..06e7f5d9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import ( GrantaServerApiDataExportAttributeToExport, ) # noqa: F401 @@ -78,41 +78,47 @@ def __init__( self, *, attribute_type: "str" = "simple", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportSimpleAttributeToExport - a model defined in Swagger Parameters ---------- - attribute_type: str - guid: str, optional - identity: int, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + attribute_type: str + guid: str, optional + identity: int, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional """ super().__init__(guid=guid, identity=identity) - self._roll_up_type = None - self._summary_roll_up_type = None - self._attribute_type: str = None # type: ignore[assignment] - - if roll_up_type is not None: + self._roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + self._summary_roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + self._attribute_type: str + + if roll_up_type is not Unset: self.roll_up_type = roll_up_type - if summary_roll_up_type is not None: + if summary_roll_up_type is not Unset: self.summary_roll_up_type = summary_roll_up_type self.attribute_type = attribute_type @property def roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. """ return self._roll_up_type @@ -120,26 +126,31 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( self, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Parameters ---------- - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. """ + # Field is not nullable + if roll_up_type is None: + raise ValueError("Invalid value for 'roll_up_type', must not be 'None'") self._roll_up_type = roll_up_type @property def summary_roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the summary_roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. """ return self._summary_roll_up_type @@ -147,15 +158,20 @@ def summary_roll_up_type( @summary_roll_up_type.setter def summary_roll_up_type( self, - summary_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + summary_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the summary_roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Parameters ---------- - summary_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. """ + # Field is not nullable + if summary_roll_up_type is None: + raise ValueError( + "Invalid value for 'summary_roll_up_type', must not be 'None'" + ) self._summary_roll_up_type = summary_roll_up_type @property @@ -178,12 +194,16 @@ def attribute_type(self, attribute_type: "str") -> None: attribute_type: str The attribute_type of this GrantaServerApiDataExportSimpleAttributeToExport. """ + # Field is not nullable if attribute_type is None: raise ValueError("Invalid value for 'attribute_type', must not be 'None'") + # Field is required + if attribute_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attribute_type', must not be 'Unset'") self._attribute_type = attribute_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -200,7 +220,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py index 4931adf8..8cd94641 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -84,17 +84,17 @@ def __init__( Parameters ---------- - address: str - description: str - target: GrantaServerApiDataHyperlinkTarget - datum_type: str - not_applicable: str + address: str + description: str + target: GrantaServerApiDataHyperlinkTarget + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._address: str = None # type: ignore[assignment] - self._description: str = None # type: ignore[assignment] - self._target: GrantaServerApiDataHyperlinkTarget = None # type: ignore[assignment] + self._datum_type: str + self._address: str + self._description: str + self._target: GrantaServerApiDataHyperlinkTarget self.datum_type = datum_type self.address = address @@ -121,8 +121,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataHyperlinkDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -145,8 +149,12 @@ def address(self, address: "str") -> None: address: str The address of this GrantaServerApiDataHyperlinkDatum. """ + # Field is not nullable if address is None: raise ValueError("Invalid value for 'address', must not be 'None'") + # Field is required + if address is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'address', must not be 'Unset'") self._address = address @property @@ -169,8 +177,12 @@ def description(self, description: "str") -> None: description: str The description of this GrantaServerApiDataHyperlinkDatum. """ + # Field is not nullable if description is None: raise ValueError("Invalid value for 'description', must not be 'None'") + # Field is required + if description is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'description', must not be 'Unset'") self._description = description @property @@ -193,12 +205,16 @@ def target(self, target: "GrantaServerApiDataHyperlinkTarget") -> None: target: GrantaServerApiDataHyperlinkTarget The target of this GrantaServerApiDataHyperlinkDatum. """ + # Field is not nullable if target is None: raise ValueError("Invalid value for 'target', must not be 'None'") + # Field is required + if target is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'target', must not be 'Unset'") self._target = target @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -215,7 +231,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py index 03cb2e0f..d927fa7f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -76,13 +76,13 @@ def __init__( Parameters ---------- - value: int - datum_type: str - not_applicable: str + value: int + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._value: int = None # type: ignore[assignment] + self._datum_type: str + self._value: int self.datum_type = datum_type self.value = value @@ -107,8 +107,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataIntegerDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -131,12 +135,16 @@ def value(self, value: "int") -> None: value: int The value of this GrantaServerApiDataIntegerDatum. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -153,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py index 42a5fb74..84dcd27f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -76,13 +76,13 @@ def __init__( Parameters ---------- - value: bool - datum_type: str - not_applicable: str + value: bool + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._value: bool = None # type: ignore[assignment] + self._datum_type: str + self._value: bool self.datum_type = datum_type self.value = value @@ -107,8 +107,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataLogicalDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -131,12 +135,16 @@ def value(self, value: "bool") -> None: value: bool The value of this GrantaServerApiDataLogicalDatum. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -153,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py index deb08cc2..4f6e8abc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -78,13 +78,13 @@ def __init__( Parameters ---------- - rich_text_value: GrantaServerApiDataRichTextValue - datum_type: str - not_applicable: str + rich_text_value: GrantaServerApiDataRichTextValue + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._rich_text_value: GrantaServerApiDataRichTextValue = None # type: ignore[assignment] + self._datum_type: str + self._rich_text_value: GrantaServerApiDataRichTextValue self.datum_type = datum_type self.rich_text_value = rich_text_value @@ -109,8 +109,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataLongTextDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -135,12 +139,16 @@ def rich_text_value( rich_text_value: GrantaServerApiDataRichTextValue The rich_text_value of this GrantaServerApiDataLongTextDatum. """ + # Field is not nullable if rich_text_value is None: raise ValueError("Invalid value for 'rich_text_value', must not be 'None'") + # Field is required + if rich_text_value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'rich_text_value', must not be 'Unset'") self._rich_text_value = rich_text_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -157,7 +165,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py index fea78113..22a2e2a5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( GrantaServerApiDataDatum, ) # noqa: F401 @@ -70,10 +70,10 @@ def __init__( Parameters ---------- - not_applicable: str + not_applicable: str """ super().__init__() - self._not_applicable: str = None # type: ignore[assignment] + self._not_applicable: str self.not_applicable = not_applicable @@ -97,12 +97,16 @@ def not_applicable(self, not_applicable: "str") -> None: not_applicable: str The not_applicable of this GrantaServerApiDataNotApplicableDatum. """ + # Field is not nullable if not_applicable is None: raise ValueError("Invalid value for 'not_applicable', must not be 'None'") + # Field is required + if not_applicable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'not_applicable', must not be 'Unset'") self._not_applicable = not_applicable @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py index 3e3cc536..f591a1b4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( GrantaServerApiDataParameterWithValue, ) # noqa: F401 @@ -77,25 +77,25 @@ def __init__( parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", parameter_value: "float", type: "str" = "numeric", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataNumericParameterWithValue - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - parameter_value: float - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter_value: float + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__(parameter=parameter) - self._type: str = None # type: ignore[assignment] - self._parameter_value: float = None # type: ignore[assignment] - self._unit = None + self._type: str + self._parameter_value: float + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.type = type self.parameter_value = parameter_value - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -118,8 +118,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiDataNumericParameterWithValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -142,34 +146,43 @@ def parameter_value(self, parameter_value: "float") -> None: parameter_value: float The parameter_value of this GrantaServerApiDataNumericParameterWithValue. """ + # 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 @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiDataNumericParameterWithValue. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiDataNumericParameterWithValue. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiDataNumericParameterWithValue. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiDataNumericParameterWithValue. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -186,7 +199,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py index 81270bd7..3d082644 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataParameterWithValue(ModelBase): # type: ignore[misc] +class GrantaServerApiDataParameterWithValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,9 +76,9 @@ def __init__( Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity """ - self._parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity self.parameter = parameter @@ -104,12 +104,16 @@ def parameter( parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity The parameter of this GrantaServerApiDataParameterWithValue. """ + # Field is not nullable if parameter is None: raise ValueError("Invalid value for 'parameter', must not be 'None'") + # Field is required + if parameter is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter', must not be 'Unset'") self._parameter = parameter @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -131,7 +135,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py index 69f5e22f..07e53fe6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataPointDataValue(ModelBase): # type: ignore[misc] +class GrantaServerApiDataPointDataValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,27 +73,29 @@ def __init__( *, parameter_and_values: "List[GrantaServerApiDataParameterWithValue]", point_value: "float", - significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]" = None, - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + significant_figures_info: "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]" = Unset, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataPointDataValue - a model defined in Swagger Parameters ---------- - parameter_and_values: List[GrantaServerApiDataParameterWithValue] - point_value: float - significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + parameter_and_values: List[GrantaServerApiDataParameterWithValue] + point_value: float + significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ - self._point_value: float = None # type: ignore[assignment] - self._unit = None - self._significant_figures_info = None - self._parameter_and_values: List[GrantaServerApiDataParameterWithValue] = None # type: ignore[assignment] + self._point_value: float + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset + self._significant_figures_info: Union[ + GrantaServerApiDataSignificantFiguresInfo, Unset_Type + ] = Unset + self._parameter_and_values: List[GrantaServerApiDataParameterWithValue] self.point_value = point_value - if unit is not None: + if unit is not Unset: self.unit = unit - if significant_figures_info is not None: + if significant_figures_info is not Unset: self.significant_figures_info = significant_figures_info self.parameter_and_values = parameter_and_values @@ -117,41 +119,50 @@ def point_value(self, point_value: "float") -> None: point_value: float The point_value of this GrantaServerApiDataPointDataValue. """ + # Field is not nullable if point_value is None: raise ValueError("Invalid value for 'point_value', must not be 'None'") + # Field is required + if point_value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'point_value', must not be 'Unset'") self._point_value = point_value @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiDataPointDataValue. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiDataPointDataValue. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiDataPointDataValue. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiDataPointDataValue. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property def significant_figures_info( self, - ) -> "Optional[GrantaServerApiDataSignificantFiguresInfo]": + ) -> "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]": """Gets the significant_figures_info of this GrantaServerApiDataPointDataValue. Returns ------- - GrantaServerApiDataSignificantFiguresInfo + Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type] The significant_figures_info of this GrantaServerApiDataPointDataValue. """ return self._significant_figures_info @@ -159,15 +170,20 @@ def significant_figures_info( @significant_figures_info.setter def significant_figures_info( self, - significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]", + significant_figures_info: "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]", ) -> None: """Sets the significant_figures_info of this GrantaServerApiDataPointDataValue. Parameters ---------- - significant_figures_info: GrantaServerApiDataSignificantFiguresInfo + significant_figures_info: Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type] The significant_figures_info of this GrantaServerApiDataPointDataValue. """ + # Field is not nullable + if significant_figures_info is None: + raise ValueError( + "Invalid value for 'significant_figures_info', must not be 'None'" + ) self._significant_figures_info = significant_figures_info @property @@ -176,7 +192,7 @@ def parameter_and_values(self) -> "List[GrantaServerApiDataParameterWithValue]": Returns ------- - list[GrantaServerApiDataParameterWithValue] + List[GrantaServerApiDataParameterWithValue] The parameter_and_values of this GrantaServerApiDataPointDataValue. """ return self._parameter_and_values @@ -192,14 +208,20 @@ def parameter_and_values( parameter_and_values: List[GrantaServerApiDataParameterWithValue] The parameter_and_values of this GrantaServerApiDataPointDataValue. """ + # Field is not nullable if parameter_and_values is None: raise ValueError( "Invalid value for 'parameter_and_values', must not be 'None'" ) + # Field is required + if parameter_and_values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'parameter_and_values', must not be 'Unset'" + ) self._parameter_and_values = parameter_and_values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -216,7 +238,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py index 8d9ad8df..7cbf477e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -81,15 +81,15 @@ def __init__( Parameters ---------- - estimated: bool - values: List[GrantaServerApiDataPointDataValue] - datum_type: str - not_applicable: str + estimated: bool + values: List[GrantaServerApiDataPointDataValue] + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._estimated: bool = None # type: ignore[assignment] - self._values: List[GrantaServerApiDataPointDataValue] = None # type: ignore[assignment] + self._datum_type: str + self._estimated: bool + self._values: List[GrantaServerApiDataPointDataValue] self.datum_type = datum_type self.estimated = estimated @@ -115,8 +115,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataPointDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -139,8 +143,12 @@ def estimated(self, estimated: "bool") -> None: estimated: bool The estimated of this GrantaServerApiDataPointDatum. """ + # 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 @@ -149,7 +157,7 @@ def values(self) -> "List[GrantaServerApiDataPointDataValue]": Returns ------- - list[GrantaServerApiDataPointDataValue] + List[GrantaServerApiDataPointDataValue] The values of this GrantaServerApiDataPointDatum. """ return self._values @@ -163,12 +171,16 @@ def values(self, values: "List[GrantaServerApiDataPointDataValue]") -> None: values: List[GrantaServerApiDataPointDataValue] The values of this GrantaServerApiDataPointDatum. """ + # Field is not nullable if values is None: raise ValueError("Invalid value for 'values', must not be 'None'") + # Field is required + if values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'values', must not be 'Unset'") self._values = values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -185,7 +197,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py index 67e3c10e..9bd01abd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -92,50 +92,54 @@ def __init__( low_value: "float", low_value_is_inclusive: "bool", datum_type: "str" = "range", - high_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]" = None, - low_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]" = None, + high_value_significant_figures_info: "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]" = Unset, + low_value_significant_figures_info: "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]" = Unset, not_applicable: "str" = "applicable", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataRangeDatum - a model defined in Swagger Parameters ---------- - estimated: bool - high_value: float - high_value_is_inclusive: bool - low_value: float - low_value_is_inclusive: bool - datum_type: str - high_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional - low_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional - not_applicable: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + estimated: bool + high_value: float + high_value_is_inclusive: bool + low_value: float + low_value_is_inclusive: bool + datum_type: str + high_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional + low_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional + not_applicable: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._low_value: float = None # type: ignore[assignment] - self._high_value: float = None # type: ignore[assignment] - self._low_value_is_inclusive: bool = None # type: ignore[assignment] - self._high_value_is_inclusive: bool = None # type: ignore[assignment] - self._low_value_significant_figures_info = None - self._high_value_significant_figures_info = None - self._estimated: bool = None # type: ignore[assignment] - self._unit = None + self._datum_type: str + self._low_value: float + self._high_value: float + self._low_value_is_inclusive: bool + self._high_value_is_inclusive: bool + self._low_value_significant_figures_info: Union[ + GrantaServerApiDataSignificantFiguresInfo, Unset_Type + ] = Unset + self._high_value_significant_figures_info: Union[ + GrantaServerApiDataSignificantFiguresInfo, Unset_Type + ] = Unset + self._estimated: bool + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.datum_type = datum_type 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 - if low_value_significant_figures_info is not None: + if low_value_significant_figures_info is not Unset: self.low_value_significant_figures_info = low_value_significant_figures_info - if high_value_significant_figures_info is not None: + if high_value_significant_figures_info is not Unset: self.high_value_significant_figures_info = ( high_value_significant_figures_info ) self.estimated = estimated - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -158,8 +162,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataRangeDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -182,8 +190,12 @@ def low_value(self, low_value: "float") -> None: low_value: float The low_value of this GrantaServerApiDataRangeDatum. """ + # 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 @@ -206,8 +218,12 @@ def high_value(self, high_value: "float") -> None: high_value: float The high_value of this GrantaServerApiDataRangeDatum. """ + # 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 @@ -230,10 +246,16 @@ def low_value_is_inclusive(self, low_value_is_inclusive: "bool") -> None: low_value_is_inclusive: bool The low_value_is_inclusive of this GrantaServerApiDataRangeDatum. """ + # 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 @@ -256,21 +278,27 @@ def high_value_is_inclusive(self, high_value_is_inclusive: "bool") -> None: high_value_is_inclusive: bool The high_value_is_inclusive of this GrantaServerApiDataRangeDatum. """ + # 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 low_value_significant_figures_info( self, - ) -> "Optional[GrantaServerApiDataSignificantFiguresInfo]": + ) -> "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]": """Gets the low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. Returns ------- - GrantaServerApiDataSignificantFiguresInfo + Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type] The low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. """ return self._low_value_significant_figures_info @@ -278,26 +306,31 @@ def low_value_significant_figures_info( @low_value_significant_figures_info.setter def low_value_significant_figures_info( self, - low_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]", + low_value_significant_figures_info: "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]", ) -> None: """Sets the low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. Parameters ---------- - low_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo + low_value_significant_figures_info: Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type] The low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. """ + # Field is not nullable + if low_value_significant_figures_info is None: + raise ValueError( + "Invalid value for 'low_value_significant_figures_info', must not be 'None'" + ) self._low_value_significant_figures_info = low_value_significant_figures_info @property def high_value_significant_figures_info( self, - ) -> "Optional[GrantaServerApiDataSignificantFiguresInfo]": + ) -> "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]": """Gets the high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. Returns ------- - GrantaServerApiDataSignificantFiguresInfo + Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type] The high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. """ return self._high_value_significant_figures_info @@ -305,15 +338,20 @@ def high_value_significant_figures_info( @high_value_significant_figures_info.setter def high_value_significant_figures_info( self, - high_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]", + high_value_significant_figures_info: "Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type]", ) -> None: """Sets the high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. Parameters ---------- - high_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo + high_value_significant_figures_info: Union[GrantaServerApiDataSignificantFiguresInfo, Unset_Type] The high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. """ + # Field is not nullable + if high_value_significant_figures_info is None: + raise ValueError( + "Invalid value for 'high_value_significant_figures_info', must not be 'None'" + ) self._high_value_significant_figures_info = high_value_significant_figures_info @property @@ -336,34 +374,43 @@ def estimated(self, estimated: "bool") -> None: estimated: bool The estimated of this GrantaServerApiDataRangeDatum. """ + # 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 unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiDataRangeDatum. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiDataRangeDatum. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiDataRangeDatum. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiDataRangeDatum. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -380,7 +427,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py index e384201d..2b38b933 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataRichTextValue(ModelBase): # type: ignore[misc] +class GrantaServerApiDataRichTextValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,11 +72,11 @@ def __init__( Parameters ---------- - text: str - type: GrantaServerApiDataRichTextType + text: str + type: GrantaServerApiDataRichTextType """ - self._text: str = None # type: ignore[assignment] - self._type: GrantaServerApiDataRichTextType = None # type: ignore[assignment] + self._text: str + self._type: GrantaServerApiDataRichTextType self.text = text self.type = type @@ -101,8 +101,12 @@ def text(self, text: "str") -> None: text: str The text of this GrantaServerApiDataRichTextValue. """ + # Field is not nullable if text is None: raise ValueError("Invalid value for 'text', must not be 'None'") + # Field is required + if text is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'text', must not be 'Unset'") self._text = text @property @@ -125,12 +129,16 @@ def type(self, type: "GrantaServerApiDataRichTextType") -> None: type: GrantaServerApiDataRichTextType The type of this GrantaServerApiDataRichTextValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py index 31b61708..8a182393 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( GrantaServerApiDataApplicableDatum, ) # noqa: F401 @@ -76,13 +76,13 @@ def __init__( Parameters ---------- - value: str - datum_type: str - not_applicable: str + value: str + datum_type: str + not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type: str = None # type: ignore[assignment] - self._value: str = None # type: ignore[assignment] + self._datum_type: str + self._value: str self.datum_type = datum_type self.value = value @@ -107,8 +107,12 @@ def datum_type(self, datum_type: "str") -> None: datum_type: str The datum_type of this GrantaServerApiDataShortTextDatum. """ + # Field is not nullable if datum_type is None: raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") self._datum_type = datum_type @property @@ -131,12 +135,16 @@ def value(self, value: "str") -> None: value: str The value of this GrantaServerApiDataShortTextDatum. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -153,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py index 298180f4..fed5f798 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDataSignificantFiguresInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiDataSignificantFiguresInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,23 +69,25 @@ def __init__( *, entered_value: "float", significant_figures: "int", - entered_unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + entered_unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataSignificantFiguresInfo - a model defined in Swagger Parameters ---------- - entered_value: float - significant_figures: int - entered_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + entered_value: float + significant_figures: int + entered_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ - self._significant_figures: int = None # type: ignore[assignment] - self._entered_value: float = None # type: ignore[assignment] - self._entered_unit = None + self._significant_figures: int + self._entered_value: float + self._entered_unit: Union[ + GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type + ] = Unset self.significant_figures = significant_figures self.entered_value = entered_value - if entered_unit is not None: + if entered_unit is not Unset: self.entered_unit = entered_unit @property @@ -108,10 +110,16 @@ def significant_figures(self, significant_figures: "int") -> None: significant_figures: int The significant_figures of this GrantaServerApiDataSignificantFiguresInfo. """ + # Field is not nullable if significant_figures is None: raise ValueError( "Invalid value for 'significant_figures', must not be 'None'" ) + # Field is required + if significant_figures is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'significant_figures', must not be 'Unset'" + ) self._significant_figures = significant_figures @property @@ -134,36 +142,46 @@ def entered_value(self, entered_value: "float") -> None: entered_value: float The entered_value of this GrantaServerApiDataSignificantFiguresInfo. """ + # Field is not nullable if entered_value is None: raise ValueError("Invalid value for 'entered_value', must not be 'None'") + # Field is required + if entered_value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'entered_value', must not be 'Unset'") self._entered_value = entered_value @property - def entered_unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def entered_unit( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The entered_unit of this GrantaServerApiDataSignificantFiguresInfo. """ return self._entered_unit @entered_unit.setter def entered_unit( - self, entered_unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" + self, + entered_unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]", ) -> None: """Sets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. Parameters ---------- - entered_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + entered_unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The entered_unit of this GrantaServerApiDataSignificantFiguresInfo. """ + # Field is not nullable + if entered_unit is None: + raise ValueError("Invalid value for 'entered_unit', must not be 'None'") self._entered_unit = entered_unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +198,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py index eab4f344..b02981f5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiDiscreteValue(ModelBase): # type: ignore[misc] +class GrantaServerApiDiscreteValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,70 @@ class GrantaServerApiDiscreteValue(ModelBase): # type: ignore[misc] def __init__( self, *, - order: "Optional[int]" = None, - value: "Optional[str]" = None, + order: "Union[int, None, Unset_Type]" = Unset, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDiscreteValue - a model defined in Swagger Parameters ---------- - order: int, optional - value: str, optional + order: int, optional + value: str, optional """ - self._value = None - self._order = None + self._value: Union[str, None, Unset_Type] = Unset + self._order: Union[int, None, Unset_Type] = Unset - if value is not None: + if value is not Unset: self.value = value - if order is not None: + if order is not Unset: self.order = order @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiDiscreteValue. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiDiscreteValue. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiDiscreteValue. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiDiscreteValue. """ self._value = value @property - def order(self) -> "Optional[int]": + def order(self) -> "Union[int, None, Unset_Type]": """Gets the order of this GrantaServerApiDiscreteValue. Returns ------- - int + Union[int, None, Unset_Type] The order of this GrantaServerApiDiscreteValue. """ return self._order @order.setter - def order(self, order: "Optional[int]") -> None: + def order(self, order: "Union[int, None, Unset_Type]") -> None: """Sets the order of this GrantaServerApiDiscreteValue. Parameters ---------- - order: int + order: Union[int, None, Unset_Type] The order of this GrantaServerApiDiscreteValue. """ self._order = order @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py index 38e296f7..aa0aaddf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDataModificationDataModificationErrorDetail(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDataModificationDataModificationErrorDetail(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,9 +73,9 @@ def __init__( Parameters ---------- - message: str + message: str """ - self._message: str = None # type: ignore[assignment] + self._message: str self.message = message @@ -99,12 +99,16 @@ def message(self, message: "str") -> None: message: str The message of this GrantaServerApiExceptionsDataModificationDataModificationErrorDetail. """ + # 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 @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -126,7 +130,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py index 8d8b0b80..8ba24e7a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_data_modification_data_modification_error_detail import ( GrantaServerApiExceptionsDataModificationDataModificationErrorDetail, ) # noqa: F401 @@ -77,38 +77,42 @@ def __init__( *, message: "str", reason: "str" = "inUse", - referenced_by: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]" = None, - referenced_by_type: "Optional[GrantaServerApiExceptionsDataModificationReferencedByType]" = None, + referenced_by: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]" = Unset, + referenced_by_type: "Union[GrantaServerApiExceptionsDataModificationReferencedByType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail - a model defined in Swagger Parameters ---------- - message: str - reason: str - referenced_by: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional - referenced_by_type: GrantaServerApiExceptionsDataModificationReferencedByType, optional + message: str + reason: str + referenced_by: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional + referenced_by_type: GrantaServerApiExceptionsDataModificationReferencedByType, optional """ super().__init__(message=message) - self._referenced_by_type = None - self._referenced_by = None - self._reason: str = None # type: ignore[assignment] - - if referenced_by_type is not None: + self._referenced_by_type: Union[ + GrantaServerApiExceptionsDataModificationReferencedByType, Unset_Type + ] = Unset + self._referenced_by: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type + ] = Unset + self._reason: str + + if referenced_by_type is not Unset: self.referenced_by_type = referenced_by_type - if referenced_by is not None: + if referenced_by is not Unset: self.referenced_by = referenced_by self.reason = reason @property def referenced_by_type( self, - ) -> "Optional[GrantaServerApiExceptionsDataModificationReferencedByType]": + ) -> "Union[GrantaServerApiExceptionsDataModificationReferencedByType, Unset_Type]": """Gets the referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. Returns ------- - GrantaServerApiExceptionsDataModificationReferencedByType + Union[GrantaServerApiExceptionsDataModificationReferencedByType, Unset_Type] The referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. """ return self._referenced_by_type @@ -116,26 +120,31 @@ def referenced_by_type( @referenced_by_type.setter def referenced_by_type( self, - referenced_by_type: "Optional[GrantaServerApiExceptionsDataModificationReferencedByType]", + referenced_by_type: "Union[GrantaServerApiExceptionsDataModificationReferencedByType, Unset_Type]", ) -> None: """Sets the referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. Parameters ---------- - referenced_by_type: GrantaServerApiExceptionsDataModificationReferencedByType + referenced_by_type: Union[GrantaServerApiExceptionsDataModificationReferencedByType, Unset_Type] The referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. """ + # Field is not nullable + if referenced_by_type is None: + raise ValueError( + "Invalid value for 'referenced_by_type', must not be 'None'" + ) self._referenced_by_type = referenced_by_type @property def referenced_by( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]": """Gets the referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. """ return self._referenced_by @@ -143,13 +152,13 @@ def referenced_by( @referenced_by.setter def referenced_by( self, - referenced_by: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", + referenced_by: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]", ) -> None: """Sets the referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. Parameters ---------- - referenced_by: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + referenced_by: Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. """ self._referenced_by = referenced_by @@ -174,12 +183,16 @@ def reason(self, reason: "str") -> None: reason: str The reason of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -196,7 +209,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py index 96ea492e..5ee92f07 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDeletionAttributeDeletionException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDeletionAttributeDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +68,89 @@ class GrantaServerApiExceptionsDeletionAttributeDeletionException(ModelBase): # def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDeletionAttributeDeletionException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Returns ------- - list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. """ return self._errors @@ -151,19 +158,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Parameters ---------- - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py index fcd76c19..6f490826 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDeletionConstantDeletionException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDeletionConstantDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +68,89 @@ class GrantaServerApiExceptionsDeletionConstantDeletionException(ModelBase): # def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDeletionConstantDeletionException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns ------- - list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ return self._errors @@ -151,19 +158,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters ---------- - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py index 0dd6f047..bb38fdc6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +68,89 @@ class GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException(ModelBase): def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Returns ------- - list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. """ return self._errors @@ -151,19 +158,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Parameters ---------- - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py index 540fe190..63652882 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDeletionDiscreteValueDeletionException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDeletionDiscreteValueDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +68,89 @@ class GrantaServerApiExceptionsDeletionDiscreteValueDeletionException(ModelBase) def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDeletionDiscreteValueDeletionException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Returns ------- - list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. """ return self._errors @@ -151,19 +158,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Parameters ---------- - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py index d164aadc..ac1ab5b7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDeletionParameterDeletionException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDeletionParameterDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +68,89 @@ class GrantaServerApiExceptionsDeletionParameterDeletionException(ModelBase): # def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDeletionParameterDeletionException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsDeletionParameterDeletionException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionParameterDeletionException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionParameterDeletionException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionParameterDeletionException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsDeletionParameterDeletionException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionParameterDeletionException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionParameterDeletionException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionParameterDeletionException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. Returns ------- - list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. """ return self._errors @@ -151,19 +158,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. Parameters ---------- - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py index 4e9d8c07..91fb9d97 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDeletionParameterValueDeletionException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDeletionParameterValueDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +68,89 @@ class GrantaServerApiExceptionsDeletionParameterValueDeletionException(ModelBase def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDeletionParameterValueDeletionException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Returns ------- - list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. """ return self._errors @@ -151,19 +158,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Parameters ---------- - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py index c56e9872..a0801f92 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsDeletionTableDeletionException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsDeletionTableDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +68,89 @@ class GrantaServerApiExceptionsDeletionTableDeletionException(ModelBase): # typ def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsDeletionTableDeletionException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionTableDeletionException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsDeletionTableDeletionException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionTableDeletionException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsDeletionTableDeletionException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns ------- - list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionTableDeletionException. """ return self._errors @@ -151,19 +158,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters ---------- - errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: Union[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsDeletionTableDeletionException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py index 7f100191..68d0d103 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsErrorDetail(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsErrorDetail(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - message: str - reason: str + message: str + reason: str """ - self._message: str = None # type: ignore[assignment] - self._reason: str = None # type: ignore[assignment] + self._message: str + self._reason: str self.message = message self.reason = reason @@ -99,8 +99,12 @@ def message(self, message: "str") -> None: message: str The message of this GrantaServerApiExceptionsErrorDetail. """ + # 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 @@ -123,12 +127,16 @@ def reason(self, reason: "str") -> None: reason: str The reason of this GrantaServerApiExceptionsErrorDetail. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py index d65e09cb..62ca2105 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,99 +68,107 @@ class GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException(ModelBase def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type + ] = Unset - if message is not None: + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ + # 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) -> "Optional[List[GrantaServerApiExceptionsErrorDetail]]": + def errors( + self, + ) -> "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns ------- - list[GrantaServerApiExceptionsErrorDetail] + Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ return self._errors @errors.setter def errors( - self, errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" + self, + errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters ---------- - errors: List[GrantaServerApiExceptionsErrorDetail] + errors: Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -177,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py index 734bbc83..66ba2f8d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,99 +68,107 @@ class GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException(ModelBase def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type + ] = Unset - if message is not None: + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ + # 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) -> "Optional[List[GrantaServerApiExceptionsErrorDetail]]": + def errors( + self, + ) -> "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns ------- - list[GrantaServerApiExceptionsErrorDetail] + Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ return self._errors @errors.setter def errors( - self, errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" + self, + errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters ---------- - errors: List[GrantaServerApiExceptionsErrorDetail] + errors: Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -177,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py index 83a635c7..b3b0c950 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +70,89 @@ class GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlEx def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Returns ------- - list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ return self._errors @@ -151,19 +160,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. Parameters ---------- - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py index e4fe2ec4..26099269 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, ) # noqa: F401 @@ -75,11 +75,11 @@ def __init__( Parameters ---------- - message: str - reason: str + message: str + reason: str """ super().__init__(message=message) - self._reason: str = None # type: ignore[assignment] + self._reason: str self.reason = reason @@ -103,12 +103,16 @@ def reason(self, reason: "str") -> None: reason: str The reason of this GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -125,7 +129,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py index 832e6e0d..003cb213 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, ) # noqa: F401 @@ -74,46 +74,49 @@ def __init__( *, message: "str", reason: "str" = "invalidVersionState", - version_state: "Optional[GrantaServerApiVersionState]" = None, + version_state: "Union[GrantaServerApiVersionState, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail - a model defined in Swagger Parameters ---------- - message: str - reason: str - version_state: GrantaServerApiVersionState, optional + message: str + reason: str + version_state: GrantaServerApiVersionState, optional """ super().__init__(message=message) - self._version_state = None - self._reason: str = None # type: ignore[assignment] + self._version_state: Union[GrantaServerApiVersionState, Unset_Type] = Unset + self._reason: str - if version_state is not None: + if version_state is not Unset: self.version_state = version_state self.reason = reason @property - def version_state(self) -> "Optional[GrantaServerApiVersionState]": + def version_state(self) -> "Union[GrantaServerApiVersionState, Unset_Type]": """Gets the version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. Returns ------- - GrantaServerApiVersionState + Union[GrantaServerApiVersionState, Unset_Type] The version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. """ return self._version_state @version_state.setter def version_state( - self, version_state: "Optional[GrantaServerApiVersionState]" + self, version_state: "Union[GrantaServerApiVersionState, Unset_Type]" ) -> None: """Sets the version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. Parameters ---------- - version_state: GrantaServerApiVersionState + version_state: Union[GrantaServerApiVersionState, Unset_Type] The version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. """ + # Field is not nullable + if version_state is None: + raise ValueError("Invalid value for 'version_state', must not be 'None'") self._version_state = version_state @property @@ -136,12 +139,16 @@ def reason(self, reason: "str") -> None: reason: str The reason of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -158,7 +165,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py index eed40be7..8376e9a6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, ) # noqa: F401 @@ -73,34 +73,36 @@ def __init__( self, *, message: "str", - newer_version: "Optional[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]" = None, + newer_version: "Union[GrantaServerApiRecordsRecordVersionsSlimRecordVersion, Unset_Type]" = Unset, reason: "str" = "notTheLatestVersion", ) -> None: """GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail - a model defined in Swagger Parameters ---------- - message: str - newer_version: GrantaServerApiRecordsRecordVersionsSlimRecordVersion, optional - reason: str + message: str + newer_version: GrantaServerApiRecordsRecordVersionsSlimRecordVersion, optional + reason: str """ super().__init__(message=message) - self._newer_version = None - self._reason: str = None # type: ignore[assignment] + self._newer_version: Union[ + GrantaServerApiRecordsRecordVersionsSlimRecordVersion, Unset_Type + ] = Unset + self._reason: str - if newer_version is not None: + if newer_version is not Unset: self.newer_version = newer_version self.reason = reason @property def newer_version( self, - ) -> "Optional[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]": + ) -> "Union[GrantaServerApiRecordsRecordVersionsSlimRecordVersion, Unset_Type]": """Gets the newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. Returns ------- - GrantaServerApiRecordsRecordVersionsSlimRecordVersion + Union[GrantaServerApiRecordsRecordVersionsSlimRecordVersion, Unset_Type] The newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. """ return self._newer_version @@ -108,15 +110,18 @@ def newer_version( @newer_version.setter def newer_version( self, - newer_version: "Optional[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", + newer_version: "Union[GrantaServerApiRecordsRecordVersionsSlimRecordVersion, Unset_Type]", ) -> None: """Sets the newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. Parameters ---------- - newer_version: GrantaServerApiRecordsRecordVersionsSlimRecordVersion + newer_version: Union[GrantaServerApiRecordsRecordVersionsSlimRecordVersion, Unset_Type] The newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. """ + # Field is not nullable + if newer_version is None: + raise ValueError("Invalid value for 'newer_version', must not be 'None'") self._newer_version = newer_version @property @@ -139,12 +144,16 @@ def reason(self, reason: "str") -> None: reason: str The reason of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -161,7 +170,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py index 2338b65a..53516add 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, ) # noqa: F401 @@ -75,11 +75,11 @@ def __init__( Parameters ---------- - message: str - reason: str + message: str + reason: str """ super().__init__(message=message) - self._reason: str = None # type: ignore[assignment] + self._reason: str self.reason = reason @@ -103,12 +103,16 @@ def reason(self, reason: "str") -> None: reason: str The reason of this GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -125,7 +129,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py index 694c9f2d..b9ffcd14 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +70,89 @@ class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlExceptio def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Returns ------- - list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. """ return self._errors @@ -151,19 +160,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Parameters ---------- - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py index f3f0144f..a8dab7cb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +70,89 @@ class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Returns ------- - list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. """ return self._errors @@ -151,19 +160,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Parameters ---------- - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py index 1b3b460d..a0381fd2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiExceptionsVersionControlVersionControlErrorDetail(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsVersionControlVersionControlErrorDetail(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,9 +76,9 @@ def __init__( Parameters ---------- - message: str + message: str """ - self._message: str = None # type: ignore[assignment] + self._message: str self.message = message @@ -102,12 +102,16 @@ def message(self, message: "str") -> None: message: str The message of this GrantaServerApiExceptionsVersionControlVersionControlErrorDetail. """ + # 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 @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -129,7 +133,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py index c4ab0df0..f455d5da 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException(ModelBase): # type: ignore[misc] +class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,82 +70,89 @@ class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlExcepti def __init__( self, *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, - message: "Optional[str]" = None, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException - a model defined in Swagger Parameters ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional - message: str, optional + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional """ - self._message = None - self._code = None - self._errors = None - - if message is not None: + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[ + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], + None, + Unset_Type, + ] = Unset + + if message is not Unset: self.message = message - if code is not None: + if code is not Unset: self.code = code - if errors is not None: + if errors is not Unset: self.errors = errors @property - def message(self) -> "Optional[str]": + def message(self) -> "Union[str, None, Unset_Type]": """Gets the message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Returns ------- - str + Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. """ return self._message @message.setter - def message(self, message: "Optional[str]") -> None: + def message(self, message: "Union[str, None, Unset_Type]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Parameters ---------- - message: str + message: Union[str, None, Unset_Type] The message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. """ self._message = message @property - def code(self) -> "Optional[SystemNetHttpStatusCode]": + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": """Gets the code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Returns ------- - SystemNetHttpStatusCode + Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. """ return self._code @code.setter - def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Parameters ---------- - code: SystemNetHttpStatusCode + code: Union[SystemNetHttpStatusCode, Unset_Type] The code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. """ + # 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, - ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": + ) -> "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Returns ------- - list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. """ return self._errors @@ -151,19 +160,19 @@ def errors( @errors.setter def errors( self, - errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", + errors: "Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Parameters ---------- - errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: Union[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type] The errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -180,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py index 0a636c71..c1e5defa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( GrantaServerApiValueSpecifier, ) # noqa: F401 @@ -68,69 +68,73 @@ class GrantaServerApiExcludeValuesSpecifier(GrantaServerApiValueSpecifier): def __init__( self, *, - excluded_guids: "Optional[List[str]]" = None, - excluded_identities: "Optional[List[int]]" = None, + excluded_guids: "Union[List[str], None, Unset_Type]" = Unset, + excluded_identities: "Union[List[int], None, Unset_Type]" = Unset, filter_on: "str" = "exclude", ) -> None: """GrantaServerApiExcludeValuesSpecifier - a model defined in Swagger Parameters ---------- - excluded_guids: List[str], optional - excluded_identities: List[int], optional - filter_on: str + excluded_guids: List[str], optional + excluded_identities: List[int], optional + filter_on: str """ super().__init__() - self._excluded_identities = None - self._excluded_guids = None - self._filter_on: str = None # type: ignore[assignment] + self._excluded_identities: Union[List[int], None, Unset_Type] = Unset + self._excluded_guids: Union[List[str], None, Unset_Type] = Unset + self._filter_on: str - if excluded_identities is not None: + if excluded_identities is not Unset: self.excluded_identities = excluded_identities - if excluded_guids is not None: + if excluded_guids is not Unset: self.excluded_guids = excluded_guids self.filter_on = filter_on @property - def excluded_identities(self) -> "Optional[List[int]]": + def excluded_identities(self) -> "Union[List[int], None, Unset_Type]": """Gets the excluded_identities of this GrantaServerApiExcludeValuesSpecifier. Returns ------- - list[int] + Union[List[int], None, Unset_Type] The excluded_identities of this GrantaServerApiExcludeValuesSpecifier. """ return self._excluded_identities @excluded_identities.setter - def excluded_identities(self, excluded_identities: "Optional[List[int]]") -> None: + def excluded_identities( + self, excluded_identities: "Union[List[int], None, Unset_Type]" + ) -> None: """Sets the excluded_identities of this GrantaServerApiExcludeValuesSpecifier. Parameters ---------- - excluded_identities: List[int] + excluded_identities: Union[List[int], None, Unset_Type] The excluded_identities of this GrantaServerApiExcludeValuesSpecifier. """ self._excluded_identities = excluded_identities @property - def excluded_guids(self) -> "Optional[List[str]]": + def excluded_guids(self) -> "Union[List[str], None, Unset_Type]": """Gets the excluded_guids of this GrantaServerApiExcludeValuesSpecifier. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The excluded_guids of this GrantaServerApiExcludeValuesSpecifier. """ return self._excluded_guids @excluded_guids.setter - def excluded_guids(self, excluded_guids: "Optional[List[str]]") -> None: + def excluded_guids( + self, excluded_guids: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the excluded_guids of this GrantaServerApiExcludeValuesSpecifier. Parameters ---------- - excluded_guids: List[str] + excluded_guids: Union[List[str], None, Unset_Type] The excluded_guids of this GrantaServerApiExcludeValuesSpecifier. """ self._excluded_guids = excluded_guids @@ -155,12 +159,16 @@ def filter_on(self, filter_on: "str") -> None: filter_on: str The filter_on of this GrantaServerApiExcludeValuesSpecifier. """ + # Field is not nullable if filter_on is None: raise ValueError("Invalid value for 'filter_on', must not be 'None'") + # Field is required + if filter_on is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'filter_on', must not be 'Unset'") self._filter_on = filter_on @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -177,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py index 77920387..8c788167 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,73 +87,87 @@ class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): # type: ignore[mi def __init__( self, *, - default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" = None, - default_value_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]" = None, - identity: "Optional[int]" = None, - interpolation_method_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]" = None, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]" = None, - name: "Optional[str]" = None, - parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" = None, - scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" = None, - scale_type_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]" = None, - unit_symbol: "Optional[str]" = None, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" = Unset, + default_value_defined_at: "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]" = Unset, + identity: "Union[int, Unset_Type]" = Unset, + interpolation_method_defined_at: "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]" = Unset, + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" = Unset, + scale_type_defined_at: "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiFunctionalDatumParameterInfo - a model defined in Swagger Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue, optional - default_value_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt, optional - identity: int, optional - interpolation_method_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt, optional - interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional - name: str, optional - parameter_type: GrantaServerApiParameterInfoParameterType, optional - scale_type: GrantaServerApiParameterInfoScaleType, optional - scale_type_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt, optional - unit_symbol: str, optional + default_value: GrantaServerApiDataExportDatumsParameterValue, optional + default_value_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt, optional + identity: int, optional + interpolation_method_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt, optional + interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional + name: str, optional + parameter_type: GrantaServerApiParameterInfoParameterType, optional + scale_type: GrantaServerApiParameterInfoScaleType, optional + scale_type_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt, optional + unit_symbol: str, optional """ - self._scale_type_defined_at = None - self._interpolation_method_defined_at = None - self._default_value_defined_at = None - self._name = None - self._identity = None - self._unit_symbol = None - self._scale_type = None - self._interpolation_type = None - self._parameter_type = None - self._default_value = None - - if scale_type_defined_at is not None: + self._scale_type_defined_at: Union[ + GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type + ] = Unset + self._interpolation_method_defined_at: Union[ + GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type + ] = Unset + self._default_value_defined_at: Union[ + GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type + ] = Unset + self._name: Union[str, None, Unset_Type] = Unset + self._identity: Union[int, Unset_Type] = Unset + self._unit_symbol: Union[str, None, Unset_Type] = Unset + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( + Unset + ) + self._interpolation_type: Union[ + GrantaServerApiParameterInfoInterpolationType, Unset_Type + ] = Unset + self._parameter_type: Union[ + GrantaServerApiParameterInfoParameterType, Unset_Type + ] = Unset + self._default_value: Union[ + GrantaServerApiDataExportDatumsParameterValue, Unset_Type + ] = Unset + + if scale_type_defined_at is not Unset: self.scale_type_defined_at = scale_type_defined_at - if interpolation_method_defined_at is not None: + if interpolation_method_defined_at is not Unset: self.interpolation_method_defined_at = interpolation_method_defined_at - if default_value_defined_at is not None: + if default_value_defined_at is not Unset: self.default_value_defined_at = default_value_defined_at - if name is not None: + if name is not Unset: self.name = name - if identity is not None: + if identity is not Unset: self.identity = identity - if unit_symbol is not None: + if unit_symbol is not Unset: self.unit_symbol = unit_symbol - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type - if interpolation_type is not None: + if interpolation_type is not Unset: self.interpolation_type = interpolation_type - if parameter_type is not None: + if parameter_type is not Unset: self.parameter_type = parameter_type - if default_value is not None: + if default_value is not Unset: self.default_value = default_value @property def scale_type_defined_at( self, - ) -> "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]": + ) -> "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]": """Gets the scale_type_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - GrantaServerApiDataExportParameterSettingDefinedAt + Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type] The scale_type_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._scale_type_defined_at @@ -161,26 +175,31 @@ def scale_type_defined_at( @scale_type_defined_at.setter def scale_type_defined_at( self, - scale_type_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]", + scale_type_defined_at: "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]", ) -> None: """Sets the scale_type_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - scale_type_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt + scale_type_defined_at: Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type] The scale_type_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if scale_type_defined_at is None: + raise ValueError( + "Invalid value for 'scale_type_defined_at', must not be 'None'" + ) self._scale_type_defined_at = scale_type_defined_at @property def interpolation_method_defined_at( self, - ) -> "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]": + ) -> "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]": """Gets the interpolation_method_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - GrantaServerApiDataExportParameterSettingDefinedAt + Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type] The interpolation_method_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._interpolation_method_defined_at @@ -188,26 +207,31 @@ def interpolation_method_defined_at( @interpolation_method_defined_at.setter def interpolation_method_defined_at( self, - interpolation_method_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]", + interpolation_method_defined_at: "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]", ) -> None: """Sets the interpolation_method_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - interpolation_method_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt + interpolation_method_defined_at: Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type] The interpolation_method_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if interpolation_method_defined_at is None: + raise ValueError( + "Invalid value for 'interpolation_method_defined_at', must not be 'None'" + ) self._interpolation_method_defined_at = interpolation_method_defined_at @property def default_value_defined_at( self, - ) -> "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]": + ) -> "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]": """Gets the default_value_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - GrantaServerApiDataExportParameterSettingDefinedAt + Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type] The default_value_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._default_value_defined_at @@ -215,116 +239,127 @@ def default_value_defined_at( @default_value_defined_at.setter def default_value_defined_at( self, - default_value_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]", + default_value_defined_at: "Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type]", ) -> None: """Sets the default_value_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - default_value_defined_at: GrantaServerApiDataExportParameterSettingDefinedAt + default_value_defined_at: Union[GrantaServerApiDataExportParameterSettingDefinedAt, Unset_Type] The default_value_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if default_value_defined_at is None: + raise ValueError( + "Invalid value for 'default_value_defined_at', must not be 'None'" + ) self._default_value_defined_at = default_value_defined_at @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiFunctionalDatumParameterInfo. """ self._name = name @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, Unset_Type]": """Gets the identity of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - int + Union[int, Unset_Type] The identity of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - identity: int + identity: Union[int, Unset_Type] The identity of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if identity is None: + raise ValueError("Invalid value for 'identity', must not be 'None'") self._identity = identity @property - def unit_symbol(self) -> "Optional[str]": + def unit_symbol(self) -> "Union[str, None, Unset_Type]": """Gets the unit_symbol of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "Optional[str]") -> None: + def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: """Sets the unit_symbol of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - unit_symbol: str + unit_symbol: Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiFunctionalDatumParameterInfo. """ self._unit_symbol = unit_symbol @property - def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": + def scale_type(self) -> "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - GrantaServerApiParameterInfoScaleType + Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + self, scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - scale_type: GrantaServerApiParameterInfoScaleType + scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @property def interpolation_type( self, - ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": + ) -> "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]": """Gets the interpolation_type of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - GrantaServerApiParameterInfoInterpolationType + Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._interpolation_type @@ -332,69 +367,84 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( self, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", ) -> None: """Sets the interpolation_type of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - interpolation_type: GrantaServerApiParameterInfoInterpolationType + interpolation_type: Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if interpolation_type is None: + raise ValueError( + "Invalid value for 'interpolation_type', must not be 'None'" + ) self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": + def parameter_type( + self, + ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - GrantaServerApiParameterInfoParameterType + Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._parameter_type @parameter_type.setter def parameter_type( - self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" + self, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", ) -> None: """Sets the parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - parameter_type: GrantaServerApiParameterInfoParameterType + parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if parameter_type is None: + raise ValueError("Invalid value for 'parameter_type', must not be 'None'") self._parameter_type = parameter_type @property def default_value( self, - ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": + ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiFunctionalDatumParameterInfo. Returns ------- - GrantaServerApiDataExportDatumsParameterValue + Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiFunctionalDatumParameterInfo. """ return self._default_value @default_value.setter def default_value( - self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" + self, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", ) -> None: """Sets the default_value of this GrantaServerApiFunctionalDatumParameterInfo. Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue + default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiFunctionalDatumParameterInfo. """ + # Field is not nullable + if default_value is None: + raise ValueError("Invalid value for 'default_value', must not be 'None'") self._default_value = default_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -411,7 +461,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py index 94d45e9e..76d32225 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIndexRecordFailure(ModelBase): # type: ignore[misc] +class GrantaServerApiIndexRecordFailure(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,128 +67,142 @@ class GrantaServerApiIndexRecordFailure(ModelBase): # type: ignore[misc] def __init__( self, *, - error: "Optional[str]" = None, - record_history_identity: "Optional[int]" = None, - record_name: "Optional[str]" = None, - record_was_oversized: "Optional[bool]" = None, + error: "Union[str, None, Unset_Type]" = Unset, + record_history_identity: "Union[int, Unset_Type]" = Unset, + record_name: "Union[str, None, Unset_Type]" = Unset, + record_was_oversized: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIndexRecordFailure - a model defined in Swagger Parameters ---------- - error: str, optional - record_history_identity: int, optional - record_name: str, optional - record_was_oversized: bool, optional + error: str, optional + record_history_identity: int, optional + record_name: str, optional + record_was_oversized: bool, optional """ - self._record_history_identity = None - self._record_name = None - self._error = None - self._record_was_oversized = None + self._record_history_identity: Union[int, 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 None: + if record_history_identity is not Unset: self.record_history_identity = record_history_identity - if record_name is not None: + if record_name is not Unset: self.record_name = record_name - if error is not None: + if error is not Unset: self.error = error - if record_was_oversized is not None: + if record_was_oversized is not Unset: self.record_was_oversized = record_was_oversized @property - def record_history_identity(self) -> "Optional[int]": + def record_history_identity(self) -> "Union[int, Unset_Type]": """Gets the record_history_identity of this GrantaServerApiIndexRecordFailure. Returns ------- - int + Union[int, Unset_Type] The record_history_identity of this GrantaServerApiIndexRecordFailure. """ return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "Optional[int]") -> None: + def record_history_identity( + self, record_history_identity: "Union[int, Unset_Type]" + ) -> None: """Sets the record_history_identity of this GrantaServerApiIndexRecordFailure. Parameters ---------- - record_history_identity: int + record_history_identity: Union[int, Unset_Type] The record_history_identity of this GrantaServerApiIndexRecordFailure. """ + # 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 @property - def record_name(self) -> "Optional[str]": + def record_name(self) -> "Union[str, None, Unset_Type]": """Gets the record_name of this GrantaServerApiIndexRecordFailure. Returns ------- - str + Union[str, None, Unset_Type] The record_name of this GrantaServerApiIndexRecordFailure. """ return self._record_name @record_name.setter - def record_name(self, record_name: "Optional[str]") -> None: + def record_name(self, record_name: "Union[str, None, Unset_Type]") -> None: """Sets the record_name of this GrantaServerApiIndexRecordFailure. Parameters ---------- - record_name: str + record_name: Union[str, None, Unset_Type] The record_name of this GrantaServerApiIndexRecordFailure. """ self._record_name = record_name @property - def error(self) -> "Optional[str]": + def error(self) -> "Union[str, None, Unset_Type]": """Gets the error of this GrantaServerApiIndexRecordFailure. This is the error message from the indexing exception. It may have been returned directly from Elasticsearch. Returns ------- - str + Union[str, None, Unset_Type] The error of this GrantaServerApiIndexRecordFailure. """ return self._error @error.setter - def error(self, error: "Optional[str]") -> None: + def error(self, error: "Union[str, None, Unset_Type]") -> None: """Sets the error of this GrantaServerApiIndexRecordFailure. This is the error message from the indexing exception. It may have been returned directly from Elasticsearch. Parameters ---------- - error: str + error: Union[str, None, Unset_Type] The error of this GrantaServerApiIndexRecordFailure. """ self._error = error @property - def record_was_oversized(self) -> "Optional[bool]": + def record_was_oversized(self) -> "Union[bool, Unset_Type]": """Gets the record_was_oversized of this GrantaServerApiIndexRecordFailure. Records that contain a large amount of data are intentionally not sent to the index. This size limit is configurable through MIServer.exe.config Returns ------- - bool + Union[bool, Unset_Type] The record_was_oversized of this GrantaServerApiIndexRecordFailure. """ return self._record_was_oversized @record_was_oversized.setter - def record_was_oversized(self, record_was_oversized: "Optional[bool]") -> None: + def record_was_oversized( + self, record_was_oversized: "Union[bool, Unset_Type]" + ) -> None: """Sets the record_was_oversized of this GrantaServerApiIndexRecordFailure. Records that contain a large amount of data are intentionally not sent to the index. This size limit is configurable through MIServer.exe.config Parameters ---------- - record_was_oversized: bool + record_was_oversized: Union[bool, Unset_Type] The record_was_oversized of this GrantaServerApiIndexRecordFailure. """ + # Field is not nullable + if record_was_oversized is None: + raise ValueError( + "Invalid value for 'record_was_oversized', must not be 'None'" + ) self._record_was_oversized = record_was_oversized @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -205,7 +219,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py index 79483f29..fcb36849 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationDataExportIntegrationDataExportRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationDataExportIntegrationDataExportRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,11 +72,13 @@ def __init__( Parameters ---------- - attribute_identities: List[int] - record_references: List[GrantaServerApiIntegrationDataExportRecordReference] + attribute_identities: List[int] + record_references: List[GrantaServerApiIntegrationDataExportRecordReference] """ - self._record_references: List[GrantaServerApiIntegrationDataExportRecordReference] = None # type: ignore[assignment] - self._attribute_identities: List[int] = None # type: ignore[assignment] + self._record_references: List[ + GrantaServerApiIntegrationDataExportRecordReference + ] + self._attribute_identities: List[int] self.record_references = record_references self.attribute_identities = attribute_identities @@ -90,7 +92,7 @@ def record_references( Returns ------- - list[GrantaServerApiIntegrationDataExportRecordReference] + List[GrantaServerApiIntegrationDataExportRecordReference] The record_references of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. """ return self._record_references @@ -108,10 +110,16 @@ def record_references( record_references: List[GrantaServerApiIntegrationDataExportRecordReference] The record_references of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. """ + # Field is not nullable if record_references is None: raise ValueError( "Invalid value for 'record_references', must not be 'None'" ) + # Field is required + if record_references is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'record_references', must not be 'Unset'" + ) self._record_references = record_references @property @@ -121,7 +129,7 @@ def attribute_identities(self) -> "List[int]": Returns ------- - list[int] + List[int] The attribute_identities of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. """ return self._attribute_identities @@ -136,14 +144,20 @@ def attribute_identities(self, attribute_identities: "List[int]") -> None: attribute_identities: List[int] The attribute_identities of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. """ + # Field is not nullable if attribute_identities is None: raise ValueError( "Invalid value for 'attribute_identities', must not be 'None'" ) + # Field is required + if attribute_identities is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_identities', must not be 'Unset'" + ) self._attribute_identities = attribute_identities @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -160,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py index ad5d353e..01daf18c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationDataExportRecordReference(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationDataExportRecordReference(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,77 @@ class GrantaServerApiIntegrationDataExportRecordReference(ModelBase): # type: i def __init__( self, *, - database_key: "Optional[str]" = None, - record_history_identity: "Optional[int]" = None, + database_key: "Union[str, None, Unset_Type]" = Unset, + record_history_identity: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationDataExportRecordReference - a model defined in Swagger Parameters ---------- - database_key: str, optional - record_history_identity: int, optional + database_key: str, optional + record_history_identity: int, optional """ - self._record_history_identity = None - self._database_key = None + self._record_history_identity: Union[int, Unset_Type] = Unset + self._database_key: Union[str, None, Unset_Type] = Unset - if record_history_identity is not None: + if record_history_identity is not Unset: self.record_history_identity = record_history_identity - if database_key is not None: + if database_key is not Unset: self.database_key = database_key @property - def record_history_identity(self) -> "Optional[int]": + def record_history_identity(self) -> "Union[int, Unset_Type]": """Gets the record_history_identity of this GrantaServerApiIntegrationDataExportRecordReference. Returns ------- - int + Union[int, Unset_Type] The record_history_identity of this GrantaServerApiIntegrationDataExportRecordReference. """ return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "Optional[int]") -> None: + def record_history_identity( + self, record_history_identity: "Union[int, Unset_Type]" + ) -> None: """Sets the record_history_identity of this GrantaServerApiIntegrationDataExportRecordReference. Parameters ---------- - record_history_identity: int + record_history_identity: Union[int, Unset_Type] The record_history_identity of this GrantaServerApiIntegrationDataExportRecordReference. """ + # 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 @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiIntegrationDataExportRecordReference. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiIntegrationDataExportRecordReference. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiIntegrationDataExportRecordReference. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiIntegrationDataExportRecordReference. """ self._database_key = database_key @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py index 251bd4e4..f42f66fa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -91,176 +91,188 @@ class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): # type: ign def __init__( self, *, - disk_status: "Optional[GrantaServerApiDiskStatus]" = None, - disk_threshold: "Optional[str]" = None, - errored_databases: "Optional[Dict[str, str]]" = None, - loaded_database_index_statuses: "Optional[Dict[str, GrantaServerApiSearchIndexStatus]]" = None, - loaded_databases: "Optional[List[str]]" = None, - loading_databases: "Optional[List[str]]" = None, - not_loaded_databases: "Optional[List[str]]" = None, - records_that_failed_to_index: "Optional[List[GrantaServerApiIndexRecordFailure]]" = None, - search_index_in_sync: "Optional[bool]" = None, - search_index_is_read_only: "Optional[bool]" = None, - search_index_location: "Optional[str]" = None, - search_index_out_of_date_duration: "Optional[str]" = None, - search_index_unavailable: "Optional[bool]" = None, - search_index_up_to_date: "Optional[bool]" = None, + disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]" = Unset, + disk_threshold: "Union[str, None, Unset_Type]" = Unset, + errored_databases: "Union[Dict[str, str], None, Unset_Type]" = Unset, + loaded_database_index_statuses: "Union[Dict[str, GrantaServerApiSearchIndexStatus], None, Unset_Type]" = Unset, + loaded_databases: "Union[List[str], None, Unset_Type]" = Unset, + loading_databases: "Union[List[str], None, Unset_Type]" = Unset, + not_loaded_databases: "Union[List[str], None, Unset_Type]" = Unset, + records_that_failed_to_index: "Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type]" = Unset, + search_index_in_sync: "Union[bool, Unset_Type]" = Unset, + search_index_is_read_only: "Union[bool, None, Unset_Type]" = Unset, + search_index_location: "Union[str, None, Unset_Type]" = Unset, + search_index_out_of_date_duration: "Union[str, None, Unset_Type]" = Unset, + search_index_unavailable: "Union[bool, None, Unset_Type]" = Unset, + search_index_up_to_date: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationIntegrationSchemaStatus - a model defined in Swagger Parameters ---------- - disk_status: GrantaServerApiDiskStatus, optional - disk_threshold: str, optional - errored_databases: Dict[str, str], optional - loaded_database_index_statuses: Dict[str, GrantaServerApiSearchIndexStatus], optional - loaded_databases: List[str], optional - loading_databases: List[str], optional - not_loaded_databases: List[str], optional - records_that_failed_to_index: List[GrantaServerApiIndexRecordFailure], optional - search_index_in_sync: bool, optional - search_index_is_read_only: bool, optional - search_index_location: str, optional - search_index_out_of_date_duration: str, optional - search_index_unavailable: bool, optional - search_index_up_to_date: bool, optional + disk_status: GrantaServerApiDiskStatus, optional + disk_threshold: str, optional + errored_databases: Dict[str, str], optional + loaded_database_index_statuses: Dict[str, GrantaServerApiSearchIndexStatus], optional + loaded_databases: List[str], optional + loading_databases: List[str], optional + not_loaded_databases: List[str], optional + records_that_failed_to_index: List[GrantaServerApiIndexRecordFailure], optional + search_index_in_sync: bool, optional + search_index_is_read_only: bool, optional + search_index_location: str, optional + search_index_out_of_date_duration: str, optional + search_index_unavailable: bool, optional + search_index_up_to_date: bool, optional """ - self._loaded_databases = None - self._loading_databases = None - self._not_loaded_databases = None - self._errored_databases = None - self._loaded_database_index_statuses = None - self._search_index_up_to_date = None - self._search_index_out_of_date_duration = None - self._search_index_in_sync = None - self._search_index_location = None - self._search_index_is_read_only = None - self._disk_status = None - self._disk_threshold = None - self._search_index_unavailable = None - self._records_that_failed_to_index = None - - if loaded_databases is not None: + self._loaded_databases: Union[List[str], None, Unset_Type] = Unset + self._loading_databases: Union[List[str], None, Unset_Type] = Unset + self._not_loaded_databases: Union[List[str], None, Unset_Type] = Unset + self._errored_databases: Union[Dict[str, str], None, Unset_Type] = Unset + self._loaded_database_index_statuses: Union[ + Dict[str, GrantaServerApiSearchIndexStatus], None, Unset_Type + ] = Unset + self._search_index_up_to_date: Union[bool, Unset_Type] = Unset + self._search_index_out_of_date_duration: Union[str, None, Unset_Type] = Unset + self._search_index_in_sync: Union[bool, Unset_Type] = Unset + self._search_index_location: Union[str, None, Unset_Type] = Unset + self._search_index_is_read_only: Union[bool, None, Unset_Type] = Unset + self._disk_status: Union[GrantaServerApiDiskStatus, Unset_Type] = Unset + self._disk_threshold: Union[str, None, Unset_Type] = Unset + self._search_index_unavailable: Union[bool, None, Unset_Type] = Unset + self._records_that_failed_to_index: Union[ + List[GrantaServerApiIndexRecordFailure], None, Unset_Type + ] = Unset + + if loaded_databases is not Unset: self.loaded_databases = loaded_databases - if loading_databases is not None: + if loading_databases is not Unset: self.loading_databases = loading_databases - if not_loaded_databases is not None: + if not_loaded_databases is not Unset: self.not_loaded_databases = not_loaded_databases - if errored_databases is not None: + if errored_databases is not Unset: self.errored_databases = errored_databases - if loaded_database_index_statuses is not None: + if loaded_database_index_statuses is not Unset: self.loaded_database_index_statuses = loaded_database_index_statuses - if search_index_up_to_date is not None: + if search_index_up_to_date is not Unset: self.search_index_up_to_date = search_index_up_to_date - if search_index_out_of_date_duration is not None: + if search_index_out_of_date_duration is not Unset: self.search_index_out_of_date_duration = search_index_out_of_date_duration - if search_index_in_sync is not None: + if search_index_in_sync is not Unset: self.search_index_in_sync = search_index_in_sync - if search_index_location is not None: + if search_index_location is not Unset: self.search_index_location = search_index_location - if search_index_is_read_only is not None: + if search_index_is_read_only is not Unset: self.search_index_is_read_only = search_index_is_read_only - if disk_status is not None: + if disk_status is not Unset: self.disk_status = disk_status - if disk_threshold is not None: + if disk_threshold is not Unset: self.disk_threshold = disk_threshold - if search_index_unavailable is not None: + if search_index_unavailable is not Unset: self.search_index_unavailable = search_index_unavailable - if records_that_failed_to_index is not None: + if records_that_failed_to_index is not Unset: self.records_that_failed_to_index = records_that_failed_to_index @property - def loaded_databases(self) -> "Optional[List[str]]": + def loaded_databases(self) -> "Union[List[str], None, Unset_Type]": """Gets the loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Loaded databases have been successfully indexed into the integration schema. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._loaded_databases @loaded_databases.setter - def loaded_databases(self, loaded_databases: "Optional[List[str]]") -> None: + def loaded_databases( + self, loaded_databases: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Loaded databases have been successfully indexed into the integration schema. Parameters ---------- - loaded_databases: List[str] + loaded_databases: Union[List[str], None, Unset_Type] The loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._loaded_databases = loaded_databases @property - def loading_databases(self) -> "Optional[List[str]]": + def loading_databases(self) -> "Union[List[str], None, Unset_Type]": """Gets the loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases which are in the process of loading. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._loading_databases @loading_databases.setter - def loading_databases(self, loading_databases: "Optional[List[str]]") -> None: + def loading_databases( + self, loading_databases: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases which are in the process of loading. Parameters ---------- - loading_databases: List[str] + loading_databases: Union[List[str], None, Unset_Type] The loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._loading_databases = loading_databases @property - def not_loaded_databases(self) -> "Optional[List[str]]": + def not_loaded_databases(self) -> "Union[List[str], None, Unset_Type]": """Gets the not_loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases that are referenced in the schema but that are not yet loaded. This could be because they are still queued for load in the MI system, or because they have not yet been added. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The not_loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._not_loaded_databases @not_loaded_databases.setter - def not_loaded_databases(self, not_loaded_databases: "Optional[List[str]]") -> None: + def not_loaded_databases( + self, not_loaded_databases: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the not_loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases that are referenced in the schema but that are not yet loaded. This could be because they are still queued for load in the MI system, or because they have not yet been added. Parameters ---------- - not_loaded_databases: List[str] + not_loaded_databases: Union[List[str], None, Unset_Type] The not_loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._not_loaded_databases = not_loaded_databases @property - def errored_databases(self) -> "Optional[Dict[str, str]]": + def errored_databases(self) -> "Union[Dict[str, str], None, Unset_Type]": """Gets the errored_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases that encountered an error while loading. These databases will not be available for searches. Returns ------- - dict(str, str) + Union[Dict[str, str], None, Unset_Type] The errored_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._errored_databases @errored_databases.setter - def errored_databases(self, errored_databases: "Optional[Dict[str, str]]") -> None: + def errored_databases( + self, errored_databases: "Union[Dict[str, str], None, Unset_Type]" + ) -> None: """Sets the errored_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases that encountered an error while loading. These databases will not be available for searches. Parameters ---------- - errored_databases: Dict[str, str] + errored_databases: Union[Dict[str, str], None, Unset_Type] The errored_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._errored_databases = errored_databases @@ -268,13 +280,13 @@ def errored_databases(self, errored_databases: "Optional[Dict[str, str]]") -> No @property def loaded_database_index_statuses( self, - ) -> "Optional[Dict[str, GrantaServerApiSearchIndexStatus]]": + ) -> "Union[Dict[str, GrantaServerApiSearchIndexStatus], None, Unset_Type]": """Gets the loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. Index information about all loaded databases, including the out of sync status. Returns ------- - dict(str, GrantaServerApiSearchIndexStatus) + Union[Dict[str, GrantaServerApiSearchIndexStatus], None, Unset_Type] The loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._loaded_database_index_statuses @@ -282,212 +294,231 @@ def loaded_database_index_statuses( @loaded_database_index_statuses.setter def loaded_database_index_statuses( self, - loaded_database_index_statuses: "Optional[Dict[str, GrantaServerApiSearchIndexStatus]]", + loaded_database_index_statuses: "Union[Dict[str, GrantaServerApiSearchIndexStatus], None, Unset_Type]", ) -> None: """Sets the loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. Index information about all loaded databases, including the out of sync status. Parameters ---------- - loaded_database_index_statuses: Dict[str, GrantaServerApiSearchIndexStatus] + loaded_database_index_statuses: Union[Dict[str, GrantaServerApiSearchIndexStatus], None, Unset_Type] The loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._loaded_database_index_statuses = loaded_database_index_statuses @property - def search_index_up_to_date(self) -> "Optional[bool]": + def search_index_up_to_date(self) -> "Union[bool, Unset_Type]": """Gets the search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed Returns ------- - bool + Union[bool, Unset_Type] The search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._search_index_up_to_date @search_index_up_to_date.setter def search_index_up_to_date( - self, search_index_up_to_date: "Optional[bool]" + self, search_index_up_to_date: "Union[bool, Unset_Type]" ) -> None: """Sets the search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed Parameters ---------- - search_index_up_to_date: bool + search_index_up_to_date: Union[bool, Unset_Type] The search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ + # Field is not nullable + if search_index_up_to_date is None: + raise ValueError( + "Invalid value for 'search_index_up_to_date', must not be 'None'" + ) self._search_index_up_to_date = search_index_up_to_date @property - def search_index_out_of_date_duration(self) -> "Optional[str]": + def search_index_out_of_date_duration(self) -> "Union[str, None, Unset_Type]": """Gets the search_index_out_of_date_duration of this GrantaServerApiIntegrationIntegrationSchemaStatus. How long has the index been out of date. Specifically the duration between the first non-indexed revision and the current time. Returns ------- - str + Union[str, None, Unset_Type] The search_index_out_of_date_duration of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._search_index_out_of_date_duration @search_index_out_of_date_duration.setter def search_index_out_of_date_duration( - self, search_index_out_of_date_duration: "Optional[str]" + self, search_index_out_of_date_duration: "Union[str, None, Unset_Type]" ) -> None: """Sets the search_index_out_of_date_duration of this GrantaServerApiIntegrationIntegrationSchemaStatus. How long has the index been out of date. Specifically the duration between the first non-indexed revision and the current time. Parameters ---------- - search_index_out_of_date_duration: str + search_index_out_of_date_duration: Union[str, None, Unset_Type] The search_index_out_of_date_duration of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._search_index_out_of_date_duration = search_index_out_of_date_duration @property - def search_index_in_sync(self) -> "Optional[bool]": + def search_index_in_sync(self) -> "Union[bool, Unset_Type]": """Gets the search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) Returns ------- - bool + Union[bool, Unset_Type] The search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._search_index_in_sync @search_index_in_sync.setter - def search_index_in_sync(self, search_index_in_sync: "Optional[bool]") -> None: + def search_index_in_sync( + self, search_index_in_sync: "Union[bool, Unset_Type]" + ) -> None: """Sets the search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) Parameters ---------- - search_index_in_sync: bool + search_index_in_sync: Union[bool, Unset_Type] The search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ + # Field is not nullable + if search_index_in_sync is None: + raise ValueError( + "Invalid value for 'search_index_in_sync', must not be 'None'" + ) self._search_index_in_sync = search_index_in_sync @property - def search_index_location(self) -> "Optional[str]": + def search_index_location(self) -> "Union[str, None, Unset_Type]": """Gets the search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. The location of the index. Returns ------- - str + Union[str, None, Unset_Type] The search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._search_index_location @search_index_location.setter - def search_index_location(self, search_index_location: "Optional[str]") -> None: + def search_index_location( + self, search_index_location: "Union[str, None, Unset_Type]" + ) -> None: """Sets the search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. The location of the index. Parameters ---------- - search_index_location: str + search_index_location: Union[str, None, Unset_Type] The search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._search_index_location = search_index_location @property - def search_index_is_read_only(self) -> "Optional[bool]": + def search_index_is_read_only(self) -> "Union[bool, None, Unset_Type]": """Gets the search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index is read only. Returns ------- - bool + Union[bool, None, Unset_Type] The search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._search_index_is_read_only @search_index_is_read_only.setter def search_index_is_read_only( - self, search_index_is_read_only: "Optional[bool]" + self, search_index_is_read_only: "Union[bool, None, Unset_Type]" ) -> None: """Sets the search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index is read only. Parameters ---------- - search_index_is_read_only: bool + search_index_is_read_only: Union[bool, None, Unset_Type] The search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._search_index_is_read_only = search_index_is_read_only @property - def disk_status(self) -> "Optional[GrantaServerApiDiskStatus]": + def disk_status(self) -> "Union[GrantaServerApiDiskStatus, Unset_Type]": """Gets the disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. Returns ------- - GrantaServerApiDiskStatus + Union[GrantaServerApiDiskStatus, Unset_Type] The disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._disk_status @disk_status.setter - def disk_status(self, disk_status: "Optional[GrantaServerApiDiskStatus]") -> None: + def disk_status( + self, disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]" + ) -> None: """Sets the disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. Parameters ---------- - disk_status: GrantaServerApiDiskStatus + disk_status: Union[GrantaServerApiDiskStatus, Unset_Type] The disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ + # Field is not nullable + if disk_status is None: + raise ValueError("Invalid value for 'disk_status', must not be 'None'") self._disk_status = disk_status @property - def disk_threshold(self) -> "Optional[str]": + def disk_threshold(self) -> "Union[str, None, Unset_Type]": """Gets the disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. The 'flood stage' threshold from Elasticsearch. Returns ------- - str + Union[str, None, Unset_Type] The disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._disk_threshold @disk_threshold.setter - def disk_threshold(self, disk_threshold: "Optional[str]") -> None: + def disk_threshold(self, disk_threshold: "Union[str, None, Unset_Type]") -> None: """Sets the disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. The 'flood stage' threshold from Elasticsearch. Parameters ---------- - disk_threshold: str + disk_threshold: Union[str, None, Unset_Type] The disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._disk_threshold = disk_threshold @property - def search_index_unavailable(self) -> "Optional[bool]": + def search_index_unavailable(self) -> "Union[bool, None, Unset_Type]": """Gets the search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index could not be contacted. Returns ------- - bool + Union[bool, None, Unset_Type] The search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._search_index_unavailable @search_index_unavailable.setter def search_index_unavailable( - self, search_index_unavailable: "Optional[bool]" + self, search_index_unavailable: "Union[bool, None, Unset_Type]" ) -> None: """Sets the search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index could not be contacted. Parameters ---------- - search_index_unavailable: bool + search_index_unavailable: Union[bool, None, Unset_Type] The search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._search_index_unavailable = search_index_unavailable @@ -495,13 +526,13 @@ def search_index_unavailable( @property def records_that_failed_to_index( self, - ) -> "Optional[List[GrantaServerApiIndexRecordFailure]]": + ) -> "Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type]": """Gets the records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. Details of any records that failed to index. Returns ------- - list[GrantaServerApiIndexRecordFailure] + Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type] The records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ return self._records_that_failed_to_index @@ -509,20 +540,20 @@ def records_that_failed_to_index( @records_that_failed_to_index.setter def records_that_failed_to_index( self, - records_that_failed_to_index: "Optional[List[GrantaServerApiIndexRecordFailure]]", + records_that_failed_to_index: "Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type]", ) -> None: """Sets the records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. Details of any records that failed to index. Parameters ---------- - records_that_failed_to_index: List[GrantaServerApiIndexRecordFailure] + records_that_failed_to_index: Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type] The records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._records_that_failed_to_index = records_that_failed_to_index @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -539,7 +570,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py index fd15a24d..1f58bcf3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaAttribute(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaAttribute(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -91,141 +91,150 @@ def __init__( self, *, type: "GrantaServerApiAttributeType", - discrete_type_guid: "Optional[str]" = None, - discrete_type_identity: "Optional[int]" = None, - graph_type: "Optional[str]" = None, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - is_unitted: "Optional[bool]" = None, - name: "Optional[str]" = None, - parameters: "Optional[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo]]" = None, - target_database: "Optional[GrantaServerApiObjectIdentifier]" = None, - target_table: "Optional[GrantaServerApiObjectIdentifier]" = None, - unit_symbol: "Optional[str]" = None, - x_axis_parameter: "Optional[str]" = None, + discrete_type_guid: "Union[str, None, Unset_Type]" = Unset, + discrete_type_identity: "Union[int, None, Unset_Type]" = Unset, + graph_type: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, Unset_Type]" = Unset, + is_unitted: "Union[bool, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + parameters: "Union[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], None, Unset_Type]" = Unset, + target_database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + target_table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, + x_axis_parameter: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaAttribute - a model defined in Swagger Parameters ---------- - type: GrantaServerApiAttributeType - discrete_type_guid: str, optional - discrete_type_identity: int, optional - graph_type: str, optional - guid: str, optional - identity: int, optional - is_unitted: bool, optional - name: str, optional - parameters: List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], optional - target_database: GrantaServerApiObjectIdentifier, optional - target_table: GrantaServerApiObjectIdentifier, optional - unit_symbol: str, optional - x_axis_parameter: str, optional + type: GrantaServerApiAttributeType + discrete_type_guid: str, optional + discrete_type_identity: int, optional + graph_type: str, optional + guid: str, optional + identity: int, optional + is_unitted: bool, optional + name: str, optional + parameters: List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], optional + target_database: GrantaServerApiObjectIdentifier, optional + target_table: GrantaServerApiObjectIdentifier, optional + unit_symbol: str, optional + x_axis_parameter: str, optional """ - self._name = None - self._identity = None - self._guid = None - self._type: GrantaServerApiAttributeType = None # type: ignore[assignment] - self._unit_symbol = None - self._is_unitted = None - self._discrete_type_identity = None - self._discrete_type_guid = None - self._parameters = None - self._target_database = None - self._target_table = None - self._graph_type = None - self._x_axis_parameter = None - - if name is not None: + self._name: Union[str, None, Unset_Type] = Unset + self._identity: Union[int, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._type: GrantaServerApiAttributeType + self._unit_symbol: Union[str, None, Unset_Type] = Unset + self._is_unitted: Union[bool, None, Unset_Type] = Unset + self._discrete_type_identity: Union[int, None, Unset_Type] = Unset + self._discrete_type_guid: Union[str, None, Unset_Type] = Unset + self._parameters: Union[ + List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], + None, + Unset_Type, + ] = Unset + self._target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = ( + Unset + ) + self._target_table: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._graph_type: Union[str, None, Unset_Type] = Unset + self._x_axis_parameter: Union[str, None, Unset_Type] = Unset + + if name is not Unset: self.name = name - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid self.type = type - if unit_symbol is not None: + if unit_symbol is not Unset: self.unit_symbol = unit_symbol - if is_unitted is not None: + if is_unitted is not Unset: self.is_unitted = is_unitted - if discrete_type_identity is not None: + if discrete_type_identity is not Unset: self.discrete_type_identity = discrete_type_identity - if discrete_type_guid is not None: + if discrete_type_guid is not Unset: self.discrete_type_guid = discrete_type_guid - if parameters is not None: + if parameters is not Unset: self.parameters = parameters - if target_database is not None: + if target_database is not Unset: self.target_database = target_database - if target_table is not None: + if target_table is not Unset: self.target_table = target_table - if graph_type is not None: + if graph_type is not Unset: self.graph_type = graph_type - if x_axis_parameter is not None: + if x_axis_parameter is not Unset: self.x_axis_parameter = x_axis_parameter @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaAttribute. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaAttribute. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaAttribute. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaAttribute. """ self._name = name @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, Unset_Type]": """Gets the identity of this GrantaServerApiIntegrationSchemaAttribute. Returns ------- - int + Union[int, Unset_Type] The identity of this GrantaServerApiIntegrationSchemaAttribute. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiIntegrationSchemaAttribute. Parameters ---------- - identity: int + identity: Union[int, Unset_Type] The identity of this GrantaServerApiIntegrationSchemaAttribute. """ + # Field is not nullable + if identity is None: + raise ValueError("Invalid value for 'identity', must not be 'None'") self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiIntegrationSchemaAttribute. Set as nullable for older schema compatibility, but we expect it to be set almost everywhere, except during loading from disk. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaAttribute. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaAttribute. Set as nullable for older schema compatibility, but we expect it to be set almost everywhere, except during loading from disk. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaAttribute. """ self._guid = guid @@ -250,98 +259,106 @@ def type(self, type: "GrantaServerApiAttributeType") -> None: type: GrantaServerApiAttributeType The type of this GrantaServerApiIntegrationSchemaAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit_symbol(self) -> "Optional[str]": + def unit_symbol(self) -> "Union[str, None, Unset_Type]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaAttribute. If isUnitted is true, then this must have a non empty value Returns ------- - str + Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaAttribute. """ return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "Optional[str]") -> None: + def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaAttribute. If isUnitted is true, then this must have a non empty value Parameters ---------- - unit_symbol: str + unit_symbol: Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaAttribute. """ self._unit_symbol = unit_symbol @property - def is_unitted(self) -> "Optional[bool]": + def is_unitted(self) -> "Union[bool, None, Unset_Type]": """Gets the is_unitted of this GrantaServerApiIntegrationSchemaAttribute. Returns ------- - bool + Union[bool, None, Unset_Type] The is_unitted of this GrantaServerApiIntegrationSchemaAttribute. """ return self._is_unitted @is_unitted.setter - def is_unitted(self, is_unitted: "Optional[bool]") -> None: + def is_unitted(self, is_unitted: "Union[bool, None, Unset_Type]") -> None: """Sets the is_unitted of this GrantaServerApiIntegrationSchemaAttribute. Parameters ---------- - is_unitted: bool + is_unitted: Union[bool, None, Unset_Type] The is_unitted of this GrantaServerApiIntegrationSchemaAttribute. """ self._is_unitted = is_unitted @property - def discrete_type_identity(self) -> "Optional[int]": + def discrete_type_identity(self) -> "Union[int, None, Unset_Type]": """Gets the discrete_type_identity of this GrantaServerApiIntegrationSchemaAttribute. Returns ------- - int + Union[int, None, Unset_Type] The discrete_type_identity of this GrantaServerApiIntegrationSchemaAttribute. """ return self._discrete_type_identity @discrete_type_identity.setter - def discrete_type_identity(self, discrete_type_identity: "Optional[int]") -> None: + def discrete_type_identity( + self, discrete_type_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the discrete_type_identity of this GrantaServerApiIntegrationSchemaAttribute. Parameters ---------- - discrete_type_identity: int + discrete_type_identity: Union[int, None, Unset_Type] The discrete_type_identity of this GrantaServerApiIntegrationSchemaAttribute. """ self._discrete_type_identity = discrete_type_identity @property - def discrete_type_guid(self) -> "Optional[str]": + def discrete_type_guid(self) -> "Union[str, None, Unset_Type]": """Gets the discrete_type_guid of this GrantaServerApiIntegrationSchemaAttribute. A discrete attribute must define the guid of its discrete type (i.e. list of possible values) Returns ------- - str + Union[str, None, Unset_Type] The discrete_type_guid of this GrantaServerApiIntegrationSchemaAttribute. """ return self._discrete_type_guid @discrete_type_guid.setter - def discrete_type_guid(self, discrete_type_guid: "Optional[str]") -> None: + def discrete_type_guid( + self, discrete_type_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the discrete_type_guid of this GrantaServerApiIntegrationSchemaAttribute. A discrete attribute must define the guid of its discrete type (i.e. list of possible values) Parameters ---------- - discrete_type_guid: str + discrete_type_guid: Union[str, None, Unset_Type] The discrete_type_guid of this GrantaServerApiIntegrationSchemaAttribute. """ self._discrete_type_guid = discrete_type_guid @@ -349,13 +366,13 @@ def discrete_type_guid(self, discrete_type_guid: "Optional[str]") -> None: @property def parameters( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], None, Unset_Type]": """Gets the parameters of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must define a list of parameters. Returns ------- - list[GrantaServerApiIntegrationSchemaIntegrationParameterInfo] + Union[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiIntegrationSchemaAttribute. """ return self._parameters @@ -363,116 +380,124 @@ def parameters( @parameters.setter def parameters( self, - parameters: "Optional[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo]]", + parameters: "Union[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], None, Unset_Type]", ) -> None: """Sets the parameters of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must define a list of parameters. Parameters ---------- - parameters: List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo] + parameters: Union[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiIntegrationSchemaAttribute. """ self._parameters = parameters @property - def target_database(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def target_database(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the target_database of this GrantaServerApiIntegrationSchemaAttribute. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_database of this GrantaServerApiIntegrationSchemaAttribute. """ return self._target_database @target_database.setter def target_database( - self, target_database: "Optional[GrantaServerApiObjectIdentifier]" + self, target_database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" ) -> None: """Sets the target_database of this GrantaServerApiIntegrationSchemaAttribute. Parameters ---------- - target_database: GrantaServerApiObjectIdentifier + target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_database of this GrantaServerApiIntegrationSchemaAttribute. """ + # Field is not nullable + if target_database is None: + raise ValueError("Invalid value for 'target_database', must not be 'None'") self._target_database = target_database @property - def target_table(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def target_table(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the target_table of this GrantaServerApiIntegrationSchemaAttribute. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_table of this GrantaServerApiIntegrationSchemaAttribute. """ return self._target_table @target_table.setter def target_table( - self, target_table: "Optional[GrantaServerApiObjectIdentifier]" + self, target_table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" ) -> None: """Sets the target_table of this GrantaServerApiIntegrationSchemaAttribute. Parameters ---------- - target_table: GrantaServerApiObjectIdentifier + target_table: Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_table of this GrantaServerApiIntegrationSchemaAttribute. """ + # Field is not nullable + if target_table is None: + raise ValueError("Invalid value for 'target_table', must not be 'None'") self._target_table = target_table @property - def graph_type(self) -> "Optional[str]": + def graph_type(self) -> "Union[str, None, Unset_Type]": """Gets the graph_type of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must be either a Series or a Grid type graph. Returns ------- - str + Union[str, None, Unset_Type] The graph_type of this GrantaServerApiIntegrationSchemaAttribute. """ return self._graph_type @graph_type.setter - def graph_type(self, graph_type: "Optional[str]") -> None: + def graph_type(self, graph_type: "Union[str, None, Unset_Type]") -> None: """Sets the graph_type of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must be either a Series or a Grid type graph. Parameters ---------- - graph_type: str + graph_type: Union[str, None, Unset_Type] The graph_type of this GrantaServerApiIntegrationSchemaAttribute. """ self._graph_type = graph_type @property - def x_axis_parameter(self) -> "Optional[str]": + def x_axis_parameter(self) -> "Union[str, None, Unset_Type]": """Gets the x_axis_parameter of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must define an x-axis. This will be one of the parameters listed in parameters Returns ------- - str + Union[str, None, Unset_Type] The x_axis_parameter of this GrantaServerApiIntegrationSchemaAttribute. """ return self._x_axis_parameter @x_axis_parameter.setter - def x_axis_parameter(self, x_axis_parameter: "Optional[str]") -> None: + def x_axis_parameter( + self, x_axis_parameter: "Union[str, None, Unset_Type]" + ) -> None: """Sets the x_axis_parameter of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must define an x-axis. This will be one of the parameters listed in parameters Parameters ---------- - x_axis_parameter: str + x_axis_parameter: Union[str, None, Unset_Type] The x_axis_parameter of this GrantaServerApiIntegrationSchemaAttribute. """ self._x_axis_parameter = x_axis_parameter @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -489,7 +514,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py index 4c510a47..c6e0bed7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaDiscreteType(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaDiscreteType(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,127 @@ class GrantaServerApiIntegrationSchemaDiscreteType(ModelBase): # type: ignore[m def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - name: "Optional[str]" = None, - values: "Optional[List[str]]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + values: "Union[List[str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaDiscreteType - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional - name: str, optional - values: List[str], optional + guid: str, optional + identity: int, optional + name: str, optional + values: List[str], optional """ - self._identity = None - self._guid = None - self._name = None - self._values = None + self._identity: Union[int, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._name: Union[str, None, Unset_Type] = Unset + self._values: Union[List[str], None, Unset_Type] = Unset - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid - if name is not None: + if name is not Unset: self.name = name - if values is not None: + if values is not Unset: self.values = values @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, Unset_Type]": """Gets the identity of this GrantaServerApiIntegrationSchemaDiscreteType. Returns ------- - int + Union[int, Unset_Type] The identity of this GrantaServerApiIntegrationSchemaDiscreteType. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters ---------- - identity: int + identity: Union[int, Unset_Type] The identity of this GrantaServerApiIntegrationSchemaDiscreteType. """ + # Field is not nullable + if identity is None: + raise ValueError("Invalid value for 'identity', must not be 'None'") self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiIntegrationSchemaDiscreteType. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaDiscreteType. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaDiscreteType. """ self._guid = guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaDiscreteType. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaDiscreteType. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaDiscreteType. """ self._name = name @property - def values(self) -> "Optional[List[str]]": + def values(self) -> "Union[List[str], None, Unset_Type]": """Gets the values of this GrantaServerApiIntegrationSchemaDiscreteType. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The values of this GrantaServerApiIntegrationSchemaDiscreteType. """ return self._values @values.setter - def values(self, values: "Optional[List[str]]") -> None: + def values(self, values: "Union[List[str], None, Unset_Type]") -> None: """Sets the values of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters ---------- - values: List[str] + values: Union[List[str], None, Unset_Type] The values of this GrantaServerApiIntegrationSchemaDiscreteType. """ self._values = values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py index 4bf3bea1..4253ad0f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,109 +87,120 @@ def __init__( self, *, type: "GrantaServerApiAttributeType", - discrete_type_guid: "Optional[str]" = None, - graph_type: "Optional[str]" = None, - guid: "Optional[str]" = None, - is_unitted: "Optional[bool]" = None, - name: "Optional[str]" = None, - parameters: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo]]" = None, - target_database: "Optional[GrantaServerApiObjectIdentifier]" = None, - target_table: "Optional[GrantaServerApiObjectIdentifier]" = None, - unit_symbol: "Optional[str]" = None, - x_axis_parameter: "Optional[str]" = None, + discrete_type_guid: "Union[str, None, Unset_Type]" = Unset, + graph_type: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + is_unitted: "Union[bool, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + parameters: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], None, Unset_Type]" = Unset, + target_database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + target_table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, + x_axis_parameter: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute - a model defined in Swagger Parameters ---------- - type: GrantaServerApiAttributeType - discrete_type_guid: str, optional - graph_type: str, optional - guid: str, optional - is_unitted: bool, optional - name: str, optional - parameters: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], optional - target_database: GrantaServerApiObjectIdentifier, optional - target_table: GrantaServerApiObjectIdentifier, optional - unit_symbol: str, optional - x_axis_parameter: str, optional + type: GrantaServerApiAttributeType + discrete_type_guid: str, optional + graph_type: str, optional + guid: str, optional + is_unitted: bool, optional + name: str, optional + parameters: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], optional + target_database: GrantaServerApiObjectIdentifier, optional + target_table: GrantaServerApiObjectIdentifier, optional + unit_symbol: str, optional + x_axis_parameter: str, optional """ - self._name = None - self._guid = None - self._type: GrantaServerApiAttributeType = None # type: ignore[assignment] - self._unit_symbol = None - self._is_unitted = None - self._discrete_type_guid = None - self._parameters = None - self._target_database = None - self._target_table = None - self._graph_type = None - self._x_axis_parameter = None - - if name is not None: + self._name: Union[str, None, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + self._type: GrantaServerApiAttributeType + self._unit_symbol: Union[str, None, Unset_Type] = Unset + self._is_unitted: Union[bool, None, Unset_Type] = Unset + self._discrete_type_guid: Union[str, None, Unset_Type] = Unset + self._parameters: Union[ + List[ + GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo + ], + None, + Unset_Type, + ] = Unset + self._target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = ( + Unset + ) + self._target_table: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._graph_type: Union[str, None, Unset_Type] = Unset + self._x_axis_parameter: Union[str, None, Unset_Type] = Unset + + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid self.type = type - if unit_symbol is not None: + if unit_symbol is not Unset: self.unit_symbol = unit_symbol - if is_unitted is not None: + if is_unitted is not Unset: self.is_unitted = is_unitted - if discrete_type_guid is not None: + if discrete_type_guid is not Unset: self.discrete_type_guid = discrete_type_guid - if parameters is not None: + if parameters is not Unset: self.parameters = parameters - if target_database is not None: + if target_database is not Unset: self.target_database = target_database - if target_table is not None: + if target_table is not Unset: self.target_table = target_table - if graph_type is not None: + if graph_type is not Unset: self.graph_type = graph_type - if x_axis_parameter is not None: + if x_axis_parameter is not Unset: self.x_axis_parameter = x_axis_parameter @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ + # Field is not nullable + if guid is None: + raise ValueError("Invalid value for 'guid', must not be 'None'") self._guid = guid @property @@ -212,76 +223,82 @@ def type(self, type: "GrantaServerApiAttributeType") -> None: type: GrantaServerApiAttributeType The type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit_symbol(self) -> "Optional[str]": + def unit_symbol(self) -> "Union[str, None, Unset_Type]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. If isUnitted is true, then this must have a non empty value Returns ------- - str + Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "Optional[str]") -> None: + def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. If isUnitted is true, then this must have a non empty value Parameters ---------- - unit_symbol: str + unit_symbol: Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._unit_symbol = unit_symbol @property - def is_unitted(self) -> "Optional[bool]": + def is_unitted(self) -> "Union[bool, None, Unset_Type]": """Gets the is_unitted of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns ------- - bool + Union[bool, None, Unset_Type] The is_unitted of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._is_unitted @is_unitted.setter - def is_unitted(self, is_unitted: "Optional[bool]") -> None: + def is_unitted(self, is_unitted: "Union[bool, None, Unset_Type]") -> None: """Sets the is_unitted of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters ---------- - is_unitted: bool + is_unitted: Union[bool, None, Unset_Type] The is_unitted of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._is_unitted = is_unitted @property - def discrete_type_guid(self) -> "Optional[str]": + def discrete_type_guid(self) -> "Union[str, None, Unset_Type]": """Gets the discrete_type_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A discrete attribute must define the guid of its discrete type (i.e. list of possible values) Returns ------- - str + Union[str, None, Unset_Type] The discrete_type_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._discrete_type_guid @discrete_type_guid.setter - def discrete_type_guid(self, discrete_type_guid: "Optional[str]") -> None: + def discrete_type_guid( + self, discrete_type_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the discrete_type_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A discrete attribute must define the guid of its discrete type (i.e. list of possible values) Parameters ---------- - discrete_type_guid: str + discrete_type_guid: Union[str, None, Unset_Type] The discrete_type_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._discrete_type_guid = discrete_type_guid @@ -289,13 +306,13 @@ def discrete_type_guid(self, discrete_type_guid: "Optional[str]") -> None: @property def parameters( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], None, Unset_Type]": """Gets the parameters of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must define a list of parameters. Returns ------- - list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo] + Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._parameters @@ -303,116 +320,124 @@ def parameters( @parameters.setter def parameters( self, - parameters: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo]]", + parameters: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], None, Unset_Type]", ) -> None: """Sets the parameters of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must define a list of parameters. Parameters ---------- - parameters: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo] + parameters: Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], None, Unset_Type] The parameters of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._parameters = parameters @property - def target_database(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def target_database(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the target_database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._target_database @target_database.setter def target_database( - self, target_database: "Optional[GrantaServerApiObjectIdentifier]" + self, target_database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" ) -> None: """Sets the target_database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters ---------- - target_database: GrantaServerApiObjectIdentifier + target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ + # Field is not nullable + if target_database is None: + raise ValueError("Invalid value for 'target_database', must not be 'None'") self._target_database = target_database @property - def target_table(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def target_table(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the target_table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._target_table @target_table.setter def target_table( - self, target_table: "Optional[GrantaServerApiObjectIdentifier]" + self, target_table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" ) -> None: """Sets the target_table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters ---------- - target_table: GrantaServerApiObjectIdentifier + target_table: Union[GrantaServerApiObjectIdentifier, Unset_Type] The target_table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ + # Field is not nullable + if target_table is None: + raise ValueError("Invalid value for 'target_table', must not be 'None'") self._target_table = target_table @property - def graph_type(self) -> "Optional[str]": + def graph_type(self) -> "Union[str, None, Unset_Type]": """Gets the graph_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must be either a Series or a Grid type graph. Returns ------- - str + Union[str, None, Unset_Type] The graph_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._graph_type @graph_type.setter - def graph_type(self, graph_type: "Optional[str]") -> None: + def graph_type(self, graph_type: "Union[str, None, Unset_Type]") -> None: """Sets the graph_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must be either a Series or a Grid type graph. Parameters ---------- - graph_type: str + graph_type: Union[str, None, Unset_Type] The graph_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._graph_type = graph_type @property - def x_axis_parameter(self) -> "Optional[str]": + def x_axis_parameter(self) -> "Union[str, None, Unset_Type]": """Gets the x_axis_parameter of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must define an x-axis. This will be one of the parameters listed in parameters Returns ------- - str + Union[str, None, Unset_Type] The x_axis_parameter of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ return self._x_axis_parameter @x_axis_parameter.setter - def x_axis_parameter(self, x_axis_parameter: "Optional[str]") -> None: + def x_axis_parameter( + self, x_axis_parameter: "Union[str, None, Unset_Type]" + ) -> None: """Sets the x_axis_parameter of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must define an x-axis. This will be one of the parameters listed in parameters Parameters ---------- - x_axis_parameter: str + x_axis_parameter: Union[str, None, Unset_Type] The x_axis_parameter of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._x_axis_parameter = x_axis_parameter @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -429,7 +454,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py index 5fd0408a..a167efbb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,100 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType(ModelBa def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - values: "Optional[List[str]]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + values: "Union[List[str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional - values: List[str], optional + guid: str, optional + name: str, optional + values: List[str], optional """ - self._guid = None - self._name = None - self._values = None + self._guid: Union[str, Unset_Type] = Unset + self._name: Union[str, None, Unset_Type] = Unset + self._values: Union[List[str], None, Unset_Type] = Unset - if guid is not None: + if guid is not Unset: self.guid = guid - if name is not None: + if name is not Unset: self.name = name - if values is not None: + if values is not Unset: self.values = values @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. """ + # Field is not nullable + if guid is None: + raise ValueError("Invalid value for 'guid', must not be 'None'") self._guid = guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. """ self._name = name @property - def values(self) -> "Optional[List[str]]": + def values(self) -> "Union[List[str], None, Unset_Type]": """Gets the values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. """ return self._values @values.setter - def values(self, values: "Optional[List[str]]") -> None: + def values(self, values: "Union[List[str], None, Unset_Type]") -> None: """Sets the values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Parameters ---------- - values: List[str] + values: Union[List[str], None, Unset_Type] The values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. """ self._values = values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py index 54ed6dfc..3319f19b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,148 +80,162 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameter def __init__( self, *, - default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" = None, - guid: "Optional[str]" = None, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]" = None, - name: "Optional[str]" = None, - parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" = None, - scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" = None, - unit_symbol: "Optional[str]" = None, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo - a model defined in Swagger Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue, optional - guid: str, optional - interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional - name: str, optional - parameter_type: GrantaServerApiParameterInfoParameterType, optional - scale_type: GrantaServerApiParameterInfoScaleType, optional - unit_symbol: str, optional + default_value: GrantaServerApiDataExportDatumsParameterValue, optional + guid: str, optional + interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional + name: str, optional + parameter_type: GrantaServerApiParameterInfoParameterType, optional + scale_type: GrantaServerApiParameterInfoScaleType, optional + unit_symbol: str, optional """ - self._name = None - self._guid = None - self._unit_symbol = None - self._scale_type = None - self._interpolation_type = None - self._parameter_type = None - self._default_value = None - - if name is not None: + self._name: Union[str, None, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + self._unit_symbol: Union[str, None, Unset_Type] = Unset + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( + Unset + ) + self._interpolation_type: Union[ + GrantaServerApiParameterInfoInterpolationType, Unset_Type + ] = Unset + self._parameter_type: Union[ + GrantaServerApiParameterInfoParameterType, Unset_Type + ] = Unset + self._default_value: Union[ + GrantaServerApiDataExportDatumsParameterValue, Unset_Type + ] = Unset + + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid - if unit_symbol is not None: + if unit_symbol is not Unset: self.unit_symbol = unit_symbol - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type - if interpolation_type is not None: + if interpolation_type is not Unset: self.interpolation_type = interpolation_type - if parameter_type is not None: + if parameter_type is not Unset: self.parameter_type = parameter_type - if default_value is not None: + if default_value is not Unset: self.default_value = default_value @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ + # Field is not nullable + if guid is None: + raise ValueError("Invalid value for 'guid', must not be 'None'") self._guid = guid @property - def unit_symbol(self) -> "Optional[str]": + def unit_symbol(self) -> "Union[str, None, Unset_Type]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "Optional[str]") -> None: + def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters ---------- - unit_symbol: str + unit_symbol: Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ self._unit_symbol = unit_symbol @property - def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": + def scale_type(self) -> "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns ------- - GrantaServerApiParameterInfoScaleType + Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + self, scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters ---------- - scale_type: GrantaServerApiParameterInfoScaleType + scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @property def interpolation_type( self, - ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": + ) -> "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]": """Gets the interpolation_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns ------- - GrantaServerApiParameterInfoInterpolationType + Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ return self._interpolation_type @@ -227,69 +243,84 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( self, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", ) -> None: """Sets the interpolation_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters ---------- - interpolation_type: GrantaServerApiParameterInfoInterpolationType + interpolation_type: Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ + # Field is not nullable + if interpolation_type is None: + raise ValueError( + "Invalid value for 'interpolation_type', must not be 'None'" + ) self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": + def parameter_type( + self, + ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns ------- - GrantaServerApiParameterInfoParameterType + Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ return self._parameter_type @parameter_type.setter def parameter_type( - self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" + self, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", ) -> None: """Sets the parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters ---------- - parameter_type: GrantaServerApiParameterInfoParameterType + parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ + # Field is not nullable + if parameter_type is None: + raise ValueError("Invalid value for 'parameter_type', must not be 'None'") self._parameter_type = parameter_type @property def default_value( self, - ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": + ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns ------- - GrantaServerApiDataExportDatumsParameterValue + Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ return self._default_value @default_value.setter def default_value( - self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" + self, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", ) -> None: """Sets the default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue + default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. """ + # Field is not nullable + if default_value is None: + raise ValueError("Invalid value for 'default_value', must not be 'None'") self._default_value = default_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -306,7 +337,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py index 13fa1e49..ee404e6b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -83,99 +85,121 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfG def __init__( self, *, - access_control_category_values: "Optional[Dict[str, List[str]]]" = None, - attributes: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]]" = None, - discrete_types: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]]" = None, - key: "Optional[str]" = None, - layouts: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout]]" = None, - security_groups: "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]" = None, - sources: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier]]" = None, - unit_system: "Optional[str]" = None, - version: "Optional[int]" = None, + access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]" = Unset, + attributes: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], None, Unset_Type]" = Unset, + discrete_types: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], None, Unset_Type]" = Unset, + key: "Union[str, None, Unset_Type]" = Unset, + layouts: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], None, Unset_Type]" = Unset, + security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]" = Unset, + sources: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier], None, Unset_Type]" = Unset, + unit_system: "Union[str, None, Unset_Type]" = Unset, + version: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier - a model defined in Swagger Parameters ---------- - access_control_category_values: Dict[str, List[str]], optional - attributes: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], optional - discrete_types: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], optional - key: str, optional - layouts: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], optional - security_groups: GrantaServerApiIntegrationSchemaSecurityGroups, optional - sources: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier], optional - unit_system: str, optional - version: int, optional + access_control_category_values: Dict[str, List[str]], optional + attributes: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], optional + discrete_types: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], optional + key: str, optional + layouts: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], optional + security_groups: GrantaServerApiIntegrationSchemaSecurityGroups, optional + sources: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier], optional + unit_system: str, optional + version: int, optional """ - self._key = None - self._version = None - self._attributes = None - self._layouts = None - self._unit_system = None - self._discrete_types = None - self._sources = None - self._access_control_category_values = None - self._security_groups = None - - if key is not None: + self._key: Union[str, None, Unset_Type] = Unset + self._version: Union[int, None, Unset_Type] = Unset + self._attributes: Union[ + List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], + None, + Unset_Type, + ] = Unset + self._layouts: Union[ + List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], + None, + Unset_Type, + ] = Unset + self._unit_system: Union[str, None, Unset_Type] = Unset + self._discrete_types: Union[ + List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], + None, + Unset_Type, + ] = Unset + self._sources: Union[ + List[ + GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier + ], + None, + Unset_Type, + ] = Unset + self._access_control_category_values: Union[ + Dict[str, List[str]], None, Unset_Type + ] = Unset + self._security_groups: Union[ + GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type + ] = Unset + + if key is not Unset: self.key = key - if version is not None: + if version is not Unset: self.version = version - if attributes is not None: + if attributes is not Unset: self.attributes = attributes - if layouts is not None: + if layouts is not Unset: self.layouts = layouts - if unit_system is not None: + if unit_system is not Unset: self.unit_system = unit_system - if discrete_types is not None: + if discrete_types is not Unset: self.discrete_types = discrete_types - if sources is not None: + if sources is not Unset: self.sources = sources - if access_control_category_values is not None: + if access_control_category_values is not Unset: self.access_control_category_values = access_control_category_values - if security_groups is not None: + if security_groups is not Unset: self.security_groups = security_groups @property - def key(self) -> "Optional[str]": + def key(self) -> "Union[str, None, Unset_Type]": """Gets the key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - str + Union[str, None, Unset_Type] The key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._key @key.setter - def key(self, key: "Optional[str]") -> None: + def key(self, key: "Union[str, None, Unset_Type]") -> None: """Sets the key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - key: str + key: Union[str, None, Unset_Type] The key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._key = key @property - def version(self) -> "Optional[int]": + def version(self) -> "Union[int, None, Unset_Type]": """Gets the version of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - int + Union[int, None, Unset_Type] The version of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._version @version.setter - def version(self, version: "Optional[int]") -> None: + def version(self, version: "Union[int, None, Unset_Type]") -> None: """Sets the version of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - version: int + version: Union[int, None, Unset_Type] The version of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._version = version @@ -183,12 +207,12 @@ def version(self, version: "Optional[int]") -> None: @property def attributes( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], None, Unset_Type]": """Gets the attributes of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute] + Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], None, Unset_Type] The attributes of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._attributes @@ -196,13 +220,13 @@ def attributes( @attributes.setter def attributes( self, - attributes: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]]", + attributes: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], None, Unset_Type]", ) -> None: """Sets the attributes of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - attributes: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute] + attributes: Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], None, Unset_Type] The attributes of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._attributes = attributes @@ -210,12 +234,12 @@ def attributes( @property def layouts( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], None, Unset_Type]": """Gets the layouts of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout] + Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], None, Unset_Type] The layouts of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._layouts @@ -223,35 +247,35 @@ def layouts( @layouts.setter def layouts( self, - layouts: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout]]", + layouts: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], None, Unset_Type]", ) -> None: """Sets the layouts of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - layouts: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout] + layouts: Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], None, Unset_Type] The layouts of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._layouts = layouts @property - def unit_system(self) -> "Optional[str]": + def unit_system(self) -> "Union[str, None, Unset_Type]": """Gets the unit_system of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - str + Union[str, None, Unset_Type] The unit_system of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._unit_system @unit_system.setter - def unit_system(self, unit_system: "Optional[str]") -> None: + def unit_system(self, unit_system: "Union[str, None, Unset_Type]") -> None: """Sets the unit_system of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - unit_system: str + unit_system: Union[str, None, Unset_Type] The unit_system of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._unit_system = unit_system @@ -259,12 +283,12 @@ def unit_system(self, unit_system: "Optional[str]") -> None: @property def discrete_types( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], None, Unset_Type]": """Gets the discrete_types of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType] + Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], None, Unset_Type] The discrete_types of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._discrete_types @@ -272,13 +296,13 @@ def discrete_types( @discrete_types.setter def discrete_types( self, - discrete_types: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]]", + discrete_types: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], None, Unset_Type]", ) -> None: """Sets the discrete_types of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - discrete_types: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType] + discrete_types: Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType], None, Unset_Type] The discrete_types of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._discrete_types = discrete_types @@ -286,12 +310,12 @@ def discrete_types( @property def sources( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier], None, Unset_Type]": """Gets the sources of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier] + Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier], None, Unset_Type] The sources of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._sources @@ -299,37 +323,40 @@ def sources( @sources.setter def sources( self, - sources: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier]]", + sources: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier], None, Unset_Type]", ) -> None: """Sets the sources of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - sources: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier] + sources: Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier], None, Unset_Type] The sources of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._sources = sources @property - def access_control_category_values(self) -> "Optional[Dict[str, List[str]]]": + def access_control_category_values( + self, + ) -> "Union[Dict[str, List[str]], None, Unset_Type]": """Gets the access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - dict(str, list[str]) + Union[Dict[str, List[str]], None, Unset_Type] The access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._access_control_category_values @access_control_category_values.setter def access_control_category_values( - self, access_control_category_values: "Optional[Dict[str, List[str]]]" + self, + access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]", ) -> None: """Sets the access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - access_control_category_values: Dict[str, List[str]] + access_control_category_values: Union[Dict[str, List[str]], None, Unset_Type] The access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._access_control_category_values = access_control_category_values @@ -337,12 +364,12 @@ def access_control_category_values( @property def security_groups( self, - ) -> "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]": + ) -> "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]": """Gets the security_groups of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiIntegrationSchemaSecurityGroups + Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type] The security_groups of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._security_groups @@ -350,19 +377,22 @@ def security_groups( @security_groups.setter def security_groups( self, - security_groups: "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]", + security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]", ) -> None: """Sets the security_groups of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - security_groups: GrantaServerApiIntegrationSchemaSecurityGroups + security_groups: Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type] The security_groups of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if security_groups is None: + raise ValueError("Invalid value for 'security_groups', must not be 'None'") self._security_groups = security_groups @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -379,7 +409,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py index 752069d1..8faec53f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,72 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout(ModelBase): def __init__( self, *, - attribute_guids: "Optional[List[str]]" = None, - name: "Optional[str]" = None, + attribute_guids: "Union[List[str], None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout - a model defined in Swagger Parameters ---------- - attribute_guids: List[str], optional - name: str, optional + attribute_guids: List[str], optional + name: str, optional """ - self._name = None - self._attribute_guids = None + self._name: Union[str, None, Unset_Type] = Unset + self._attribute_guids: Union[List[str], None, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if attribute_guids is not None: + if attribute_guids is not Unset: self.attribute_guids = attribute_guids @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. """ self._name = name @property - def attribute_guids(self) -> "Optional[List[str]]": + def attribute_guids(self) -> "Union[List[str], None, Unset_Type]": """Gets the attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. """ return self._attribute_guids @attribute_guids.setter - def attribute_guids(self, attribute_guids: "Optional[List[str]]") -> None: + def attribute_guids( + self, attribute_guids: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Parameters ---------- - attribute_guids: List[str] + attribute_guids: Union[List[str], None, Unset_Type] The attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. """ self._attribute_guids = attribute_guids @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py index 34bf9643..4361fb97 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,90 +73,106 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServe def __init__( self, *, - link_source_type: "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]" = None, - parameter_mappings: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]" = None, - source: "Optional[GrantaServerApiObjectIdentifier]" = None, - target_guid: "Optional[str]" = None, + link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]" = Unset, + parameter_mappings: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]" = Unset, + source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + target_guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier - a model defined in Swagger Parameters ---------- - link_source_type: GrantaServerApiIntegrationSchemaLinkSourceType, optional - parameter_mappings: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], optional - source: GrantaServerApiObjectIdentifier, optional - target_guid: str, optional + link_source_type: GrantaServerApiIntegrationSchemaLinkSourceType, optional + parameter_mappings: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], optional + source: GrantaServerApiObjectIdentifier, optional + target_guid: str, optional """ - self._source = None - self._target_guid = None - self._parameter_mappings = None - self._link_source_type = None - - if source is not None: + self._source: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._target_guid: Union[str, Unset_Type] = Unset + self._parameter_mappings: Union[ + List[ + GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier + ], + None, + Unset_Type, + ] = Unset + self._link_source_type: Union[ + GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type + ] = Unset + + if source is not Unset: self.source = source - if target_guid is not None: + if target_guid is not Unset: self.target_guid = target_guid - if parameter_mappings is not None: + if parameter_mappings is not Unset: self.parameter_mappings = parameter_mappings - if link_source_type is not None: + if link_source_type is not Unset: self.link_source_type = link_source_type @property - def source(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def source(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the source of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The source of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ return self._source @source.setter - def source(self, source: "Optional[GrantaServerApiObjectIdentifier]") -> None: + def source( + self, source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" + ) -> None: """Sets the source of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Parameters ---------- - source: GrantaServerApiObjectIdentifier + source: Union[GrantaServerApiObjectIdentifier, Unset_Type] The source of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if source is None: + raise ValueError("Invalid value for 'source', must not be 'None'") self._source = source @property - def target_guid(self) -> "Optional[str]": + def target_guid(self) -> "Union[str, Unset_Type]": """Gets the target_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute Returns ------- - str + Union[str, Unset_Type] The target_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ return self._target_guid @target_guid.setter - def target_guid(self, target_guid: "Optional[str]") -> None: + def target_guid(self, target_guid: "Union[str, Unset_Type]") -> None: """Sets the target_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute Parameters ---------- - target_guid: str + target_guid: Union[str, Unset_Type] The target_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if target_guid is None: + raise ValueError("Invalid value for 'target_guid', must not be 'None'") self._target_guid = target_guid @property def parameter_mappings( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]": """Gets the parameter_mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Any mapped parameters (float functional attributes only). The target parameters must be defined on the target integration attribute. Not every parameters from the source database needs to be mapped for each attribute. Returns ------- - list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier] + Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The parameter_mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ return self._parameter_mappings @@ -162,14 +180,14 @@ def parameter_mappings( @parameter_mappings.setter def parameter_mappings( self, - parameter_mappings: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]", + parameter_mappings: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]", ) -> None: """Sets the parameter_mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Any mapped parameters (float functional attributes only). The target parameters must be defined on the target integration attribute. Not every parameters from the source database needs to be mapped for each attribute. Parameters ---------- - parameter_mappings: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier] + parameter_mappings: Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The parameter_mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ self._parameter_mappings = parameter_mappings @@ -177,12 +195,12 @@ def parameter_mappings( @property def link_source_type( self, - ) -> "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]": + ) -> "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]": """Gets the link_source_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiIntegrationSchemaLinkSourceType + Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type] The link_source_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ return self._link_source_type @@ -190,19 +208,22 @@ def link_source_type( @link_source_type.setter def link_source_type( self, - link_source_type: "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]", + link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]", ) -> None: """Sets the link_source_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Parameters ---------- - link_source_type: GrantaServerApiIntegrationSchemaLinkSourceType + link_source_type: Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type] The link_source_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if link_source_type is None: + raise ValueError("Invalid value for 'link_source_type', must not be 'None'") self._link_source_type = link_source_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -219,7 +240,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py index b0d9b03a..9836b69a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,110 +73,126 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServer def __init__( self, *, - database: "Optional[GrantaServerApiObjectIdentifier]" = None, - database_key: "Optional[str]" = None, - mappings: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]" = None, - table: "Optional[GrantaServerApiObjectIdentifier]" = None, + database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + mappings: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]" = Unset, + table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier - a model defined in Swagger Parameters ---------- - database: GrantaServerApiObjectIdentifier, optional - database_key: str, optional - mappings: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], optional - table: GrantaServerApiObjectIdentifier, optional + database: GrantaServerApiObjectIdentifier, optional + database_key: str, optional + mappings: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], optional + table: GrantaServerApiObjectIdentifier, optional """ - self._database = None - self._database_key = None - self._table = None - self._mappings = None - - if database is not None: + self._database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._database_key: Union[str, None, Unset_Type] = Unset + self._table: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._mappings: Union[ + List[ + GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier + ], + None, + Unset_Type, + ] = Unset + + if database is not Unset: self.database = database - if database_key is not None: + if database_key is not Unset: self.database_key = database_key - if table is not None: + if table is not Unset: self.table = table - if mappings is not None: + if mappings is not Unset: self.mappings = mappings @property - def database(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def database(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ return self._database @database.setter - def database(self, database: "Optional[GrantaServerApiObjectIdentifier]") -> None: + def database( + self, database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" + ) -> None: """Sets the database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters ---------- - database: GrantaServerApiObjectIdentifier + database: Union[GrantaServerApiObjectIdentifier, Unset_Type] The database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if database is None: + raise ValueError("Invalid value for 'database', must not be 'None'") self._database = database @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ self._database_key = database_key @property - def table(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def table(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ return self._table @table.setter - def table(self, table: "Optional[GrantaServerApiObjectIdentifier]") -> None: + def table( + self, table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" + ) -> None: """Sets the table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters ---------- - table: GrantaServerApiObjectIdentifier + table: Union[GrantaServerApiObjectIdentifier, Unset_Type] The table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if table is None: + raise ValueError("Invalid value for 'table', must not be 'None'") self._table = table @property def mappings( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]": """Gets the mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. Returns ------- - list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier] + Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ return self._mappings @@ -182,20 +200,20 @@ def mappings( @mappings.setter def mappings( self, - mappings: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]", + mappings: "Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]", ) -> None: """Sets the mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. Parameters ---------- - mappings: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier] + mappings: Union[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ self._mappings = mappings @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -212,7 +230,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py index 9dac5353..2b200a5f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,175 +80,189 @@ class GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): # ty def __init__( self, *, - default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" = None, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]" = None, - name: "Optional[str]" = None, - parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" = None, - scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" = None, - unit_symbol: "Optional[str]" = None, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, Unset_Type]" = Unset, + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaIntegrationParameterInfo - a model defined in Swagger Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue, optional - guid: str, optional - identity: int, optional - interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional - name: str, optional - parameter_type: GrantaServerApiParameterInfoParameterType, optional - scale_type: GrantaServerApiParameterInfoScaleType, optional - unit_symbol: str, optional + default_value: GrantaServerApiDataExportDatumsParameterValue, optional + guid: str, optional + identity: int, optional + interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional + name: str, optional + parameter_type: GrantaServerApiParameterInfoParameterType, optional + scale_type: GrantaServerApiParameterInfoScaleType, optional + unit_symbol: str, optional """ - self._name = None - self._identity = None - self._guid = None - self._unit_symbol = None - self._scale_type = None - self._interpolation_type = None - self._parameter_type = None - self._default_value = None - - if name is not None: + self._name: Union[str, None, Unset_Type] = Unset + self._identity: Union[int, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._unit_symbol: Union[str, None, Unset_Type] = Unset + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( + Unset + ) + self._interpolation_type: Union[ + GrantaServerApiParameterInfoInterpolationType, Unset_Type + ] = Unset + self._parameter_type: Union[ + GrantaServerApiParameterInfoParameterType, Unset_Type + ] = Unset + self._default_value: Union[ + GrantaServerApiDataExportDatumsParameterValue, Unset_Type + ] = Unset + + if name is not Unset: self.name = name - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid - if unit_symbol is not None: + if unit_symbol is not Unset: self.unit_symbol = unit_symbol - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type - if interpolation_type is not None: + if interpolation_type is not Unset: self.interpolation_type = interpolation_type - if parameter_type is not None: + if parameter_type is not Unset: self.parameter_type = parameter_type - if default_value is not None: + if default_value is not Unset: self.default_value = default_value @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ self._name = name @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, Unset_Type]": """Gets the identity of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - int + Union[int, Unset_Type] The identity of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - identity: int + identity: Union[int, Unset_Type] The identity of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ + # Field is not nullable + if identity is None: + raise ValueError("Invalid value for 'identity', must not be 'None'") self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ self._guid = guid @property - def unit_symbol(self) -> "Optional[str]": + def unit_symbol(self) -> "Union[str, None, Unset_Type]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "Optional[str]") -> None: + def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - unit_symbol: str + unit_symbol: Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ self._unit_symbol = unit_symbol @property - def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": + def scale_type(self) -> "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - GrantaServerApiParameterInfoScaleType + Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + self, scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - scale_type: GrantaServerApiParameterInfoScaleType + scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @property def interpolation_type( self, - ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": + ) -> "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]": """Gets the interpolation_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - GrantaServerApiParameterInfoInterpolationType + Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._interpolation_type @@ -256,69 +270,84 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( self, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", ) -> None: """Sets the interpolation_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - interpolation_type: GrantaServerApiParameterInfoInterpolationType + interpolation_type: Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ + # Field is not nullable + if interpolation_type is None: + raise ValueError( + "Invalid value for 'interpolation_type', must not be 'None'" + ) self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": + def parameter_type( + self, + ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - GrantaServerApiParameterInfoParameterType + Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._parameter_type @parameter_type.setter def parameter_type( - self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" + self, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", ) -> None: """Sets the parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - parameter_type: GrantaServerApiParameterInfoParameterType + parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ + # Field is not nullable + if parameter_type is None: + raise ValueError("Invalid value for 'parameter_type', must not be 'None'") self._parameter_type = parameter_type @property def default_value( self, - ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": + ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns ------- - GrantaServerApiDataExportDatumsParameterValue + Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ return self._default_value @default_value.setter def default_value( - self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" + self, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", ) -> None: """Sets the default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue + default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. """ + # Field is not nullable + if default_value is None: + raise ValueError("Invalid value for 'default_value', must not be 'None'") self._default_value = default_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -335,7 +364,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py index 8a8e9df9..b55d5026 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -83,169 +85,191 @@ class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectId def __init__( self, *, - access_control_category_values: "Optional[Dict[str, List[str]]]" = None, - attributes: "Optional[List[GrantaServerApiIntegrationSchemaAttribute]]" = None, - discrete_types: "Optional[List[GrantaServerApiIntegrationSchemaDiscreteType]]" = None, - key: "Optional[str]" = None, - layouts: "Optional[List[GrantaServerApiIntegrationSchemaLayout]]" = None, - security_groups: "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]" = None, - sources: "Optional[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]]" = None, - unit_system: "Optional[str]" = None, - version: "Optional[int]" = None, + access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]" = Unset, + attributes: "Union[List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type]" = Unset, + discrete_types: "Union[List[GrantaServerApiIntegrationSchemaDiscreteType], None, Unset_Type]" = Unset, + key: "Union[str, None, Unset_Type]" = Unset, + layouts: "Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type]" = Unset, + security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]" = Unset, + sources: "Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None, Unset_Type]" = Unset, + unit_system: "Union[str, None, Unset_Type]" = Unset, + version: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier - a model defined in Swagger Parameters ---------- - access_control_category_values: Dict[str, List[str]], optional - attributes: List[GrantaServerApiIntegrationSchemaAttribute], optional - discrete_types: List[GrantaServerApiIntegrationSchemaDiscreteType], optional - key: str, optional - layouts: List[GrantaServerApiIntegrationSchemaLayout], optional - security_groups: GrantaServerApiIntegrationSchemaSecurityGroups, optional - sources: List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], optional - unit_system: str, optional - version: int, optional + access_control_category_values: Dict[str, List[str]], optional + attributes: List[GrantaServerApiIntegrationSchemaAttribute], optional + discrete_types: List[GrantaServerApiIntegrationSchemaDiscreteType], optional + key: str, optional + layouts: List[GrantaServerApiIntegrationSchemaLayout], optional + security_groups: GrantaServerApiIntegrationSchemaSecurityGroups, optional + sources: List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], optional + unit_system: str, optional + version: int, optional """ - self._key = None - self._version = None - self._attributes = None - self._layouts = None - self._unit_system = None - self._discrete_types = None - self._sources = None - self._access_control_category_values = None - self._security_groups = None - - if key is not None: + self._key: Union[str, None, Unset_Type] = Unset + self._version: Union[int, None, Unset_Type] = Unset + self._attributes: Union[ + List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type + ] = Unset + self._layouts: Union[ + List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type + ] = Unset + self._unit_system: Union[str, None, Unset_Type] = Unset + self._discrete_types: Union[ + List[GrantaServerApiIntegrationSchemaDiscreteType], None, Unset_Type + ] = Unset + self._sources: Union[ + List[ + GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier + ], + None, + Unset_Type, + ] = Unset + self._access_control_category_values: Union[ + Dict[str, List[str]], None, Unset_Type + ] = Unset + self._security_groups: Union[ + GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type + ] = Unset + + if key is not Unset: self.key = key - if version is not None: + if version is not Unset: self.version = version - if attributes is not None: + if attributes is not Unset: self.attributes = attributes - if layouts is not None: + if layouts is not Unset: self.layouts = layouts - if unit_system is not None: + if unit_system is not Unset: self.unit_system = unit_system - if discrete_types is not None: + if discrete_types is not Unset: self.discrete_types = discrete_types - if sources is not None: + if sources is not Unset: self.sources = sources - if access_control_category_values is not None: + if access_control_category_values is not Unset: self.access_control_category_values = access_control_category_values - if security_groups is not None: + if security_groups is not Unset: self.security_groups = security_groups @property - def key(self) -> "Optional[str]": + def key(self) -> "Union[str, None, Unset_Type]": """Gets the key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - str + Union[str, None, Unset_Type] The key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._key @key.setter - def key(self, key: "Optional[str]") -> None: + def key(self, key: "Union[str, None, Unset_Type]") -> None: """Sets the key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - key: str + key: Union[str, None, Unset_Type] The key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._key = key @property - def version(self) -> "Optional[int]": + def version(self) -> "Union[int, None, Unset_Type]": """Gets the version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - int + Union[int, None, Unset_Type] The version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._version @version.setter - def version(self, version: "Optional[int]") -> None: + def version(self, version: "Union[int, None, Unset_Type]") -> None: """Sets the version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - version: int + version: Union[int, None, Unset_Type] The version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._version = version @property - def attributes(self) -> "Optional[List[GrantaServerApiIntegrationSchemaAttribute]]": + def attributes( + self, + ) -> "Union[List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type]": """Gets the attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaAttribute] + Union[List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type] The attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._attributes @attributes.setter def attributes( - self, attributes: "Optional[List[GrantaServerApiIntegrationSchemaAttribute]]" + self, + attributes: "Union[List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type]", ) -> None: """Sets the attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - attributes: List[GrantaServerApiIntegrationSchemaAttribute] + attributes: Union[List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type] The attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._attributes = attributes @property - def layouts(self) -> "Optional[List[GrantaServerApiIntegrationSchemaLayout]]": + def layouts( + self, + ) -> "Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type]": """Gets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaLayout] + Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type] The layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._layouts @layouts.setter def layouts( - self, layouts: "Optional[List[GrantaServerApiIntegrationSchemaLayout]]" + self, + layouts: "Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type]", ) -> None: """Sets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - layouts: List[GrantaServerApiIntegrationSchemaLayout] + layouts: Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type] The layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._layouts = layouts @property - def unit_system(self) -> "Optional[str]": + def unit_system(self) -> "Union[str, None, Unset_Type]": """Gets the unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - str + Union[str, None, Unset_Type] The unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._unit_system @unit_system.setter - def unit_system(self, unit_system: "Optional[str]") -> None: + def unit_system(self, unit_system: "Union[str, None, Unset_Type]") -> None: """Sets the unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - unit_system: str + unit_system: Union[str, None, Unset_Type] The unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._unit_system = unit_system @@ -253,12 +277,12 @@ def unit_system(self, unit_system: "Optional[str]") -> None: @property def discrete_types( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaDiscreteType]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaDiscreteType], None, Unset_Type]": """Gets the discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaDiscreteType] + Union[List[GrantaServerApiIntegrationSchemaDiscreteType], None, Unset_Type] The discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._discrete_types @@ -266,13 +290,13 @@ def discrete_types( @discrete_types.setter def discrete_types( self, - discrete_types: "Optional[List[GrantaServerApiIntegrationSchemaDiscreteType]]", + discrete_types: "Union[List[GrantaServerApiIntegrationSchemaDiscreteType], None, Unset_Type]", ) -> None: """Sets the discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - discrete_types: List[GrantaServerApiIntegrationSchemaDiscreteType] + discrete_types: Union[List[GrantaServerApiIntegrationSchemaDiscreteType], None, Unset_Type] The discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._discrete_types = discrete_types @@ -280,12 +304,12 @@ def discrete_types( @property def sources( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None, Unset_Type]": """Gets the sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] + Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None, Unset_Type] The sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._sources @@ -293,37 +317,40 @@ def sources( @sources.setter def sources( self, - sources: "Optional[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]]", + sources: "Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None, Unset_Type]", ) -> None: """Sets the sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - sources: List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] + sources: Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None, Unset_Type] The sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._sources = sources @property - def access_control_category_values(self) -> "Optional[Dict[str, List[str]]]": + def access_control_category_values( + self, + ) -> "Union[Dict[str, List[str]], None, Unset_Type]": """Gets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - dict(str, list[str]) + Union[Dict[str, List[str]], None, Unset_Type] The access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._access_control_category_values @access_control_category_values.setter def access_control_category_values( - self, access_control_category_values: "Optional[Dict[str, List[str]]]" + self, + access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]", ) -> None: """Sets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - access_control_category_values: Dict[str, List[str]] + access_control_category_values: Union[Dict[str, List[str]], None, Unset_Type] The access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._access_control_category_values = access_control_category_values @@ -331,12 +358,12 @@ def access_control_category_values( @property def security_groups( self, - ) -> "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]": + ) -> "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]": """Gets the security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiIntegrationSchemaSecurityGroups + Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type] The security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ return self._security_groups @@ -344,19 +371,22 @@ def security_groups( @security_groups.setter def security_groups( self, - security_groups: "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]", + security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]", ) -> None: """Sets the security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - security_groups: GrantaServerApiIntegrationSchemaSecurityGroups + security_groups: Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type] The security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if security_groups is None: + raise ValueError("Invalid value for 'security_groups', must not be 'None'") self._security_groups = security_groups @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -373,7 +403,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py index 2cc604bf..35cf84d3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaLayout(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaLayout(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,101 @@ class GrantaServerApiIntegrationSchemaLayout(ModelBase): # type: ignore[misc] def __init__( self, *, - attribute_guids: "Optional[List[str]]" = None, - attribute_identities: "Optional[List[int]]" = None, - name: "Optional[str]" = None, + attribute_guids: "Union[List[str], None, Unset_Type]" = Unset, + attribute_identities: "Union[List[int], None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaLayout - a model defined in Swagger Parameters ---------- - attribute_guids: List[str], optional - attribute_identities: List[int], optional - name: str, optional + attribute_guids: List[str], optional + attribute_identities: List[int], optional + name: str, optional """ - self._name = None - self._attribute_identities = None - self._attribute_guids = None + self._name: Union[str, None, Unset_Type] = Unset + self._attribute_identities: Union[List[int], None, Unset_Type] = Unset + self._attribute_guids: Union[List[str], None, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if attribute_identities is not None: + if attribute_identities is not Unset: self.attribute_identities = attribute_identities - if attribute_guids is not None: + if attribute_guids is not Unset: self.attribute_guids = attribute_guids @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiIntegrationSchemaLayout. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaLayout. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaLayout. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiIntegrationSchemaLayout. """ self._name = name @property - def attribute_identities(self) -> "Optional[List[int]]": + def attribute_identities(self) -> "Union[List[int], None, Unset_Type]": """Gets the attribute_identities of this GrantaServerApiIntegrationSchemaLayout. Returns ------- - list[int] + Union[List[int], None, Unset_Type] The attribute_identities of this GrantaServerApiIntegrationSchemaLayout. """ return self._attribute_identities @attribute_identities.setter - def attribute_identities(self, attribute_identities: "Optional[List[int]]") -> None: + def attribute_identities( + self, attribute_identities: "Union[List[int], None, Unset_Type]" + ) -> None: """Sets the attribute_identities of this GrantaServerApiIntegrationSchemaLayout. Parameters ---------- - attribute_identities: List[int] + attribute_identities: Union[List[int], None, Unset_Type] The attribute_identities of this GrantaServerApiIntegrationSchemaLayout. """ self._attribute_identities = attribute_identities @property - def attribute_guids(self) -> "Optional[List[str]]": + def attribute_guids(self) -> "Union[List[str], None, Unset_Type]": """Gets the attribute_guids of this GrantaServerApiIntegrationSchemaLayout. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The attribute_guids of this GrantaServerApiIntegrationSchemaLayout. """ return self._attribute_guids @attribute_guids.setter - def attribute_guids(self, attribute_guids: "Optional[List[str]]") -> None: + def attribute_guids( + self, attribute_guids: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the attribute_guids of this GrantaServerApiIntegrationSchemaLayout. Parameters ---------- - attribute_guids: List[str] + attribute_guids: Union[List[str], None, Unset_Type] The attribute_guids of this GrantaServerApiIntegrationSchemaLayout. """ self._attribute_guids = attribute_guids @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +176,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py index dbe4aa76..e1435065 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,105 +75,121 @@ class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier(M def __init__( self, *, - link_source_type: "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]" = None, - parameter_mappings: "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]" = None, - source: "Optional[GrantaServerApiObjectIdentifier]" = None, - target_guid: "Optional[str]" = None, - target_identity: "Optional[int]" = None, + link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]" = Unset, + parameter_mappings: "Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]" = Unset, + source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + target_guid: "Union[str, None, Unset_Type]" = Unset, + target_identity: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier - a model defined in Swagger Parameters ---------- - link_source_type: GrantaServerApiIntegrationSchemaLinkSourceType, optional - parameter_mappings: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], optional - source: GrantaServerApiObjectIdentifier, optional - target_guid: str, optional - target_identity: int, optional + link_source_type: GrantaServerApiIntegrationSchemaLinkSourceType, optional + parameter_mappings: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], optional + source: GrantaServerApiObjectIdentifier, optional + target_guid: str, optional + target_identity: int, optional """ - self._source = None - self._target_identity = None - self._target_guid = None - self._parameter_mappings = None - self._link_source_type = None - - if source is not None: + self._source: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._target_identity: Union[int, Unset_Type] = Unset + self._target_guid: Union[str, None, Unset_Type] = Unset + self._parameter_mappings: Union[ + List[ + GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier + ], + None, + Unset_Type, + ] = Unset + self._link_source_type: Union[ + GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type + ] = Unset + + if source is not Unset: self.source = source - if target_identity is not None: + if target_identity is not Unset: self.target_identity = target_identity - if target_guid is not None: + if target_guid is not Unset: self.target_guid = target_guid - if parameter_mappings is not None: + if parameter_mappings is not Unset: self.parameter_mappings = parameter_mappings - if link_source_type is not None: + if link_source_type is not Unset: self.link_source_type = link_source_type @property - def source(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def source(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ return self._source @source.setter - def source(self, source: "Optional[GrantaServerApiObjectIdentifier]") -> None: + def source( + self, source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" + ) -> None: """Sets the source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Parameters ---------- - source: GrantaServerApiObjectIdentifier + source: Union[GrantaServerApiObjectIdentifier, Unset_Type] The source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if source is None: + raise ValueError("Invalid value for 'source', must not be 'None'") self._source = source @property - def target_identity(self) -> "Optional[int]": + def target_identity(self) -> "Union[int, Unset_Type]": """Gets the target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The identity of the integration schema attribute Returns ------- - int + Union[int, Unset_Type] The target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ return self._target_identity @target_identity.setter - def target_identity(self, target_identity: "Optional[int]") -> None: + def target_identity(self, target_identity: "Union[int, Unset_Type]") -> None: """Sets the target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The identity of the integration schema attribute Parameters ---------- - target_identity: int + target_identity: Union[int, Unset_Type] The target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if target_identity is None: + raise ValueError("Invalid value for 'target_identity', must not be 'None'") self._target_identity = target_identity @property - def target_guid(self) -> "Optional[str]": + def target_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_guid of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute Returns ------- - str + Union[str, None, Unset_Type] The target_guid of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ return self._target_guid @target_guid.setter - def target_guid(self, target_guid: "Optional[str]") -> None: + def target_guid(self, target_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_guid of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute Parameters ---------- - target_guid: str + target_guid: Union[str, None, Unset_Type] The target_guid of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ self._target_guid = target_guid @@ -179,13 +197,13 @@ def target_guid(self, target_guid: "Optional[str]") -> None: @property def parameter_mappings( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]": """Gets the parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Any mapped parameters (float functional attributes only). The target parameters must be defined on the target integration attribute. Not every parameters from the source database needs to be mapped for each attribute. Returns ------- - list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ return self._parameter_mappings @@ -193,14 +211,14 @@ def parameter_mappings( @parameter_mappings.setter def parameter_mappings( self, - parameter_mappings: "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]", + parameter_mappings: "Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]", ) -> None: """Sets the parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Any mapped parameters (float functional attributes only). The target parameters must be defined on the target integration attribute. Not every parameters from the source database needs to be mapped for each attribute. Parameters ---------- - parameter_mappings: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + parameter_mappings: Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ self._parameter_mappings = parameter_mappings @@ -208,12 +226,12 @@ def parameter_mappings( @property def link_source_type( self, - ) -> "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]": + ) -> "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]": """Gets the link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiIntegrationSchemaLinkSourceType + Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type] The link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ return self._link_source_type @@ -221,19 +239,22 @@ def link_source_type( @link_source_type.setter def link_source_type( self, - link_source_type: "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]", + link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]", ) -> None: """Sets the link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Parameters ---------- - link_source_type: GrantaServerApiIntegrationSchemaLinkSourceType + link_source_type: Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type] The link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if link_source_type is None: + raise ValueError("Invalid value for 'link_source_type', must not be 'None'") self._link_source_type = link_source_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -250,7 +271,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py index dd19ff8d..19c54960 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiIntegrationSchemaSecurityGroups(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaSecurityGroups(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,74 +63,74 @@ class GrantaServerApiIntegrationSchemaSecurityGroups(ModelBase): # type: ignore def __init__( self, *, - admin_group: "Optional[str]" = None, - read_group: "Optional[str]" = None, + admin_group: "Union[str, None, Unset_Type]" = Unset, + read_group: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaSecurityGroups - a model defined in Swagger Parameters ---------- - admin_group: str, optional - read_group: str, optional + admin_group: str, optional + read_group: str, optional """ - self._read_group = None - self._admin_group = None + self._read_group: Union[str, None, Unset_Type] = Unset + self._admin_group: Union[str, None, Unset_Type] = Unset - if read_group is not None: + if read_group is not Unset: self.read_group = read_group - if admin_group is not None: + if admin_group is not Unset: self.admin_group = admin_group @property - def read_group(self) -> "Optional[str]": + def read_group(self) -> "Union[str, None, Unset_Type]": """Gets the read_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this groups can read data from the integration schema. Returns ------- - str + Union[str, None, Unset_Type] The read_group of this GrantaServerApiIntegrationSchemaSecurityGroups. """ return self._read_group @read_group.setter - def read_group(self, read_group: "Optional[str]") -> None: + def read_group(self, read_group: "Union[str, None, Unset_Type]") -> None: """Sets the read_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this groups can read data from the integration schema. Parameters ---------- - read_group: str + read_group: Union[str, None, Unset_Type] The read_group of this GrantaServerApiIntegrationSchemaSecurityGroups. """ self._read_group = read_group @property - def admin_group(self) -> "Optional[str]": + def admin_group(self) -> "Union[str, None, Unset_Type]": """Gets the admin_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this group can perform administrative tasks such as adding or deleting the schema. Returns ------- - str + Union[str, None, Unset_Type] The admin_group of this GrantaServerApiIntegrationSchemaSecurityGroups. """ return self._admin_group @admin_group.setter - def admin_group(self, admin_group: "Optional[str]") -> None: + def admin_group(self, admin_group: "Union[str, None, Unset_Type]") -> None: """Sets the admin_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this group can perform administrative tasks such as adding or deleting the schema. Parameters ---------- - admin_group: str + admin_group: Union[str, None, Unset_Type] The admin_group of this GrantaServerApiIntegrationSchemaSecurityGroups. """ self._admin_group = admin_group @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py index 306de492..3602a036 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] +class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,110 +73,126 @@ class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier(Mo def __init__( self, *, - database: "Optional[GrantaServerApiObjectIdentifier]" = None, - database_key: "Optional[str]" = None, - mappings: "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]" = None, - table: "Optional[GrantaServerApiObjectIdentifier]" = None, + database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + mappings: "Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]" = Unset, + table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, ) -> None: """GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier - a model defined in Swagger Parameters ---------- - database: GrantaServerApiObjectIdentifier, optional - database_key: str, optional - mappings: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], optional - table: GrantaServerApiObjectIdentifier, optional + database: GrantaServerApiObjectIdentifier, optional + database_key: str, optional + mappings: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], optional + table: GrantaServerApiObjectIdentifier, optional """ - self._database = None - self._database_key = None - self._table = None - self._mappings = None - - if database is not None: + self._database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._database_key: Union[str, None, Unset_Type] = Unset + self._table: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset + self._mappings: Union[ + List[ + GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier + ], + None, + Unset_Type, + ] = Unset + + if database is not Unset: self.database = database - if database_key is not None: + if database_key is not Unset: self.database_key = database_key - if table is not None: + if table is not Unset: self.table = table - if mappings is not None: + if mappings is not Unset: self.mappings = mappings @property - def database(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def database(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ return self._database @database.setter - def database(self, database: "Optional[GrantaServerApiObjectIdentifier]") -> None: + def database( + self, database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" + ) -> None: """Sets the database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters ---------- - database: GrantaServerApiObjectIdentifier + database: Union[GrantaServerApiObjectIdentifier, Unset_Type] The database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if database is None: + raise ValueError("Invalid value for 'database', must not be 'None'") self._database = database @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ self._database_key = database_key @property - def table(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def table(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ return self._table @table.setter - def table(self, table: "Optional[GrantaServerApiObjectIdentifier]") -> None: + def table( + self, table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" + ) -> None: """Sets the table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters ---------- - table: GrantaServerApiObjectIdentifier + table: Union[GrantaServerApiObjectIdentifier, Unset_Type] The table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ + # Field is not nullable + if table is None: + raise ValueError("Invalid value for 'table', must not be 'None'") self._table = table @property def mappings( self, - ) -> "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]": + ) -> "Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]": """Gets the mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. Returns ------- - list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ return self._mappings @@ -182,20 +200,20 @@ def mappings( @mappings.setter def mappings( self, - mappings: "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]", + mappings: "Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type]", ) -> None: """Sets the mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. Parameters ---------- - mappings: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + mappings: Union[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type] The mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ self._mappings = mappings @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -212,7 +230,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py index f5f54c86..2aeb28a6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoCreateListItem(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoCreateListItem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,28 +69,28 @@ def __init__( *, database_guid: "str", record_history_guid: "str", - record_version: "Optional[int]" = None, - table_guid: "Optional[str]" = None, + record_version: "Union[int, None, Unset_Type]" = Unset, + table_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoCreateListItem - a model defined in Swagger Parameters ---------- - database_guid: str - record_history_guid: str - record_version: int, optional - table_guid: str, optional + database_guid: str + record_history_guid: str + record_version: int, optional + table_guid: str, optional """ - self._database_guid: str = None # type: ignore[assignment] - self._record_history_guid: str = None # type: ignore[assignment] - self._record_version = None - self._table_guid = None + self._database_guid: str + self._record_history_guid: str + self._record_version: Union[int, None, Unset_Type] = Unset + self._table_guid: Union[str, None, Unset_Type] = Unset self.database_guid = database_guid self.record_history_guid = record_history_guid - if record_version is not None: + if record_version is not Unset: self.record_version = record_version - if table_guid is not None: + if table_guid is not Unset: self.table_guid = table_guid @property @@ -113,8 +113,12 @@ def database_guid(self, database_guid: "str") -> None: database_guid: str The database_guid of this GrantaServerApiListsDtoCreateListItem. """ + # Field is not nullable if database_guid is None: raise ValueError("Invalid value for 'database_guid', must not be 'None'") + # Field is required + if database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_guid', must not be 'Unset'") self._database_guid = database_guid @property @@ -137,58 +141,64 @@ def record_history_guid(self, record_history_guid: "str") -> None: record_history_guid: str The record_history_guid of this GrantaServerApiListsDtoCreateListItem. """ + # Field is not nullable if record_history_guid is None: raise ValueError( "Invalid value for 'record_history_guid', must not be 'None'" ) + # Field is required + if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'Unset'" + ) self._record_history_guid = record_history_guid @property - def record_version(self) -> "Optional[int]": + def record_version(self) -> "Union[int, None, Unset_Type]": """Gets the record_version of this GrantaServerApiListsDtoCreateListItem. Returns ------- - int + Union[int, None, Unset_Type] The record_version of this GrantaServerApiListsDtoCreateListItem. """ return self._record_version @record_version.setter - def record_version(self, record_version: "Optional[int]") -> None: + def record_version(self, record_version: "Union[int, None, Unset_Type]") -> None: """Sets the record_version of this GrantaServerApiListsDtoCreateListItem. Parameters ---------- - record_version: int + record_version: Union[int, None, Unset_Type] The record_version of this GrantaServerApiListsDtoCreateListItem. """ self._record_version = record_version @property - def table_guid(self) -> "Optional[str]": + def table_guid(self) -> "Union[str, None, Unset_Type]": """Gets the table_guid of this GrantaServerApiListsDtoCreateListItem. Returns ------- - str + Union[str, None, Unset_Type] The table_guid of this GrantaServerApiListsDtoCreateListItem. """ return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "Optional[str]") -> None: + def table_guid(self, table_guid: "Union[str, None, Unset_Type]") -> None: """Sets the table_guid of this GrantaServerApiListsDtoCreateListItem. Parameters ---------- - table_guid: str + table_guid: Union[str, None, Unset_Type] The table_guid of this GrantaServerApiListsDtoCreateListItem. """ self._table_guid = table_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -205,7 +215,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py index 43beccd3..daceefb2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoCreateRecordList(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoCreateRecordList(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,94 +78,102 @@ def __init__( self, *, name: "str", - awaiting_approval: "Optional[bool]" = None, - description: "Optional[str]" = None, - identifier: "Optional[str]" = None, - internal_use: "Optional[bool]" = None, - items: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" = None, - notes: "Optional[str]" = None, - published: "Optional[bool]" = None, + awaiting_approval: "Union[bool, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + identifier: "Union[str, None, Unset_Type]" = Unset, + internal_use: "Union[bool, Unset_Type]" = Unset, + items: "Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type]" = Unset, + notes: "Union[str, None, Unset_Type]" = Unset, + published: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoCreateRecordList - a model defined in Swagger Parameters ---------- - name: str - awaiting_approval: bool, optional - description: str, optional - identifier: str, optional - internal_use: bool, optional - items: GrantaServerApiListsDtoCreateRecordListItemsInfo, optional - notes: str, optional - published: bool, optional + name: str + awaiting_approval: bool, optional + description: str, optional + identifier: str, optional + internal_use: bool, optional + items: GrantaServerApiListsDtoCreateRecordListItemsInfo, optional + notes: str, optional + published: bool, optional """ - self._items = None - self._identifier = None - self._name: str = None # type: ignore[assignment] - self._description = None - self._notes = None - self._published = None - self._awaiting_approval = None - self._internal_use = None - - if items is not None: + self._items: Union[ + GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type + ] = Unset + self._identifier: Union[str, None, Unset_Type] = Unset + self._name: str + self._description: Union[str, None, Unset_Type] = Unset + self._notes: Union[str, None, Unset_Type] = Unset + self._published: Union[bool, Unset_Type] = Unset + self._awaiting_approval: Union[bool, Unset_Type] = Unset + self._internal_use: Union[bool, Unset_Type] = Unset + + if items is not Unset: self.items = items - if identifier is not None: + if identifier is not Unset: self.identifier = identifier self.name = name - if description is not None: + if description is not Unset: self.description = description - if notes is not None: + if notes is not Unset: self.notes = notes - if published is not None: + if published is not Unset: self.published = published - if awaiting_approval is not None: + if awaiting_approval is not Unset: self.awaiting_approval = awaiting_approval - if internal_use is not None: + if internal_use is not Unset: self.internal_use = internal_use @property - def items(self) -> "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]": + def items( + self, + ) -> "Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type]": """Gets the items of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - GrantaServerApiListsDtoCreateRecordListItemsInfo + Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type] The items of this GrantaServerApiListsDtoCreateRecordList. """ return self._items @items.setter def items( - self, items: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" + self, + items: "Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type]", ) -> None: """Sets the items of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - items: GrantaServerApiListsDtoCreateRecordListItemsInfo + items: Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type] The items of this GrantaServerApiListsDtoCreateRecordList. """ + # Field is not nullable + if items is None: + raise ValueError("Invalid value for 'items', must not be 'None'") self._items = items @property - def identifier(self) -> "Optional[str]": + def identifier(self) -> "Union[str, None, Unset_Type]": """Gets the identifier of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - str + Union[str, None, Unset_Type] The identifier of this GrantaServerApiListsDtoCreateRecordList. """ return self._identifier @identifier.setter - def identifier(self, identifier: "Optional[str]") -> None: + def identifier(self, identifier: "Union[str, None, Unset_Type]") -> None: """Sets the identifier of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - identifier: str + identifier: Union[str, None, Unset_Type] The identifier of this GrantaServerApiListsDtoCreateRecordList. """ self._identifier = identifier @@ -190,122 +198,137 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiListsDtoCreateRecordList. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiListsDtoCreateRecordList. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiListsDtoCreateRecordList. """ self._description = description @property - def notes(self) -> "Optional[str]": + def notes(self) -> "Union[str, None, Unset_Type]": """Gets the notes of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - str + Union[str, None, Unset_Type] The notes of this GrantaServerApiListsDtoCreateRecordList. """ return self._notes @notes.setter - def notes(self, notes: "Optional[str]") -> None: + def notes(self, notes: "Union[str, None, Unset_Type]") -> None: """Sets the notes of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - notes: str + notes: Union[str, None, Unset_Type] The notes of this GrantaServerApiListsDtoCreateRecordList. """ self._notes = notes @property - def published(self) -> "Optional[bool]": + def published(self) -> "Union[bool, Unset_Type]": """Gets the published of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - bool + Union[bool, Unset_Type] The published of this GrantaServerApiListsDtoCreateRecordList. """ return self._published @published.setter - def published(self, published: "Optional[bool]") -> None: + def published(self, published: "Union[bool, Unset_Type]") -> None: """Sets the published of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - published: bool + published: Union[bool, Unset_Type] The published of this GrantaServerApiListsDtoCreateRecordList. """ + # Field is not nullable + if published is None: + raise ValueError("Invalid value for 'published', must not be 'None'") self._published = published @property - def awaiting_approval(self) -> "Optional[bool]": + def awaiting_approval(self) -> "Union[bool, Unset_Type]": """Gets the awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - bool + Union[bool, Unset_Type] The awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. """ return self._awaiting_approval @awaiting_approval.setter - def awaiting_approval(self, awaiting_approval: "Optional[bool]") -> None: + def awaiting_approval(self, awaiting_approval: "Union[bool, Unset_Type]") -> None: """Sets the awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - awaiting_approval: bool + awaiting_approval: Union[bool, Unset_Type] The awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. """ + # Field is not nullable + if awaiting_approval is None: + raise ValueError( + "Invalid value for 'awaiting_approval', must not be 'None'" + ) self._awaiting_approval = awaiting_approval @property - def internal_use(self) -> "Optional[bool]": + def internal_use(self) -> "Union[bool, Unset_Type]": """Gets the internal_use of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - bool + Union[bool, Unset_Type] The internal_use of this GrantaServerApiListsDtoCreateRecordList. """ return self._internal_use @internal_use.setter - def internal_use(self, internal_use: "Optional[bool]") -> None: + def internal_use(self, internal_use: "Union[bool, Unset_Type]") -> None: """Sets the internal_use of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - internal_use: bool + internal_use: Union[bool, Unset_Type] The internal_use of this GrantaServerApiListsDtoCreateRecordList. """ + # Field is not nullable + if internal_use is None: + raise ValueError("Invalid value for 'internal_use', must not be 'None'") self._internal_use = internal_use @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -322,7 +345,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py index b84c91ce..5a97cbaf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoCreateRecordListItemsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoCreateRecordListItemsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - items: List[GrantaServerApiListsDtoCreateListItem] + items: List[GrantaServerApiListsDtoCreateListItem] """ - self._items: List[GrantaServerApiListsDtoCreateListItem] = None # type: ignore[assignment] + self._items: List[GrantaServerApiListsDtoCreateListItem] self.items = items @@ -81,7 +81,7 @@ def items(self) -> "List[GrantaServerApiListsDtoCreateListItem]": Returns ------- - list[GrantaServerApiListsDtoCreateListItem] + List[GrantaServerApiListsDtoCreateListItem] The items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. """ return self._items @@ -95,12 +95,16 @@ def items(self, items: "List[GrantaServerApiListsDtoCreateListItem]") -> None: items: List[GrantaServerApiListsDtoCreateListItem] The items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. """ + # Field is not nullable if items is None: raise ValueError("Invalid value for 'items', must not be 'None'") + # Field is required + if items is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'items', must not be 'Unset'") self._items = items @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -117,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py index 87f26c6a..658d759f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoDeleteRecordListItem(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoDeleteRecordListItem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,23 +67,23 @@ def __init__( *, database_guid: "str", record_history_guid: "str", - record_version: "Optional[int]" = None, + record_version: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoDeleteRecordListItem - a model defined in Swagger Parameters ---------- - database_guid: str - record_history_guid: str - record_version: int, optional + database_guid: str + record_history_guid: str + record_version: int, optional """ - self._database_guid: str = None # type: ignore[assignment] - self._record_history_guid: str = None # type: ignore[assignment] - self._record_version = None + self._database_guid: str + self._record_history_guid: str + self._record_version: Union[int, None, Unset_Type] = Unset self.database_guid = database_guid self.record_history_guid = record_history_guid - if record_version is not None: + if record_version is not Unset: self.record_version = record_version @property @@ -106,8 +106,12 @@ def database_guid(self, database_guid: "str") -> None: database_guid: str The database_guid of this GrantaServerApiListsDtoDeleteRecordListItem. """ + # Field is not nullable if database_guid is None: raise ValueError("Invalid value for 'database_guid', must not be 'None'") + # Field is required + if database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_guid', must not be 'Unset'") self._database_guid = database_guid @property @@ -130,36 +134,42 @@ def record_history_guid(self, record_history_guid: "str") -> None: record_history_guid: str The record_history_guid of this GrantaServerApiListsDtoDeleteRecordListItem. """ + # Field is not nullable if record_history_guid is None: raise ValueError( "Invalid value for 'record_history_guid', must not be 'None'" ) + # Field is required + if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'Unset'" + ) self._record_history_guid = record_history_guid @property - def record_version(self) -> "Optional[int]": + def record_version(self) -> "Union[int, None, Unset_Type]": """Gets the record_version of this GrantaServerApiListsDtoDeleteRecordListItem. Returns ------- - int + Union[int, None, Unset_Type] The record_version of this GrantaServerApiListsDtoDeleteRecordListItem. """ return self._record_version @record_version.setter - def record_version(self, record_version: "Optional[int]") -> None: + def record_version(self, record_version: "Union[int, None, Unset_Type]") -> None: """Sets the record_version of this GrantaServerApiListsDtoDeleteRecordListItem. Parameters ---------- - record_version: int + record_version: Union[int, None, Unset_Type] The record_version of this GrantaServerApiListsDtoDeleteRecordListItem. """ self._record_version = record_version @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -176,7 +186,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py index 54161056..aa604e0a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoDeleteRecordListItems(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoDeleteRecordListItems(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - items: List[GrantaServerApiListsDtoDeleteRecordListItem] + items: List[GrantaServerApiListsDtoDeleteRecordListItem] """ - self._items: List[GrantaServerApiListsDtoDeleteRecordListItem] = None # type: ignore[assignment] + self._items: List[GrantaServerApiListsDtoDeleteRecordListItem] self.items = items @@ -81,7 +81,7 @@ def items(self) -> "List[GrantaServerApiListsDtoDeleteRecordListItem]": Returns ------- - list[GrantaServerApiListsDtoDeleteRecordListItem] + List[GrantaServerApiListsDtoDeleteRecordListItem] The items of this GrantaServerApiListsDtoDeleteRecordListItems. """ return self._items @@ -95,12 +95,16 @@ def items(self, items: "List[GrantaServerApiListsDtoDeleteRecordListItem]") -> N items: List[GrantaServerApiListsDtoDeleteRecordListItem] The items of this GrantaServerApiListsDtoDeleteRecordListItems. """ + # Field is not nullable if items is None: raise ValueError("Invalid value for 'items', must not be 'None'") + # Field is required + if items is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'items', must not be 'Unset'") self._items = items @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -117,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py index d1396357..d7f00e49 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_lists_dto_list_criterion import ( GrantaServerApiListsDtoListCriterion, ) # noqa: F401 @@ -71,73 +71,83 @@ class GrantaServerApiListsDtoListBooleanCriterion(GrantaServerApiListsDtoListCri def __init__( self, *, - match_all: "Optional[List[GrantaServerApiListsDtoListCriterion]]" = None, - match_any: "Optional[List[GrantaServerApiListsDtoListCriterion]]" = None, + match_all: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]" = Unset, + match_any: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]" = Unset, type: "str" = "listBoolean", ) -> None: """GrantaServerApiListsDtoListBooleanCriterion - a model defined in Swagger Parameters ---------- - match_all: List[GrantaServerApiListsDtoListCriterion], optional - match_any: List[GrantaServerApiListsDtoListCriterion], optional - type: str + match_all: List[GrantaServerApiListsDtoListCriterion], optional + match_any: List[GrantaServerApiListsDtoListCriterion], optional + type: str """ super().__init__() - self._match_any = None - self._match_all = None - self._type: str = None # type: ignore[assignment] - - if match_any is not None: + self._match_any: Union[ + List[GrantaServerApiListsDtoListCriterion], None, Unset_Type + ] = Unset + self._match_all: Union[ + List[GrantaServerApiListsDtoListCriterion], None, Unset_Type + ] = Unset + self._type: str + + if match_any is not Unset: self.match_any = match_any - if match_all is not None: + if match_all is not Unset: self.match_all = match_all self.type = type @property - def match_any(self) -> "Optional[List[GrantaServerApiListsDtoListCriterion]]": + def match_any( + self, + ) -> "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]": """Gets the match_any of this GrantaServerApiListsDtoListBooleanCriterion. Returns ------- - list[GrantaServerApiListsDtoListCriterion] + Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type] The match_any of this GrantaServerApiListsDtoListBooleanCriterion. """ return self._match_any @match_any.setter def match_any( - self, match_any: "Optional[List[GrantaServerApiListsDtoListCriterion]]" + self, + match_any: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]", ) -> None: """Sets the match_any of this GrantaServerApiListsDtoListBooleanCriterion. Parameters ---------- - match_any: List[GrantaServerApiListsDtoListCriterion] + match_any: Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type] The match_any of this GrantaServerApiListsDtoListBooleanCriterion. """ self._match_any = match_any @property - def match_all(self) -> "Optional[List[GrantaServerApiListsDtoListCriterion]]": + def match_all( + self, + ) -> "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]": """Gets the match_all of this GrantaServerApiListsDtoListBooleanCriterion. Returns ------- - list[GrantaServerApiListsDtoListCriterion] + Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type] The match_all of this GrantaServerApiListsDtoListBooleanCriterion. """ return self._match_all @match_all.setter def match_all( - self, match_all: "Optional[List[GrantaServerApiListsDtoListCriterion]]" + self, + match_all: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]", ) -> None: """Sets the match_all of this GrantaServerApiListsDtoListBooleanCriterion. Parameters ---------- - match_all: List[GrantaServerApiListsDtoListCriterion] + match_all: Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type] The match_all of this GrantaServerApiListsDtoListBooleanCriterion. """ self._match_all = match_all @@ -162,12 +172,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiListsDtoListBooleanCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -184,7 +198,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py index 7a7bed10..75f045fb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoListCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoListCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,7 +67,7 @@ def __init__( """GrantaServerApiListsDtoListCriterion - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -89,7 +89,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py index 1c2ea4e7..13ed8d9a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoListItem(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoListItem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,30 +72,30 @@ def __init__( database_guid: "str", record_history_guid: "str", table_guid: "str", - record_guid: "Optional[str]" = None, - record_version: "Optional[int]" = None, + record_guid: "Union[str, None, Unset_Type]" = Unset, + record_version: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoListItem - a model defined in Swagger Parameters ---------- - database_guid: str - record_history_guid: str - table_guid: str - record_guid: str, optional - record_version: int, optional + database_guid: str + record_history_guid: str + table_guid: str + record_guid: str, optional + record_version: int, optional """ - self._database_guid: str = None # type: ignore[assignment] - self._record_history_guid: str = None # type: ignore[assignment] - self._record_guid = None - self._record_version = None - self._table_guid: str = None # type: ignore[assignment] + self._database_guid: str + self._record_history_guid: str + self._record_guid: Union[str, None, Unset_Type] = Unset + self._record_version: Union[int, None, Unset_Type] = Unset + self._table_guid: str self.database_guid = database_guid self.record_history_guid = record_history_guid - if record_guid is not None: + if record_guid is not Unset: self.record_guid = record_guid - if record_version is not None: + if record_version is not Unset: self.record_version = record_version self.table_guid = table_guid @@ -119,8 +119,12 @@ def database_guid(self, database_guid: "str") -> None: database_guid: str The database_guid of this GrantaServerApiListsDtoListItem. """ + # Field is not nullable if database_guid is None: raise ValueError("Invalid value for 'database_guid', must not be 'None'") + # Field is required + if database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_guid', must not be 'Unset'") self._database_guid = database_guid @property @@ -143,52 +147,58 @@ def record_history_guid(self, record_history_guid: "str") -> None: record_history_guid: str The record_history_guid of this GrantaServerApiListsDtoListItem. """ + # Field is not nullable if record_history_guid is None: raise ValueError( "Invalid value for 'record_history_guid', must not be 'None'" ) + # Field is required + if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'Unset'" + ) self._record_history_guid = record_history_guid @property - def record_guid(self) -> "Optional[str]": + def record_guid(self) -> "Union[str, None, Unset_Type]": """Gets the record_guid of this GrantaServerApiListsDtoListItem. Returns ------- - str + Union[str, None, Unset_Type] The record_guid of this GrantaServerApiListsDtoListItem. """ return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "Optional[str]") -> None: + def record_guid(self, record_guid: "Union[str, None, Unset_Type]") -> None: """Sets the record_guid of this GrantaServerApiListsDtoListItem. Parameters ---------- - record_guid: str + record_guid: Union[str, None, Unset_Type] The record_guid of this GrantaServerApiListsDtoListItem. """ self._record_guid = record_guid @property - def record_version(self) -> "Optional[int]": + def record_version(self) -> "Union[int, None, Unset_Type]": """Gets the record_version of this GrantaServerApiListsDtoListItem. Returns ------- - int + Union[int, None, Unset_Type] The record_version of this GrantaServerApiListsDtoListItem. """ return self._record_version @record_version.setter - def record_version(self, record_version: "Optional[int]") -> None: + def record_version(self, record_version: "Union[int, None, Unset_Type]") -> None: """Sets the record_version of this GrantaServerApiListsDtoListItem. Parameters ---------- - record_version: int + record_version: Union[int, None, Unset_Type] The record_version of this GrantaServerApiListsDtoListItem. """ self._record_version = record_version @@ -213,12 +223,16 @@ def table_guid(self, table_guid: "str") -> None: table_guid: str The table_guid of this GrantaServerApiListsDtoListItem. """ + # Field is not nullable if table_guid is None: raise ValueError("Invalid value for 'table_guid', must not be 'None'") + # Field is required + if table_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table_guid', must not be 'Unset'") self._table_guid = table_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -235,7 +249,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py index b821ce6b..af6a9f86 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoPagingOptions(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoPagingOptions(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,74 +63,74 @@ class GrantaServerApiListsDtoPagingOptions(ModelBase): # type: ignore[misc] def __init__( self, *, - page_size: "Optional[int]" = None, - start_index: "Optional[int]" = None, + page_size: "Union[int, None, Unset_Type]" = Unset, + start_index: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoPagingOptions - a model defined in Swagger Parameters ---------- - page_size: int, optional - start_index: int, optional + page_size: int, optional + start_index: int, optional """ - self._start_index = None - self._page_size = None + self._start_index: Union[int, None, Unset_Type] = Unset + self._page_size: Union[int, None, Unset_Type] = Unset - if start_index is not None: + if start_index is not Unset: self.start_index = start_index - if page_size is not None: + if page_size is not Unset: self.page_size = page_size @property - def start_index(self) -> "Optional[int]": + def start_index(self) -> "Union[int, None, Unset_Type]": """Gets the start_index of this GrantaServerApiListsDtoPagingOptions. The index of the first list in the collection to be returned. If not provided it will start at index 0. Returns ------- - int + Union[int, None, Unset_Type] The start_index of this GrantaServerApiListsDtoPagingOptions. """ return self._start_index @start_index.setter - def start_index(self, start_index: "Optional[int]") -> None: + def start_index(self, start_index: "Union[int, None, Unset_Type]") -> None: """Sets the start_index of this GrantaServerApiListsDtoPagingOptions. The index of the first list in the collection to be returned. If not provided it will start at index 0. Parameters ---------- - start_index: int + start_index: Union[int, None, Unset_Type] The start_index of this GrantaServerApiListsDtoPagingOptions. """ self._start_index = start_index @property - def page_size(self) -> "Optional[int]": + def page_size(self) -> "Union[int, None, Unset_Type]": """Gets the page_size of this GrantaServerApiListsDtoPagingOptions. The number of lists to be returned per page. If not provided the number of returned lists will be unlimited. Returns ------- - int + Union[int, None, Unset_Type] The page_size of this GrantaServerApiListsDtoPagingOptions. """ return self._page_size @page_size.setter - def page_size(self, page_size: "Optional[int]") -> None: + def page_size(self, page_size: "Union[int, None, Unset_Type]") -> None: """Sets the page_size of this GrantaServerApiListsDtoPagingOptions. The number of lists to be returned per page. If not provided the number of returned lists will be unlimited. Parameters ---------- - page_size: int + page_size: Union[int, None, Unset_Type] The page_size of this GrantaServerApiListsDtoPagingOptions. """ self._page_size = page_size @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py index dfdd2b84..b5c67434 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListHeader(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListHeader(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -106,67 +106,69 @@ def __init__( metadata: "Dict[str, Dict[str, object]]", name: "str", published: "bool", - description: "Optional[str]" = None, - notes: "Optional[str]" = None, - parent_record_list_identifier: "Optional[str]" = None, - published_timestamp: "Optional[datetime]" = None, - published_user: "Optional[GrantaServerApiListsDtoUserOrGroup]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + notes: "Union[str, None, Unset_Type]" = Unset, + parent_record_list_identifier: "Union[str, None, Unset_Type]" = Unset, + published_timestamp: "Union[datetime, None, Unset_Type]" = Unset, + published_user: "Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoRecordListHeader - a model defined in Swagger Parameters ---------- - awaiting_approval: bool - created_timestamp: datetime - created_user: GrantaServerApiListsDtoUserOrGroup - identifier: str - internal_use: bool - is_revision: bool - last_modified_timestamp: datetime - last_modified_user: GrantaServerApiListsDtoUserOrGroup - metadata: Dict[str, Dict[str, object]] - name: str - published: bool - description: str, optional - notes: str, optional - parent_record_list_identifier: str, optional - published_timestamp: datetime, optional - published_user: GrantaServerApiListsDtoUserOrGroup, optional - """ - self._identifier: str = None # type: ignore[assignment] - self._metadata: Dict[str, Dict[str, object]] = None # type: ignore[assignment] - self._parent_record_list_identifier = None - self._created_timestamp: datetime = None # type: ignore[assignment] - self._created_user: GrantaServerApiListsDtoUserOrGroup = None # type: ignore[assignment] - self._last_modified_timestamp: datetime = None # type: ignore[assignment] - self._last_modified_user: GrantaServerApiListsDtoUserOrGroup = None # type: ignore[assignment] - self._published_timestamp = None - self._published_user = None - self._is_revision: bool = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._description = None - self._notes = None - self._published: bool = None # type: ignore[assignment] - self._awaiting_approval: bool = None # type: ignore[assignment] - self._internal_use: bool = None # type: ignore[assignment] + awaiting_approval: bool + created_timestamp: datetime + created_user: GrantaServerApiListsDtoUserOrGroup + identifier: str + internal_use: bool + is_revision: bool + last_modified_timestamp: datetime + last_modified_user: GrantaServerApiListsDtoUserOrGroup + metadata: Dict[str, Dict[str, object]] + name: str + published: bool + description: str, optional + notes: str, optional + parent_record_list_identifier: str, optional + published_timestamp: datetime, optional + published_user: GrantaServerApiListsDtoUserOrGroup, optional + """ + self._identifier: str + self._metadata: Dict[str, Dict[str, object]] + self._parent_record_list_identifier: Union[str, None, Unset_Type] = Unset + self._created_timestamp: datetime + self._created_user: GrantaServerApiListsDtoUserOrGroup + self._last_modified_timestamp: datetime + self._last_modified_user: GrantaServerApiListsDtoUserOrGroup + self._published_timestamp: Union[datetime, None, Unset_Type] = Unset + self._published_user: Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type] = ( + Unset + ) + self._is_revision: bool + self._name: str + self._description: Union[str, None, Unset_Type] = Unset + self._notes: Union[str, None, Unset_Type] = Unset + self._published: bool + self._awaiting_approval: bool + self._internal_use: bool self.identifier = identifier self.metadata = metadata - if parent_record_list_identifier is not None: + if parent_record_list_identifier is not Unset: self.parent_record_list_identifier = parent_record_list_identifier self.created_timestamp = created_timestamp self.created_user = created_user self.last_modified_timestamp = last_modified_timestamp self.last_modified_user = last_modified_user - if published_timestamp is not None: + if published_timestamp is not Unset: self.published_timestamp = published_timestamp - if published_user is not None: + if published_user is not Unset: self.published_user = published_user self.is_revision = is_revision self.name = name - if description is not None: + if description is not Unset: self.description = description - if notes is not None: + if notes is not Unset: self.notes = notes self.published = published self.awaiting_approval = awaiting_approval @@ -192,8 +194,12 @@ def identifier(self, identifier: "str") -> None: identifier: str The identifier of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if identifier is None: raise ValueError("Invalid value for 'identifier', must not be 'None'") + # Field is required + if identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'identifier', must not be 'Unset'") self._identifier = identifier @property @@ -202,7 +208,7 @@ def metadata(self) -> "Dict[str, Dict[str, object]]": Returns ------- - dict(str, dict(str, object)) + Dict[str, Dict[str, object]] The metadata of this GrantaServerApiListsDtoRecordListHeader. """ return self._metadata @@ -216,30 +222,34 @@ def metadata(self, metadata: "Dict[str, Dict[str, object]]") -> None: metadata: Dict[str, Dict[str, object]] The metadata of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if metadata is None: raise ValueError("Invalid value for 'metadata', must not be 'None'") + # Field is required + if metadata is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'metadata', must not be 'Unset'") self._metadata = metadata @property - def parent_record_list_identifier(self) -> "Optional[str]": + def parent_record_list_identifier(self) -> "Union[str, None, Unset_Type]": """Gets the parent_record_list_identifier of this GrantaServerApiListsDtoRecordListHeader. Returns ------- - str + Union[str, None, Unset_Type] The parent_record_list_identifier of this GrantaServerApiListsDtoRecordListHeader. """ return self._parent_record_list_identifier @parent_record_list_identifier.setter def parent_record_list_identifier( - self, parent_record_list_identifier: "Optional[str]" + self, parent_record_list_identifier: "Union[str, None, Unset_Type]" ) -> None: """Sets the parent_record_list_identifier of this GrantaServerApiListsDtoRecordListHeader. Parameters ---------- - parent_record_list_identifier: str + parent_record_list_identifier: Union[str, None, Unset_Type] The parent_record_list_identifier of this GrantaServerApiListsDtoRecordListHeader. """ self._parent_record_list_identifier = parent_record_list_identifier @@ -264,10 +274,16 @@ def created_timestamp(self, created_timestamp: "datetime") -> None: created_timestamp: datetime The created_timestamp of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if created_timestamp is None: raise ValueError( "Invalid value for 'created_timestamp', must not be 'None'" ) + # Field is required + if created_timestamp is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'created_timestamp', must not be 'Unset'" + ) self._created_timestamp = created_timestamp @property @@ -290,8 +306,12 @@ def created_user(self, created_user: "GrantaServerApiListsDtoUserOrGroup") -> No created_user: GrantaServerApiListsDtoUserOrGroup The created_user of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if created_user is None: raise ValueError("Invalid value for 'created_user', must not be 'None'") + # Field is required + if created_user is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'created_user', must not be 'Unset'") self._created_user = created_user @property @@ -314,10 +334,16 @@ def last_modified_timestamp(self, last_modified_timestamp: "datetime") -> None: last_modified_timestamp: datetime The last_modified_timestamp of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if last_modified_timestamp is None: raise ValueError( "Invalid value for 'last_modified_timestamp', must not be 'None'" ) + # Field is required + if last_modified_timestamp is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'last_modified_timestamp', must not be 'Unset'" + ) self._last_modified_timestamp = last_modified_timestamp @property @@ -342,56 +368,67 @@ def last_modified_user( last_modified_user: GrantaServerApiListsDtoUserOrGroup The last_modified_user of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if last_modified_user is None: raise ValueError( "Invalid value for 'last_modified_user', must not be 'None'" ) + # Field is required + if last_modified_user is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'last_modified_user', must not be 'Unset'" + ) self._last_modified_user = last_modified_user @property - def published_timestamp(self) -> "Optional[datetime]": + def published_timestamp(self) -> "Union[datetime, None, Unset_Type]": """Gets the published_timestamp of this GrantaServerApiListsDtoRecordListHeader. Returns ------- - datetime + Union[datetime, None, Unset_Type] The published_timestamp of this GrantaServerApiListsDtoRecordListHeader. """ return self._published_timestamp @published_timestamp.setter - def published_timestamp(self, published_timestamp: "Optional[datetime]") -> None: + def published_timestamp( + self, published_timestamp: "Union[datetime, None, Unset_Type]" + ) -> None: """Sets the published_timestamp of this GrantaServerApiListsDtoRecordListHeader. Parameters ---------- - published_timestamp: datetime + published_timestamp: Union[datetime, None, Unset_Type] The published_timestamp of this GrantaServerApiListsDtoRecordListHeader. """ self._published_timestamp = published_timestamp @property - def published_user(self) -> "Optional[GrantaServerApiListsDtoUserOrGroup]": + def published_user(self) -> "Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type]": """Gets the published_user of this GrantaServerApiListsDtoRecordListHeader. Returns ------- - GrantaServerApiListsDtoUserOrGroup + Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type] The published_user of this GrantaServerApiListsDtoRecordListHeader. """ return self._published_user @published_user.setter def published_user( - self, published_user: "Optional[GrantaServerApiListsDtoUserOrGroup]" + self, published_user: "Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type]" ) -> None: """Sets the published_user of this GrantaServerApiListsDtoRecordListHeader. Parameters ---------- - published_user: GrantaServerApiListsDtoUserOrGroup + published_user: Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type] The published_user of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable + if published_user is None: + raise ValueError("Invalid value for 'published_user', must not be 'None'") self._published_user = published_user @property @@ -414,8 +451,12 @@ def is_revision(self, is_revision: "bool") -> None: is_revision: bool The is_revision of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if is_revision is None: raise ValueError("Invalid value for 'is_revision', must not be 'None'") + # Field is required + if is_revision is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_revision', must not be 'Unset'") self._is_revision = is_revision @property @@ -438,50 +479,54 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiListsDtoRecordListHeader. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiListsDtoRecordListHeader. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiListsDtoRecordListHeader. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiListsDtoRecordListHeader. """ self._description = description @property - def notes(self) -> "Optional[str]": + def notes(self) -> "Union[str, None, Unset_Type]": """Gets the notes of this GrantaServerApiListsDtoRecordListHeader. Returns ------- - str + Union[str, None, Unset_Type] The notes of this GrantaServerApiListsDtoRecordListHeader. """ return self._notes @notes.setter - def notes(self, notes: "Optional[str]") -> None: + def notes(self, notes: "Union[str, None, Unset_Type]") -> None: """Sets the notes of this GrantaServerApiListsDtoRecordListHeader. Parameters ---------- - notes: str + notes: Union[str, None, Unset_Type] The notes of this GrantaServerApiListsDtoRecordListHeader. """ self._notes = notes @@ -506,8 +551,12 @@ def published(self, published: "bool") -> None: published: bool The published of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if published is None: raise ValueError("Invalid value for 'published', must not be 'None'") + # Field is required + if published is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'published', must not be 'Unset'") self._published = published @property @@ -530,10 +579,16 @@ def awaiting_approval(self, awaiting_approval: "bool") -> None: awaiting_approval: bool The awaiting_approval of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if awaiting_approval is None: raise ValueError( "Invalid value for 'awaiting_approval', must not be 'None'" ) + # Field is required + if awaiting_approval is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'awaiting_approval', must not be 'Unset'" + ) self._awaiting_approval = awaiting_approval @property @@ -556,12 +611,16 @@ def internal_use(self, internal_use: "bool") -> None: internal_use: bool The internal_use of this GrantaServerApiListsDtoRecordListHeader. """ + # Field is not nullable if internal_use is None: raise ValueError("Invalid value for 'internal_use', must not be 'None'") + # Field is required + if internal_use is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'internal_use', must not be 'Unset'") self._internal_use = internal_use @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -578,7 +637,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py index c0f273a6..c2a8a099 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListHeadersInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListHeadersInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - lists: List[GrantaServerApiListsDtoRecordListHeader] + lists: List[GrantaServerApiListsDtoRecordListHeader] """ - self._lists: List[GrantaServerApiListsDtoRecordListHeader] = None # type: ignore[assignment] + self._lists: List[GrantaServerApiListsDtoRecordListHeader] self.lists = lists @@ -81,7 +81,7 @@ def lists(self) -> "List[GrantaServerApiListsDtoRecordListHeader]": Returns ------- - list[GrantaServerApiListsDtoRecordListHeader] + List[GrantaServerApiListsDtoRecordListHeader] The lists of this GrantaServerApiListsDtoRecordListHeadersInfo. """ return self._lists @@ -95,12 +95,16 @@ def lists(self, lists: "List[GrantaServerApiListsDtoRecordListHeader]") -> None: lists: List[GrantaServerApiListsDtoRecordListHeader] The lists of this GrantaServerApiListsDtoRecordListHeadersInfo. """ + # Field is not nullable if lists is None: raise ValueError("Invalid value for 'lists', must not be 'None'") + # Field is required + if lists is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'lists', must not be 'Unset'") self._lists = lists @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -117,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py index 9567ea9c..0f48d27d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListItemsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListItemsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - items: List[GrantaServerApiListsDtoListItem] + items: List[GrantaServerApiListsDtoListItem] """ - self._items: List[GrantaServerApiListsDtoListItem] = None # type: ignore[assignment] + self._items: List[GrantaServerApiListsDtoListItem] self.items = items @@ -81,7 +81,7 @@ def items(self) -> "List[GrantaServerApiListsDtoListItem]": Returns ------- - list[GrantaServerApiListsDtoListItem] + List[GrantaServerApiListsDtoListItem] The items of this GrantaServerApiListsDtoRecordListItemsInfo. """ return self._items @@ -95,12 +95,16 @@ def items(self, items: "List[GrantaServerApiListsDtoListItem]") -> None: items: List[GrantaServerApiListsDtoListItem] The items of this GrantaServerApiListsDtoRecordListItemsInfo. """ + # Field is not nullable if items is None: raise ValueError("Invalid value for 'items', must not be 'None'") + # Field is required + if items is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'items', must not be 'Unset'") self._items = items @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -117,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py index 22a74850..80fc578a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -79,17 +79,17 @@ def __init__( Parameters ---------- - is_administrator: bool - is_curator: bool - is_owner: bool - is_publisher: bool - is_subscribed: bool + is_administrator: bool + is_curator: bool + is_owner: bool + is_publisher: bool + is_subscribed: bool """ - self._is_owner: bool = None # type: ignore[assignment] - self._is_subscribed: bool = None # type: ignore[assignment] - self._is_curator: bool = None # type: ignore[assignment] - self._is_administrator: bool = None # type: ignore[assignment] - self._is_publisher: bool = None # type: ignore[assignment] + self._is_owner: bool + self._is_subscribed: bool + self._is_curator: bool + self._is_administrator: bool + self._is_publisher: bool self.is_owner = is_owner self.is_subscribed = is_subscribed @@ -119,8 +119,12 @@ def is_owner(self, is_owner: "bool") -> None: is_owner: bool The is_owner of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + # Field is not nullable if is_owner is None: raise ValueError("Invalid value for 'is_owner', must not be 'None'") + # Field is required + if is_owner is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_owner', must not be 'Unset'") self._is_owner = is_owner @property @@ -145,8 +149,12 @@ def is_subscribed(self, is_subscribed: "bool") -> None: is_subscribed: bool The is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + # Field is not nullable if is_subscribed is None: raise ValueError("Invalid value for 'is_subscribed', must not be 'None'") + # Field is required + if is_subscribed is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_subscribed', must not be 'Unset'") self._is_subscribed = is_subscribed @property @@ -171,8 +179,12 @@ def is_curator(self, is_curator: "bool") -> None: is_curator: bool The is_curator of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + # Field is not nullable if is_curator is None: raise ValueError("Invalid value for 'is_curator', must not be 'None'") + # Field is required + if is_curator is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_curator', must not be 'Unset'") self._is_curator = is_curator @property @@ -197,8 +209,14 @@ def is_administrator(self, is_administrator: "bool") -> None: is_administrator: bool The is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + # Field is not nullable if is_administrator is None: raise ValueError("Invalid value for 'is_administrator', must not be 'None'") + # Field is required + if is_administrator is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'is_administrator', must not be 'Unset'" + ) self._is_administrator = is_administrator @property @@ -223,12 +241,16 @@ def is_publisher(self, is_publisher: "bool") -> None: is_publisher: bool The is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + # Field is not nullable if is_publisher is None: raise ValueError("Invalid value for 'is_publisher', must not be 'None'") + # Field is required + if is_publisher is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_publisher', must not be 'Unset'") self._is_publisher = is_publisher @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -245,7 +267,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py index 61039afc..c09e9974 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_lists_dto_list_criterion import ( GrantaServerApiListsDtoListCriterion, ) # noqa: F401 @@ -90,258 +90,270 @@ class GrantaServerApiListsDtoRecordListSearchCriterion( def __init__( self, *, - contains_records: "Optional[List[str]]" = None, - contains_records_in_databases: "Optional[List[str]]" = None, - contains_records_in_integration_schemas: "Optional[List[str]]" = None, - contains_records_in_tables: "Optional[List[str]]" = None, - is_awaiting_approval: "Optional[bool]" = None, - is_internal_use: "Optional[bool]" = None, - is_published: "Optional[bool]" = None, - is_revision: "Optional[bool]" = None, - name_contains: "Optional[str]" = None, + contains_records: "Union[List[str], None, Unset_Type]" = Unset, + contains_records_in_databases: "Union[List[str], None, Unset_Type]" = Unset, + contains_records_in_integration_schemas: "Union[List[str], None, Unset_Type]" = Unset, + contains_records_in_tables: "Union[List[str], None, Unset_Type]" = Unset, + is_awaiting_approval: "Union[bool, None, Unset_Type]" = Unset, + is_internal_use: "Union[bool, None, Unset_Type]" = Unset, + is_published: "Union[bool, None, Unset_Type]" = Unset, + is_revision: "Union[bool, None, Unset_Type]" = Unset, + name_contains: "Union[str, None, Unset_Type]" = Unset, type: "str" = "recordList", - user_can_add_or_remove_items: "Optional[bool]" = None, - user_role: "Optional[GrantaServerApiListsDtoUserRole]" = None, + user_can_add_or_remove_items: "Union[bool, None, Unset_Type]" = Unset, + user_role: "Union[GrantaServerApiListsDtoUserRole, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoRecordListSearchCriterion - a model defined in Swagger Parameters ---------- - contains_records: List[str], optional - contains_records_in_databases: List[str], optional - contains_records_in_integration_schemas: List[str], optional - contains_records_in_tables: List[str], optional - is_awaiting_approval: bool, optional - is_internal_use: bool, optional - is_published: bool, optional - is_revision: bool, optional - name_contains: str, optional - type: str - user_can_add_or_remove_items: bool, optional - user_role: GrantaServerApiListsDtoUserRole, optional + contains_records: List[str], optional + contains_records_in_databases: List[str], optional + contains_records_in_integration_schemas: List[str], optional + contains_records_in_tables: List[str], optional + is_awaiting_approval: bool, optional + is_internal_use: bool, optional + is_published: bool, optional + is_revision: bool, optional + name_contains: str, optional + type: str + user_can_add_or_remove_items: bool, optional + user_role: GrantaServerApiListsDtoUserRole, optional """ super().__init__() - self._name_contains = None - self._user_role = None - self._is_published = None - self._is_awaiting_approval = None - self._is_internal_use = None - self._is_revision = None - self._contains_records_in_databases = None - self._contains_records_in_integration_schemas = None - self._contains_records_in_tables = None - self._contains_records = None - self._user_can_add_or_remove_items = None - self._type: str = None # type: ignore[assignment] - - if name_contains is not None: + self._name_contains: Union[str, None, Unset_Type] = Unset + self._user_role: Union[GrantaServerApiListsDtoUserRole, Unset_Type] = Unset + self._is_published: Union[bool, None, Unset_Type] = Unset + self._is_awaiting_approval: Union[bool, None, Unset_Type] = Unset + self._is_internal_use: Union[bool, None, Unset_Type] = Unset + self._is_revision: Union[bool, None, Unset_Type] = Unset + self._contains_records_in_databases: Union[List[str], None, Unset_Type] = Unset + self._contains_records_in_integration_schemas: Union[ + List[str], None, Unset_Type + ] = Unset + self._contains_records_in_tables: Union[List[str], None, Unset_Type] = Unset + self._contains_records: Union[List[str], None, Unset_Type] = Unset + self._user_can_add_or_remove_items: Union[bool, None, Unset_Type] = Unset + self._type: str + + if name_contains is not Unset: self.name_contains = name_contains - if user_role is not None: + if user_role is not Unset: self.user_role = user_role - if is_published is not None: + if is_published is not Unset: self.is_published = is_published - if is_awaiting_approval is not None: + if is_awaiting_approval is not Unset: self.is_awaiting_approval = is_awaiting_approval - if is_internal_use is not None: + if is_internal_use is not Unset: self.is_internal_use = is_internal_use - if is_revision is not None: + if is_revision is not Unset: self.is_revision = is_revision - if contains_records_in_databases is not None: + if contains_records_in_databases is not Unset: self.contains_records_in_databases = contains_records_in_databases - if contains_records_in_integration_schemas is not None: + if contains_records_in_integration_schemas is not Unset: self.contains_records_in_integration_schemas = ( contains_records_in_integration_schemas ) - if contains_records_in_tables is not None: + if contains_records_in_tables is not Unset: self.contains_records_in_tables = contains_records_in_tables - if contains_records is not None: + if contains_records is not Unset: self.contains_records = contains_records - if user_can_add_or_remove_items is not None: + if user_can_add_or_remove_items is not Unset: self.user_can_add_or_remove_items = user_can_add_or_remove_items self.type = type @property - def name_contains(self) -> "Optional[str]": + def name_contains(self) -> "Union[str, None, Unset_Type]": """Gets the name_contains of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns ------- - str + Union[str, None, Unset_Type] The name_contains of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._name_contains @name_contains.setter - def name_contains(self, name_contains: "Optional[str]") -> None: + def name_contains(self, name_contains: "Union[str, None, Unset_Type]") -> None: """Sets the name_contains of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters ---------- - name_contains: str + name_contains: Union[str, None, Unset_Type] The name_contains of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._name_contains = name_contains @property - def user_role(self) -> "Optional[GrantaServerApiListsDtoUserRole]": + def user_role(self) -> "Union[GrantaServerApiListsDtoUserRole, Unset_Type]": """Gets the user_role of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns ------- - GrantaServerApiListsDtoUserRole + Union[GrantaServerApiListsDtoUserRole, Unset_Type] The user_role of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._user_role @user_role.setter - def user_role(self, user_role: "Optional[GrantaServerApiListsDtoUserRole]") -> None: + def user_role( + self, user_role: "Union[GrantaServerApiListsDtoUserRole, Unset_Type]" + ) -> None: """Sets the user_role of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters ---------- - user_role: GrantaServerApiListsDtoUserRole + user_role: Union[GrantaServerApiListsDtoUserRole, Unset_Type] The user_role of this GrantaServerApiListsDtoRecordListSearchCriterion. """ + # Field is not nullable + if user_role is None: + raise ValueError("Invalid value for 'user_role', must not be 'None'") self._user_role = user_role @property - def is_published(self) -> "Optional[bool]": + def is_published(self) -> "Union[bool, None, Unset_Type]": """Gets the is_published of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns ------- - bool + Union[bool, None, Unset_Type] The is_published of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._is_published @is_published.setter - def is_published(self, is_published: "Optional[bool]") -> None: + def is_published(self, is_published: "Union[bool, None, Unset_Type]") -> None: """Sets the is_published of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters ---------- - is_published: bool + is_published: Union[bool, None, Unset_Type] The is_published of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._is_published = is_published @property - def is_awaiting_approval(self) -> "Optional[bool]": + def is_awaiting_approval(self) -> "Union[bool, None, Unset_Type]": """Gets the is_awaiting_approval of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns ------- - bool + Union[bool, None, Unset_Type] The is_awaiting_approval of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._is_awaiting_approval @is_awaiting_approval.setter - def is_awaiting_approval(self, is_awaiting_approval: "Optional[bool]") -> None: + def is_awaiting_approval( + self, is_awaiting_approval: "Union[bool, None, Unset_Type]" + ) -> None: """Sets the is_awaiting_approval of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters ---------- - is_awaiting_approval: bool + is_awaiting_approval: Union[bool, None, Unset_Type] The is_awaiting_approval of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._is_awaiting_approval = is_awaiting_approval @property - def is_internal_use(self) -> "Optional[bool]": + def is_internal_use(self) -> "Union[bool, None, Unset_Type]": """Gets the is_internal_use of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns ------- - bool + Union[bool, None, Unset_Type] The is_internal_use of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._is_internal_use @is_internal_use.setter - def is_internal_use(self, is_internal_use: "Optional[bool]") -> None: + def is_internal_use(self, is_internal_use: "Union[bool, None, Unset_Type]") -> None: """Sets the is_internal_use of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters ---------- - is_internal_use: bool + is_internal_use: Union[bool, None, Unset_Type] The is_internal_use of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._is_internal_use = is_internal_use @property - def is_revision(self) -> "Optional[bool]": + def is_revision(self) -> "Union[bool, None, Unset_Type]": """Gets the is_revision of this GrantaServerApiListsDtoRecordListSearchCriterion. Restrict to record lists that are (non discarded) revisions. Returns ------- - bool + Union[bool, None, Unset_Type] The is_revision of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._is_revision @is_revision.setter - def is_revision(self, is_revision: "Optional[bool]") -> None: + def is_revision(self, is_revision: "Union[bool, None, Unset_Type]") -> None: """Sets the is_revision of this GrantaServerApiListsDtoRecordListSearchCriterion. Restrict to record lists that are (non discarded) revisions. Parameters ---------- - is_revision: bool + is_revision: Union[bool, None, Unset_Type] The is_revision of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._is_revision = is_revision @property - def contains_records_in_databases(self) -> "Optional[List[str]]": + def contains_records_in_databases(self) -> "Union[List[str], None, Unset_Type]": """Gets the contains_records_in_databases of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of of the specified databases Returns ------- - list[str] + Union[List[str], None, Unset_Type] The contains_records_in_databases of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._contains_records_in_databases @contains_records_in_databases.setter def contains_records_in_databases( - self, contains_records_in_databases: "Optional[List[str]]" + self, contains_records_in_databases: "Union[List[str], None, Unset_Type]" ) -> None: """Sets the contains_records_in_databases of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of of the specified databases Parameters ---------- - contains_records_in_databases: List[str] + contains_records_in_databases: Union[List[str], None, Unset_Type] The contains_records_in_databases of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._contains_records_in_databases = contains_records_in_databases @property - def contains_records_in_integration_schemas(self) -> "Optional[List[str]]": + def contains_records_in_integration_schemas( + self, + ) -> "Union[List[str], None, Unset_Type]": """Gets the contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified integration schemas Returns ------- - list[str] + Union[List[str], None, Unset_Type] The contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._contains_records_in_integration_schemas @contains_records_in_integration_schemas.setter def contains_records_in_integration_schemas( - self, contains_records_in_integration_schemas: "Optional[List[str]]" + self, + contains_records_in_integration_schemas: "Union[List[str], None, Unset_Type]", ) -> None: """Sets the contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified integration schemas Parameters ---------- - contains_records_in_integration_schemas: List[str] + contains_records_in_integration_schemas: Union[List[str], None, Unset_Type] The contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._contains_records_in_integration_schemas = ( @@ -349,77 +361,79 @@ def contains_records_in_integration_schemas( ) @property - def contains_records_in_tables(self) -> "Optional[List[str]]": + def contains_records_in_tables(self) -> "Union[List[str], None, Unset_Type]": """Gets the contains_records_in_tables of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified tables Returns ------- - list[str] + Union[List[str], None, Unset_Type] The contains_records_in_tables of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._contains_records_in_tables @contains_records_in_tables.setter def contains_records_in_tables( - self, contains_records_in_tables: "Optional[List[str]]" + self, contains_records_in_tables: "Union[List[str], None, Unset_Type]" ) -> None: """Sets the contains_records_in_tables of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified tables Parameters ---------- - contains_records_in_tables: List[str] + contains_records_in_tables: Union[List[str], None, Unset_Type] The contains_records_in_tables of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._contains_records_in_tables = contains_records_in_tables @property - def contains_records(self) -> "Optional[List[str]]": + def contains_records(self) -> "Union[List[str], None, Unset_Type]": """Gets the contains_records of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing any of the given records Returns ------- - list[str] + Union[List[str], None, Unset_Type] The contains_records of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._contains_records @contains_records.setter - def contains_records(self, contains_records: "Optional[List[str]]") -> None: + def contains_records( + self, contains_records: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the contains_records of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing any of the given records Parameters ---------- - contains_records: List[str] + contains_records: Union[List[str], None, Unset_Type] The contains_records of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._contains_records = contains_records @property - def user_can_add_or_remove_items(self) -> "Optional[bool]": + def user_can_add_or_remove_items(self) -> "Union[bool, None, Unset_Type]": """Gets the user_can_add_or_remove_items of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists where the current user can add or remove items. Returns ------- - bool + Union[bool, None, Unset_Type] The user_can_add_or_remove_items of this GrantaServerApiListsDtoRecordListSearchCriterion. """ return self._user_can_add_or_remove_items @user_can_add_or_remove_items.setter def user_can_add_or_remove_items( - self, user_can_add_or_remove_items: "Optional[bool]" + self, user_can_add_or_remove_items: "Union[bool, None, Unset_Type]" ) -> None: """Sets the user_can_add_or_remove_items of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists where the current user can add or remove items. Parameters ---------- - user_can_add_or_remove_items: bool + user_can_add_or_remove_items: Union[bool, None, Unset_Type] The user_can_add_or_remove_items of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._user_can_add_or_remove_items = user_can_add_or_remove_items @@ -444,12 +458,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiListsDtoRecordListSearchCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -466,7 +484,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py index a5948f4a..f3934c8f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListSearchInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListSearchInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,9 +67,9 @@ def __init__( Parameters ---------- - search_result_identifier: str + search_result_identifier: str """ - self._search_result_identifier: str = None # type: ignore[assignment] + self._search_result_identifier: str self.search_result_identifier = search_result_identifier @@ -93,14 +93,20 @@ def search_result_identifier(self, search_result_identifier: "str") -> None: search_result_identifier: str The search_result_identifier of this GrantaServerApiListsDtoRecordListSearchInfo. """ + # Field is not nullable if search_result_identifier is None: raise ValueError( "Invalid value for 'search_result_identifier', must not be 'None'" ) + # Field is required + if search_result_identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'search_result_identifier', must not be 'Unset'" + ) self._search_result_identifier = search_result_identifier @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -117,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py index f0803715..a310083d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListSearchRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListSearchRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,25 +70,29 @@ def __init__( self, *, search_criterion: "GrantaServerApiListsDtoListCriterion", - paging_options: "Optional[GrantaServerApiListsDtoPagingOptions]" = None, - response_options: "Optional[GrantaServerApiListsDtoResponseOptions]" = None, + paging_options: "Union[GrantaServerApiListsDtoPagingOptions, Unset_Type]" = Unset, + response_options: "Union[GrantaServerApiListsDtoResponseOptions, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoRecordListSearchRequest - a model defined in Swagger Parameters ---------- - search_criterion: GrantaServerApiListsDtoListCriterion - paging_options: GrantaServerApiListsDtoPagingOptions, optional - response_options: GrantaServerApiListsDtoResponseOptions, optional + search_criterion: GrantaServerApiListsDtoListCriterion + paging_options: GrantaServerApiListsDtoPagingOptions, optional + response_options: GrantaServerApiListsDtoResponseOptions, optional """ - self._search_criterion: GrantaServerApiListsDtoListCriterion = None # type: ignore[assignment] - self._paging_options = None - self._response_options = None + self._search_criterion: GrantaServerApiListsDtoListCriterion + self._paging_options: Union[ + GrantaServerApiListsDtoPagingOptions, Unset_Type + ] = Unset + self._response_options: Union[ + GrantaServerApiListsDtoResponseOptions, Unset_Type + ] = Unset self.search_criterion = search_criterion - if paging_options is not None: + if paging_options is not Unset: self.paging_options = paging_options - if response_options is not None: + if response_options is not Unset: self.response_options = response_options @property @@ -113,60 +117,77 @@ def search_criterion( search_criterion: GrantaServerApiListsDtoListCriterion The search_criterion of this GrantaServerApiListsDtoRecordListSearchRequest. """ + # Field is not nullable if search_criterion is None: raise ValueError("Invalid value for 'search_criterion', must not be 'None'") + # Field is required + if search_criterion is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'search_criterion', must not be 'Unset'" + ) self._search_criterion = search_criterion @property - def paging_options(self) -> "Optional[GrantaServerApiListsDtoPagingOptions]": + def paging_options( + self, + ) -> "Union[GrantaServerApiListsDtoPagingOptions, Unset_Type]": """Gets the paging_options of this GrantaServerApiListsDtoRecordListSearchRequest. Returns ------- - GrantaServerApiListsDtoPagingOptions + Union[GrantaServerApiListsDtoPagingOptions, Unset_Type] The paging_options of this GrantaServerApiListsDtoRecordListSearchRequest. """ return self._paging_options @paging_options.setter def paging_options( - self, paging_options: "Optional[GrantaServerApiListsDtoPagingOptions]" + self, paging_options: "Union[GrantaServerApiListsDtoPagingOptions, Unset_Type]" ) -> None: """Sets the paging_options of this GrantaServerApiListsDtoRecordListSearchRequest. Parameters ---------- - paging_options: GrantaServerApiListsDtoPagingOptions + paging_options: Union[GrantaServerApiListsDtoPagingOptions, Unset_Type] The paging_options of this GrantaServerApiListsDtoRecordListSearchRequest. """ + # Field is not nullable + if paging_options is None: + raise ValueError("Invalid value for 'paging_options', must not be 'None'") self._paging_options = paging_options @property - def response_options(self) -> "Optional[GrantaServerApiListsDtoResponseOptions]": + def response_options( + self, + ) -> "Union[GrantaServerApiListsDtoResponseOptions, Unset_Type]": """Gets the response_options of this GrantaServerApiListsDtoRecordListSearchRequest. Returns ------- - GrantaServerApiListsDtoResponseOptions + Union[GrantaServerApiListsDtoResponseOptions, Unset_Type] The response_options of this GrantaServerApiListsDtoRecordListSearchRequest. """ return self._response_options @response_options.setter def response_options( - self, response_options: "Optional[GrantaServerApiListsDtoResponseOptions]" + self, + response_options: "Union[GrantaServerApiListsDtoResponseOptions, Unset_Type]", ) -> None: """Sets the response_options of this GrantaServerApiListsDtoRecordListSearchRequest. Parameters ---------- - response_options: GrantaServerApiListsDtoResponseOptions + response_options: Union[GrantaServerApiListsDtoResponseOptions, Unset_Type] The response_options of this GrantaServerApiListsDtoRecordListSearchRequest. """ + # Field is not nullable + if response_options is None: + raise ValueError("Invalid value for 'response_options', must not be 'None'") self._response_options = response_options @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py index eb266697..6008f390 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListSearchResult(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListSearchResult(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,11 +73,11 @@ def __init__( Parameters ---------- - header: GrantaServerApiListsDtoRecordListHeader - items: List[GrantaServerApiListsDtoListItem] + header: GrantaServerApiListsDtoRecordListHeader + items: List[GrantaServerApiListsDtoListItem] """ - self._header: GrantaServerApiListsDtoRecordListHeader = None # type: ignore[assignment] - self._items: List[GrantaServerApiListsDtoListItem] = None # type: ignore[assignment] + self._header: GrantaServerApiListsDtoRecordListHeader + self._items: List[GrantaServerApiListsDtoListItem] self.header = header self.items = items @@ -102,8 +102,12 @@ def header(self, header: "GrantaServerApiListsDtoRecordListHeader") -> None: header: GrantaServerApiListsDtoRecordListHeader The header of this GrantaServerApiListsDtoRecordListSearchResult. """ + # Field is not nullable if header is None: raise ValueError("Invalid value for 'header', must not be 'None'") + # Field is required + if header is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'header', must not be 'Unset'") self._header = header @property @@ -112,7 +116,7 @@ def items(self) -> "List[GrantaServerApiListsDtoListItem]": Returns ------- - list[GrantaServerApiListsDtoListItem] + List[GrantaServerApiListsDtoListItem] The items of this GrantaServerApiListsDtoRecordListSearchResult. """ return self._items @@ -126,12 +130,16 @@ def items(self, items: "List[GrantaServerApiListsDtoListItem]") -> None: items: List[GrantaServerApiListsDtoListItem] The items of this GrantaServerApiListsDtoRecordListSearchResult. """ + # Field is not nullable if items is None: raise ValueError("Invalid value for 'items', must not be 'None'") + # Field is required + if items is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'items', must not be 'Unset'") self._items = items @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -148,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py index 9f49dcef..b05f6bfa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoRecordListSearchResultsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoRecordListSearchResultsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - search_results: List[GrantaServerApiListsDtoRecordListSearchResult] + search_results: List[GrantaServerApiListsDtoRecordListSearchResult] """ - self._search_results: List[GrantaServerApiListsDtoRecordListSearchResult] = None # type: ignore[assignment] + self._search_results: List[GrantaServerApiListsDtoRecordListSearchResult] self.search_results = search_results @@ -81,7 +81,7 @@ def search_results(self) -> "List[GrantaServerApiListsDtoRecordListSearchResult] Returns ------- - list[GrantaServerApiListsDtoRecordListSearchResult] + List[GrantaServerApiListsDtoRecordListSearchResult] The search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. """ return self._search_results @@ -97,12 +97,16 @@ def search_results( search_results: List[GrantaServerApiListsDtoRecordListSearchResult] The search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. """ + # Field is not nullable if search_results is None: raise ValueError("Invalid value for 'search_results', must not be 'None'") + # Field is required + if search_results is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'search_results', must not be 'Unset'") self._search_results = search_results @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py index 9c0de457..34b96609 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoResponseOptions(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoResponseOptions(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,101 +65,118 @@ class GrantaServerApiListsDtoResponseOptions(ModelBase): # type: ignore[misc] def __init__( self, *, - include_record_list_items: "Optional[bool]" = None, - include_user_actions: "Optional[bool]" = None, - include_user_permissions: "Optional[bool]" = None, + include_record_list_items: "Union[bool, Unset_Type]" = Unset, + include_user_actions: "Union[bool, Unset_Type]" = Unset, + include_user_permissions: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoResponseOptions - a model defined in Swagger Parameters ---------- - include_record_list_items: bool, optional - include_user_actions: bool, optional - include_user_permissions: bool, optional + include_record_list_items: bool, optional + include_user_actions: bool, optional + include_user_permissions: bool, optional """ - self._include_user_actions = None - self._include_user_permissions = None - self._include_record_list_items = None + self._include_user_actions: Union[bool, Unset_Type] = Unset + self._include_user_permissions: Union[bool, Unset_Type] = Unset + self._include_record_list_items: Union[bool, Unset_Type] = Unset - if include_user_actions is not None: + if include_user_actions is not Unset: self.include_user_actions = include_user_actions - if include_user_permissions is not None: + if include_user_permissions is not Unset: self.include_user_permissions = include_user_permissions - if include_record_list_items is not None: + if include_record_list_items is not Unset: self.include_record_list_items = include_record_list_items @property - def include_user_actions(self) -> "Optional[bool]": + def include_user_actions(self) -> "Union[bool, Unset_Type]": """Gets the include_user_actions of this GrantaServerApiListsDtoResponseOptions. Returns ------- - bool + Union[bool, Unset_Type] The include_user_actions of this GrantaServerApiListsDtoResponseOptions. """ return self._include_user_actions @include_user_actions.setter - def include_user_actions(self, include_user_actions: "Optional[bool]") -> None: + def include_user_actions( + self, include_user_actions: "Union[bool, Unset_Type]" + ) -> None: """Sets the include_user_actions of this GrantaServerApiListsDtoResponseOptions. Parameters ---------- - include_user_actions: bool + include_user_actions: Union[bool, Unset_Type] The include_user_actions of this GrantaServerApiListsDtoResponseOptions. """ + # Field is not nullable + if include_user_actions is None: + raise ValueError( + "Invalid value for 'include_user_actions', must not be 'None'" + ) self._include_user_actions = include_user_actions @property - def include_user_permissions(self) -> "Optional[bool]": + def include_user_permissions(self) -> "Union[bool, Unset_Type]": """Gets the include_user_permissions of this GrantaServerApiListsDtoResponseOptions. Returns ------- - bool + Union[bool, Unset_Type] The include_user_permissions of this GrantaServerApiListsDtoResponseOptions. """ return self._include_user_permissions @include_user_permissions.setter def include_user_permissions( - self, include_user_permissions: "Optional[bool]" + self, include_user_permissions: "Union[bool, Unset_Type]" ) -> None: """Sets the include_user_permissions of this GrantaServerApiListsDtoResponseOptions. Parameters ---------- - include_user_permissions: bool + include_user_permissions: Union[bool, Unset_Type] The include_user_permissions of this GrantaServerApiListsDtoResponseOptions. """ + # Field is not nullable + if include_user_permissions is None: + raise ValueError( + "Invalid value for 'include_user_permissions', must not be 'None'" + ) self._include_user_permissions = include_user_permissions @property - def include_record_list_items(self) -> "Optional[bool]": + def include_record_list_items(self) -> "Union[bool, Unset_Type]": """Gets the include_record_list_items of this GrantaServerApiListsDtoResponseOptions. Returns ------- - bool + Union[bool, Unset_Type] The include_record_list_items of this GrantaServerApiListsDtoResponseOptions. """ return self._include_record_list_items @include_record_list_items.setter def include_record_list_items( - self, include_record_list_items: "Optional[bool]" + self, include_record_list_items: "Union[bool, Unset_Type]" ) -> None: """Sets the include_record_list_items of this GrantaServerApiListsDtoResponseOptions. Parameters ---------- - include_record_list_items: bool + include_record_list_items: Union[bool, Unset_Type] The include_record_list_items of this GrantaServerApiListsDtoResponseOptions. """ + # Field is not nullable + if include_record_list_items is None: + raise ValueError( + "Invalid value for 'include_record_list_items', must not be 'None'" + ) self._include_record_list_items = include_record_list_items @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -176,7 +193,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py index 117991c4..acc3389d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoUpdateRecordListPermissionFlags(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoUpdateRecordListPermissionFlags(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,15 +76,15 @@ def __init__( Parameters ---------- - is_administrator: bool - is_curator: bool - is_publisher: bool - is_subscribed: bool + is_administrator: bool + is_curator: bool + is_publisher: bool + is_subscribed: bool """ - self._is_subscribed: bool = None # type: ignore[assignment] - self._is_curator: bool = None # type: ignore[assignment] - self._is_administrator: bool = None # type: ignore[assignment] - self._is_publisher: bool = None # type: ignore[assignment] + self._is_subscribed: bool + self._is_curator: bool + self._is_administrator: bool + self._is_publisher: bool self.is_subscribed = is_subscribed self.is_curator = is_curator @@ -113,8 +113,12 @@ def is_subscribed(self, is_subscribed: "bool") -> None: is_subscribed: bool The is_subscribed of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. """ + # Field is not nullable if is_subscribed is None: raise ValueError("Invalid value for 'is_subscribed', must not be 'None'") + # Field is required + if is_subscribed is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_subscribed', must not be 'Unset'") self._is_subscribed = is_subscribed @property @@ -139,8 +143,12 @@ def is_curator(self, is_curator: "bool") -> None: is_curator: bool The is_curator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. """ + # Field is not nullable if is_curator is None: raise ValueError("Invalid value for 'is_curator', must not be 'None'") + # Field is required + if is_curator is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_curator', must not be 'Unset'") self._is_curator = is_curator @property @@ -165,8 +173,14 @@ def is_administrator(self, is_administrator: "bool") -> None: is_administrator: bool The is_administrator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. """ + # Field is not nullable if is_administrator is None: raise ValueError("Invalid value for 'is_administrator', must not be 'None'") + # Field is required + if is_administrator is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'is_administrator', must not be 'Unset'" + ) self._is_administrator = is_administrator @property @@ -191,12 +205,16 @@ def is_publisher(self, is_publisher: "bool") -> None: is_publisher: bool The is_publisher of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. """ + # Field is not nullable if is_publisher is None: raise ValueError("Invalid value for 'is_publisher', must not be 'None'") + # Field is required + if is_publisher is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_publisher', must not be 'Unset'") self._is_publisher = is_publisher @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -213,7 +231,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py index 28d338b6..973c8322 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,178 +71,189 @@ class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): # type: ign def __init__( self, *, - awaiting_approval: "Optional[bool]" = None, - description: "Optional[str]" = None, - internal_use: "Optional[bool]" = None, - name: "Optional[str]" = None, - notes: "Optional[str]" = None, - published: "Optional[bool]" = None, + awaiting_approval: "Union[bool, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + internal_use: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + notes: "Union[str, None, Unset_Type]" = Unset, + published: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiListsDtoUpdateRecordListProperties - a model defined in Swagger Parameters ---------- - awaiting_approval: bool, optional - description: str, optional - internal_use: bool, optional - name: str, optional - notes: str, optional - published: bool, optional + awaiting_approval: bool, optional + description: str, optional + internal_use: bool, optional + name: str, optional + notes: str, optional + published: bool, optional """ - self._name = None - self._description = None - self._notes = None - self._published = None - self._awaiting_approval = None - self._internal_use = None - - if name is not None: + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._notes: Union[str, None, Unset_Type] = Unset + self._published: Union[bool, Unset_Type] = Unset + self._awaiting_approval: Union[bool, Unset_Type] = Unset + self._internal_use: Union[bool, Unset_Type] = Unset + + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if notes is not None: + if notes is not Unset: self.notes = notes - if published is not None: + if published is not Unset: self.published = published - if awaiting_approval is not None: + if awaiting_approval is not Unset: self.awaiting_approval = awaiting_approval - if internal_use is not None: + if internal_use is not Unset: self.internal_use = internal_use @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._description = description @property - def notes(self) -> "Optional[str]": + def notes(self) -> "Union[str, None, Unset_Type]": """Gets the notes of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- - str + Union[str, None, Unset_Type] The notes of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._notes @notes.setter - def notes(self, notes: "Optional[str]") -> None: + def notes(self, notes: "Union[str, None, Unset_Type]") -> None: """Sets the notes of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- - notes: str + notes: Union[str, None, Unset_Type] The notes of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._notes = notes @property - def published(self) -> "Optional[bool]": + def published(self) -> "Union[bool, Unset_Type]": """Gets the published of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- - bool + Union[bool, Unset_Type] The published of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._published @published.setter - def published(self, published: "Optional[bool]") -> None: + def published(self, published: "Union[bool, Unset_Type]") -> None: """Sets the published of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- - published: bool + published: Union[bool, Unset_Type] The published of this GrantaServerApiListsDtoUpdateRecordListProperties. """ + # Field is not nullable + if published is None: + raise ValueError("Invalid value for 'published', must not be 'None'") self._published = published @property - def awaiting_approval(self) -> "Optional[bool]": + def awaiting_approval(self) -> "Union[bool, Unset_Type]": """Gets the awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- - bool + Union[bool, Unset_Type] The awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._awaiting_approval @awaiting_approval.setter - def awaiting_approval(self, awaiting_approval: "Optional[bool]") -> None: + def awaiting_approval(self, awaiting_approval: "Union[bool, Unset_Type]") -> None: """Sets the awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- - awaiting_approval: bool + awaiting_approval: Union[bool, Unset_Type] The awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. """ + # Field is not nullable + if awaiting_approval is None: + raise ValueError( + "Invalid value for 'awaiting_approval', must not be 'None'" + ) self._awaiting_approval = awaiting_approval @property - def internal_use(self) -> "Optional[bool]": + def internal_use(self) -> "Union[bool, Unset_Type]": """Gets the internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- - bool + Union[bool, Unset_Type] The internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._internal_use @internal_use.setter - def internal_use(self, internal_use: "Optional[bool]") -> None: + def internal_use(self, internal_use: "Union[bool, Unset_Type]") -> None: """Sets the internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- - internal_use: bool + internal_use: Union[bool, Unset_Type] The internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. """ + # Field is not nullable + if internal_use is None: + raise ValueError("Invalid value for 'internal_use', must not be 'None'") self._internal_use = internal_use @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -259,7 +270,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py index dfb71d31..6c199776 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoUpdateUserPermission(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoUpdateUserPermission(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,11 +72,11 @@ def __init__( Parameters ---------- - flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags - user_or_group_identifier: str + flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags + user_or_group_identifier: str """ - self._user_or_group_identifier: str = None # type: ignore[assignment] - self._flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags = None # type: ignore[assignment] + self._user_or_group_identifier: str + self._flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags self.user_or_group_identifier = user_or_group_identifier self.flags = flags @@ -103,10 +103,16 @@ def user_or_group_identifier(self, user_or_group_identifier: "str") -> None: user_or_group_identifier: str The user_or_group_identifier of this GrantaServerApiListsDtoUpdateUserPermission. """ + # Field is not nullable if user_or_group_identifier is None: raise ValueError( "Invalid value for 'user_or_group_identifier', must not be 'None'" ) + # Field is required + if user_or_group_identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'user_or_group_identifier', must not be 'Unset'" + ) self._user_or_group_identifier = user_or_group_identifier @property @@ -131,12 +137,16 @@ def flags( flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags The flags of this GrantaServerApiListsDtoUpdateUserPermission. """ + # Field is not nullable if flags is None: raise ValueError("Invalid value for 'flags', must not be 'None'") + # Field is required + if flags is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'flags', must not be 'Unset'") self._flags = flags @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -153,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py index eac822ad..f1a9af81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoUpdateUserPermissionsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoUpdateUserPermissionsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] + user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] """ - self._user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] = None # type: ignore[assignment] + self._user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] self.user_permissions = user_permissions @@ -81,7 +81,7 @@ def user_permissions(self) -> "List[GrantaServerApiListsDtoUpdateUserPermission] Returns ------- - list[GrantaServerApiListsDtoUpdateUserPermission] + List[GrantaServerApiListsDtoUpdateUserPermission] The user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. """ return self._user_permissions @@ -97,12 +97,18 @@ def user_permissions( user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] The user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. """ + # Field is not nullable if user_permissions is None: raise ValueError("Invalid value for 'user_permissions', must not be 'None'") + # Field is required + if user_permissions is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'user_permissions', must not be 'Unset'" + ) self._user_permissions = user_permissions @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py index 23fdd2da..99cc7f8c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoUserOrGroup(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoUserOrGroup(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,13 +73,13 @@ def __init__( Parameters ---------- - display_name: str - identifier: str - name: str + display_name: str + identifier: str + name: str """ - self._identifier: str = None # type: ignore[assignment] - self._display_name: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] + self._identifier: str + self._display_name: str + self._name: str self.identifier = identifier self.display_name = display_name @@ -105,8 +105,12 @@ def identifier(self, identifier: "str") -> None: identifier: str The identifier of this GrantaServerApiListsDtoUserOrGroup. """ + # Field is not nullable if identifier is None: raise ValueError("Invalid value for 'identifier', must not be 'None'") + # Field is required + if identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'identifier', must not be 'Unset'") self._identifier = identifier @property @@ -129,8 +133,12 @@ def display_name(self, display_name: "str") -> None: display_name: str The display_name of this GrantaServerApiListsDtoUserOrGroup. """ + # Field is not nullable if display_name is None: raise ValueError("Invalid value for 'display_name', must not be 'None'") + # Field is required + if display_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_name', must not be 'Unset'") self._display_name = display_name @property @@ -153,12 +161,16 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiListsDtoUserOrGroup. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py index e21ad79a..a5664ed9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoUserPermission(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoUserPermission(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -75,13 +75,13 @@ def __init__( Parameters ---------- - flags: GrantaServerApiListsDtoRecordListPermissionFlags - user_or_group_identifier: str - user_or_group_name: str + flags: GrantaServerApiListsDtoRecordListPermissionFlags + user_or_group_identifier: str + user_or_group_name: str """ - self._user_or_group_name: str = None # type: ignore[assignment] - self._user_or_group_identifier: str = None # type: ignore[assignment] - self._flags: GrantaServerApiListsDtoRecordListPermissionFlags = None # type: ignore[assignment] + self._user_or_group_name: str + self._user_or_group_identifier: str + self._flags: GrantaServerApiListsDtoRecordListPermissionFlags self.user_or_group_name = user_or_group_name self.user_or_group_identifier = user_or_group_identifier @@ -109,10 +109,16 @@ def user_or_group_name(self, user_or_group_name: "str") -> None: user_or_group_name: str The user_or_group_name of this GrantaServerApiListsDtoUserPermission. """ + # Field is not nullable if user_or_group_name is None: raise ValueError( "Invalid value for 'user_or_group_name', must not be 'None'" ) + # Field is required + if user_or_group_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'user_or_group_name', must not be 'Unset'" + ) self._user_or_group_name = user_or_group_name @property @@ -137,10 +143,16 @@ def user_or_group_identifier(self, user_or_group_identifier: "str") -> None: user_or_group_identifier: str The user_or_group_identifier of this GrantaServerApiListsDtoUserPermission. """ + # Field is not nullable if user_or_group_identifier is None: raise ValueError( "Invalid value for 'user_or_group_identifier', must not be 'None'" ) + # Field is required + if user_or_group_identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'user_or_group_identifier', must not be 'Unset'" + ) self._user_or_group_identifier = user_or_group_identifier @property @@ -163,12 +175,16 @@ def flags(self, flags: "GrantaServerApiListsDtoRecordListPermissionFlags") -> No flags: GrantaServerApiListsDtoRecordListPermissionFlags The flags of this GrantaServerApiListsDtoUserPermission. """ + # Field is not nullable if flags is None: raise ValueError("Invalid value for 'flags', must not be 'None'") + # Field is required + if flags is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'flags', must not be 'Unset'") self._flags = flags @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -185,7 +201,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py index 173b30cf..e0fe4316 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiListsDtoUserPermissionsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiListsDtoUserPermissionsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - user_permissions: List[GrantaServerApiListsDtoUserPermission] + user_permissions: List[GrantaServerApiListsDtoUserPermission] """ - self._user_permissions: List[GrantaServerApiListsDtoUserPermission] = None # type: ignore[assignment] + self._user_permissions: List[GrantaServerApiListsDtoUserPermission] self.user_permissions = user_permissions @@ -81,7 +81,7 @@ def user_permissions(self) -> "List[GrantaServerApiListsDtoUserPermission]": Returns ------- - list[GrantaServerApiListsDtoUserPermission] + List[GrantaServerApiListsDtoUserPermission] The user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. """ return self._user_permissions @@ -97,12 +97,18 @@ def user_permissions( user_permissions: List[GrantaServerApiListsDtoUserPermission] The user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. """ + # Field is not nullable if user_permissions is None: raise ValueError("Invalid value for 'user_permissions', must not be 'None'") + # Field is required + if user_permissions is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'user_permissions', must not be 'Unset'" + ) self._user_permissions = user_permissions @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py index b64c2d65..2861c182 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( GrantaServerApiValueSpecifier, ) # noqa: F401 @@ -70,10 +70,10 @@ def __init__( Parameters ---------- - filter_on: str + filter_on: str """ super().__init__() - self._filter_on: str = None # type: ignore[assignment] + self._filter_on: str self.filter_on = filter_on @@ -97,12 +97,16 @@ def filter_on(self, filter_on: "str") -> None: filter_on: str The filter_on of this GrantaServerApiNoValuesSpecifier. """ + # Field is not nullable if filter_on is None: raise ValueError("Invalid value for 'filter_on', must not be 'None'") + # Field is required + if filter_on is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'filter_on', must not be 'Unset'") self._filter_on = filter_on @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py index f6db4245..44da7b42 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] +class GrantaServerApiObjectIdentifier(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,103 +65,103 @@ class GrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - name: "Optional[str]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiObjectIdentifier - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional - name: str, optional + guid: str, optional + identity: int, optional + name: str, optional """ - self._guid = None - self._name = None - self._identity = None + self._guid: Union[str, None, Unset_Type] = Unset + self._name: Union[str, None, Unset_Type] = Unset + self._identity: Union[int, None, Unset_Type] = Unset - if guid is not None: + if guid is not Unset: self.guid = guid - if name is not None: + if name is not Unset: self.name = name - if identity is not None: + if identity is not Unset: self.identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiObjectIdentifier. The GUID of this object. The GUID represents the object on a semantic level, and two objects of the same type with the same GUID are considered to represent \"the same concept\". GUIDs should be robust against data changes and database upgrades, and should be preferred where possible. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiObjectIdentifier. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiObjectIdentifier. The GUID of this object. The GUID represents the object on a semantic level, and two objects of the same type with the same GUID are considered to represent \"the same concept\". GUIDs should be robust against data changes and database upgrades, and should be preferred where possible. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiObjectIdentifier. """ self._guid = guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiObjectIdentifier. The name of this object. The name represents the object at a human-readable level, but two objects of the same type with the same need not represent \"the same concept\". Because the name is less uniquely identifying, clients should prefer GUIDs where possible, and operations based on name instead of GUID may fail if the name cannot be uniquely resolved. Certain object types may consider names to be equivalent Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiObjectIdentifier. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiObjectIdentifier. The name of this object. The name represents the object at a human-readable level, but two objects of the same type with the same need not represent \"the same concept\". Because the name is less uniquely identifying, clients should prefer GUIDs where possible, and operations based on name instead of GUID may fail if the name cannot be uniquely resolved. Certain object types may consider names to be equivalent Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiObjectIdentifier. """ self._name = name @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiObjectIdentifier. The underlying identity of this object. This represents the object at a data level, and two objects of the same type with the same identity are considered to represent \"the same object\". However, identities are not robust against database upgrades, and are only reliable and consistent within a currently- loaded database in a running MI instance. Clients should prefer GUIDs where possible, and operations based on identity which persist data will be resolved to GUIDs instead (and may fail if this cannot be done). Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiObjectIdentifier. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiObjectIdentifier. The underlying identity of this object. This represents the object at a data level, and two objects of the same type with the same identity are considered to represent \"the same object\". However, identities are not robust against database upgrades, and are only reliable and consistent within a currently- loaded database in a running MI instance. Clients should prefer GUIDs where possible, and operations based on identity which persist data will be resolved to GUIDs instead (and may fail if this cannot be done). Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiObjectIdentifier. """ self._identity = identity @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -178,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py index 25c7fd87..bce20aff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiParameterInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiParameterInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,148 +78,162 @@ class GrantaServerApiParameterInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" = None, - identity: "Optional[int]" = None, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]" = None, - name: "Optional[str]" = None, - parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" = None, - scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" = None, - unit_symbol: "Optional[str]" = None, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" = Unset, + identity: "Union[int, Unset_Type]" = Unset, + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" = Unset, + unit_symbol: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiParameterInfo - a model defined in Swagger Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue, optional - identity: int, optional - interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional - name: str, optional - parameter_type: GrantaServerApiParameterInfoParameterType, optional - scale_type: GrantaServerApiParameterInfoScaleType, optional - unit_symbol: str, optional + default_value: GrantaServerApiDataExportDatumsParameterValue, optional + identity: int, optional + interpolation_type: GrantaServerApiParameterInfoInterpolationType, optional + name: str, optional + parameter_type: GrantaServerApiParameterInfoParameterType, optional + scale_type: GrantaServerApiParameterInfoScaleType, optional + unit_symbol: str, optional """ - self._name = None - self._identity = None - self._unit_symbol = None - self._scale_type = None - self._interpolation_type = None - self._parameter_type = None - self._default_value = None - - if name is not None: + self._name: Union[str, None, Unset_Type] = Unset + self._identity: Union[int, Unset_Type] = Unset + self._unit_symbol: Union[str, None, Unset_Type] = Unset + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( + Unset + ) + self._interpolation_type: Union[ + GrantaServerApiParameterInfoInterpolationType, Unset_Type + ] = Unset + self._parameter_type: Union[ + GrantaServerApiParameterInfoParameterType, Unset_Type + ] = Unset + self._default_value: Union[ + GrantaServerApiDataExportDatumsParameterValue, Unset_Type + ] = Unset + + if name is not Unset: self.name = name - if identity is not None: + if identity is not Unset: self.identity = identity - if unit_symbol is not None: + if unit_symbol is not Unset: self.unit_symbol = unit_symbol - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type - if interpolation_type is not None: + if interpolation_type is not Unset: self.interpolation_type = interpolation_type - if parameter_type is not None: + if parameter_type is not Unset: self.parameter_type = parameter_type - if default_value is not None: + if default_value is not Unset: self.default_value = default_value @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiParameterInfo. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiParameterInfo. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiParameterInfo. """ self._name = name @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, Unset_Type]": """Gets the identity of this GrantaServerApiParameterInfo. Returns ------- - int + Union[int, Unset_Type] The identity of this GrantaServerApiParameterInfo. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiParameterInfo. Parameters ---------- - identity: int + identity: Union[int, Unset_Type] The identity of this GrantaServerApiParameterInfo. """ + # Field is not nullable + if identity is None: + raise ValueError("Invalid value for 'identity', must not be 'None'") self._identity = identity @property - def unit_symbol(self) -> "Optional[str]": + def unit_symbol(self) -> "Union[str, None, Unset_Type]": """Gets the unit_symbol of this GrantaServerApiParameterInfo. Returns ------- - str + Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiParameterInfo. """ return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "Optional[str]") -> None: + def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: """Sets the unit_symbol of this GrantaServerApiParameterInfo. Parameters ---------- - unit_symbol: str + unit_symbol: Union[str, None, Unset_Type] The unit_symbol of this GrantaServerApiParameterInfo. """ self._unit_symbol = unit_symbol @property - def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": + def scale_type(self) -> "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiParameterInfo. Returns ------- - GrantaServerApiParameterInfoScaleType + Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiParameterInfo. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + self, scale_type: "Union[GrantaServerApiParameterInfoScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiParameterInfo. Parameters ---------- - scale_type: GrantaServerApiParameterInfoScaleType + scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] The scale_type of this GrantaServerApiParameterInfo. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @property def interpolation_type( self, - ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": + ) -> "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]": """Gets the interpolation_type of this GrantaServerApiParameterInfo. Returns ------- - GrantaServerApiParameterInfoInterpolationType + Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiParameterInfo. """ return self._interpolation_type @@ -227,69 +241,84 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( self, - interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", + interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", ) -> None: """Sets the interpolation_type of this GrantaServerApiParameterInfo. Parameters ---------- - interpolation_type: GrantaServerApiParameterInfoInterpolationType + interpolation_type: Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiParameterInfo. """ + # Field is not nullable + if interpolation_type is None: + raise ValueError( + "Invalid value for 'interpolation_type', must not be 'None'" + ) self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": + def parameter_type( + self, + ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiParameterInfo. Returns ------- - GrantaServerApiParameterInfoParameterType + Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiParameterInfo. """ return self._parameter_type @parameter_type.setter def parameter_type( - self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" + self, + parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", ) -> None: """Sets the parameter_type of this GrantaServerApiParameterInfo. Parameters ---------- - parameter_type: GrantaServerApiParameterInfoParameterType + parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] The parameter_type of this GrantaServerApiParameterInfo. """ + # Field is not nullable + if parameter_type is None: + raise ValueError("Invalid value for 'parameter_type', must not be 'None'") self._parameter_type = parameter_type @property def default_value( self, - ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": + ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiParameterInfo. Returns ------- - GrantaServerApiDataExportDatumsParameterValue + Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiParameterInfo. """ return self._default_value @default_value.setter def default_value( - self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" + self, + default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", ) -> None: """Sets the default_value of this GrantaServerApiParameterInfo. Parameters ---------- - default_value: GrantaServerApiDataExportDatumsParameterValue + default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] The default_value of this GrantaServerApiParameterInfo. """ + # Field is not nullable + if default_value is None: + raise ValueError("Invalid value for 'default_value', must not be 'None'") self._default_value = default_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -306,7 +335,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py index 72d9fa4e..cb0712eb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): # type: ignore[misc] +class GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,36 +69,40 @@ def __init__( self, *, subset_option: "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", - new_parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, - new_short_name: "Optional[str]" = None, + new_parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]" = Unset, + new_short_name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiRecordsRecordHistoriesCopyRecordHistory - a model defined in Swagger Parameters ---------- - subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType - new_parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional - new_short_name: str, optional + subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType + new_parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional + new_short_name: str, optional """ - self._new_parent = None - self._subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType = None # type: ignore[assignment] - self._new_short_name = None - - if new_parent is not None: + self._new_parent: Union[ + GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type + ] = Unset + self._subset_option: ( + GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType + ) + self._new_short_name: Union[str, None, Unset_Type] = Unset + + if new_parent is not Unset: self.new_parent = new_parent self.subset_option = subset_option - if new_short_name is not None: + if new_short_name is not Unset: self.new_short_name = new_short_name @property def new_parent( self, - ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": + ) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": """Gets the new_parent of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Returns ------- - GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The new_parent of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. """ return self._new_parent @@ -106,15 +110,18 @@ def new_parent( @new_parent.setter def new_parent( self, - new_parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]", + new_parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]", ) -> None: """Sets the new_parent of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Parameters ---------- - new_parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + new_parent: Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The new_parent of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. """ + # Field is not nullable + if new_parent is None: + raise ValueError("Invalid value for 'new_parent', must not be 'None'") self._new_parent = new_parent @property @@ -142,34 +149,38 @@ def subset_option( subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType The subset_option of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. """ + # Field is not nullable if subset_option is None: raise ValueError("Invalid value for 'subset_option', must not be 'None'") + # Field is required + if subset_option is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'subset_option', must not be 'Unset'") self._subset_option = subset_option @property - def new_short_name(self) -> "Optional[str]": + def new_short_name(self) -> "Union[str, None, Unset_Type]": """Gets the new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Returns ------- - str + Union[str, None, Unset_Type] The new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. """ return self._new_short_name @new_short_name.setter - def new_short_name(self, new_short_name: "Optional[str]") -> None: + def new_short_name(self, new_short_name: "Union[str, None, Unset_Type]") -> None: """Sets the new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Parameters ---------- - new_short_name: str + new_short_name: Union[str, None, Unset_Type] The new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. """ self._new_short_name = new_short_name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -186,7 +197,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py index a1f03300..5969961a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): # type: ignore[misc] +class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -77,38 +77,40 @@ def __init__( *, name: "str", record_type: "GrantaServerApiRecordType", - guid: "Optional[str]" = None, - parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, - record_color: "Optional[GrantaServerApiRecordColor]" = None, - short_name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]" = Unset, + record_color: "Union[GrantaServerApiRecordColor, Unset_Type]" = Unset, + short_name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiRecordsRecordHistoriesCreateRecordHistory - a model defined in Swagger Parameters ---------- - name: str - record_type: GrantaServerApiRecordType - guid: str, optional - parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional - record_color: GrantaServerApiRecordColor, optional - short_name: str, optional + name: str + record_type: GrantaServerApiRecordType + guid: str, optional + parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional + record_color: GrantaServerApiRecordColor, optional + short_name: str, optional """ - self._record_type: GrantaServerApiRecordType = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._short_name = None - self._parent = None - self._record_color = None - self._guid = None + self._record_type: GrantaServerApiRecordType + self._name: str + self._short_name: Union[str, None, Unset_Type] = Unset + self._parent: Union[ + GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type + ] = Unset + self._record_color: Union[GrantaServerApiRecordColor, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset self.record_type = record_type self.name = name - if short_name is not None: + if short_name is not Unset: self.short_name = short_name - if parent is not None: + if parent is not Unset: self.parent = parent - if record_color is not None: + if record_color is not Unset: self.record_color = record_color - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -131,8 +133,12 @@ def record_type(self, record_type: "GrantaServerApiRecordType") -> None: record_type: GrantaServerApiRecordType The record_type of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ + # Field is not nullable if record_type is None: raise ValueError("Invalid value for 'record_type', must not be 'None'") + # Field is required + if record_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'record_type', must not be 'Unset'") self._record_type = record_type @property @@ -155,28 +161,32 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def short_name(self) -> "Optional[str]": + def short_name(self) -> "Union[str, None, Unset_Type]": """Gets the short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns ------- - str + Union[str, None, Unset_Type] The short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ return self._short_name @short_name.setter - def short_name(self, short_name: "Optional[str]") -> None: + def short_name(self, short_name: "Union[str, None, Unset_Type]") -> None: """Sets the short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters ---------- - short_name: str + short_name: Union[str, None, Unset_Type] The short_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ self._short_name = short_name @@ -184,77 +194,87 @@ def short_name(self, short_name: "Optional[str]") -> None: @property def parent( self, - ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": + ) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": """Gets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns ------- - GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ return self._parent @parent.setter def parent( - self, parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" + self, + parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]", ) -> None: """Sets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters ---------- - parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + parent: Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ + # Field is not nullable + if parent is None: + raise ValueError("Invalid value for 'parent', must not be 'None'") self._parent = parent @property - def record_color(self) -> "Optional[GrantaServerApiRecordColor]": + def record_color(self) -> "Union[GrantaServerApiRecordColor, Unset_Type]": """Gets the record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns ------- - GrantaServerApiRecordColor + Union[GrantaServerApiRecordColor, Unset_Type] The record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ return self._record_color @record_color.setter def record_color( - self, record_color: "Optional[GrantaServerApiRecordColor]" + self, record_color: "Union[GrantaServerApiRecordColor, Unset_Type]" ) -> None: """Sets the record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters ---------- - record_color: GrantaServerApiRecordColor + record_color: Union[GrantaServerApiRecordColor, Unset_Type] The record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ + # Field is not nullable + if record_color is None: + raise ValueError("Invalid value for 'record_color', must not be 'None'") self._record_color = record_color @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -271,7 +291,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py index cf8a2235..082d8b91 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiRecordsRecordHistoriesMoveRecordHistory(ModelBase): # type: ignore[misc] +class GrantaServerApiRecordsRecordHistoriesMoveRecordHistory(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiRecordsRecordHistoriesMoveRecordHistory(ModelBase): # type def __init__( self, *, - new_parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, + new_parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]" = Unset, ) -> None: """GrantaServerApiRecordsRecordHistoriesMoveRecordHistory - a model defined in Swagger Parameters ---------- - new_parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional + new_parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional """ - self._new_parent = None + self._new_parent: Union[ + GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type + ] = Unset - if new_parent is not None: + if new_parent is not Unset: self.new_parent = new_parent @property def new_parent( self, - ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": + ) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": """Gets the new_parent of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. Returns ------- - GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The new_parent of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. """ return self._new_parent @@ -92,19 +94,22 @@ def new_parent( @new_parent.setter def new_parent( self, - new_parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]", + new_parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]", ) -> None: """Sets the new_parent of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. Parameters ---------- - new_parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + new_parent: Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The new_parent of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. """ + # Field is not nullable + if new_parent is None: + raise ValueError("Invalid value for 'new_parent', must not be 'None'") self._new_parent = new_parent @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +126,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py index 663f61f1..5027b71e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): # type: ignore[misc] +class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -81,29 +81,33 @@ def __init__( record_versions: "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]", table: "GrantaServerApiSchemaSlimEntitiesSlimTable", - parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, + parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]" = Unset, ) -> None: """GrantaServerApiRecordsRecordHistoriesRecordHistory - a model defined in Swagger Parameters ---------- - guid: str - is_folder: bool - record_versions: List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] - subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] - table: GrantaServerApiSchemaSlimEntitiesSlimTable - parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional + guid: str + is_folder: bool + record_versions: List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] + subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] + table: GrantaServerApiSchemaSlimEntitiesSlimTable + parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional """ - self._is_folder: bool = None # type: ignore[assignment] - self._table: GrantaServerApiSchemaSlimEntitiesSlimTable = None # type: ignore[assignment] - self._parent = None - self._record_versions: List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] = None # type: ignore[assignment] - self._subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._is_folder: bool + self._table: GrantaServerApiSchemaSlimEntitiesSlimTable + self._parent: Union[ + GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type + ] = Unset + self._record_versions: List[ + GrantaServerApiRecordsRecordVersionsSlimRecordVersion + ] + self._subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] + self._guid: str self.is_folder = is_folder self.table = table - if parent is not None: + if parent is not Unset: self.parent = parent self.record_versions = record_versions self.subsets = subsets @@ -129,8 +133,12 @@ def is_folder(self, is_folder: "bool") -> None: is_folder: bool The is_folder of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ + # Field is not nullable if is_folder is None: raise ValueError("Invalid value for 'is_folder', must not be 'None'") + # Field is required + if is_folder is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_folder', must not be 'Unset'") self._is_folder = is_folder @property @@ -153,34 +161,42 @@ def table(self, table: "GrantaServerApiSchemaSlimEntitiesSlimTable") -> None: table: GrantaServerApiSchemaSlimEntitiesSlimTable The table of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ + # Field is not nullable if table is None: raise ValueError("Invalid value for 'table', must not be 'None'") + # Field is required + if table is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table', must not be 'Unset'") self._table = table @property def parent( self, - ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": + ) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": """Gets the parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Returns ------- - GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ return self._parent @parent.setter def parent( - self, parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" + self, + parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]", ) -> None: """Sets the parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Parameters ---------- - parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + parent: Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] The parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ + # Field is not nullable + if parent is None: + raise ValueError("Invalid value for 'parent', must not be 'None'") self._parent = parent @property @@ -191,7 +207,7 @@ def record_versions( Returns ------- - list[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] + List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] The record_versions of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ return self._record_versions @@ -208,8 +224,12 @@ def record_versions( record_versions: List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] The record_versions of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ + # Field is not nullable if record_versions is None: raise ValueError("Invalid value for 'record_versions', must not be 'None'") + # Field is required + if record_versions is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'record_versions', must not be 'Unset'") self._record_versions = record_versions @property @@ -218,7 +238,7 @@ def subsets(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]": Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + List[GrantaServerApiSchemaSlimEntitiesSlimSubset] The subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ return self._subsets @@ -234,8 +254,12 @@ def subsets( subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] The subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ + # Field is not nullable if subsets is None: raise ValueError("Invalid value for 'subsets', must not be 'None'") + # Field is required + if subsets is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'subsets', must not be 'Unset'") self._subsets = subsets @property @@ -258,12 +282,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -280,7 +308,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py index 3b202cb4..0221dc9c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiRecordsRecordHistoriesSlimRecordHistory(ModelBase): # type: ignore[misc] +class GrantaServerApiRecordsRecordHistoriesSlimRecordHistory(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,9 +67,9 @@ def __init__( Parameters ---------- - guid: str + guid: str """ - self._guid: str = None # type: ignore[assignment] + self._guid: str self.guid = guid @@ -93,12 +93,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiRecordsRecordHistoriesSlimRecordHistory. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -115,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py index c4fcb801..c789e35e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): # type: ignore[misc] +class GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -109,43 +109,43 @@ def __init__( table: "GrantaServerApiSchemaSlimEntitiesSlimTable", version_number: "int", version_state: "GrantaServerApiVersionState", - released_date: "Optional[datetime]" = None, + released_date: "Union[datetime, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiRecordsRecordVersionsRecordVersion - a model defined in Swagger Parameters ---------- - created_by_user: str - created_date: datetime - database_key: str - guid: str - last_modified_by_user: str - last_modified_date: datetime - name: str - record_color: GrantaServerApiRecordColor - record_history: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory - record_type: GrantaServerApiRecordType - short_name: str - table: GrantaServerApiSchemaSlimEntitiesSlimTable - version_number: int - version_state: GrantaServerApiVersionState - released_date: datetime, optional - """ - self._record_history: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory = None # type: ignore[assignment] - self._table: GrantaServerApiSchemaSlimEntitiesSlimTable = None # type: ignore[assignment] - self._database_key: str = None # type: ignore[assignment] - self._created_by_user: str = None # type: ignore[assignment] - self._created_date: datetime = None # type: ignore[assignment] - self._last_modified_by_user: str = None # type: ignore[assignment] - self._last_modified_date: datetime = None # type: ignore[assignment] - self._record_type: GrantaServerApiRecordType = None # type: ignore[assignment] - self._released_date = None - self._short_name: str = None # type: ignore[assignment] - self._record_color: GrantaServerApiRecordColor = None # type: ignore[assignment] - self._version_number: int = None # type: ignore[assignment] - self._version_state: GrantaServerApiVersionState = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + created_by_user: str + created_date: datetime + database_key: str + guid: str + last_modified_by_user: str + last_modified_date: datetime + name: str + record_color: GrantaServerApiRecordColor + record_history: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + record_type: GrantaServerApiRecordType + short_name: str + table: GrantaServerApiSchemaSlimEntitiesSlimTable + version_number: int + version_state: GrantaServerApiVersionState + released_date: datetime, optional + """ + self._record_history: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + self._table: GrantaServerApiSchemaSlimEntitiesSlimTable + self._database_key: str + self._created_by_user: str + self._created_date: datetime + self._last_modified_by_user: str + self._last_modified_date: datetime + self._record_type: GrantaServerApiRecordType + self._released_date: Union[datetime, None, Unset_Type] = Unset + self._short_name: str + self._record_color: GrantaServerApiRecordColor + self._version_number: int + self._version_state: GrantaServerApiVersionState + self._name: str + self._guid: str self.record_history = record_history self.table = table @@ -155,7 +155,7 @@ def __init__( self.last_modified_by_user = last_modified_by_user self.last_modified_date = last_modified_date self.record_type = record_type - if released_date is not None: + if released_date is not Unset: self.released_date = released_date self.short_name = short_name self.record_color = record_color @@ -188,8 +188,12 @@ def record_history( record_history: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory The record_history of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if record_history is None: raise ValueError("Invalid value for 'record_history', must not be 'None'") + # Field is required + if record_history is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'record_history', must not be 'Unset'") self._record_history = record_history @property @@ -212,8 +216,12 @@ def table(self, table: "GrantaServerApiSchemaSlimEntitiesSlimTable") -> None: table: GrantaServerApiSchemaSlimEntitiesSlimTable The table of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if table is None: raise ValueError("Invalid value for 'table', must not be 'None'") + # Field is required + if table is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table', must not be 'Unset'") self._table = table @property @@ -236,8 +244,12 @@ def database_key(self, database_key: "str") -> None: database_key: str The database_key of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if database_key is None: raise ValueError("Invalid value for 'database_key', must not be 'None'") + # Field is required + if database_key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_key', must not be 'Unset'") self._database_key = database_key @property @@ -260,8 +272,12 @@ def created_by_user(self, created_by_user: "str") -> None: created_by_user: str The created_by_user of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if created_by_user is None: raise ValueError("Invalid value for 'created_by_user', must not be 'None'") + # Field is required + if created_by_user is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'created_by_user', must not be 'Unset'") self._created_by_user = created_by_user @property @@ -284,8 +300,12 @@ def created_date(self, created_date: "datetime") -> None: created_date: datetime The created_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if created_date is None: raise ValueError("Invalid value for 'created_date', must not be 'None'") + # Field is required + if created_date is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'created_date', must not be 'Unset'") self._created_date = created_date @property @@ -308,10 +328,16 @@ def last_modified_by_user(self, last_modified_by_user: "str") -> None: last_modified_by_user: str The last_modified_by_user of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if last_modified_by_user is None: raise ValueError( "Invalid value for 'last_modified_by_user', must not be 'None'" ) + # Field is required + if last_modified_by_user is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'last_modified_by_user', must not be 'Unset'" + ) self._last_modified_by_user = last_modified_by_user @property @@ -334,10 +360,16 @@ def last_modified_date(self, last_modified_date: "datetime") -> None: last_modified_date: datetime The last_modified_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if last_modified_date is None: raise ValueError( "Invalid value for 'last_modified_date', must not be 'None'" ) + # Field is required + if last_modified_date is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'last_modified_date', must not be 'Unset'" + ) self._last_modified_date = last_modified_date @property @@ -360,28 +392,32 @@ def record_type(self, record_type: "GrantaServerApiRecordType") -> None: record_type: GrantaServerApiRecordType The record_type of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if record_type is None: raise ValueError("Invalid value for 'record_type', must not be 'None'") + # Field is required + if record_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'record_type', must not be 'Unset'") self._record_type = record_type @property - def released_date(self) -> "Optional[datetime]": + def released_date(self) -> "Union[datetime, None, Unset_Type]": """Gets the released_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. Returns ------- - datetime + Union[datetime, None, Unset_Type] The released_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ return self._released_date @released_date.setter - def released_date(self, released_date: "Optional[datetime]") -> None: + def released_date(self, released_date: "Union[datetime, None, Unset_Type]") -> None: """Sets the released_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. Parameters ---------- - released_date: datetime + released_date: Union[datetime, None, Unset_Type] The released_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ self._released_date = released_date @@ -406,8 +442,12 @@ def short_name(self, short_name: "str") -> None: short_name: str The short_name of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if short_name is None: raise ValueError("Invalid value for 'short_name', must not be 'None'") + # Field is required + if short_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'short_name', must not be 'Unset'") self._short_name = short_name @property @@ -430,8 +470,12 @@ def record_color(self, record_color: "GrantaServerApiRecordColor") -> None: record_color: GrantaServerApiRecordColor The record_color of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if record_color is None: raise ValueError("Invalid value for 'record_color', must not be 'None'") + # Field is required + if record_color is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'record_color', must not be 'Unset'") self._record_color = record_color @property @@ -454,8 +498,12 @@ def version_number(self, version_number: "int") -> None: version_number: int The version_number of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if version_number is None: raise ValueError("Invalid value for 'version_number', must not be 'None'") + # Field is required + if version_number is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'version_number', must not be 'Unset'") self._version_number = version_number @property @@ -478,8 +526,12 @@ def version_state(self, version_state: "GrantaServerApiVersionState") -> None: version_state: GrantaServerApiVersionState The version_state of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if version_state is None: raise ValueError("Invalid value for 'version_state', must not be 'None'") + # Field is required + if version_state is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'version_state', must not be 'Unset'") self._version_state = version_state @property @@ -502,8 +554,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -526,12 +582,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiRecordsRecordVersionsRecordVersion. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -548,7 +608,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py index dc2c6a80..e8a5b102 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiRecordsRecordVersionsSlimRecordVersion(ModelBase): # type: ignore[misc] +class GrantaServerApiRecordsRecordVersionsSlimRecordVersion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,15 +78,15 @@ def __init__( Parameters ---------- - guid: str - name: str - version_number: int - version_state: GrantaServerApiVersionState + guid: str + name: str + version_number: int + version_state: GrantaServerApiVersionState """ - self._version_number: int = None # type: ignore[assignment] - self._version_state: GrantaServerApiVersionState = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._version_number: int + self._version_state: GrantaServerApiVersionState + self._name: str + self._guid: str self.version_number = version_number self.version_state = version_state @@ -113,8 +113,12 @@ def version_number(self, version_number: "int") -> None: version_number: int The version_number of this GrantaServerApiRecordsRecordVersionsSlimRecordVersion. """ + # Field is not nullable if version_number is None: raise ValueError("Invalid value for 'version_number', must not be 'None'") + # Field is required + if version_number is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'version_number', must not be 'Unset'") self._version_number = version_number @property @@ -137,8 +141,12 @@ def version_state(self, version_state: "GrantaServerApiVersionState") -> None: version_state: GrantaServerApiVersionState The version_state of this GrantaServerApiRecordsRecordVersionsSlimRecordVersion. """ + # Field is not nullable if version_state is None: raise ValueError("Invalid value for 'version_state', must not be 'None'") + # Field is required + if version_state is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'version_state', must not be 'Unset'") self._version_state = version_state @property @@ -161,8 +169,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiRecordsRecordVersionsSlimRecordVersion. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -185,12 +197,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiRecordsRecordVersionsSlimRecordVersion. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -207,7 +223,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py index 32eda98f..f7e7376f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesAttribute(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesAttribute(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -104,38 +104,42 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional """ - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] - self._axis_name = None - self._help_path = None - self._about_attribute = None - self._info: GrantaServerApiSchemaAttributesAttributeAttributeInfo = None # type: ignore[assignment] - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) + self._axis_name: Union[str, None, Unset_Type] = Unset + self._help_path: Union[str, None, Unset_Type] = Unset + self._about_attribute: Union[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type + ] = Unset + self._info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.default_threshold_type = default_threshold_type - if axis_name is not None: + if axis_name is not Unset: self.axis_name = axis_name - if help_path is not None: + if help_path is not Unset: self.help_path = help_path - if about_attribute is not None: + if about_attribute is not Unset: self.about_attribute = about_attribute self.info = info self.display_names = display_names @@ -167,52 +171,58 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaAttributesAttribute. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @property - def axis_name(self) -> "Optional[str]": + def axis_name(self) -> "Union[str, None, Unset_Type]": """Gets the axis_name of this GrantaServerApiSchemaAttributesAttribute. Returns ------- - str + Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesAttribute. """ return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "Optional[str]") -> None: + def axis_name(self, axis_name: "Union[str, None, Unset_Type]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesAttribute. Parameters ---------- - axis_name: str + axis_name: Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesAttribute. """ self._axis_name = axis_name @property - def help_path(self) -> "Optional[str]": + def help_path(self) -> "Union[str, None, Unset_Type]": """Gets the help_path of this GrantaServerApiSchemaAttributesAttribute. Returns ------- - str + Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaAttributesAttribute. """ return self._help_path @help_path.setter - def help_path(self, help_path: "Optional[str]") -> None: + def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: """Sets the help_path of this GrantaServerApiSchemaAttributesAttribute. Parameters ---------- - help_path: str + help_path: Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaAttributesAttribute. """ self._help_path = help_path @@ -220,12 +230,12 @@ def help_path(self, help_path: "Optional[str]") -> None: @property def about_attribute( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaAttributesAttribute. """ return self._about_attribute @@ -233,15 +243,18 @@ def about_attribute( @about_attribute.setter def about_attribute( self, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesAttribute. Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + about_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaAttributesAttribute. """ + # Field is not nullable + if about_attribute is None: + raise ValueError("Invalid value for 'about_attribute', must not be 'None'") self._about_attribute = about_attribute @property @@ -266,8 +279,12 @@ def info( info: GrantaServerApiSchemaAttributesAttributeAttributeInfo The info of this GrantaServerApiSchemaAttributesAttribute. """ + # Field is not nullable if info is None: raise ValueError("Invalid value for 'info', must not be 'None'") + # Field is required + if info is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'info', must not be 'Unset'") self._info = info @property @@ -276,7 +293,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaAttributesAttribute. """ return self._display_names @@ -290,8 +307,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaAttributesAttribute. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -314,8 +335,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaAttributesAttribute. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -338,12 +363,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaAttributesAttribute. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -365,7 +394,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py index 5cc94be2..ef2b8bb2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -99,39 +99,49 @@ def __init__( primary_data_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", standard_names: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", type_code: "str", - foreign_dynamic_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]" = None, - ordered_meta_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]" = None, - primary_dynamic_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]" = None, + foreign_dynamic_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]" = Unset, + ordered_meta_attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]" = Unset, + primary_dynamic_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesAttributeAttributeInfo - a model defined in Swagger Parameters ---------- - chartable: bool - expressionable: bool - extended_name: str - foreign_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - is_meta_attribute: bool - linkable: bool - primary_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - standard_names: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - type_code: str - foreign_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional - ordered_meta_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional - primary_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional + chartable: bool + expressionable: bool + extended_name: str + foreign_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + is_meta_attribute: bool + linkable: bool + primary_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + standard_names: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + type_code: str + foreign_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional + ordered_meta_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional + primary_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional """ - self._type_code: str = None # type: ignore[assignment] - self._chartable: bool = None # type: ignore[assignment] - self._expressionable: bool = None # type: ignore[assignment] - self._linkable: bool = None # type: ignore[assignment] - self._extended_name: str = None # type: ignore[assignment] - self._is_meta_attribute: bool = None # type: ignore[assignment] - self._ordered_meta_attributes = None - self._standard_names: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._primary_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._foreign_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._primary_dynamic_link_groups = None - self._foreign_dynamic_link_groups = None + self._type_code: str + self._chartable: bool + self._expressionable: bool + self._linkable: bool + self._extended_name: str + self._is_meta_attribute: bool + self._ordered_meta_attributes: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type + ] = Unset + self._standard_names: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._primary_data_link_groups: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._foreign_data_link_groups: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._primary_dynamic_link_groups: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type + ] = Unset + self._foreign_dynamic_link_groups: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type + ] = Unset self.type_code = type_code self.chartable = chartable @@ -139,14 +149,14 @@ def __init__( self.linkable = linkable self.extended_name = extended_name self.is_meta_attribute = is_meta_attribute - if ordered_meta_attributes is not None: + if ordered_meta_attributes is not Unset: self.ordered_meta_attributes = ordered_meta_attributes self.standard_names = standard_names self.primary_data_link_groups = primary_data_link_groups self.foreign_data_link_groups = foreign_data_link_groups - if primary_dynamic_link_groups is not None: + if primary_dynamic_link_groups is not Unset: self.primary_dynamic_link_groups = primary_dynamic_link_groups - if foreign_dynamic_link_groups is not None: + if foreign_dynamic_link_groups is not Unset: self.foreign_dynamic_link_groups = foreign_dynamic_link_groups @property @@ -169,8 +179,12 @@ def type_code(self, type_code: "str") -> None: type_code: str The type_code of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if type_code is None: raise ValueError("Invalid value for 'type_code', must not be 'None'") + # Field is required + if type_code is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type_code', must not be 'Unset'") self._type_code = type_code @property @@ -193,8 +207,12 @@ def chartable(self, chartable: "bool") -> None: chartable: bool The chartable of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if chartable is None: raise ValueError("Invalid value for 'chartable', must not be 'None'") + # Field is required + if chartable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'chartable', must not be 'Unset'") self._chartable = chartable @property @@ -217,8 +235,12 @@ def expressionable(self, expressionable: "bool") -> None: expressionable: bool The expressionable of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if expressionable is None: raise ValueError("Invalid value for 'expressionable', must not be 'None'") + # Field is required + if expressionable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'expressionable', must not be 'Unset'") self._expressionable = expressionable @property @@ -241,8 +263,12 @@ def linkable(self, linkable: "bool") -> None: linkable: bool The linkable of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if linkable is None: raise ValueError("Invalid value for 'linkable', must not be 'None'") + # Field is required + if linkable is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'linkable', must not be 'Unset'") self._linkable = linkable @property @@ -265,8 +291,12 @@ def extended_name(self, extended_name: "str") -> None: extended_name: str The extended_name of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if extended_name is None: raise ValueError("Invalid value for 'extended_name', must not be 'None'") + # Field is required + if extended_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'extended_name', must not be 'Unset'") self._extended_name = extended_name @property @@ -289,21 +319,27 @@ def is_meta_attribute(self, is_meta_attribute: "bool") -> None: is_meta_attribute: bool The is_meta_attribute of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if is_meta_attribute is None: raise ValueError( "Invalid value for 'is_meta_attribute', must not be 'None'" ) + # Field is required + if is_meta_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'is_meta_attribute', must not be 'Unset'" + ) self._is_meta_attribute = is_meta_attribute @property def ordered_meta_attributes( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]": """Gets the ordered_meta_attributes of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The ordered_meta_attributes of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ return self._ordered_meta_attributes @@ -311,13 +347,13 @@ def ordered_meta_attributes( @ordered_meta_attributes.setter def ordered_meta_attributes( self, - ordered_meta_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", + ordered_meta_attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]", ) -> None: """Sets the ordered_meta_attributes of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - ordered_meta_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + ordered_meta_attributes: Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The ordered_meta_attributes of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ self._ordered_meta_attributes = ordered_meta_attributes @@ -330,7 +366,7 @@ def standard_names( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The standard_names of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ return self._standard_names @@ -346,8 +382,12 @@ def standard_names( standard_names: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The standard_names of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if standard_names is None: raise ValueError("Invalid value for 'standard_names', must not be 'None'") + # Field is required + if standard_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'standard_names', must not be 'Unset'") self._standard_names = standard_names @property @@ -358,7 +398,7 @@ def primary_data_link_groups( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The primary_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ return self._primary_data_link_groups @@ -375,10 +415,16 @@ def primary_data_link_groups( primary_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The primary_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if primary_data_link_groups is None: raise ValueError( "Invalid value for 'primary_data_link_groups', must not be 'None'" ) + # Field is required + if primary_data_link_groups is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'primary_data_link_groups', must not be 'Unset'" + ) self._primary_data_link_groups = primary_data_link_groups @property @@ -389,7 +435,7 @@ def foreign_data_link_groups( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The foreign_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ return self._foreign_data_link_groups @@ -406,21 +452,27 @@ def foreign_data_link_groups( foreign_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The foreign_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ + # Field is not nullable if foreign_data_link_groups is None: raise ValueError( "Invalid value for 'foreign_data_link_groups', must not be 'None'" ) + # Field is required + if foreign_data_link_groups is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'foreign_data_link_groups', must not be 'Unset'" + ) self._foreign_data_link_groups = foreign_data_link_groups @property def primary_dynamic_link_groups( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]": """Gets the primary_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The primary_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ return self._primary_dynamic_link_groups @@ -428,13 +480,13 @@ def primary_dynamic_link_groups( @primary_dynamic_link_groups.setter def primary_dynamic_link_groups( self, - primary_dynamic_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", + primary_dynamic_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]", ) -> None: """Sets the primary_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - primary_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + primary_dynamic_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The primary_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ self._primary_dynamic_link_groups = primary_dynamic_link_groups @@ -442,12 +494,12 @@ def primary_dynamic_link_groups( @property def foreign_dynamic_link_groups( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]": """Gets the foreign_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The foreign_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ return self._foreign_dynamic_link_groups @@ -455,19 +507,19 @@ def foreign_dynamic_link_groups( @foreign_dynamic_link_groups.setter def foreign_dynamic_link_groups( self, - foreign_dynamic_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", + foreign_dynamic_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]", ) -> None: """Sets the foreign_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - foreign_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + foreign_dynamic_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The foreign_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ self._foreign_dynamic_link_groups = foreign_dynamic_link_groups @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -484,7 +536,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py index b6562a9c..f12faa60 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesAttributeValidateResponse(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesAttributeValidateResponse(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,103 +65,113 @@ class GrantaServerApiSchemaAttributesAttributeValidateResponse(ModelBase): # ty def __init__( self, *, - has_validation_rules: "Optional[bool]" = None, - is_valid: "Optional[bool]" = None, - value_changed: "Optional[bool]" = None, + has_validation_rules: "Union[bool, Unset_Type]" = Unset, + is_valid: "Union[bool, Unset_Type]" = Unset, + value_changed: "Union[bool, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesAttributeValidateResponse - a model defined in Swagger Parameters ---------- - has_validation_rules: bool, optional - is_valid: bool, optional - value_changed: bool, optional + has_validation_rules: bool, optional + is_valid: bool, optional + value_changed: bool, optional """ - self._is_valid = None - self._has_validation_rules = None - self._value_changed = None + self._is_valid: Union[bool, Unset_Type] = Unset + self._has_validation_rules: Union[bool, Unset_Type] = Unset + self._value_changed: Union[bool, None, Unset_Type] = Unset - if is_valid is not None: + if is_valid is not Unset: self.is_valid = is_valid - if has_validation_rules is not None: + if has_validation_rules is not Unset: self.has_validation_rules = has_validation_rules - if value_changed is not None: + if value_changed is not Unset: self.value_changed = value_changed @property - def is_valid(self) -> "Optional[bool]": + def is_valid(self) -> "Union[bool, Unset_Type]": """Gets the is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the provided value was valid based on the attributes data rules. Returns ------- - bool + Union[bool, Unset_Type] The is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. """ return self._is_valid @is_valid.setter - def is_valid(self, is_valid: "Optional[bool]") -> None: + def is_valid(self, is_valid: "Union[bool, Unset_Type]") -> None: """Sets the is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the provided value was valid based on the attributes data rules. Parameters ---------- - is_valid: bool + is_valid: Union[bool, Unset_Type] The is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. """ + # Field is not nullable + if is_valid is None: + raise ValueError("Invalid value for 'is_valid', must not be 'None'") self._is_valid = is_valid @property - def has_validation_rules(self) -> "Optional[bool]": + def has_validation_rules(self) -> "Union[bool, Unset_Type]": """Gets the has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the attribute has any validation rules that were checked. Returns ------- - bool + Union[bool, Unset_Type] The has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. """ return self._has_validation_rules @has_validation_rules.setter - def has_validation_rules(self, has_validation_rules: "Optional[bool]") -> None: + def has_validation_rules( + self, has_validation_rules: "Union[bool, Unset_Type]" + ) -> None: """Sets the has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the attribute has any validation rules that were checked. Parameters ---------- - has_validation_rules: bool + has_validation_rules: Union[bool, Unset_Type] The has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. """ + # Field is not nullable + if has_validation_rules is None: + raise ValueError( + "Invalid value for 'has_validation_rules', must not be 'None'" + ) self._has_validation_rules = has_validation_rules @property - def value_changed(self) -> "Optional[bool]": + def value_changed(self) -> "Union[bool, None, Unset_Type]": """Gets the value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the provided value was a new value compared to the existing value. Null if no record was provided. Returns ------- - bool + Union[bool, None, Unset_Type] The value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. """ return self._value_changed @value_changed.setter - def value_changed(self, value_changed: "Optional[bool]") -> None: + def value_changed(self, value_changed: "Union[bool, None, Unset_Type]") -> None: """Sets the value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the provided value was a new value compared to the existing value. Null if no record was provided. Parameters ---------- - value_changed: bool + value_changed: Union[bool, None, Unset_Type] The value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. """ self._value_changed = value_changed @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -178,7 +188,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py index 1d69cdd6..5a1b9dea 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesAttributesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesAttributesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] + attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] """ - self._attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] = None # type: ignore[assignment] + self._attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] self.attributes = attributes @@ -81,7 +81,7 @@ def attributes(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimAttribute] + List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] The attributes of this GrantaServerApiSchemaAttributesAttributesInfo. """ return self._attributes @@ -97,12 +97,16 @@ def attributes( attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] The attributes of this GrantaServerApiSchemaAttributesAttributesInfo. """ + # Field is not nullable if attributes is None: raise ValueError("Invalid value for 'attributes', must not be 'None'") + # Field is required + if attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attributes', must not be 'Unset'") self._attributes = attributes @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py index e8f4618e..9d68f754 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -93,46 +93,50 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional """ - self._default_threshold_type = None - self._help_path = None - self._about_attribute = None - self._name: str = None # type: ignore[assignment] - self._guid = None - - if default_threshold_type is not None: + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._help_path: Union[str, None, Unset_Type] = Unset + self._about_attribute: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset + + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type - if help_path is not None: + if help_path is not Unset: self.help_path = help_path - if about_attribute is not None: + if about_attribute is not Unset: self.about_attribute = about_attribute self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ return self._default_threshold_type @@ -140,35 +144,40 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property - def help_path(self) -> "Optional[str]": + def help_path(self) -> "Union[str, None, Unset_Type]": """Gets the help_path of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns ------- - str + Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ return self._help_path @help_path.setter - def help_path(self, help_path: "Optional[str]") -> None: + def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: """Sets the help_path of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Parameters ---------- - help_path: str + help_path: Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ self._help_path = help_path @@ -176,27 +185,31 @@ def help_path(self, help_path: "Optional[str]") -> None: @property def about_attribute( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ return self._about_attribute @about_attribute.setter def about_attribute( - self, about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity + about_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ + # Field is not nullable + if about_attribute is None: + raise ValueError("Invalid value for 'about_attribute', must not be 'None'") self._about_attribute = about_attribute @property @@ -219,34 +232,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -268,7 +288,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py index 310fc3e2..5dafbc78 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -77,22 +77,22 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "dateTime", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str """ super().__init__( name=name, @@ -101,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -125,12 +125,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py index de1bfb3c..a6ad1324 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -84,25 +84,25 @@ def __init__( *, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_multi_valued: "Optional[bool]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_multi_valued: "Union[bool, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute - a model defined in Swagger Parameters ---------- - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_multi_valued: bool, optional - type: str + discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_multi_valued: bool, optional + type: str """ super().__init__( name=name, @@ -111,13 +111,13 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] - self._is_multi_valued = None + self._type: str + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity + self._is_multi_valued: Union[bool, Unset_Type] = Unset self.type = type self.discrete_type = discrete_type - if is_multi_valued is not None: + if is_multi_valued is not Unset: self.is_multi_valued = is_multi_valued @property @@ -140,8 +140,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -166,34 +170,41 @@ def discrete_type( discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity The discrete_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. """ + # Field is not nullable if discrete_type is None: raise ValueError("Invalid value for 'discrete_type', must not be 'None'") + # Field is required + if discrete_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'discrete_type', must not be 'Unset'") self._discrete_type = discrete_type @property - def is_multi_valued(self) -> "Optional[bool]": + def is_multi_valued(self) -> "Union[bool, Unset_Type]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. """ return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: + def is_multi_valued(self, is_multi_valued: "Union[bool, Unset_Type]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. Parameters ---------- - is_multi_valued: bool + is_multi_valued: Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. """ + # Field is not nullable + if is_multi_valued is None: + raise ValueError("Invalid value for 'is_multi_valued', must not be 'None'") self._is_multi_valued = is_multi_valued @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -210,7 +221,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py index 06b10b68..7ec5a89f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -86,24 +86,24 @@ def __init__( attribute_parameters: "List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter]", discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "discreteFunctional", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute - a model defined in Swagger Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str + attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] + discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str """ super().__init__( name=name, @@ -112,9 +112,11 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] - self._attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] = None # type: ignore[assignment] + self._type: str + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity + self._attribute_parameters: List[ + GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter + ] self.type = type self.discrete_type = discrete_type @@ -140,8 +142,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -166,8 +172,12 @@ def discrete_type( discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity The discrete_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. """ + # Field is not nullable if discrete_type is None: raise ValueError("Invalid value for 'discrete_type', must not be 'None'") + # Field is required + if discrete_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'discrete_type', must not be 'Unset'") self._discrete_type = discrete_type @property @@ -178,7 +188,7 @@ def attribute_parameters( Returns ------- - list[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] + List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. """ return self._attribute_parameters @@ -195,14 +205,20 @@ def attribute_parameters( attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. """ + # Field is not nullable if attribute_parameters is None: raise ValueError( "Invalid value for 'attribute_parameters', must not be 'None'" ) + # Field is required + if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'Unset'" + ) self._attribute_parameters = attribute_parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -219,7 +235,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py index 5f367bf0..24bcac5d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,20 +68,20 @@ def __init__( self, *, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity", - default_value: "Optional[float]" = None, + default_value: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity - default_value: float, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + default_value: float, optional """ - self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] - self._default_value = None + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + self._default_value: Union[float, None, Unset_Type] = Unset self.parameter = parameter - if default_value is not None: + if default_value is not Unset: self.default_value = default_value @property @@ -104,34 +106,38 @@ def parameter( parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity The parameter of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. """ + # Field is not nullable if parameter is None: raise ValueError("Invalid value for 'parameter', must not be 'None'") + # Field is required + if parameter is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter', must not be 'Unset'") self._parameter = parameter @property - def default_value(self) -> "Optional[float]": + def default_value(self) -> "Union[float, None, Unset_Type]": """Gets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. Returns ------- - float + Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. """ return self._default_value @default_value.setter - def default_value(self, default_value: "Optional[float]") -> None: + def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. Parameters ---------- - default_value: float + default_value: Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. """ self._default_value = default_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -148,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py index e3ab5f74..01d635b8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -77,22 +77,22 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "file", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateFileAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str """ super().__init__( name=name, @@ -101,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -125,12 +125,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFileAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py index 5e8aa064..06a6fd42 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -89,29 +89,29 @@ def __init__( *, attribute_parameters: "List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter]", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_range: "Optional[bool]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_range: "Union[bool, Unset_Type]" = Unset, type: "str" = "floatFunctional", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute - a model defined in Swagger Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_range: bool, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_range: bool, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( name=name, @@ -120,19 +120,23 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._axis_name = None - self._attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] = None # type: ignore[assignment] - self._is_range = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._axis_name: Union[str, None, Unset_Type] = Unset + self._attribute_parameters: List[ + GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter + ] + self._is_range: Union[bool, Unset_Type] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit - if axis_name is not None: + if axis_name is not Unset: self.axis_name = axis_name self.attribute_parameters = attribute_parameters - if is_range is not None: + if is_range is not Unset: self.is_range = is_range @property @@ -155,52 +159,59 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property - def axis_name(self) -> "Optional[str]": + def axis_name(self) -> "Union[str, None, Unset_Type]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Returns ------- - str + Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "Optional[str]") -> None: + def axis_name(self, axis_name: "Union[str, None, Unset_Type]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters ---------- - axis_name: str + axis_name: Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ self._axis_name = axis_name @@ -213,7 +224,7 @@ def attribute_parameters( Returns ------- - list[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] + List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ return self._attribute_parameters @@ -230,36 +241,45 @@ def attribute_parameters( attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ + # Field is not nullable if attribute_parameters is None: raise ValueError( "Invalid value for 'attribute_parameters', must not be 'None'" ) + # Field is required + if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'Unset'" + ) self._attribute_parameters = attribute_parameters @property - def is_range(self) -> "Optional[bool]": + def is_range(self) -> "Union[bool, Unset_Type]": """Gets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ return self._is_range @is_range.setter - def is_range(self, is_range: "Optional[bool]") -> None: + def is_range(self, is_range: "Union[bool, Unset_Type]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters ---------- - is_range: bool + is_range: Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ + # Field is not nullable + if is_range is None: + raise ValueError("Invalid value for 'is_range', must not be 'None'") self._is_range = is_range @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -276,7 +296,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py index 3bc04a69..804feb65 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,30 +74,34 @@ def __init__( self, *, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity", - default_value: "Optional[float]" = None, - interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]" = None, - scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" = None, + default_value: "Union[float, None, Unset_Type]" = Unset, + interpolation_method: "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity - default_value: float, optional - interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod, optional - scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + default_value: float, optional + interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod, optional + scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional """ - self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] - self._default_value = None - self._interpolation_method = None - self._scale_type = None + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + self._default_value: Union[float, None, Unset_Type] = Unset + self._interpolation_method: Union[ + GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type + ] = Unset + self._scale_type: Union[ + GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type + ] = Unset self.parameter = parameter - if default_value is not None: + if default_value is not Unset: self.default_value = default_value - if interpolation_method is not None: + if interpolation_method is not Unset: self.interpolation_method = interpolation_method - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type @property @@ -120,28 +126,32 @@ def parameter( parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity The parameter of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. """ + # Field is not nullable if parameter is None: raise ValueError("Invalid value for 'parameter', must not be 'None'") + # Field is required + if parameter is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter', must not be 'Unset'") self._parameter = parameter @property - def default_value(self) -> "Optional[float]": + def default_value(self) -> "Union[float, None, Unset_Type]": """Gets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns ------- - float + Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. """ return self._default_value @default_value.setter - def default_value(self, default_value: "Optional[float]") -> None: + def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Parameters ---------- - default_value: float + default_value: Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. """ self._default_value = default_value @@ -149,12 +159,14 @@ def default_value(self, default_value: "Optional[float]") -> None: @property def interpolation_method( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]": + ) -> ( + "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" + ): """Gets the interpolation_method of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaAttributesAttributeInterpolationMethod + Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type] The interpolation_method of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. """ return self._interpolation_method @@ -162,45 +174,54 @@ def interpolation_method( @interpolation_method.setter def interpolation_method( self, - interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]", + interpolation_method: "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]", ) -> None: """Sets the interpolation_method of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Parameters ---------- - interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod + interpolation_method: Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type] The interpolation_method of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. """ + # Field is not nullable + if interpolation_method is None: + raise ValueError( + "Invalid value for 'interpolation_method', must not be 'None'" + ) self._interpolation_method = interpolation_method @property def scale_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaAttributesAttributeScaleType + Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" + self, + scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]", ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Parameters ---------- - scale_type: GrantaServerApiSchemaAttributesAttributeScaleType + scale_type: Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -217,7 +238,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py index df5cf258..c5d858ba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -77,22 +77,22 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "hyperlink", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str """ super().__init__( name=name, @@ -101,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -125,12 +125,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py index 54534ad8..ff61ed05 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -81,26 +81,26 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_unique: "Optional[bool]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_unique: "Union[bool, Unset_Type]" = Unset, type: "str" = "integer", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_unique: bool, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_unique: bool, optional + type: str """ super().__init__( name=name, @@ -109,14 +109,14 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._is_unique = None - self._axis_name = None + self._type: str + self._is_unique: Union[bool, Unset_Type] = Unset + self._axis_name: Union[str, None, Unset_Type] = Unset self.type = type - if is_unique is not None: + if is_unique is not Unset: self.is_unique = is_unique - if axis_name is not None: + if axis_name is not Unset: self.axis_name = axis_name @property @@ -139,58 +139,65 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def is_unique(self) -> "Optional[bool]": + def is_unique(self) -> "Union[bool, Unset_Type]": """Gets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value Returns ------- - bool + Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. """ return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "Optional[bool]") -> None: + def is_unique(self, is_unique: "Union[bool, Unset_Type]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value Parameters ---------- - is_unique: bool + is_unique: Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. """ + # Field is not nullable + if is_unique is None: + raise ValueError("Invalid value for 'is_unique', must not be 'None'") self._is_unique = is_unique @property - def axis_name(self) -> "Optional[str]": + def axis_name(self) -> "Union[str, None, Unset_Type]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Returns ------- - str + Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. """ return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "Optional[str]") -> None: + def axis_name(self, axis_name: "Union[str, None, Unset_Type]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Parameters ---------- - axis_name: str + axis_name: Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. """ self._axis_name = axis_name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -207,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py index 91f1afc0..f9936e43 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -77,22 +77,22 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "logical", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateLogicalAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str """ super().__init__( name=name, @@ -101,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -125,12 +125,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateLogicalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py index 0319f4df..3a55af18 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -77,22 +77,22 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "longText", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str """ super().__init__( name=name, @@ -101,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -125,12 +125,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py index 2e440685..446a50d3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -97,38 +97,38 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - allow_all_compatible_expressions: "Optional[bool]" = None, - allow_anonymous_expressions: "Optional[bool]" = None, - allow_extrapolation: "Optional[bool]" = None, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_range: "Optional[bool]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + allow_all_compatible_expressions: "Union[bool, Unset_Type]" = Unset, + allow_anonymous_expressions: "Union[bool, Unset_Type]" = Unset, + allow_extrapolation: "Union[bool, Unset_Type]" = Unset, + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + expressions: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_range: "Union[bool, Unset_Type]" = Unset, type: "str" = "mathsFunctional", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - allow_all_compatible_expressions: bool, optional - allow_anonymous_expressions: bool, optional - allow_extrapolation: bool, optional - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - guid: str, optional - help_path: str, optional - is_range: bool, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + allow_all_compatible_expressions: bool, optional + allow_anonymous_expressions: bool, optional + allow_extrapolation: bool, optional + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + guid: str, optional + help_path: str, optional + is_range: bool, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( name=name, @@ -137,32 +137,38 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._attribute_parameters = None - self._expressions = None - self._allow_extrapolation = None - self._axis_name = None - self._is_range = None - self._allow_all_compatible_expressions = None - self._allow_anonymous_expressions = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._attribute_parameters: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._expressions: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._allow_extrapolation: Union[bool, Unset_Type] = Unset + self._axis_name: Union[str, None, Unset_Type] = Unset + self._is_range: Union[bool, Unset_Type] = Unset + self._allow_all_compatible_expressions: Union[bool, Unset_Type] = Unset + self._allow_anonymous_expressions: Union[bool, Unset_Type] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit - if attribute_parameters is not None: + if attribute_parameters is not Unset: self.attribute_parameters = attribute_parameters - if expressions is not None: + if expressions is not Unset: self.expressions = expressions - if allow_extrapolation is not None: + if allow_extrapolation is not Unset: self.allow_extrapolation = allow_extrapolation - if axis_name is not None: + if axis_name is not Unset: self.axis_name = axis_name - if is_range is not None: + if is_range is not Unset: self.is_range = is_range - if allow_all_compatible_expressions is not None: + if allow_all_compatible_expressions is not Unset: self.allow_all_compatible_expressions = allow_all_compatible_expressions - if allow_anonymous_expressions is not None: + if allow_anonymous_expressions is not Unset: self.allow_anonymous_expressions = allow_anonymous_expressions @property @@ -185,43 +191,50 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property def attribute_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._attribute_parameters @@ -229,13 +242,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ self._attribute_parameters = attribute_parameters @@ -243,145 +256,166 @@ def attribute_parameters( @property def expressions( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._expressions @expressions.setter def expressions( - self, expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" + self, + expressions: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + expressions: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ self._expressions = expressions @property - def allow_extrapolation(self) -> "Optional[bool]": + def allow_extrapolation(self) -> "Union[bool, Unset_Type]": """Gets the allow_extrapolation of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The allow_extrapolation of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._allow_extrapolation @allow_extrapolation.setter - def allow_extrapolation(self, allow_extrapolation: "Optional[bool]") -> None: + def allow_extrapolation( + self, allow_extrapolation: "Union[bool, Unset_Type]" + ) -> None: """Sets the allow_extrapolation of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - allow_extrapolation: bool + allow_extrapolation: Union[bool, Unset_Type] The allow_extrapolation of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ + # Field is not nullable + if allow_extrapolation is None: + raise ValueError( + "Invalid value for 'allow_extrapolation', must not be 'None'" + ) self._allow_extrapolation = allow_extrapolation @property - def axis_name(self) -> "Optional[str]": + def axis_name(self) -> "Union[str, None, Unset_Type]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - str + Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "Optional[str]") -> None: + def axis_name(self, axis_name: "Union[str, None, Unset_Type]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - axis_name: str + axis_name: Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ self._axis_name = axis_name @property - def is_range(self) -> "Optional[bool]": + def is_range(self) -> "Union[bool, Unset_Type]": """Gets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._is_range @is_range.setter - def is_range(self, is_range: "Optional[bool]") -> None: + def is_range(self, is_range: "Union[bool, Unset_Type]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - is_range: bool + is_range: Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ + # Field is not nullable + if is_range is None: + raise ValueError("Invalid value for 'is_range', must not be 'None'") self._is_range = is_range @property - def allow_all_compatible_expressions(self) -> "Optional[bool]": + def allow_all_compatible_expressions(self) -> "Union[bool, Unset_Type]": """Gets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._allow_all_compatible_expressions @allow_all_compatible_expressions.setter def allow_all_compatible_expressions( - self, allow_all_compatible_expressions: "Optional[bool]" + self, allow_all_compatible_expressions: "Union[bool, Unset_Type]" ) -> None: """Sets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - allow_all_compatible_expressions: bool + allow_all_compatible_expressions: Union[bool, Unset_Type] The allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ + # Field is not nullable + if allow_all_compatible_expressions is None: + raise ValueError( + "Invalid value for 'allow_all_compatible_expressions', must not be 'None'" + ) self._allow_all_compatible_expressions = allow_all_compatible_expressions @property - def allow_anonymous_expressions(self) -> "Optional[bool]": + def allow_anonymous_expressions(self) -> "Union[bool, Unset_Type]": """Gets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The allow_anonymous_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ return self._allow_anonymous_expressions @allow_anonymous_expressions.setter def allow_anonymous_expressions( - self, allow_anonymous_expressions: "Optional[bool]" + self, allow_anonymous_expressions: "Union[bool, Unset_Type]" ) -> None: """Sets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - allow_anonymous_expressions: bool + allow_anonymous_expressions: Union[bool, Unset_Type] The allow_anonymous_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ + # Field is not nullable + if allow_anonymous_expressions is None: + raise ValueError( + "Invalid value for 'allow_anonymous_expressions', must not be 'None'" + ) self._allow_anonymous_expressions = allow_anonymous_expressions @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -398,7 +432,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py index 3820ef0a..c0804cf2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -77,22 +77,22 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "picture", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreatePictureAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str """ super().__init__( name=name, @@ -101,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -125,12 +125,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreatePictureAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py index ac7df71b..0c30fdbc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -88,30 +88,30 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_multi_valued: "Optional[bool]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_multi_valued: "Union[bool, Unset_Type]" = Unset, type: "str" = "point", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_multi_valued: bool, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_multi_valued: bool, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( name=name, @@ -120,20 +120,24 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._is_multi_valued = None - self._unit = None - self._axis_name = None - self._attribute_parameters = None + self._type: str + self._is_multi_valued: Union[bool, Unset_Type] = Unset + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._axis_name: Union[str, None, Unset_Type] = Unset + self._attribute_parameters: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset self.type = type - if is_multi_valued is not None: + if is_multi_valued is not Unset: self.is_multi_valued = is_multi_valued - if unit is not None: + if unit is not Unset: self.unit = unit - if axis_name is not None: + if axis_name is not Unset: self.axis_name = axis_name - if attribute_parameters is not None: + if attribute_parameters is not Unset: self.attribute_parameters = attribute_parameters @property @@ -156,74 +160,84 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def is_multi_valued(self) -> "Optional[bool]": + def is_multi_valued(self) -> "Union[bool, Unset_Type]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: + def is_multi_valued(self, is_multi_valued: "Union[bool, Unset_Type]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters ---------- - is_multi_valued: bool + is_multi_valued: Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ + # Field is not nullable + if is_multi_valued is None: + raise ValueError("Invalid value for 'is_multi_valued', must not be 'None'") self._is_multi_valued = is_multi_valued @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property - def axis_name(self) -> "Optional[str]": + def axis_name(self) -> "Union[str, None, Unset_Type]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns ------- - str + Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "Optional[str]") -> None: + def axis_name(self, axis_name: "Union[str, None, Unset_Type]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters ---------- - axis_name: str + axis_name: Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ self._axis_name = axis_name @@ -231,12 +245,12 @@ def axis_name(self, axis_name: "Optional[str]") -> None: @property def attribute_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ return self._attribute_parameters @@ -244,19 +258,19 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ self._attribute_parameters = attribute_parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -273,7 +287,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py index a4cad241..6ada5c17 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -83,26 +83,26 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "range", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( name=name, @@ -111,14 +111,16 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._axis_name = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._axis_name: Union[str, None, Unset_Type] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit - if axis_name is not None: + if axis_name is not Unset: self.axis_name = axis_name @property @@ -141,58 +143,65 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property - def axis_name(self) -> "Optional[str]": + def axis_name(self) -> "Union[str, None, Unset_Type]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Returns ------- - str + Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. """ return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "Optional[str]") -> None: + def axis_name(self, axis_name: "Union[str, None, Unset_Type]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Parameters ---------- - axis_name: str + axis_name: Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. """ self._axis_name = axis_name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -209,7 +218,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py index aca491b3..283c7b45 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -83,26 +83,26 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_unique: "Optional[bool]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_unique: "Union[bool, Unset_Type]" = Unset, type: "str" = "shortText", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - data_rule: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_unique: bool, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + data_rule: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_unique: bool, optional + type: str """ super().__init__( name=name, @@ -111,14 +111,16 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._is_unique = None - self._data_rule = None + self._type: str + self._is_unique: Union[bool, Unset_Type] = Unset + self._data_rule: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset self.type = type - if is_unique is not None: + if is_unique is not Unset: self.is_unique = is_unique - if data_rule is not None: + if data_rule is not Unset: self.data_rule = data_rule @property @@ -141,60 +143,73 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def is_unique(self) -> "Optional[bool]": + def is_unique(self) -> "Union[bool, Unset_Type]": """Gets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value Returns ------- - bool + Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. """ return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "Optional[bool]") -> None: + def is_unique(self, is_unique: "Union[bool, Unset_Type]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value Parameters ---------- - is_unique: bool + is_unique: Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. """ + # Field is not nullable + if is_unique is None: + raise ValueError("Invalid value for 'is_unique', must not be 'None'") self._is_unique = is_unique @property - def data_rule(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def data_rule( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. """ return self._data_rule @data_rule.setter def data_rule( - self, data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Parameters ---------- - data_rule: GrantaServerApiSchemaSlimEntitiesSlimEntity + data_rule: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. """ + # Field is not nullable + if data_rule is None: + raise ValueError("Invalid value for 'data_rule', must not be 'None'") self._data_rule = data_rule @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -211,7 +226,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py index 6a174a10..cc24dcbf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, ) # noqa: F401 @@ -90,32 +90,32 @@ def __init__( self, *, name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - display_full_table: "Optional[bool]" = None, - display_summary_row_inline: "Optional[bool]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - hide_unlinked_rows: "Optional[bool]" = None, - tabular_columns: "Optional[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn]]" = None, - target: "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + display_full_table: "Union[bool, Unset_Type]" = Unset, + display_summary_row_inline: "Union[bool, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + hide_unlinked_rows: "Union[bool, Unset_Type]" = Unset, + tabular_columns: "Union[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], None, Unset_Type]" = Unset, + target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]" = Unset, type: "str" = "link", ) -> None: """GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute - a model defined in Swagger Parameters ---------- - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - display_full_table: bool, optional - display_summary_row_inline: bool, optional - guid: str, optional - help_path: str, optional - hide_unlinked_rows: bool, optional - tabular_columns: List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], optional - target: GrantaServerApiSchemaAttributesTabularAttributeTarget, optional - type: str + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + display_full_table: bool, optional + display_summary_row_inline: bool, optional + guid: str, optional + help_path: str, optional + hide_unlinked_rows: bool, optional + tabular_columns: List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], optional + target: GrantaServerApiSchemaAttributesTabularAttributeTarget, optional + type: str """ super().__init__( name=name, @@ -124,23 +124,31 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._display_full_table = None - self._display_summary_row_inline = None - self._hide_unlinked_rows = None - self._tabular_columns = None - self._target = None + self._type: str + self._display_full_table: Union[bool, Unset_Type] = Unset + self._display_summary_row_inline: Union[bool, Unset_Type] = Unset + self._hide_unlinked_rows: Union[bool, Unset_Type] = Unset + self._tabular_columns: Union[ + List[ + GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn + ], + None, + Unset_Type, + ] = Unset + self._target: Union[ + GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type + ] = Unset self.type = type - if display_full_table is not None: + if display_full_table is not Unset: self.display_full_table = display_full_table - if display_summary_row_inline is not None: + if display_summary_row_inline is not Unset: self.display_summary_row_inline = display_summary_row_inline - if hide_unlinked_rows is not None: + if hide_unlinked_rows is not Unset: self.hide_unlinked_rows = hide_unlinked_rows - if tabular_columns is not None: + if tabular_columns is not Unset: self.tabular_columns = tabular_columns - if target is not None: + if target is not Unset: self.target = target @property @@ -163,87 +171,106 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def display_full_table(self) -> "Optional[bool]": + def display_full_table(self) -> "Union[bool, Unset_Type]": """Gets the display_full_table of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns ------- - bool + Union[bool, Unset_Type] The display_full_table of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ return self._display_full_table @display_full_table.setter - def display_full_table(self, display_full_table: "Optional[bool]") -> None: + def display_full_table(self, display_full_table: "Union[bool, Unset_Type]") -> None: """Sets the display_full_table of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters ---------- - display_full_table: bool + display_full_table: Union[bool, Unset_Type] The display_full_table of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ + # Field is not nullable + if display_full_table is None: + raise ValueError( + "Invalid value for 'display_full_table', must not be 'None'" + ) self._display_full_table = display_full_table @property - def display_summary_row_inline(self) -> "Optional[bool]": + def display_summary_row_inline(self) -> "Union[bool, Unset_Type]": """Gets the display_summary_row_inline of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns ------- - bool + Union[bool, Unset_Type] The display_summary_row_inline of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ return self._display_summary_row_inline @display_summary_row_inline.setter def display_summary_row_inline( - self, display_summary_row_inline: "Optional[bool]" + self, display_summary_row_inline: "Union[bool, Unset_Type]" ) -> None: """Sets the display_summary_row_inline of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters ---------- - display_summary_row_inline: bool + display_summary_row_inline: Union[bool, Unset_Type] The display_summary_row_inline of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ + # Field is not nullable + if display_summary_row_inline is None: + raise ValueError( + "Invalid value for 'display_summary_row_inline', must not be 'None'" + ) self._display_summary_row_inline = display_summary_row_inline @property - def hide_unlinked_rows(self) -> "Optional[bool]": + def hide_unlinked_rows(self) -> "Union[bool, Unset_Type]": """Gets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns ------- - bool + Union[bool, Unset_Type] The hide_unlinked_rows of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ return self._hide_unlinked_rows @hide_unlinked_rows.setter - def hide_unlinked_rows(self, hide_unlinked_rows: "Optional[bool]") -> None: + def hide_unlinked_rows(self, hide_unlinked_rows: "Union[bool, Unset_Type]") -> None: """Sets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters ---------- - hide_unlinked_rows: bool + hide_unlinked_rows: Union[bool, Unset_Type] The hide_unlinked_rows of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ + # Field is not nullable + if hide_unlinked_rows is None: + raise ValueError( + "Invalid value for 'hide_unlinked_rows', must not be 'None'" + ) self._hide_unlinked_rows = hide_unlinked_rows @property def tabular_columns( self, - ) -> "Optional[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn]]": + ) -> "Union[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], None, Unset_Type]": """Gets the tabular_columns of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns ------- - list[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn] + Union[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], None, Unset_Type] The tabular_columns of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ return self._tabular_columns @@ -251,13 +278,13 @@ def tabular_columns( @tabular_columns.setter def tabular_columns( self, - tabular_columns: "Optional[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn]]", + tabular_columns: "Union[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], None, Unset_Type]", ) -> None: """Sets the tabular_columns of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters ---------- - tabular_columns: List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn] + tabular_columns: Union[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], None, Unset_Type] The tabular_columns of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ self._tabular_columns = tabular_columns @@ -265,31 +292,35 @@ def tabular_columns( @property def target( self, - ) -> "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]": + ) -> "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]": """Gets the target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns ------- - GrantaServerApiSchemaAttributesTabularAttributeTarget + Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type] The target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ return self._target @target.setter def target( - self, target: "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]" + self, + target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]", ) -> None: """Sets the target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters ---------- - target: GrantaServerApiSchemaAttributesTabularAttributeTarget + target: Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type] The target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ + # Field is not nullable + if target is None: + raise ValueError("Invalid value for 'target', must not be 'None'") self._target = target @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -306,7 +337,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py index dac164fe..a1b487b0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -87,24 +87,24 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "dateTime", ) -> None: """GrantaServerApiSchemaAttributesDateTimeAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -116,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -140,12 +140,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesDateTimeAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py index ca27881a..67be4d48 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -95,26 +95,26 @@ def __init__( info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", is_multi_valued: "bool", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaAttributesDiscreteAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - is_multi_valued: bool - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + is_multi_valued: bool + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -126,9 +126,9 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] - self._is_multi_valued: bool = None # type: ignore[assignment] + self._type: str + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + self._is_multi_valued: bool self.type = type self.discrete_type = discrete_type @@ -154,8 +154,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesDiscreteAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -180,8 +184,12 @@ def discrete_type( discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity The discrete_type of this GrantaServerApiSchemaAttributesDiscreteAttribute. """ + # Field is not nullable if discrete_type is None: raise ValueError("Invalid value for 'discrete_type', must not be 'None'") + # Field is required + if discrete_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'discrete_type', must not be 'Unset'") self._discrete_type = discrete_type @property @@ -204,12 +212,16 @@ def is_multi_valued(self, is_multi_valued: "bool") -> None: is_multi_valued: bool The is_multi_valued of this GrantaServerApiSchemaAttributesDiscreteAttribute. """ + # Field is not nullable if is_multi_valued is None: raise ValueError("Invalid value for 'is_multi_valued', must not be 'None'") + # Field is required + if is_multi_valued is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_multi_valued', must not be 'Unset'") self._is_multi_valued = is_multi_valued @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -226,7 +238,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py index a3f75c13..bcdc273e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -96,26 +96,26 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "discreteFunctional", ) -> None: """GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute - a model defined in Swagger Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + attribute_parameters: List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -127,9 +127,11 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] - self._attribute_parameters: List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] = None # type: ignore[assignment] + self._type: str + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + self._attribute_parameters: List[ + GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter + ] self.type = type self.discrete_type = discrete_type @@ -155,8 +157,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -181,8 +187,12 @@ def discrete_type( discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity The discrete_type of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. """ + # Field is not nullable if discrete_type is None: raise ValueError("Invalid value for 'discrete_type', must not be 'None'") + # Field is required + if discrete_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'discrete_type', must not be 'Unset'") self._discrete_type = discrete_type @property @@ -193,7 +203,7 @@ def attribute_parameters( Returns ------- - list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] + List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. """ return self._attribute_parameters @@ -210,14 +220,20 @@ def attribute_parameters( attribute_parameters: List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. """ + # Field is not nullable if attribute_parameters is None: raise ValueError( "Invalid value for 'attribute_parameters', must not be 'None'" ) + # Field is required + if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'Unset'" + ) self._attribute_parameters = attribute_parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -234,7 +250,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py index cf1a25de..6484e3ff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,72 +65,80 @@ class GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter(ModelB def __init__( self, *, - default_value: "Optional[float]" = None, - parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, + default_value: "Union[float, None, Unset_Type]" = Unset, + parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter - a model defined in Swagger Parameters ---------- - default_value: float, optional - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + default_value: float, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional """ - self._parameter = None - self._default_value = None + self._parameter: Union[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type + ] = Unset + self._default_value: Union[float, None, Unset_Type] = Unset - if parameter is not None: + if parameter is not Unset: self.parameter = parameter - if default_value is not None: + if default_value is not Unset: self.default_value = default_value @property - def parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def parameter( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. """ return self._parameter @parameter.setter def parameter( - self, parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, + parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. """ + # Field is not nullable + if parameter is None: + raise ValueError("Invalid value for 'parameter', must not be 'None'") self._parameter = parameter @property - def default_value(self) -> "Optional[float]": + def default_value(self) -> "Union[float, None, Unset_Type]": """Gets the default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Returns ------- - float + Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. """ return self._default_value @default_value.setter - def default_value(self, default_value: "Optional[float]") -> None: + def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Parameters ---------- - default_value: float + default_value: Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. """ self._default_value = default_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py index dd57e164..e5796345 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -87,24 +87,24 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "file", ) -> None: """GrantaServerApiSchemaAttributesFileAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -116,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -140,12 +140,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesFileAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py index 6e7f2173..14c74c10 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -98,28 +98,28 @@ def __init__( info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", is_range: "bool", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "floatFunctional", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesFloatFunctionalAttribute - a model defined in Swagger Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - is_range: bool - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + attribute_parameters: List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + is_range: bool + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__( default_threshold_type=default_threshold_type, @@ -131,13 +131,15 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._attribute_parameters: List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] = None # type: ignore[assignment] - self._is_range: bool = None # type: ignore[assignment] + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset + self._attribute_parameters: List[ + GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter + ] + self._is_range: bool self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit self.attribute_parameters = attribute_parameters self.is_range = is_range @@ -162,30 +164,39 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -196,7 +207,7 @@ def attribute_parameters( Returns ------- - list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] + List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. """ return self._attribute_parameters @@ -213,10 +224,16 @@ def attribute_parameters( attribute_parameters: List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. """ + # Field is not nullable if attribute_parameters is None: raise ValueError( "Invalid value for 'attribute_parameters', must not be 'None'" ) + # Field is required + if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'Unset'" + ) self._attribute_parameters = attribute_parameters @property @@ -239,12 +256,16 @@ def is_range(self, is_range: "bool") -> None: is_range: bool The is_range of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. """ + # Field is not nullable if is_range is None: raise ValueError("Invalid value for 'is_range', must not be 'None'") + # Field is required + if is_range is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_range', must not be 'Unset'") self._is_range = is_range @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -261,7 +282,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py index 3c355260..f98f70d4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,76 +71,88 @@ class GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter(ModelBase def __init__( self, *, - default_value: "Optional[float]" = None, - interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]" = None, - parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" = None, + default_value: "Union[float, None, Unset_Type]" = Unset, + interpolation_method: "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" = Unset, + parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter - a model defined in Swagger Parameters ---------- - default_value: float, optional - interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod, optional - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional + default_value: float, optional + interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional """ - self._parameter = None - self._default_value = None - self._interpolation_method = None - self._scale_type = None - - if parameter is not None: + self._parameter: Union[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type + ] = Unset + self._default_value: Union[float, None, Unset_Type] = Unset + self._interpolation_method: Union[ + GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type + ] = Unset + self._scale_type: Union[ + GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type + ] = Unset + + if parameter is not Unset: self.parameter = parameter - if default_value is not None: + if default_value is not Unset: self.default_value = default_value - if interpolation_method is not None: + if interpolation_method is not Unset: self.interpolation_method = interpolation_method - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type @property - def parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def parameter( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ return self._parameter @parameter.setter def parameter( - self, parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, + parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ + # Field is not nullable + if parameter is None: + raise ValueError("Invalid value for 'parameter', must not be 'None'") self._parameter = parameter @property - def default_value(self) -> "Optional[float]": + def default_value(self) -> "Union[float, None, Unset_Type]": """Gets the default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns ------- - float + Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ return self._default_value @default_value.setter - def default_value(self, default_value: "Optional[float]") -> None: + def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Parameters ---------- - default_value: float + default_value: Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ self._default_value = default_value @@ -148,12 +160,14 @@ def default_value(self, default_value: "Optional[float]") -> None: @property def interpolation_method( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]": + ) -> ( + "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" + ): """Gets the interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaAttributesAttributeInterpolationMethod + Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type] The interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ return self._interpolation_method @@ -161,45 +175,54 @@ def interpolation_method( @interpolation_method.setter def interpolation_method( self, - interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]", + interpolation_method: "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]", ) -> None: """Sets the interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Parameters ---------- - interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod + interpolation_method: Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type] The interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ + # Field is not nullable + if interpolation_method is None: + raise ValueError( + "Invalid value for 'interpolation_method', must not be 'None'" + ) self._interpolation_method = interpolation_method @property def scale_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaAttributesAttributeScaleType + Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" + self, + scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]", ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Parameters ---------- - scale_type: GrantaServerApiSchemaAttributesAttributeScaleType + scale_type: Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -216,7 +239,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py index 67a961b5..a3139f7a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -87,24 +87,24 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "hyperlink", ) -> None: """GrantaServerApiSchemaAttributesHyperlinkAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -116,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -140,12 +140,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesHyperlinkAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py index 8a5d0f73..c193cfc0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -90,25 +90,25 @@ def __init__( info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", is_unique: "bool", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "integer", ) -> None: """GrantaServerApiSchemaAttributesIntegerAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - is_unique: bool - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + is_unique: bool + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -120,8 +120,8 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._is_unique: bool = None # type: ignore[assignment] + self._type: str + self._is_unique: bool self.type = type self.is_unique = is_unique @@ -146,8 +146,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesIntegerAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -172,12 +176,16 @@ def is_unique(self, is_unique: "bool") -> None: is_unique: bool The is_unique of this GrantaServerApiSchemaAttributesIntegerAttribute. """ + # Field is not nullable if is_unique is None: raise ValueError("Invalid value for 'is_unique', must not be 'None'") + # Field is required + if is_unique is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_unique', must not be 'Unset'") self._is_unique = is_unique @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -194,7 +202,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py index 2d54af6f..e25d2c11 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -87,24 +87,24 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "logical", ) -> None: """GrantaServerApiSchemaAttributesLogicalAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -116,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -140,12 +140,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesLogicalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py index 2ab8fe0e..16ce817d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -87,24 +87,24 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "longText", ) -> None: """GrantaServerApiSchemaAttributesLongTextAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -116,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -140,12 +140,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesLongTextAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py index 6f9587da..b334162b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesMathsContent(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesMathsContent(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,56 +78,60 @@ def __init__( parameter_contents: "List[GrantaServerApiSchemaParametersParameterContent]", transpose_axes: "bool", use_logarithmic_scale: "bool", - curve_label: "Optional[str]" = None, - expression: "Optional[GrantaServerApiSchemaSlimEntitiesSlimExpression]" = None, - free_parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, + curve_label: "Union[str, None, Unset_Type]" = Unset, + expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type]" = Unset, + free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesMathsContent - a model defined in Swagger Parameters ---------- - parameter_contents: List[GrantaServerApiSchemaParametersParameterContent] - transpose_axes: bool - use_logarithmic_scale: bool - curve_label: str, optional - expression: GrantaServerApiSchemaSlimEntitiesSlimExpression, optional - free_parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + parameter_contents: List[GrantaServerApiSchemaParametersParameterContent] + transpose_axes: bool + use_logarithmic_scale: bool + curve_label: str, optional + expression: GrantaServerApiSchemaSlimEntitiesSlimExpression, optional + free_parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional """ - self._curve_label = None - self._transpose_axes: bool = None # type: ignore[assignment] - self._use_logarithmic_scale: bool = None # type: ignore[assignment] - self._expression = None - self._free_parameter = None - self._parameter_contents: List[GrantaServerApiSchemaParametersParameterContent] = None # type: ignore[assignment] - - if curve_label is not None: + self._curve_label: Union[str, None, Unset_Type] = Unset + self._transpose_axes: bool + self._use_logarithmic_scale: bool + self._expression: Union[ + GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type + ] = Unset + self._free_parameter: Union[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type + ] = Unset + self._parameter_contents: List[GrantaServerApiSchemaParametersParameterContent] + + if curve_label is not Unset: self.curve_label = curve_label self.transpose_axes = transpose_axes self.use_logarithmic_scale = use_logarithmic_scale - if expression is not None: + if expression is not Unset: self.expression = expression - if free_parameter is not None: + if free_parameter is not Unset: self.free_parameter = free_parameter self.parameter_contents = parameter_contents @property - def curve_label(self) -> "Optional[str]": + def curve_label(self) -> "Union[str, None, Unset_Type]": """Gets the curve_label of this GrantaServerApiSchemaAttributesMathsContent. Returns ------- - str + Union[str, None, Unset_Type] The curve_label of this GrantaServerApiSchemaAttributesMathsContent. """ return self._curve_label @curve_label.setter - def curve_label(self, curve_label: "Optional[str]") -> None: + def curve_label(self, curve_label: "Union[str, None, Unset_Type]") -> None: """Sets the curve_label of this GrantaServerApiSchemaAttributesMathsContent. Parameters ---------- - curve_label: str + curve_label: Union[str, None, Unset_Type] The curve_label of this GrantaServerApiSchemaAttributesMathsContent. """ self._curve_label = curve_label @@ -152,8 +156,12 @@ def transpose_axes(self, transpose_axes: "bool") -> None: transpose_axes: bool The transpose_axes of this GrantaServerApiSchemaAttributesMathsContent. """ + # Field is not nullable if transpose_axes is None: raise ValueError("Invalid value for 'transpose_axes', must not be 'None'") + # Field is required + if transpose_axes is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'transpose_axes', must not be 'Unset'") self._transpose_axes = transpose_axes @property @@ -176,45 +184,57 @@ def use_logarithmic_scale(self, use_logarithmic_scale: "bool") -> None: use_logarithmic_scale: bool The use_logarithmic_scale of this GrantaServerApiSchemaAttributesMathsContent. """ + # Field is not nullable if use_logarithmic_scale is None: raise ValueError( "Invalid value for 'use_logarithmic_scale', must not be 'None'" ) + # Field is required + if use_logarithmic_scale is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'use_logarithmic_scale', must not be 'Unset'" + ) self._use_logarithmic_scale = use_logarithmic_scale @property - def expression(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimExpression]": + def expression( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type]": """Gets the expression of this GrantaServerApiSchemaAttributesMathsContent. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimExpression + Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type] The expression of this GrantaServerApiSchemaAttributesMathsContent. """ return self._expression @expression.setter def expression( - self, expression: "Optional[GrantaServerApiSchemaSlimEntitiesSlimExpression]" + self, + expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type]", ) -> None: """Sets the expression of this GrantaServerApiSchemaAttributesMathsContent. Parameters ---------- - expression: GrantaServerApiSchemaSlimEntitiesSlimExpression + expression: Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type] The expression of this GrantaServerApiSchemaAttributesMathsContent. """ + # Field is not nullable + if expression is None: + raise ValueError("Invalid value for 'expression', must not be 'None'") self._expression = expression @property def free_parameter( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the free_parameter of this GrantaServerApiSchemaAttributesMathsContent. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The free_parameter of this GrantaServerApiSchemaAttributesMathsContent. """ return self._free_parameter @@ -222,15 +242,18 @@ def free_parameter( @free_parameter.setter def free_parameter( self, - free_parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", ) -> None: """Sets the free_parameter of this GrantaServerApiSchemaAttributesMathsContent. Parameters ---------- - free_parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + free_parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The free_parameter of this GrantaServerApiSchemaAttributesMathsContent. """ + # Field is not nullable + if free_parameter is None: + raise ValueError("Invalid value for 'free_parameter', must not be 'None'") self._free_parameter = free_parameter @property @@ -241,7 +264,7 @@ def parameter_contents( Returns ------- - list[GrantaServerApiSchemaParametersParameterContent] + List[GrantaServerApiSchemaParametersParameterContent] The parameter_contents of this GrantaServerApiSchemaAttributesMathsContent. """ return self._parameter_contents @@ -258,14 +281,20 @@ def parameter_contents( parameter_contents: List[GrantaServerApiSchemaParametersParameterContent] The parameter_contents of this GrantaServerApiSchemaAttributesMathsContent. """ + # Field is not nullable if parameter_contents is None: raise ValueError( "Invalid value for 'parameter_contents', must not be 'None'" ) + # Field is required + if parameter_contents is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'parameter_contents', must not be 'Unset'" + ) self._parameter_contents = parameter_contents @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -282,7 +311,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py index cf4ee884..c25f4e2b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -115,33 +115,33 @@ def __init__( info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", is_range: "bool", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "mathsFunctional", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesMathsFunctionalAttribute - a model defined in Swagger Parameters ---------- - allow_all_compatible_expressions: bool - allow_anonymous_expressions: bool - allow_extrapolation: bool - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - default_content: GrantaServerApiSchemaAttributesMathsContent - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - is_range: bool - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + allow_all_compatible_expressions: bool + allow_anonymous_expressions: bool + allow_extrapolation: bool + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + default_content: GrantaServerApiSchemaAttributesMathsContent + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + is_range: bool + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__( default_threshold_type=default_threshold_type, @@ -153,18 +153,20 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] = None # type: ignore[assignment] - self._allow_extrapolation: bool = None # type: ignore[assignment] - self._is_range: bool = None # type: ignore[assignment] - self._allow_all_compatible_expressions: bool = None # type: ignore[assignment] - self._allow_anonymous_expressions: bool = None # type: ignore[assignment] - self._default_content: GrantaServerApiSchemaAttributesMathsContent = None # type: ignore[assignment] + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset + self._attribute_parameters: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] + self._allow_extrapolation: bool + self._is_range: bool + self._allow_all_compatible_expressions: bool + self._allow_anonymous_expressions: bool + self._default_content: GrantaServerApiSchemaAttributesMathsContent self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit self.attribute_parameters = attribute_parameters self.expressions = expressions @@ -194,30 +196,39 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -228,7 +239,7 @@ def attribute_parameters( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ return self._attribute_parameters @@ -245,10 +256,16 @@ def attribute_parameters( attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if attribute_parameters is None: raise ValueError( "Invalid value for 'attribute_parameters', must not be 'None'" ) + # Field is required + if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'Unset'" + ) self._attribute_parameters = attribute_parameters @property @@ -257,7 +274,7 @@ def expressions(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimExpression]" Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimExpression] + List[GrantaServerApiSchemaSlimEntitiesSlimExpression] The expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ return self._expressions @@ -273,8 +290,12 @@ def expressions( expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] The expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if expressions is None: raise ValueError("Invalid value for 'expressions', must not be 'None'") + # Field is required + if expressions is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'expressions', must not be 'Unset'") self._expressions = expressions @property @@ -297,10 +318,16 @@ def allow_extrapolation(self, allow_extrapolation: "bool") -> None: allow_extrapolation: bool The allow_extrapolation of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if allow_extrapolation is None: raise ValueError( "Invalid value for 'allow_extrapolation', must not be 'None'" ) + # Field is required + if allow_extrapolation is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'allow_extrapolation', must not be 'Unset'" + ) self._allow_extrapolation = allow_extrapolation @property @@ -323,8 +350,12 @@ def is_range(self, is_range: "bool") -> None: is_range: bool The is_range of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if is_range is None: raise ValueError("Invalid value for 'is_range', must not be 'None'") + # Field is required + if is_range is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_range', must not be 'Unset'") self._is_range = is_range @property @@ -349,10 +380,16 @@ def allow_all_compatible_expressions( allow_all_compatible_expressions: bool The allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if allow_all_compatible_expressions is None: raise ValueError( "Invalid value for 'allow_all_compatible_expressions', must not be 'None'" ) + # Field is required + if allow_all_compatible_expressions is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'allow_all_compatible_expressions', must not be 'Unset'" + ) self._allow_all_compatible_expressions = allow_all_compatible_expressions @property @@ -375,10 +412,16 @@ def allow_anonymous_expressions(self, allow_anonymous_expressions: "bool") -> No allow_anonymous_expressions: bool The allow_anonymous_expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if allow_anonymous_expressions is None: raise ValueError( "Invalid value for 'allow_anonymous_expressions', must not be 'None'" ) + # Field is required + if allow_anonymous_expressions is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'allow_anonymous_expressions', must not be 'Unset'" + ) self._allow_anonymous_expressions = allow_anonymous_expressions @property @@ -403,12 +446,16 @@ def default_content( default_content: GrantaServerApiSchemaAttributesMathsContent The default_content of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ + # Field is not nullable if default_content is None: raise ValueError("Invalid value for 'default_content', must not be 'None'") + # Field is required + if default_content is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'default_content', must not be 'Unset'") self._default_content = default_content @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -425,7 +472,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py index 9653c984..fd31f1df 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -87,24 +87,24 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "picture", ) -> None: """GrantaServerApiSchemaAttributesPictureAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -116,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -140,12 +140,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesPictureAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py index eac29bc2..749addfe 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -98,28 +98,28 @@ def __init__( info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", is_multi_valued: "bool", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "point", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesPointAttribute - a model defined in Swagger Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - is_multi_valued: bool - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + is_multi_valued: bool + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__( default_threshold_type=default_threshold_type, @@ -131,13 +131,15 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._is_multi_valued: bool = None # type: ignore[assignment] - self._attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset + self._is_multi_valued: bool + self._attribute_parameters: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit self.is_multi_valued = is_multi_valued self.attribute_parameters = attribute_parameters @@ -162,30 +164,39 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesPointAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesPointAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesPointAttribute. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesPointAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesPointAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -208,8 +219,12 @@ def is_multi_valued(self, is_multi_valued: "bool") -> None: is_multi_valued: bool The is_multi_valued of this GrantaServerApiSchemaAttributesPointAttribute. """ + # Field is not nullable if is_multi_valued is None: raise ValueError("Invalid value for 'is_multi_valued', must not be 'None'") + # Field is required + if is_multi_valued is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_multi_valued', must not be 'Unset'") self._is_multi_valued = is_multi_valued @property @@ -220,7 +235,7 @@ def attribute_parameters( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. """ return self._attribute_parameters @@ -237,14 +252,20 @@ def attribute_parameters( attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. """ + # Field is not nullable if attribute_parameters is None: raise ValueError( "Invalid value for 'attribute_parameters', must not be 'None'" ) + # Field is required + if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'Unset'" + ) self._attribute_parameters = attribute_parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -261,7 +282,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py index c74aeec7..022cbf3e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -91,26 +91,26 @@ def __init__( guid: "str", info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "range", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesRangeAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__( default_threshold_type=default_threshold_type, @@ -122,11 +122,11 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._unit = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -149,34 +149,43 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesRangeAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesRangeAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesRangeAttribute. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesRangeAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaAttributesRangeAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +202,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py index 6c0180d8..30682c7f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -94,27 +94,27 @@ def __init__( info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", is_unique: "bool", name: "str", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - help_path: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "shortText", ) -> None: """GrantaServerApiSchemaAttributesShortTextAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - is_unique: bool - name: str - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - data_rule: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - help_path: str, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + is_unique: bool + name: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + data_rule: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + help_path: str, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -126,13 +126,15 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._is_unique: bool = None # type: ignore[assignment] - self._data_rule = None + self._type: str + self._is_unique: bool + self._data_rule: Union[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type + ] = Unset self.type = type self.is_unique = is_unique - if data_rule is not None: + if data_rule is not Unset: self.data_rule = data_rule @property @@ -155,8 +157,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesShortTextAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -181,36 +187,46 @@ def is_unique(self, is_unique: "bool") -> None: is_unique: bool The is_unique of this GrantaServerApiSchemaAttributesShortTextAttribute. """ + # Field is not nullable if is_unique is None: raise ValueError("Invalid value for 'is_unique', must not be 'None'") + # Field is required + if is_unique is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_unique', must not be 'Unset'") self._is_unique = is_unique @property - def data_rule(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def data_rule( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. """ return self._data_rule @data_rule.setter def data_rule( - self, data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, + data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. Parameters ---------- - data_rule: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + data_rule: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. """ + # Field is not nullable + if data_rule is None: + raise ValueError("Invalid value for 'data_rule', must not be 'None'") self._data_rule = data_rule @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -227,7 +243,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py index 99b5c8d4..c32045f6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( GrantaServerApiSchemaAttributesAttribute, ) # noqa: F401 @@ -104,30 +104,30 @@ def __init__( info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo", name: "str", tabular_columns: "List[GrantaServerApiSchemaTabularColumnsTabularColumn]", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, - axis_name: "Optional[str]" = None, - help_path: "Optional[str]" = None, - target: "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]" = Unset, type: "str" = "link", ) -> None: """GrantaServerApiSchemaAttributesTabularAttribute - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_full_table: bool - display_names: Dict[str, str] - display_summary_row_inline: bool - guid: str - hide_unlinked_rows: bool - info: GrantaServerApiSchemaAttributesAttributeAttributeInfo - name: str - tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - axis_name: str, optional - help_path: str, optional - target: GrantaServerApiSchemaAttributesTabularAttributeTarget, optional - type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_full_table: bool + display_names: Dict[str, str] + display_summary_row_inline: bool + guid: str + hide_unlinked_rows: bool + info: GrantaServerApiSchemaAttributesAttributeAttributeInfo + name: str + tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + axis_name: str, optional + help_path: str, optional + target: GrantaServerApiSchemaAttributesTabularAttributeTarget, optional + type: str """ super().__init__( default_threshold_type=default_threshold_type, @@ -139,18 +139,20 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._display_full_table: bool = None # type: ignore[assignment] - self._display_summary_row_inline: bool = None # type: ignore[assignment] - self._hide_unlinked_rows: bool = None # type: ignore[assignment] - self._target = None - self._tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] = None # type: ignore[assignment] + self._type: str + self._display_full_table: bool + self._display_summary_row_inline: bool + self._hide_unlinked_rows: bool + self._target: Union[ + GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type + ] = Unset + self._tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] self.type = type self.display_full_table = display_full_table self.display_summary_row_inline = display_summary_row_inline self.hide_unlinked_rows = hide_unlinked_rows - if target is not None: + if target is not Unset: self.target = target self.tabular_columns = tabular_columns @@ -174,8 +176,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesTabularAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -198,10 +204,16 @@ def display_full_table(self, display_full_table: "bool") -> None: display_full_table: bool The display_full_table of this GrantaServerApiSchemaAttributesTabularAttribute. """ + # Field is not nullable if display_full_table is None: raise ValueError( "Invalid value for 'display_full_table', must not be 'None'" ) + # Field is required + if display_full_table is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'display_full_table', must not be 'Unset'" + ) self._display_full_table = display_full_table @property @@ -224,10 +236,16 @@ def display_summary_row_inline(self, display_summary_row_inline: "bool") -> None display_summary_row_inline: bool The display_summary_row_inline of this GrantaServerApiSchemaAttributesTabularAttribute. """ + # Field is not nullable if display_summary_row_inline is None: raise ValueError( "Invalid value for 'display_summary_row_inline', must not be 'None'" ) + # Field is required + if display_summary_row_inline is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'display_summary_row_inline', must not be 'Unset'" + ) self._display_summary_row_inline = display_summary_row_inline @property @@ -250,36 +268,46 @@ def hide_unlinked_rows(self, hide_unlinked_rows: "bool") -> None: hide_unlinked_rows: bool The hide_unlinked_rows of this GrantaServerApiSchemaAttributesTabularAttribute. """ + # Field is not nullable if hide_unlinked_rows is None: raise ValueError( "Invalid value for 'hide_unlinked_rows', must not be 'None'" ) + # Field is required + if hide_unlinked_rows is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'hide_unlinked_rows', must not be 'Unset'" + ) self._hide_unlinked_rows = hide_unlinked_rows @property def target( self, - ) -> "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]": + ) -> "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]": """Gets the target of this GrantaServerApiSchemaAttributesTabularAttribute. Returns ------- - GrantaServerApiSchemaAttributesTabularAttributeTarget + Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type] The target of this GrantaServerApiSchemaAttributesTabularAttribute. """ return self._target @target.setter def target( - self, target: "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]" + self, + target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]", ) -> None: """Sets the target of this GrantaServerApiSchemaAttributesTabularAttribute. Parameters ---------- - target: GrantaServerApiSchemaAttributesTabularAttributeTarget + target: Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type] The target of this GrantaServerApiSchemaAttributesTabularAttribute. """ + # Field is not nullable + if target is None: + raise ValueError("Invalid value for 'target', must not be 'None'") self._target = target @property @@ -290,7 +318,7 @@ def tabular_columns( Returns ------- - list[GrantaServerApiSchemaTabularColumnsTabularColumn] + List[GrantaServerApiSchemaTabularColumnsTabularColumn] The tabular_columns of this GrantaServerApiSchemaAttributesTabularAttribute. """ return self._tabular_columns @@ -306,12 +334,16 @@ def tabular_columns( tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] The tabular_columns of this GrantaServerApiSchemaAttributesTabularAttribute. """ + # Field is not nullable if tabular_columns is None: raise ValueError("Invalid value for 'tabular_columns', must not be 'None'") + # Field is required + if tabular_columns is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'tabular_columns', must not be 'Unset'") self._tabular_columns = tabular_columns @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -328,7 +360,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py index f4dff725..f47a9d71 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesTabularAttributeTarget(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesTabularAttributeTarget(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,126 +67,150 @@ class GrantaServerApiSchemaAttributesTabularAttributeTarget(ModelBase): # type: def __init__( self, *, - target_attribute_guid: "Optional[str]" = None, - target_database_guid: "Optional[str]" = None, - target_database_version_guid: "Optional[str]" = None, - target_table_guid: "Optional[str]" = None, + target_attribute_guid: "Union[str, Unset_Type]" = Unset, + target_database_guid: "Union[str, Unset_Type]" = Unset, + target_database_version_guid: "Union[str, Unset_Type]" = Unset, + target_table_guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesTabularAttributeTarget - a model defined in Swagger Parameters ---------- - target_attribute_guid: str, optional - target_database_guid: str, optional - target_database_version_guid: str, optional - target_table_guid: str, optional + target_attribute_guid: str, optional + target_database_guid: str, optional + target_database_version_guid: str, optional + target_table_guid: str, optional """ - self._target_database_guid = None - self._target_database_version_guid = None - self._target_table_guid = None - self._target_attribute_guid = None + self._target_database_guid: Union[str, Unset_Type] = Unset + self._target_database_version_guid: Union[str, Unset_Type] = Unset + self._target_table_guid: Union[str, Unset_Type] = Unset + self._target_attribute_guid: Union[str, Unset_Type] = Unset - if target_database_guid is not None: + if target_database_guid is not Unset: self.target_database_guid = target_database_guid - if target_database_version_guid is not None: + if target_database_version_guid is not Unset: self.target_database_version_guid = target_database_version_guid - if target_table_guid is not None: + if target_table_guid is not Unset: self.target_table_guid = target_table_guid - if target_attribute_guid is not None: + if target_attribute_guid is not Unset: self.target_attribute_guid = target_attribute_guid @property - def target_database_guid(self) -> "Optional[str]": + def target_database_guid(self) -> "Union[str, Unset_Type]": """Gets the target_database_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns ------- - str + Union[str, Unset_Type] The target_database_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "Optional[str]") -> None: + def target_database_guid( + self, target_database_guid: "Union[str, Unset_Type]" + ) -> None: """Sets the target_database_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters ---------- - target_database_guid: str + target_database_guid: Union[str, Unset_Type] The target_database_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ + # Field is not nullable + if target_database_guid is None: + raise ValueError( + "Invalid value for 'target_database_guid', must not be 'None'" + ) self._target_database_guid = target_database_guid @property - def target_database_version_guid(self) -> "Optional[str]": + def target_database_version_guid(self) -> "Union[str, Unset_Type]": """Gets the target_database_version_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns ------- - str + Union[str, Unset_Type] The target_database_version_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ return self._target_database_version_guid @target_database_version_guid.setter def target_database_version_guid( - self, target_database_version_guid: "Optional[str]" + self, target_database_version_guid: "Union[str, Unset_Type]" ) -> None: """Sets the target_database_version_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters ---------- - target_database_version_guid: str + target_database_version_guid: Union[str, Unset_Type] The target_database_version_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ + # Field is not nullable + if target_database_version_guid is None: + raise ValueError( + "Invalid value for 'target_database_version_guid', must not be 'None'" + ) self._target_database_version_guid = target_database_version_guid @property - def target_table_guid(self) -> "Optional[str]": + def target_table_guid(self) -> "Union[str, Unset_Type]": """Gets the target_table_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns ------- - str + Union[str, Unset_Type] The target_table_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "Optional[str]") -> None: + def target_table_guid(self, target_table_guid: "Union[str, Unset_Type]") -> None: """Sets the target_table_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters ---------- - target_table_guid: str + target_table_guid: Union[str, Unset_Type] The target_table_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ + # Field is not nullable + if target_table_guid is None: + raise ValueError( + "Invalid value for 'target_table_guid', must not be 'None'" + ) self._target_table_guid = target_table_guid @property - def target_attribute_guid(self) -> "Optional[str]": + def target_attribute_guid(self) -> "Union[str, Unset_Type]": """Gets the target_attribute_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns ------- - str + Union[str, Unset_Type] The target_attribute_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> None: + def target_attribute_guid( + self, target_attribute_guid: "Union[str, Unset_Type]" + ) -> None: """Sets the target_attribute_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters ---------- - target_attribute_guid: str + target_attribute_guid: Union[str, Unset_Type] The target_attribute_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -203,7 +227,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py index 9af184a8..e58c09df 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -94,53 +94,57 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional """ - self._default_threshold_type = None - self._axis_name = None - self._help_path = None - self._about_attribute = None - self._name = None - self._guid = None - - if default_threshold_type is not None: + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._axis_name: Union[str, None, Unset_Type] = Unset + self._help_path: Union[str, None, Unset_Type] = Unset + self._about_attribute: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type - if axis_name is not None: + if axis_name is not Unset: self.axis_name = axis_name - if help_path is not None: + if help_path is not Unset: self.help_path = help_path - if about_attribute is not None: + if about_attribute is not Unset: self.about_attribute = about_attribute - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ return self._default_threshold_type @@ -148,57 +152,62 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property - def axis_name(self) -> "Optional[str]": + def axis_name(self) -> "Union[str, None, Unset_Type]": """Gets the axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns ------- - str + Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "Optional[str]") -> None: + def axis_name(self, axis_name: "Union[str, None, Unset_Type]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters ---------- - axis_name: str + axis_name: Union[str, None, Unset_Type] The axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ self._axis_name = axis_name @property - def help_path(self) -> "Optional[str]": + def help_path(self) -> "Union[str, None, Unset_Type]": """Gets the help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns ------- - str + Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ return self._help_path @help_path.setter - def help_path(self, help_path: "Optional[str]") -> None: + def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: """Sets the help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters ---------- - help_path: str + help_path: Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ self._help_path = help_path @@ -206,75 +215,85 @@ def help_path(self, help_path: "Optional[str]") -> None: @property def about_attribute( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ return self._about_attribute @about_attribute.setter def about_attribute( - self, about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity + about_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ + # Field is not nullable + if about_attribute is None: + raise ValueError("Invalid value for 'about_attribute', must not be 'None'") self._about_attribute = about_attribute @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -296,7 +315,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py index fd4a2e7c..3b7e4946 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "dateTime", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -106,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -130,12 +130,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py index 0f8d1cbe..9f0d9e30 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -80,27 +80,27 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_multi_valued: "Optional[bool]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_multi_valued: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_multi_valued: bool, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_multi_valued: bool, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -110,11 +110,11 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._is_multi_valued = None + self._type: str + self._is_multi_valued: Union[bool, Unset_Type] = Unset self.type = type - if is_multi_valued is not None: + if is_multi_valued is not Unset: self.is_multi_valued = is_multi_valued @property @@ -137,34 +137,41 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def is_multi_valued(self) -> "Optional[bool]": + def is_multi_valued(self) -> "Union[bool, Unset_Type]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. """ return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: + def is_multi_valued(self, is_multi_valued: "Union[bool, Unset_Type]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. Parameters ---------- - is_multi_valued: bool + is_multi_valued: Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. """ + # Field is not nullable + if is_multi_valued is None: + raise ValueError("Invalid value for 'is_multi_valued', must not be 'None'") self._is_multi_valued = is_multi_valued @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +188,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py index e6b5a2c2..3a26b928 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -82,27 +82,27 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAtt def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - attribute_parameters: "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + attribute_parameters: "Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter], Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "discreteFunctional", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter], optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter], optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -112,11 +112,16 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._attribute_parameters = None + self._type: str + self._attribute_parameters: Union[ + List[ + GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter + ], + Unset_Type, + ] = Unset self.type = type - if attribute_parameters is not None: + if attribute_parameters is not Unset: self.attribute_parameters = attribute_parameters @property @@ -139,19 +144,23 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property def attribute_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]]": + ) -> "Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter], Unset_Type]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. Returns ------- - list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter] + Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter], Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. """ return self._attribute_parameters @@ -159,19 +168,24 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]]", + attribute_parameters: "Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter], Unset_Type]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter] + attribute_parameters: Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter], Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. """ + # Field is not nullable + if attribute_parameters is None: + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'None'" + ) self._attribute_parameters = attribute_parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -188,7 +202,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py index 916d2192..01b478e7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,72 +67,80 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAtt def __init__( self, *, - default_value: "Optional[float]" = None, - parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + default_value: "Union[float, None, Unset_Type]" = Unset, + parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter - a model defined in Swagger Parameters ---------- - default_value: float, optional - parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_value: float, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ - self._parameter = None - self._default_value = None + self._parameter: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._default_value: Union[float, None, Unset_Type] = Unset - if parameter is not None: + if parameter is not Unset: self.parameter = parameter - if default_value is not None: + if default_value is not Unset: self.default_value = default_value @property - def parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def parameter( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. """ return self._parameter @parameter.setter def parameter( - self, parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. """ + # Field is not nullable + if parameter is None: + raise ValueError("Invalid value for 'parameter', must not be 'None'") self._parameter = parameter @property - def default_value(self) -> "Optional[float]": + def default_value(self) -> "Union[float, None, Unset_Type]": """Gets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Returns ------- - float + Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. """ return self._default_value @default_value.setter - def default_value(self, default_value: "Optional[float]") -> None: + def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Parameters ---------- - default_value: float + default_value: Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. """ self._default_value = default_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py index 7a50355d..0c1ea7a2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "file", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -106,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -130,12 +130,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py index 38c6de70..185f91ed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -87,31 +87,31 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttrib def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - attribute_parameters: "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_range: "Optional[bool]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + attribute_parameters: "Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter], Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_range: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "floatFunctional", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter], optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_range: bool, optional - name: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter], optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_range: bool, optional + name: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( about_attribute=about_attribute, @@ -121,17 +121,24 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._attribute_parameters = None - self._is_range = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._attribute_parameters: Union[ + List[ + GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter + ], + Unset_Type, + ] = Unset + self._is_range: Union[bool, Unset_Type] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit - if attribute_parameters is not None: + if attribute_parameters is not Unset: self.attribute_parameters = attribute_parameters - if is_range is not None: + if is_range is not Unset: self.is_range = is_range @property @@ -154,43 +161,50 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property def attribute_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]]": + ) -> "Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter], Unset_Type]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Returns ------- - list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter] + Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter], Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ return self._attribute_parameters @@ -198,41 +212,49 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]]", + attribute_parameters: "Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter], Unset_Type]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter] + attribute_parameters: Union[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter], Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ + # Field is not nullable + if attribute_parameters is None: + raise ValueError( + "Invalid value for 'attribute_parameters', must not be 'None'" + ) self._attribute_parameters = attribute_parameters @property - def is_range(self) -> "Optional[bool]": + def is_range(self) -> "Union[bool, Unset_Type]": """Gets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ return self._is_range @is_range.setter - def is_range(self, is_range: "Optional[bool]") -> None: + def is_range(self, is_range: "Union[bool, Unset_Type]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Parameters ---------- - is_range: bool + is_range: Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ + # Field is not nullable + if is_range is None: + raise ValueError("Invalid value for 'is_range', must not be 'None'") self._is_range = is_range @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -249,7 +271,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py index 3b9a148f..c7d1662e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,74 +72,81 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttrib def __init__( self, *, - default_value: "Optional[float]" = None, - interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]" = None, - parameter_guid: "Optional[str]" = None, - scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" = None, + default_value: "Union[float, None, Unset_Type]" = Unset, + interpolation_method: "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" = Unset, + parameter_guid: "Union[str, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter - a model defined in Swagger Parameters ---------- - default_value: float, optional - interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod, optional - parameter_guid: str, optional - scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional + default_value: float, optional + interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod, optional + parameter_guid: str, optional + scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional """ - self._parameter_guid = None - self._default_value = None - self._interpolation_method = None - self._scale_type = None - - if parameter_guid is not None: + self._parameter_guid: Union[str, Unset_Type] = Unset + self._default_value: Union[float, None, Unset_Type] = Unset + self._interpolation_method: Union[ + GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type + ] = Unset + self._scale_type: Union[ + GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type + ] = Unset + + if parameter_guid is not Unset: self.parameter_guid = parameter_guid - if default_value is not None: + if default_value is not Unset: self.default_value = default_value - if interpolation_method is not None: + if interpolation_method is not Unset: self.interpolation_method = interpolation_method - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type @property - def parameter_guid(self) -> "Optional[str]": + def parameter_guid(self) -> "Union[str, Unset_Type]": """Gets the parameter_guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns ------- - str + Union[str, Unset_Type] The parameter_guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ return self._parameter_guid @parameter_guid.setter - def parameter_guid(self, parameter_guid: "Optional[str]") -> None: + def parameter_guid(self, parameter_guid: "Union[str, Unset_Type]") -> None: """Sets the parameter_guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Parameters ---------- - parameter_guid: str + parameter_guid: Union[str, Unset_Type] The parameter_guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ + # 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 default_value(self) -> "Optional[float]": + def default_value(self) -> "Union[float, None, Unset_Type]": """Gets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns ------- - float + Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ return self._default_value @default_value.setter - def default_value(self, default_value: "Optional[float]") -> None: + def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Parameters ---------- - default_value: float + default_value: Union[float, None, Unset_Type] The default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ self._default_value = default_value @@ -145,12 +154,14 @@ def default_value(self, default_value: "Optional[float]") -> None: @property def interpolation_method( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]": + ) -> ( + "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" + ): """Gets the interpolation_method of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaAttributesAttributeInterpolationMethod + Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type] The interpolation_method of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ return self._interpolation_method @@ -158,45 +169,54 @@ def interpolation_method( @interpolation_method.setter def interpolation_method( self, - interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]", + interpolation_method: "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]", ) -> None: """Sets the interpolation_method of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Parameters ---------- - interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod + interpolation_method: Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type] The interpolation_method of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ + # Field is not nullable + if interpolation_method is None: + raise ValueError( + "Invalid value for 'interpolation_method', must not be 'None'" + ) self._interpolation_method = interpolation_method @property def scale_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns ------- - GrantaServerApiSchemaAttributesAttributeScaleType + Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" + self, + scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]", ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Parameters ---------- - scale_type: GrantaServerApiSchemaAttributesAttributeScaleType + scale_type: Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -213,7 +233,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py index 9936ddd0..22028ea3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "hyperlink", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -106,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -130,12 +130,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py index 25114544..7a4f3659 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -80,27 +80,27 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_unique: "Optional[bool]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_unique: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "integer", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_unique: bool, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_unique: bool, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -110,11 +110,11 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._is_unique = None + self._type: str + self._is_unique: Union[bool, Unset_Type] = Unset self.type = type - if is_unique is not None: + if is_unique is not Unset: self.is_unique = is_unique @property @@ -137,36 +137,43 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def is_unique(self) -> "Optional[bool]": + def is_unique(self) -> "Union[bool, Unset_Type]": """Gets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value Returns ------- - bool + Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. """ return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "Optional[bool]") -> None: + def is_unique(self, is_unique: "Union[bool, Unset_Type]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value Parameters ---------- - is_unique: bool + is_unique: Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. """ + # Field is not nullable + if is_unique is None: + raise ValueError("Invalid value for 'is_unique', must not be 'None'") self._is_unique = is_unique @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py index 32bc7a2e..bf8ec72d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "logical", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -106,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -130,12 +130,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py index 22e919d3..da4972d8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "longText", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -106,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -130,12 +130,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py index 238765d0..6996ca1d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -75,167 +75,197 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBas def __init__( self, *, - curve_label: "Optional[str]" = None, - expression: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - free_parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - parameter_contents: "Optional[List[GrantaServerApiSchemaParametersUpdateParameterContent]]" = None, - transpose_axes: "Optional[bool]" = None, - use_logarithmic_scale: "Optional[bool]" = None, + curve_label: "Union[str, None, Unset_Type]" = Unset, + expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + parameter_contents: "Union[List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type]" = Unset, + transpose_axes: "Union[bool, Unset_Type]" = Unset, + use_logarithmic_scale: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent - a model defined in Swagger Parameters ---------- - curve_label: str, optional - expression: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - free_parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - parameter_contents: List[GrantaServerApiSchemaParametersUpdateParameterContent], optional - transpose_axes: bool, optional - use_logarithmic_scale: bool, optional + curve_label: str, optional + expression: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + free_parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + parameter_contents: List[GrantaServerApiSchemaParametersUpdateParameterContent], optional + transpose_axes: bool, optional + use_logarithmic_scale: bool, optional """ - self._curve_label = None - self._transpose_axes = None - self._use_logarithmic_scale = None - self._expression = None - self._free_parameter = None - self._parameter_contents = None - - if curve_label is not None: + self._curve_label: Union[str, None, Unset_Type] = Unset + self._transpose_axes: Union[bool, Unset_Type] = Unset + self._use_logarithmic_scale: Union[bool, Unset_Type] = Unset + self._expression: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._free_parameter: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._parameter_contents: Union[ + List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type + ] = Unset + + if curve_label is not Unset: self.curve_label = curve_label - if transpose_axes is not None: + if transpose_axes is not Unset: self.transpose_axes = transpose_axes - if use_logarithmic_scale is not None: + if use_logarithmic_scale is not Unset: self.use_logarithmic_scale = use_logarithmic_scale - if expression is not None: + if expression is not Unset: self.expression = expression - if free_parameter is not None: + if free_parameter is not Unset: self.free_parameter = free_parameter - if parameter_contents is not None: + if parameter_contents is not Unset: self.parameter_contents = parameter_contents @property - def curve_label(self) -> "Optional[str]": + def curve_label(self) -> "Union[str, None, Unset_Type]": """Gets the curve_label of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns ------- - str + Union[str, None, Unset_Type] The curve_label of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ return self._curve_label @curve_label.setter - def curve_label(self, curve_label: "Optional[str]") -> None: + def curve_label(self, curve_label: "Union[str, None, Unset_Type]") -> None: """Sets the curve_label of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters ---------- - curve_label: str + curve_label: Union[str, None, Unset_Type] The curve_label of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ self._curve_label = curve_label @property - def transpose_axes(self) -> "Optional[bool]": + def transpose_axes(self) -> "Union[bool, Unset_Type]": """Gets the transpose_axes of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns ------- - bool + Union[bool, Unset_Type] The transpose_axes of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ return self._transpose_axes @transpose_axes.setter - def transpose_axes(self, transpose_axes: "Optional[bool]") -> None: + def transpose_axes(self, transpose_axes: "Union[bool, Unset_Type]") -> None: """Sets the transpose_axes of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters ---------- - transpose_axes: bool + transpose_axes: Union[bool, Unset_Type] The transpose_axes of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ + # Field is not nullable + if transpose_axes is None: + raise ValueError("Invalid value for 'transpose_axes', must not be 'None'") self._transpose_axes = transpose_axes @property - def use_logarithmic_scale(self) -> "Optional[bool]": + def use_logarithmic_scale(self) -> "Union[bool, Unset_Type]": """Gets the use_logarithmic_scale of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns ------- - bool + Union[bool, Unset_Type] The use_logarithmic_scale of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ return self._use_logarithmic_scale @use_logarithmic_scale.setter - def use_logarithmic_scale(self, use_logarithmic_scale: "Optional[bool]") -> None: + def use_logarithmic_scale( + self, use_logarithmic_scale: "Union[bool, Unset_Type]" + ) -> None: """Sets the use_logarithmic_scale of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters ---------- - use_logarithmic_scale: bool + use_logarithmic_scale: Union[bool, Unset_Type] The use_logarithmic_scale of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ + # Field is not nullable + if use_logarithmic_scale is None: + raise ValueError( + "Invalid value for 'use_logarithmic_scale', must not be 'None'" + ) self._use_logarithmic_scale = use_logarithmic_scale @property - def expression(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def expression( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ return self._expression @expression.setter def expression( - self, expression: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters ---------- - expression: GrantaServerApiSchemaSlimEntitiesSlimEntity + expression: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ + # Field is not nullable + if expression is None: + raise ValueError("Invalid value for 'expression', must not be 'None'") self._expression = expression @property - def free_parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def free_parameter( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ return self._free_parameter @free_parameter.setter def free_parameter( - self, free_parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters ---------- - free_parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + free_parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ + # Field is not nullable + if free_parameter is None: + raise ValueError("Invalid value for 'free_parameter', must not be 'None'") self._free_parameter = free_parameter @property def parameter_contents( self, - ) -> "Optional[List[GrantaServerApiSchemaParametersUpdateParameterContent]]": + ) -> ( + "Union[List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type]" + ): """Gets the parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns ------- - list[GrantaServerApiSchemaParametersUpdateParameterContent] + Union[List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type] The parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ return self._parameter_contents @@ -243,19 +273,24 @@ def parameter_contents( @parameter_contents.setter def parameter_contents( self, - parameter_contents: "Optional[List[GrantaServerApiSchemaParametersUpdateParameterContent]]", + parameter_contents: "Union[List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type]", ) -> None: """Sets the parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters ---------- - parameter_contents: List[GrantaServerApiSchemaParametersUpdateParameterContent] + parameter_contents: Union[List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type] The parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ + # Field is not nullable + if parameter_contents is None: + raise ValueError( + "Invalid value for 'parameter_contents', must not be 'None'" + ) self._parameter_contents = parameter_contents @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -272,7 +307,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py index bb159ed2..6a9768a4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -99,41 +99,41 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttrib def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - allow_all_compatible_expressions: "Optional[bool]" = None, - allow_anonymous_expressions: "Optional[bool]" = None, - allow_extrapolation: "Optional[bool]" = None, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - axis_name: "Optional[str]" = None, - default_content: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_range: "Optional[bool]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + allow_all_compatible_expressions: "Union[bool, Unset_Type]" = Unset, + allow_anonymous_expressions: "Union[bool, Unset_Type]" = Unset, + allow_extrapolation: "Union[bool, Unset_Type]" = Unset, + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_content: "Union[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + expressions: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_range: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "mathsFunctional", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - allow_all_compatible_expressions: bool, optional - allow_anonymous_expressions: bool, optional - allow_extrapolation: bool, optional - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - axis_name: str, optional - default_content: GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - guid: str, optional - help_path: str, optional - is_range: bool, optional - name: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + allow_all_compatible_expressions: bool, optional + allow_anonymous_expressions: bool, optional + allow_extrapolation: bool, optional + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + axis_name: str, optional + default_content: GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + guid: str, optional + help_path: str, optional + is_range: bool, optional + name: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( about_attribute=about_attribute, @@ -143,32 +143,41 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._attribute_parameters = None - self._expressions = None - self._allow_extrapolation = None - self._is_range = None - self._default_content = None - self._allow_all_compatible_expressions = None - self._allow_anonymous_expressions = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._attribute_parameters: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._expressions: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._allow_extrapolation: Union[bool, Unset_Type] = Unset + self._is_range: Union[bool, Unset_Type] = Unset + self._default_content: Union[ + GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, + Unset_Type, + ] = Unset + self._allow_all_compatible_expressions: Union[bool, Unset_Type] = Unset + self._allow_anonymous_expressions: Union[bool, Unset_Type] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit - if attribute_parameters is not None: + if attribute_parameters is not Unset: self.attribute_parameters = attribute_parameters - if expressions is not None: + if expressions is not Unset: self.expressions = expressions - if allow_extrapolation is not None: + if allow_extrapolation is not Unset: self.allow_extrapolation = allow_extrapolation - if is_range is not None: + if is_range is not Unset: self.is_range = is_range - if default_content is not None: + if default_content is not Unset: self.default_content = default_content - if allow_all_compatible_expressions is not None: + if allow_all_compatible_expressions is not Unset: self.allow_all_compatible_expressions = allow_all_compatible_expressions - if allow_anonymous_expressions is not None: + if allow_anonymous_expressions is not Unset: self.allow_anonymous_expressions = allow_anonymous_expressions @property @@ -191,43 +200,50 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property def attribute_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._attribute_parameters @@ -235,13 +251,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ self._attribute_parameters = attribute_parameters @@ -249,82 +265,93 @@ def attribute_parameters( @property def expressions( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._expressions @expressions.setter def expressions( - self, expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" + self, + expressions: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + expressions: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ self._expressions = expressions @property - def allow_extrapolation(self) -> "Optional[bool]": + def allow_extrapolation(self) -> "Union[bool, Unset_Type]": """Gets the allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._allow_extrapolation @allow_extrapolation.setter - def allow_extrapolation(self, allow_extrapolation: "Optional[bool]") -> None: + def allow_extrapolation( + self, allow_extrapolation: "Union[bool, Unset_Type]" + ) -> None: """Sets the allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - allow_extrapolation: bool + allow_extrapolation: Union[bool, Unset_Type] The allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ + # Field is not nullable + if allow_extrapolation is None: + raise ValueError( + "Invalid value for 'allow_extrapolation', must not be 'None'" + ) self._allow_extrapolation = allow_extrapolation @property - def is_range(self) -> "Optional[bool]": + def is_range(self) -> "Union[bool, Unset_Type]": """Gets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._is_range @is_range.setter - def is_range(self, is_range: "Optional[bool]") -> None: + def is_range(self, is_range: "Union[bool, Unset_Type]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - is_range: bool + is_range: Union[bool, Unset_Type] The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ + # Field is not nullable + if is_range is None: + raise ValueError("Invalid value for 'is_range', must not be 'None'") self._is_range = is_range @property def default_content( self, - ) -> "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent]": + ) -> "Union[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, Unset_Type]": """Gets the default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent + Union[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, Unset_Type] The default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._default_content @@ -332,67 +359,80 @@ def default_content( @default_content.setter def default_content( self, - default_content: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent]", + default_content: "Union[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, Unset_Type]", ) -> None: """Sets the default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - default_content: GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent + default_content: Union[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, Unset_Type] The default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ + # Field is not nullable + if default_content is None: + raise ValueError("Invalid value for 'default_content', must not be 'None'") self._default_content = default_content @property - def allow_all_compatible_expressions(self) -> "Optional[bool]": + def allow_all_compatible_expressions(self) -> "Union[bool, Unset_Type]": """Gets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._allow_all_compatible_expressions @allow_all_compatible_expressions.setter def allow_all_compatible_expressions( - self, allow_all_compatible_expressions: "Optional[bool]" + self, allow_all_compatible_expressions: "Union[bool, Unset_Type]" ) -> None: """Sets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - allow_all_compatible_expressions: bool + allow_all_compatible_expressions: Union[bool, Unset_Type] The allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ + # Field is not nullable + if allow_all_compatible_expressions is None: + raise ValueError( + "Invalid value for 'allow_all_compatible_expressions', must not be 'None'" + ) self._allow_all_compatible_expressions = allow_all_compatible_expressions @property - def allow_anonymous_expressions(self) -> "Optional[bool]": + def allow_anonymous_expressions(self) -> "Union[bool, Unset_Type]": """Gets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns ------- - bool + Union[bool, Unset_Type] The allow_anonymous_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ return self._allow_anonymous_expressions @allow_anonymous_expressions.setter def allow_anonymous_expressions( - self, allow_anonymous_expressions: "Optional[bool]" + self, allow_anonymous_expressions: "Union[bool, Unset_Type]" ) -> None: """Sets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - allow_anonymous_expressions: bool + allow_anonymous_expressions: Union[bool, Unset_Type] The allow_anonymous_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ + # Field is not nullable + if allow_anonymous_expressions is None: + raise ValueError( + "Invalid value for 'allow_anonymous_expressions', must not be 'None'" + ) self._allow_anonymous_expressions = allow_anonymous_expressions @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -409,7 +449,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py index 3f26461c..eaed1f9a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -78,25 +78,25 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "picture", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -106,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -130,12 +130,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py index 71e9ef51..839a066a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -87,31 +87,31 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_multi_valued: "Optional[bool]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_multi_valued: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "point", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_multi_valued: bool, optional - name: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_multi_valued: bool, optional + name: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( about_attribute=about_attribute, @@ -121,17 +121,21 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._is_multi_valued = None - self._attribute_parameters = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._is_multi_valued: Union[bool, Unset_Type] = Unset + self._attribute_parameters: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit - if is_multi_valued is not None: + if is_multi_valued is not Unset: self.is_multi_valued = is_multi_valued - if attribute_parameters is not None: + if attribute_parameters is not Unset: self.attribute_parameters = attribute_parameters @property @@ -154,65 +158,75 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property - def is_multi_valued(self) -> "Optional[bool]": + def is_multi_valued(self) -> "Union[bool, Unset_Type]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Returns ------- - bool + Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: + def is_multi_valued(self, is_multi_valued: "Union[bool, Unset_Type]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Parameters ---------- - is_multi_valued: bool + is_multi_valued: Union[bool, Unset_Type] The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ + # Field is not nullable + if is_multi_valued is None: + raise ValueError("Invalid value for 'is_multi_valued', must not be 'None'") self._is_multi_valued = is_multi_valued @property def attribute_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ return self._attribute_parameters @@ -220,19 +234,19 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + attribute_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Parameters ---------- - attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ self._attribute_parameters = attribute_parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -249,7 +263,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py index 87e395eb..3adf4e91 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -82,27 +82,27 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "range", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( about_attribute=about_attribute, @@ -112,11 +112,13 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._unit = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -139,36 +141,43 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -185,7 +194,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py index 569f0212..95e279c6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -84,29 +84,29 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - is_unique: "Optional[bool]" = None, - name: "Optional[str]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + is_unique: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "shortText", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - data_rule: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - help_path: str, optional - is_unique: bool, optional - name: str, optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + data_rule: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + help_path: str, optional + is_unique: bool, optional + name: str, optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -116,14 +116,16 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._is_unique = None - self._data_rule = None + self._type: str + self._is_unique: Union[bool, Unset_Type] = Unset + self._data_rule: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset self.type = type - if is_unique is not None: + if is_unique is not Unset: self.is_unique = is_unique - if data_rule is not None: + if data_rule is not Unset: self.data_rule = data_rule @property @@ -146,60 +148,73 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def is_unique(self) -> "Optional[bool]": + def is_unique(self) -> "Union[bool, Unset_Type]": """Gets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value Returns ------- - bool + Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. """ return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "Optional[bool]") -> None: + def is_unique(self, is_unique: "Union[bool, Unset_Type]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value Parameters ---------- - is_unique: bool + is_unique: Union[bool, Unset_Type] The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. """ + # Field is not nullable + if is_unique is None: + raise ValueError("Invalid value for 'is_unique', must not be 'None'") self._is_unique = is_unique @property - def data_rule(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def data_rule( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. """ return self._data_rule @data_rule.setter def data_rule( - self, data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Parameters ---------- - data_rule: GrantaServerApiSchemaSlimEntitiesSlimEntity + data_rule: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. """ + # Field is not nullable + if data_rule is None: + raise ValueError("Invalid value for 'data_rule', must not be 'None'") self._data_rule = data_rule @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -216,7 +231,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py index 470ac07a..50ea200a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, ) # noqa: F401 @@ -88,33 +88,33 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute( def __init__( self, *, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - axis_name: "Optional[str]" = None, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - display_full_table: "Optional[bool]" = None, - display_summary_row_inline: "Optional[bool]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - hide_unlinked_rows: "Optional[bool]" = None, - name: "Optional[str]" = None, - tabular_columns: "Optional[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn]]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + axis_name: "Union[str, None, Unset_Type]" = Unset, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + display_full_table: "Union[bool, Unset_Type]" = Unset, + display_summary_row_inline: "Union[bool, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + hide_unlinked_rows: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + tabular_columns: "Union[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], None, Unset_Type]" = Unset, type: "str" = "link", ) -> None: """GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute - a model defined in Swagger Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - axis_name: str, optional - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - display_full_table: bool, optional - display_summary_row_inline: bool, optional - guid: str, optional - help_path: str, optional - hide_unlinked_rows: bool, optional - name: str, optional - tabular_columns: List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], optional - type: str + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + axis_name: str, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + display_full_table: bool, optional + display_summary_row_inline: bool, optional + guid: str, optional + help_path: str, optional + hide_unlinked_rows: bool, optional + name: str, optional + tabular_columns: List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], optional + type: str """ super().__init__( about_attribute=about_attribute, @@ -124,20 +124,26 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._display_full_table = None - self._display_summary_row_inline = None - self._hide_unlinked_rows = None - self._tabular_columns = None + self._type: str + self._display_full_table: Union[bool, Unset_Type] = Unset + self._display_summary_row_inline: Union[bool, Unset_Type] = Unset + self._hide_unlinked_rows: Union[bool, Unset_Type] = Unset + self._tabular_columns: Union[ + List[ + GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn + ], + None, + Unset_Type, + ] = Unset self.type = type - if display_full_table is not None: + if display_full_table is not Unset: self.display_full_table = display_full_table - if display_summary_row_inline is not None: + if display_summary_row_inline is not Unset: self.display_summary_row_inline = display_summary_row_inline - if hide_unlinked_rows is not None: + if hide_unlinked_rows is not Unset: self.hide_unlinked_rows = hide_unlinked_rows - if tabular_columns is not None: + if tabular_columns is not Unset: self.tabular_columns = tabular_columns @property @@ -160,87 +166,106 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def display_full_table(self) -> "Optional[bool]": + def display_full_table(self) -> "Union[bool, Unset_Type]": """Gets the display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns ------- - bool + Union[bool, Unset_Type] The display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ return self._display_full_table @display_full_table.setter - def display_full_table(self, display_full_table: "Optional[bool]") -> None: + def display_full_table(self, display_full_table: "Union[bool, Unset_Type]") -> None: """Sets the display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters ---------- - display_full_table: bool + display_full_table: Union[bool, Unset_Type] The display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ + # Field is not nullable + if display_full_table is None: + raise ValueError( + "Invalid value for 'display_full_table', must not be 'None'" + ) self._display_full_table = display_full_table @property - def display_summary_row_inline(self) -> "Optional[bool]": + def display_summary_row_inline(self) -> "Union[bool, Unset_Type]": """Gets the display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns ------- - bool + Union[bool, Unset_Type] The display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ return self._display_summary_row_inline @display_summary_row_inline.setter def display_summary_row_inline( - self, display_summary_row_inline: "Optional[bool]" + self, display_summary_row_inline: "Union[bool, Unset_Type]" ) -> None: """Sets the display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters ---------- - display_summary_row_inline: bool + display_summary_row_inline: Union[bool, Unset_Type] The display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ + # Field is not nullable + if display_summary_row_inline is None: + raise ValueError( + "Invalid value for 'display_summary_row_inline', must not be 'None'" + ) self._display_summary_row_inline = display_summary_row_inline @property - def hide_unlinked_rows(self) -> "Optional[bool]": + def hide_unlinked_rows(self) -> "Union[bool, Unset_Type]": """Gets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns ------- - bool + Union[bool, Unset_Type] The hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ return self._hide_unlinked_rows @hide_unlinked_rows.setter - def hide_unlinked_rows(self, hide_unlinked_rows: "Optional[bool]") -> None: + def hide_unlinked_rows(self, hide_unlinked_rows: "Union[bool, Unset_Type]") -> None: """Sets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters ---------- - hide_unlinked_rows: bool + hide_unlinked_rows: Union[bool, Unset_Type] The hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ + # Field is not nullable + if hide_unlinked_rows is None: + raise ValueError( + "Invalid value for 'hide_unlinked_rows', must not be 'None'" + ) self._hide_unlinked_rows = hide_unlinked_rows @property def tabular_columns( self, - ) -> "Optional[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn]]": + ) -> "Union[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], None, Unset_Type]": """Gets the tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns ------- - list[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn] + Union[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], None, Unset_Type] The tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ return self._tabular_columns @@ -248,19 +273,19 @@ def tabular_columns( @tabular_columns.setter def tabular_columns( self, - tabular_columns: "Optional[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn]]", + tabular_columns: "Union[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], None, Unset_Type]", ) -> None: """Sets the tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters ---------- - tabular_columns: List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn] + tabular_columns: Union[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], None, Unset_Type] The tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ self._tabular_columns = tabular_columns @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -277,7 +302,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py index 5a745b39..877812d4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaAttributesValidateAttributeRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaAttributesValidateAttributeRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,74 +63,76 @@ class GrantaServerApiSchemaAttributesValidateAttributeRequest(ModelBase): # typ def __init__( self, *, - record_history_guid: "Optional[str]" = None, - value: "Optional[str]" = None, + record_history_guid: "Union[str, None, Unset_Type]" = Unset, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaAttributesValidateAttributeRequest - a model defined in Swagger Parameters ---------- - record_history_guid: str, optional - value: str, optional + record_history_guid: str, optional + value: str, optional """ - self._value = None - self._record_history_guid = None + self._value: Union[str, None, Unset_Type] = Unset + self._record_history_guid: Union[str, None, Unset_Type] = Unset - if value is not None: + if value is not Unset: self.value = value - if record_history_guid is not None: + if record_history_guid is not Unset: self.record_history_guid = record_history_guid @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. The value to check an attributes data validation rules against Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. The value to check an attributes data validation rules against Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. """ self._value = value @property - def record_history_guid(self) -> "Optional[str]": + def record_history_guid(self) -> "Union[str, None, Unset_Type]": """Gets the record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. The record you want to check the value against to see if the value has changed as well as being valid Returns ------- - str + Union[str, None, Unset_Type] The record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. """ return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "Optional[str]") -> None: + def record_history_guid( + self, record_history_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. The record you want to check the value against to see if the value has changed as well as being valid Parameters ---------- - record_history_guid: str + record_history_guid: Union[str, None, Unset_Type] The record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. """ self._record_history_guid = record_history_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py index 91b86d83..4aa9a3ca 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConfigurationsConfiguration(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConfigurationsConfiguration(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,70 +69,70 @@ def __init__( *, guid: "str", name: "str", - description: "Optional[str]" = None, - value: "Optional[str]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaConfigurationsConfiguration - a model defined in Swagger Parameters ---------- - guid: str - name: str - description: str, optional - value: str, optional + guid: str + name: str + description: str, optional + value: str, optional """ - self._description = None - self._value = None - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._description: Union[str, None, Unset_Type] = Unset + self._value: Union[str, None, Unset_Type] = Unset + self._name: str + self._guid: str - if description is not None: + if description is not Unset: self.description = description - if value is not None: + if value is not Unset: self.value = value self.name = name self.guid = guid @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSchemaConfigurationsConfiguration. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaConfigurationsConfiguration. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaConfigurationsConfiguration. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaConfigurationsConfiguration. """ self._description = description @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSchemaConfigurationsConfiguration. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSchemaConfigurationsConfiguration. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaConfigurationsConfiguration. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSchemaConfigurationsConfiguration. """ self._value = value @@ -157,8 +157,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaConfigurationsConfiguration. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -181,12 +185,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaConfigurationsConfiguration. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -203,7 +211,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py index a2d8b65d..fd86d9dc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConfigurationsConfigurationsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConfigurationsConfigurationsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] + configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] """ - self._configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] = None # type: ignore[assignment] + self._configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] self.configurations = configurations @@ -83,7 +83,7 @@ def configurations( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] + List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] The configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. """ return self._configurations @@ -99,12 +99,16 @@ def configurations( configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] The configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. """ + # Field is not nullable if configurations is None: raise ValueError("Invalid value for 'configurations', must not be 'None'") + # Field is required + if configurations is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'configurations', must not be 'Unset'") self._configurations = configurations @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py index 52104aa7..0cc8b59a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConfigurationsCreateConfiguration(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConfigurationsCreateConfiguration(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,48 +69,48 @@ def __init__( *, name: "str", value: "str", - description: "Optional[str]" = None, - guid: "Optional[str]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaConfigurationsCreateConfiguration - a model defined in Swagger Parameters ---------- - name: str - value: str - description: str, optional - guid: str, optional + name: str + value: str + description: str, optional + guid: str, optional """ - self._description = None - self._value: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid = None + self._description: Union[str, None, Unset_Type] = Unset + self._value: str + self._name: str + self._guid: Union[str, Unset_Type] = Unset - if description is not None: + if description is not Unset: self.description = description self.value = value self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. """ self._description = description @@ -135,8 +135,12 @@ def value(self, value: "str") -> None: value: str The value of this GrantaServerApiSchemaConfigurationsCreateConfiguration. """ + # 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 @property @@ -159,34 +163,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaConfigurationsCreateConfiguration. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -203,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py index 694e248c..51bebb7a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConfigurationsUpdateConfiguration(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConfigurationsUpdateConfiguration(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,133 @@ class GrantaServerApiSchemaConfigurationsUpdateConfiguration(ModelBase): # type def __init__( self, *, - description: "Optional[str]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - value: "Optional[str]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + value: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaConfigurationsUpdateConfiguration - a model defined in Swagger Parameters ---------- - description: str, optional - guid: str, optional - name: str, optional - value: str, optional + description: str, optional + guid: str, optional + name: str, optional + value: str, optional """ - self._description = None - self._value = None - self._name = None - self._guid = None + self._description: Union[str, None, Unset_Type] = Unset + self._value: Union[str, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if description is not None: + if description is not Unset: self.description = description - if value is not None: + if value is not Unset: self.value = value - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ self._description = description @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, Unset_Type]": """Gets the value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns ------- - str + Union[str, Unset_Type] The value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Parameters ---------- - value: str + value: Union[str, Unset_Type] The value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py index 0f137d90..2b4e8988 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConstantsConstant(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConstantsConstant(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,48 +72,53 @@ def __init__( guid: "str", name: "str", value: "float", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaConstantsConstant - a model defined in Swagger Parameters ---------- - guid: str - name: str - value: float - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + guid: str + name: str + value: float + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ - self._unit = None - self._value: float = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset + self._value: float + self._name: str + self._guid: str - if unit is not None: + if unit is not Unset: self.unit = unit self.value = value self.name = name self.guid = guid @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaConstantsConstant. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaConstantsConstant. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaConstantsConstant. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaConstantsConstant. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -136,8 +141,12 @@ def value(self, value: "float") -> None: value: float The value of this GrantaServerApiSchemaConstantsConstant. """ + # 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 @property @@ -160,8 +169,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaConstantsConstant. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -184,12 +197,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaConstantsConstant. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -206,7 +223,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py index 452ddc5f..e027ca59 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConstantsConstantsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConstantsConstantsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,47 +63,50 @@ class GrantaServerApiSchemaConstantsConstantsInfo(ModelBase): # type: ignore[mi def __init__( self, *, - constants: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimConstant]]" = None, + constants: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimConstant], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaConstantsConstantsInfo - a model defined in Swagger Parameters ---------- - constants: List[GrantaServerApiSchemaSlimEntitiesSlimConstant], optional + constants: List[GrantaServerApiSchemaSlimEntitiesSlimConstant], optional """ - self._constants = None + self._constants: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimConstant], None, Unset_Type + ] = Unset - if constants is not None: + if constants is not Unset: self.constants = constants @property def constants( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimConstant]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimConstant], None, Unset_Type]": """Gets the constants of this GrantaServerApiSchemaConstantsConstantsInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimConstant] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimConstant], None, Unset_Type] The constants of this GrantaServerApiSchemaConstantsConstantsInfo. """ return self._constants @constants.setter def constants( - self, constants: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimConstant]]" + self, + constants: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimConstant], None, Unset_Type]", ) -> None: """Sets the constants of this GrantaServerApiSchemaConstantsConstantsInfo. Parameters ---------- - constants: List[GrantaServerApiSchemaSlimEntitiesSlimConstant] + constants: Union[List[GrantaServerApiSchemaSlimEntitiesSlimConstant], None, Unset_Type] The constants of this GrantaServerApiSchemaConstantsConstantsInfo. """ self._constants = constants @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -120,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py index d5eb7e89..07f47053 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConstantsCreateConstant(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConstantsCreateConstant(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,48 +69,48 @@ def __init__( *, name: "str", value: "float", - guid: "Optional[str]" = None, - unit_guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + unit_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaConstantsCreateConstant - a model defined in Swagger Parameters ---------- - name: str - value: float - guid: str, optional - unit_guid: str, optional + name: str + value: float + guid: str, optional + unit_guid: str, optional """ - self._unit_guid = None - self._value: float = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid = None + self._unit_guid: Union[str, None, Unset_Type] = Unset + self._value: float + self._name: str + self._guid: Union[str, Unset_Type] = Unset - if unit_guid is not None: + if unit_guid is not Unset: self.unit_guid = unit_guid self.value = value self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def unit_guid(self) -> "Optional[str]": + def unit_guid(self) -> "Union[str, None, Unset_Type]": """Gets the unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. Returns ------- - str + Union[str, None, Unset_Type] The unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. """ return self._unit_guid @unit_guid.setter - def unit_guid(self, unit_guid: "Optional[str]") -> None: + def unit_guid(self, unit_guid: "Union[str, None, Unset_Type]") -> None: """Sets the unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. Parameters ---------- - unit_guid: str + unit_guid: Union[str, None, Unset_Type] The unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. """ self._unit_guid = unit_guid @@ -135,8 +135,12 @@ def value(self, value: "float") -> None: value: float The value of this GrantaServerApiSchemaConstantsCreateConstant. """ + # 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 @property @@ -159,34 +163,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaConstantsCreateConstant. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaConstantsCreateConstant. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConstantsCreateConstant. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaConstantsCreateConstant. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConstantsCreateConstant. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -203,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py index e38581c6..bd9e026d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaConstantsUpdateConstant(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaConstantsUpdateConstant(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,133 @@ class GrantaServerApiSchemaConstantsUpdateConstant(ModelBase): # type: ignore[m def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - unit_guid: "Optional[str]" = None, - value: "Optional[float]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + unit_guid: "Union[str, None, Unset_Type]" = Unset, + value: "Union[float, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaConstantsUpdateConstant - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional - unit_guid: str, optional - value: float, optional + guid: str, optional + name: str, optional + unit_guid: str, optional + value: float, optional """ - self._unit_guid = None - self._value = None - self._name = None - self._guid = None + self._unit_guid: Union[str, None, Unset_Type] = Unset + self._value: Union[float, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if unit_guid is not None: + if unit_guid is not Unset: self.unit_guid = unit_guid - if value is not None: + if value is not Unset: self.value = value - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def unit_guid(self) -> "Optional[str]": + def unit_guid(self) -> "Union[str, None, Unset_Type]": """Gets the unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. Returns ------- - str + Union[str, None, Unset_Type] The unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. """ return self._unit_guid @unit_guid.setter - def unit_guid(self, unit_guid: "Optional[str]") -> None: + def unit_guid(self, unit_guid: "Union[str, None, Unset_Type]") -> None: """Sets the unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. Parameters ---------- - unit_guid: str + unit_guid: Union[str, None, Unset_Type] The unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. """ self._unit_guid = unit_guid @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, Unset_Type]": """Gets the value of this GrantaServerApiSchemaConstantsUpdateConstant. Returns ------- - float + Union[float, Unset_Type] The value of this GrantaServerApiSchemaConstantsUpdateConstant. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaConstantsUpdateConstant. Parameters ---------- - value: float + value: Union[float, Unset_Type] The value of this GrantaServerApiSchemaConstantsUpdateConstant. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaConstantsUpdateConstant. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaConstantsUpdateConstant. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaConstantsUpdateConstant. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaConstantsUpdateConstant. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaConstantsUpdateConstant. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConstantsUpdateConstant. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaConstantsUpdateConstant. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaConstantsUpdateConstant. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py index 5438e556..a405912e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDataRulesCreateDataRule(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDataRulesCreateDataRule(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,26 +70,26 @@ def __init__( description: "str", name: "str", regular_expression: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDataRulesCreateDataRule - a model defined in Swagger Parameters ---------- - description: str - name: str - regular_expression: str - guid: str, optional + description: str + name: str + regular_expression: str + guid: str, optional """ - self._description: str = None # type: ignore[assignment] - self._regular_expression: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid = None + self._description: str + self._regular_expression: str + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.description = description self.regular_expression = regular_expression self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -112,8 +112,12 @@ def description(self, description: "str") -> None: description: str The description of this GrantaServerApiSchemaDataRulesCreateDataRule. """ + # Field is not nullable if description is None: raise ValueError("Invalid value for 'description', must not be 'None'") + # Field is required + if description is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'description', must not be 'Unset'") self._description = description @property @@ -136,10 +140,16 @@ def regular_expression(self, regular_expression: "str") -> None: regular_expression: str The regular_expression of this GrantaServerApiSchemaDataRulesCreateDataRule. """ + # Field is not nullable if regular_expression is None: raise ValueError( "Invalid value for 'regular_expression', must not be 'None'" ) + # Field is required + if regular_expression is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'regular_expression', must not be 'Unset'" + ) self._regular_expression = regular_expression @property @@ -162,34 +172,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaDataRulesCreateDataRule. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaDataRulesCreateDataRule. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDataRulesCreateDataRule. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaDataRulesCreateDataRule. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDataRulesCreateDataRule. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -206,7 +223,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py index 1203ce62..409c533b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDataRulesDataRule(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDataRulesDataRule(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -81,17 +81,17 @@ def __init__( Parameters ---------- - description: str - guid: str - name: str - regular_expression: str - used_by_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + description: str + guid: str + name: str + regular_expression: str + used_by_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ - self._description: str = None # type: ignore[assignment] - self._regular_expression: str = None # type: ignore[assignment] - self._used_by_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._description: str + self._regular_expression: str + self._used_by_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._name: str + self._guid: str self.description = description self.regular_expression = regular_expression @@ -119,8 +119,12 @@ def description(self, description: "str") -> None: description: str The description of this GrantaServerApiSchemaDataRulesDataRule. """ + # Field is not nullable if description is None: raise ValueError("Invalid value for 'description', must not be 'None'") + # Field is required + if description is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'description', must not be 'Unset'") self._description = description @property @@ -143,10 +147,16 @@ def regular_expression(self, regular_expression: "str") -> None: regular_expression: str The regular_expression of this GrantaServerApiSchemaDataRulesDataRule. """ + # Field is not nullable if regular_expression is None: raise ValueError( "Invalid value for 'regular_expression', must not be 'None'" ) + # Field is required + if regular_expression is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'regular_expression', must not be 'Unset'" + ) self._regular_expression = regular_expression @property @@ -157,7 +167,7 @@ def used_by_attributes( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The used_by_attributes of this GrantaServerApiSchemaDataRulesDataRule. """ return self._used_by_attributes @@ -174,10 +184,16 @@ def used_by_attributes( used_by_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The used_by_attributes of this GrantaServerApiSchemaDataRulesDataRule. """ + # Field is not nullable if used_by_attributes is None: raise ValueError( "Invalid value for 'used_by_attributes', must not be 'None'" ) + # Field is required + if used_by_attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'used_by_attributes', must not be 'Unset'" + ) self._used_by_attributes = used_by_attributes @property @@ -200,8 +216,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaDataRulesDataRule. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -224,12 +244,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaDataRulesDataRule. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -246,7 +270,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py index 15a62236..f1758e6d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDataRulesDataRulesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDataRulesDataRulesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiSchemaDataRulesDataRulesInfo(ModelBase): # type: ignore[mi def __init__( self, *, - data_rules: "Optional[List[GrantaServerApiSchemaDataRulesDataRule]]" = None, + data_rules: "Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDataRulesDataRulesInfo - a model defined in Swagger Parameters ---------- - data_rules: List[GrantaServerApiSchemaDataRulesDataRule], optional + data_rules: List[GrantaServerApiSchemaDataRulesDataRule], optional """ - self._data_rules = None + self._data_rules: Union[ + List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type + ] = Unset - if data_rules is not None: + if data_rules is not Unset: self.data_rules = data_rules @property - def data_rules(self) -> "Optional[List[GrantaServerApiSchemaDataRulesDataRule]]": + def data_rules( + self, + ) -> "Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type]": """Gets the data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. Returns ------- - list[GrantaServerApiSchemaDataRulesDataRule] + Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type] The data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. """ return self._data_rules @data_rules.setter def data_rules( - self, data_rules: "Optional[List[GrantaServerApiSchemaDataRulesDataRule]]" + self, + data_rules: "Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type]", ) -> None: """Sets the data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. Parameters ---------- - data_rules: List[GrantaServerApiSchemaDataRulesDataRule] + data_rules: Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type] The data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. """ self._data_rules = data_rules @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py index 45985901..409e3564 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDataRulesUpdateDataRule(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDataRulesUpdateDataRule(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,138 @@ class GrantaServerApiSchemaDataRulesUpdateDataRule(ModelBase): # type: ignore[m def __init__( self, *, - description: "Optional[str]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - regular_expression: "Optional[str]" = None, + description: "Union[str, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + regular_expression: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDataRulesUpdateDataRule - a model defined in Swagger Parameters ---------- - description: str, optional - guid: str, optional - name: str, optional - regular_expression: str, optional + description: str, optional + guid: str, optional + name: str, optional + regular_expression: str, optional """ - self._description = None - self._regular_expression = None - self._name = None - self._guid = None + self._description: Union[str, Unset_Type] = Unset + self._regular_expression: Union[str, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if description is not None: + if description is not Unset: self.description = description - if regular_expression is not None: + if regular_expression is not Unset: self.regular_expression = regular_expression - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, Unset_Type]": """Gets the description of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns ------- - str + Union[str, Unset_Type] The description of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaDataRulesUpdateDataRule. Parameters ---------- - description: str + description: Union[str, Unset_Type] The description of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ + # Field is not nullable + if description is None: + raise ValueError("Invalid value for 'description', must not be 'None'") self._description = description @property - def regular_expression(self) -> "Optional[str]": + def regular_expression(self) -> "Union[str, Unset_Type]": """Gets the regular_expression of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns ------- - str + Union[str, Unset_Type] The regular_expression of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ return self._regular_expression @regular_expression.setter - def regular_expression(self, regular_expression: "Optional[str]") -> None: + def regular_expression(self, regular_expression: "Union[str, Unset_Type]") -> None: """Sets the regular_expression of this GrantaServerApiSchemaDataRulesUpdateDataRule. Parameters ---------- - regular_expression: str + regular_expression: Union[str, Unset_Type] The regular_expression of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ + # Field is not nullable + if regular_expression is None: + raise ValueError( + "Invalid value for 'regular_expression', must not be 'None'" + ) self._regular_expression = regular_expression @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaDataRulesUpdateDataRule. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaDataRulesUpdateDataRule. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDataRulesUpdateDataRule. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +215,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py index 3b8bd76f..b99de2dd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDatabase(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDatabase(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -99,188 +99,190 @@ def __init__( key: "str", name: "str", status: "GrantaServerApiSchemaDatabaseStatus", - author: "Optional[str]" = None, - company: "Optional[str]" = None, - currency_code: "Optional[str]" = None, - index_in_sync: "Optional[bool]" = None, - index_out_of_date_duration: "Optional[str]" = None, - index_up_to_date: "Optional[bool]" = None, - is_access_controlled: "Optional[bool]" = None, - notes: "Optional[str]" = None, - schema_version: "Optional[str]" = None, - version_guid: "Optional[str]" = None, + author: "Union[str, None, Unset_Type]" = Unset, + company: "Union[str, None, Unset_Type]" = Unset, + currency_code: "Union[str, None, Unset_Type]" = Unset, + index_in_sync: "Union[bool, None, Unset_Type]" = Unset, + index_out_of_date_duration: "Union[str, None, Unset_Type]" = Unset, + index_up_to_date: "Union[bool, None, Unset_Type]" = Unset, + is_access_controlled: "Union[bool, None, Unset_Type]" = Unset, + notes: "Union[str, None, Unset_Type]" = Unset, + schema_version: "Union[str, None, Unset_Type]" = Unset, + version_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDatabase - a model defined in Swagger Parameters ---------- - guid: str - is_locked: bool - is_read_only: bool - key: str - name: str - status: GrantaServerApiSchemaDatabaseStatus - author: str, optional - company: str, optional - currency_code: str, optional - index_in_sync: bool, optional - index_out_of_date_duration: str, optional - index_up_to_date: bool, optional - is_access_controlled: bool, optional - notes: str, optional - schema_version: str, optional - version_guid: str, optional - """ - self._author = None - self._company = None - self._notes = None - self._currency_code = None - self._is_access_controlled = None - self._key: str = None # type: ignore[assignment] - self._version_guid = None - self._status: GrantaServerApiSchemaDatabaseStatus = None # type: ignore[assignment] - self._is_read_only: bool = None # type: ignore[assignment] - self._is_locked: bool = None # type: ignore[assignment] - self._index_in_sync = None - self._index_up_to_date = None - self._index_out_of_date_duration = None - self._schema_version = None - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] - - if author is not None: + guid: str + is_locked: bool + is_read_only: bool + key: str + name: str + status: GrantaServerApiSchemaDatabaseStatus + author: str, optional + company: str, optional + currency_code: str, optional + index_in_sync: bool, optional + index_out_of_date_duration: str, optional + index_up_to_date: bool, optional + is_access_controlled: bool, optional + notes: str, optional + schema_version: str, optional + version_guid: str, optional + """ + self._author: Union[str, None, Unset_Type] = Unset + self._company: Union[str, None, Unset_Type] = Unset + self._notes: Union[str, None, Unset_Type] = Unset + self._currency_code: Union[str, None, Unset_Type] = Unset + self._is_access_controlled: Union[bool, None, Unset_Type] = Unset + self._key: str + self._version_guid: Union[str, None, Unset_Type] = Unset + self._status: GrantaServerApiSchemaDatabaseStatus + self._is_read_only: bool + self._is_locked: bool + self._index_in_sync: Union[bool, None, Unset_Type] = Unset + self._index_up_to_date: Union[bool, None, Unset_Type] = Unset + self._index_out_of_date_duration: Union[str, None, Unset_Type] = Unset + self._schema_version: Union[str, None, Unset_Type] = Unset + self._name: str + self._guid: str + + if author is not Unset: self.author = author - if company is not None: + if company is not Unset: self.company = company - if notes is not None: + if notes is not Unset: self.notes = notes - if currency_code is not None: + if currency_code is not Unset: self.currency_code = currency_code - if is_access_controlled is not None: + if is_access_controlled is not Unset: self.is_access_controlled = is_access_controlled self.key = key - if version_guid is not None: + if version_guid is not Unset: self.version_guid = version_guid self.status = status self.is_read_only = is_read_only self.is_locked = is_locked - if index_in_sync is not None: + if index_in_sync is not Unset: self.index_in_sync = index_in_sync - if index_up_to_date is not None: + if index_up_to_date is not Unset: self.index_up_to_date = index_up_to_date - if index_out_of_date_duration is not None: + if index_out_of_date_duration is not Unset: self.index_out_of_date_duration = index_out_of_date_duration - if schema_version is not None: + if schema_version is not Unset: self.schema_version = schema_version self.name = name self.guid = guid @property - def author(self) -> "Optional[str]": + def author(self) -> "Union[str, None, Unset_Type]": """Gets the author of this GrantaServerApiSchemaDatabase. Returns ------- - str + Union[str, None, Unset_Type] The author of this GrantaServerApiSchemaDatabase. """ return self._author @author.setter - def author(self, author: "Optional[str]") -> None: + def author(self, author: "Union[str, None, Unset_Type]") -> None: """Sets the author of this GrantaServerApiSchemaDatabase. Parameters ---------- - author: str + author: Union[str, None, Unset_Type] The author of this GrantaServerApiSchemaDatabase. """ self._author = author @property - def company(self) -> "Optional[str]": + def company(self) -> "Union[str, None, Unset_Type]": """Gets the company of this GrantaServerApiSchemaDatabase. Returns ------- - str + Union[str, None, Unset_Type] The company of this GrantaServerApiSchemaDatabase. """ return self._company @company.setter - def company(self, company: "Optional[str]") -> None: + def company(self, company: "Union[str, None, Unset_Type]") -> None: """Sets the company of this GrantaServerApiSchemaDatabase. Parameters ---------- - company: str + company: Union[str, None, Unset_Type] The company of this GrantaServerApiSchemaDatabase. """ self._company = company @property - def notes(self) -> "Optional[str]": + def notes(self) -> "Union[str, None, Unset_Type]": """Gets the notes of this GrantaServerApiSchemaDatabase. Returns ------- - str + Union[str, None, Unset_Type] The notes of this GrantaServerApiSchemaDatabase. """ return self._notes @notes.setter - def notes(self, notes: "Optional[str]") -> None: + def notes(self, notes: "Union[str, None, Unset_Type]") -> None: """Sets the notes of this GrantaServerApiSchemaDatabase. Parameters ---------- - notes: str + notes: Union[str, None, Unset_Type] The notes of this GrantaServerApiSchemaDatabase. """ self._notes = notes @property - def currency_code(self) -> "Optional[str]": + def currency_code(self) -> "Union[str, None, Unset_Type]": """Gets the currency_code of this GrantaServerApiSchemaDatabase. Returns ------- - str + Union[str, None, Unset_Type] The currency_code of this GrantaServerApiSchemaDatabase. """ return self._currency_code @currency_code.setter - def currency_code(self, currency_code: "Optional[str]") -> None: + def currency_code(self, currency_code: "Union[str, None, Unset_Type]") -> None: """Sets the currency_code of this GrantaServerApiSchemaDatabase. Parameters ---------- - currency_code: str + currency_code: Union[str, None, Unset_Type] The currency_code of this GrantaServerApiSchemaDatabase. """ self._currency_code = currency_code @property - def is_access_controlled(self) -> "Optional[bool]": + def is_access_controlled(self) -> "Union[bool, None, Unset_Type]": """Gets the is_access_controlled of this GrantaServerApiSchemaDatabase. Returns ------- - bool + Union[bool, None, Unset_Type] The is_access_controlled of this GrantaServerApiSchemaDatabase. """ return self._is_access_controlled @is_access_controlled.setter - def is_access_controlled(self, is_access_controlled: "Optional[bool]") -> None: + def is_access_controlled( + self, is_access_controlled: "Union[bool, None, Unset_Type]" + ) -> None: """Sets the is_access_controlled of this GrantaServerApiSchemaDatabase. Parameters ---------- - is_access_controlled: bool + is_access_controlled: Union[bool, None, Unset_Type] The is_access_controlled of this GrantaServerApiSchemaDatabase. """ self._is_access_controlled = is_access_controlled @@ -305,28 +307,32 @@ def key(self, key: "str") -> None: key: str The key of this GrantaServerApiSchemaDatabase. """ + # Field is not nullable if key is None: raise ValueError("Invalid value for 'key', must not be 'None'") + # Field is required + if key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'key', must not be 'Unset'") self._key = key @property - def version_guid(self) -> "Optional[str]": + def version_guid(self) -> "Union[str, None, Unset_Type]": """Gets the version_guid of this GrantaServerApiSchemaDatabase. Returns ------- - str + Union[str, None, Unset_Type] The version_guid of this GrantaServerApiSchemaDatabase. """ return self._version_guid @version_guid.setter - def version_guid(self, version_guid: "Optional[str]") -> None: + def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: """Sets the version_guid of this GrantaServerApiSchemaDatabase. Parameters ---------- - version_guid: str + version_guid: Union[str, None, Unset_Type] The version_guid of this GrantaServerApiSchemaDatabase. """ self._version_guid = version_guid @@ -351,8 +357,12 @@ def status(self, status: "GrantaServerApiSchemaDatabaseStatus") -> None: status: GrantaServerApiSchemaDatabaseStatus The status of this GrantaServerApiSchemaDatabase. """ + # Field is not nullable if status is None: raise ValueError("Invalid value for 'status', must not be 'None'") + # Field is required + if status is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'status', must not be 'Unset'") self._status = status @property @@ -375,8 +385,12 @@ def is_read_only(self, is_read_only: "bool") -> None: is_read_only: bool The is_read_only of this GrantaServerApiSchemaDatabase. """ + # Field is not nullable if is_read_only is None: raise ValueError("Invalid value for 'is_read_only', must not be 'None'") + # Field is required + if is_read_only is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_read_only', must not be 'Unset'") self._is_read_only = is_read_only @property @@ -399,96 +413,102 @@ def is_locked(self, is_locked: "bool") -> None: is_locked: bool The is_locked of this GrantaServerApiSchemaDatabase. """ + # Field is not nullable if is_locked is None: raise ValueError("Invalid value for 'is_locked', must not be 'None'") + # Field is required + if is_locked is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_locked', must not be 'Unset'") self._is_locked = is_locked @property - def index_in_sync(self) -> "Optional[bool]": + def index_in_sync(self) -> "Union[bool, None, Unset_Type]": """Gets the index_in_sync of this GrantaServerApiSchemaDatabase. Returns ------- - bool + Union[bool, None, Unset_Type] The index_in_sync of this GrantaServerApiSchemaDatabase. """ return self._index_in_sync @index_in_sync.setter - def index_in_sync(self, index_in_sync: "Optional[bool]") -> None: + def index_in_sync(self, index_in_sync: "Union[bool, None, Unset_Type]") -> None: """Sets the index_in_sync of this GrantaServerApiSchemaDatabase. Parameters ---------- - index_in_sync: bool + index_in_sync: Union[bool, None, Unset_Type] The index_in_sync of this GrantaServerApiSchemaDatabase. """ self._index_in_sync = index_in_sync @property - def index_up_to_date(self) -> "Optional[bool]": + def index_up_to_date(self) -> "Union[bool, None, Unset_Type]": """Gets the index_up_to_date of this GrantaServerApiSchemaDatabase. Returns ------- - bool + Union[bool, None, Unset_Type] The index_up_to_date of this GrantaServerApiSchemaDatabase. """ return self._index_up_to_date @index_up_to_date.setter - def index_up_to_date(self, index_up_to_date: "Optional[bool]") -> None: + def index_up_to_date( + self, index_up_to_date: "Union[bool, None, Unset_Type]" + ) -> None: """Sets the index_up_to_date of this GrantaServerApiSchemaDatabase. Parameters ---------- - index_up_to_date: bool + index_up_to_date: Union[bool, None, Unset_Type] The index_up_to_date of this GrantaServerApiSchemaDatabase. """ self._index_up_to_date = index_up_to_date @property - def index_out_of_date_duration(self) -> "Optional[str]": + def index_out_of_date_duration(self) -> "Union[str, None, Unset_Type]": """Gets the index_out_of_date_duration of this GrantaServerApiSchemaDatabase. Returns ------- - str + Union[str, None, Unset_Type] The index_out_of_date_duration of this GrantaServerApiSchemaDatabase. """ return self._index_out_of_date_duration @index_out_of_date_duration.setter def index_out_of_date_duration( - self, index_out_of_date_duration: "Optional[str]" + self, index_out_of_date_duration: "Union[str, None, Unset_Type]" ) -> None: """Sets the index_out_of_date_duration of this GrantaServerApiSchemaDatabase. Parameters ---------- - index_out_of_date_duration: str + index_out_of_date_duration: Union[str, None, Unset_Type] The index_out_of_date_duration of this GrantaServerApiSchemaDatabase. """ self._index_out_of_date_duration = index_out_of_date_duration @property - def schema_version(self) -> "Optional[str]": + def schema_version(self) -> "Union[str, None, Unset_Type]": """Gets the schema_version of this GrantaServerApiSchemaDatabase. Returns ------- - str + Union[str, None, Unset_Type] The schema_version of this GrantaServerApiSchemaDatabase. """ return self._schema_version @schema_version.setter - def schema_version(self, schema_version: "Optional[str]") -> None: + def schema_version(self, schema_version: "Union[str, None, Unset_Type]") -> None: """Sets the schema_version of this GrantaServerApiSchemaDatabase. Parameters ---------- - schema_version: str + schema_version: Union[str, None, Unset_Type] The schema_version of this GrantaServerApiSchemaDatabase. """ self._schema_version = schema_version @@ -513,8 +533,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaDatabase. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -537,12 +561,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaDatabase. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -559,7 +587,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py index 78a97677..63471d00 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDatabasesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDatabasesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,47 +63,50 @@ class GrantaServerApiSchemaDatabasesInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - databases: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase]]" = None, + databases: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDatabasesInfo - a model defined in Swagger Parameters ---------- - databases: List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], optional + databases: List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], optional """ - self._databases = None + self._databases: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], None, Unset_Type + ] = Unset - if databases is not None: + if databases is not Unset: self.databases = databases @property def databases( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], None, Unset_Type]": """Gets the databases of this GrantaServerApiSchemaDatabasesInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimDatabase] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], None, Unset_Type] The databases of this GrantaServerApiSchemaDatabasesInfo. """ return self._databases @databases.setter def databases( - self, databases: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase]]" + self, + databases: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], None, Unset_Type]", ) -> None: """Sets the databases of this GrantaServerApiSchemaDatabasesInfo. Parameters ---------- - databases: List[GrantaServerApiSchemaSlimEntitiesSlimDatabase] + databases: Union[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase], None, Unset_Type] The databases of this GrantaServerApiSchemaDatabasesInfo. """ self._databases = databases @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -120,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py index 8d8211e8..0d53dfa6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteTypesCreateDiscreteType(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteTypesCreateDiscreteType(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,47 +66,50 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, - is_ordered: "Optional[bool]" = None, + guid: "Union[str, Unset_Type]" = Unset, + is_ordered: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDiscreteTypesCreateDiscreteType - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional - is_ordered: bool, optional + name: str + guid: str, optional + is_ordered: bool, optional """ - self._is_ordered = None - self._name: str = None # type: ignore[assignment] - self._guid = None + self._is_ordered: Union[bool, Unset_Type] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset - if is_ordered is not None: + if is_ordered is not Unset: self.is_ordered = is_ordered self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def is_ordered(self) -> "Optional[bool]": + def is_ordered(self) -> "Union[bool, Unset_Type]": """Gets the is_ordered of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Returns ------- - bool + Union[bool, Unset_Type] The is_ordered of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. """ return self._is_ordered @is_ordered.setter - def is_ordered(self, is_ordered: "Optional[bool]") -> None: + def is_ordered(self, is_ordered: "Union[bool, Unset_Type]") -> None: """Sets the is_ordered of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Parameters ---------- - is_ordered: bool + is_ordered: Union[bool, Unset_Type] The is_ordered of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. """ + # Field is not nullable + if is_ordered is None: + raise ValueError("Invalid value for 'is_ordered', must not be 'None'") self._is_ordered = is_ordered @property @@ -129,34 +132,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -173,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py index cf109a36..c839fb83 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteTypesDiscreteType(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteTypesDiscreteType(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,13 +73,13 @@ def __init__( Parameters ---------- - guid: str - is_ordered: bool - name: str + guid: str + is_ordered: bool + name: str """ - self._is_ordered: bool = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._is_ordered: bool + self._name: str + self._guid: str self.is_ordered = is_ordered self.name = name @@ -105,8 +105,12 @@ def is_ordered(self, is_ordered: "bool") -> None: is_ordered: bool The is_ordered of this GrantaServerApiSchemaDiscreteTypesDiscreteType. """ + # Field is not nullable if is_ordered is None: raise ValueError("Invalid value for 'is_ordered', must not be 'None'") + # Field is required + if is_ordered is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_ordered', must not be 'Unset'") self._is_ordered = is_ordered @property @@ -129,8 +133,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaDiscreteTypesDiscreteType. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -153,12 +161,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaDiscreteTypesDiscreteType. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py index 78ed7c29..b9799eb7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,32 @@ class GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo(ModelBase): # type: i def __init__( self, *, - discrete_types: "Optional[List[GrantaServerApiSchemaDiscreteTypesDiscreteType]]" = None, + discrete_types: "Union[List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo - a model defined in Swagger Parameters ---------- - discrete_types: List[GrantaServerApiSchemaDiscreteTypesDiscreteType], optional + discrete_types: List[GrantaServerApiSchemaDiscreteTypesDiscreteType], optional """ - self._discrete_types = None + self._discrete_types: Union[ + List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type + ] = Unset - if discrete_types is not None: + if discrete_types is not Unset: self.discrete_types = discrete_types @property def discrete_types( self, - ) -> "Optional[List[GrantaServerApiSchemaDiscreteTypesDiscreteType]]": + ) -> ( + "Union[List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type]" + ): """Gets the discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. Returns ------- - list[GrantaServerApiSchemaDiscreteTypesDiscreteType] + Union[List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type] The discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. """ return self._discrete_types @@ -92,19 +96,19 @@ def discrete_types( @discrete_types.setter def discrete_types( self, - discrete_types: "Optional[List[GrantaServerApiSchemaDiscreteTypesDiscreteType]]", + discrete_types: "Union[List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type]", ) -> None: """Sets the discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. Parameters ---------- - discrete_types: List[GrantaServerApiSchemaDiscreteTypesDiscreteType] + discrete_types: Union[List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type] The discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. """ self._discrete_types = discrete_types @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py index 253cd733..07be4d10 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,106 @@ class GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType(ModelBase): # type: def __init__( self, *, - guid: "Optional[str]" = None, - is_ordered: "Optional[bool]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + is_ordered: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType - a model defined in Swagger Parameters ---------- - guid: str, optional - is_ordered: bool, optional - name: str, optional + guid: str, optional + is_ordered: bool, optional + name: str, optional """ - self._is_ordered = None - self._name = None - self._guid = None + self._is_ordered: Union[bool, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if is_ordered is not None: + if is_ordered is not Unset: self.is_ordered = is_ordered - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def is_ordered(self) -> "Optional[bool]": + def is_ordered(self) -> "Union[bool, Unset_Type]": """Gets the is_ordered of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Returns ------- - bool + Union[bool, Unset_Type] The is_ordered of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. """ return self._is_ordered @is_ordered.setter - def is_ordered(self, is_ordered: "Optional[bool]") -> None: + def is_ordered(self, is_ordered: "Union[bool, Unset_Type]") -> None: """Sets the is_ordered of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Parameters ---------- - is_ordered: bool + is_ordered: Union[bool, Unset_Type] The is_ordered of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. """ + # Field is not nullable + if is_ordered is None: + raise ValueError("Invalid value for 'is_ordered', must not be 'None'") self._is_ordered = is_ordered @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py index 122186ca..f223f98f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,20 +64,20 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional + name: str + guid: str, optional """ - self._name: str = None # type: ignore[assignment] - self._guid = None + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -100,34 +100,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -144,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py index dc204bbd..8ad80e18 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteValuesDiscreteValue(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteValuesDiscreteValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - guid: str - name: str + guid: str + name: str """ - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._name: str + self._guid: str self.name = name self.guid = guid @@ -99,8 +99,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaDiscreteValuesDiscreteValue. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -123,12 +127,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaDiscreteValuesDiscreteValue. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py index 6b8d7beb..545aeccd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo(ModelBase): # type: def __init__( self, *, - discrete_values: "Optional[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]]" = None, + discrete_values: "Union[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo - a model defined in Swagger Parameters ---------- - discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], optional + discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], optional """ - self._discrete_values = None + self._discrete_values: Union[ + List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], None, Unset_Type + ] = Unset - if discrete_values is not None: + if discrete_values is not Unset: self.discrete_values = discrete_values @property def discrete_values( self, - ) -> "Optional[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]]": + ) -> "Union[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], None, Unset_Type]": """Gets the discrete_values of this GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo. Returns ------- - list[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + Union[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], None, Unset_Type] The discrete_values of this GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo. """ return self._discrete_values @@ -92,19 +94,19 @@ def discrete_values( @discrete_values.setter def discrete_values( self, - discrete_values: "Optional[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]]", + discrete_values: "Union[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], None, Unset_Type]", ) -> None: """Sets the discrete_values of this GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo. Parameters ---------- - discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + discrete_values: Union[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue], None, Unset_Type] The discrete_values of this GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo. """ self._discrete_values = discrete_values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py index 8f92d172..f7f019dc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,32 @@ class GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo(ModelBase): def __init__( self, *, - discrete_values: "Optional[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]]" = None, + discrete_values: "Union[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo - a model defined in Swagger Parameters ---------- - discrete_values: List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], optional + discrete_values: List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], optional """ - self._discrete_values = None + self._discrete_values: Union[ + List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], + None, + Unset_Type, + ] = Unset - if discrete_values is not None: + if discrete_values is not Unset: self.discrete_values = discrete_values @property def discrete_values( self, - ) -> "Optional[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]]": + ) -> "Union[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], None, Unset_Type]": """Gets the discrete_values of this GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo. Returns ------- - list[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue] + Union[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], None, Unset_Type] The discrete_values of this GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo. """ return self._discrete_values @@ -92,19 +96,19 @@ def discrete_values( @discrete_values.setter def discrete_values( self, - discrete_values: "Optional[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]]", + discrete_values: "Union[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], None, Unset_Type]", ) -> None: """Sets the discrete_values of this GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo. Parameters ---------- - discrete_values: List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue] + discrete_values: Union[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], None, Unset_Type] The discrete_values of this GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo. """ self._discrete_values = discrete_values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py index bdeb6e9f..828f7f78 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue(ModelBase): # type def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional + guid: str, optional + name: str, optional """ - self._name = None - self._guid = None + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py index 1562cf9a..e3c8de1b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaExpressionsCreateExpression(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaExpressionsCreateExpression(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,28 +71,30 @@ def __init__( *, name: "str", value: "str", - guid: "Optional[str]" = None, - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + guid: "Union[str, Unset_Type]" = Unset, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaExpressionsCreateExpression - a model defined in Swagger Parameters ---------- - name: str - value: str - guid: str, optional - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str + value: str + guid: str, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ - self._value: str = None # type: ignore[assignment] - self._unit = None - self._name: str = None # type: ignore[assignment] - self._guid = None + self._value: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.value = value - if unit is not None: + if unit is not Unset: self.unit = unit self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -115,32 +117,39 @@ def value(self, value: "str") -> None: value: str The value of this GrantaServerApiSchemaExpressionsCreateExpression. """ + # 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 @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaExpressionsCreateExpression. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaExpressionsCreateExpression. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsCreateExpression. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaExpressionsCreateExpression. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -163,34 +172,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaExpressionsCreateExpression. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaExpressionsCreateExpression. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaExpressionsCreateExpression. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaExpressionsCreateExpression. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaExpressionsCreateExpression. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -207,7 +223,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py index 1c4cc4f5..9dd97d01 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaExpressionsExpression(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaExpressionsExpression(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -84,30 +84,36 @@ def __init__( name: "str", parameter_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", value: "str", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaExpressionsExpression - a model defined in Swagger Parameters ---------- - attribute_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - constant_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - guid: str - name: str - parameter_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - value: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + attribute_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + constant_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + guid: str + name: str + parameter_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + value: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ - self._value: str = None # type: ignore[assignment] - self._unit = None - self._attribute_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._constant_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._parameter_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._value: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset + self._attribute_dependencies: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._constant_dependencies: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._parameter_dependencies: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._name: str + self._guid: str self.value = value - if unit is not None: + if unit is not Unset: self.unit = unit self.attribute_dependencies = attribute_dependencies self.constant_dependencies = constant_dependencies @@ -135,30 +141,39 @@ def value(self, value: "str") -> None: value: str The value of this GrantaServerApiSchemaExpressionsExpression. """ + # 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 @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaExpressionsExpression. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaExpressionsExpression. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsExpression. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaExpressionsExpression. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -169,7 +184,7 @@ def attribute_dependencies( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ return self._attribute_dependencies @@ -186,10 +201,16 @@ def attribute_dependencies( attribute_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ + # Field is not nullable if attribute_dependencies is None: raise ValueError( "Invalid value for 'attribute_dependencies', must not be 'None'" ) + # Field is required + if attribute_dependencies is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_dependencies', must not be 'Unset'" + ) self._attribute_dependencies = attribute_dependencies @property @@ -200,7 +221,7 @@ def constant_dependencies( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The constant_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ return self._constant_dependencies @@ -217,10 +238,16 @@ def constant_dependencies( constant_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The constant_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ + # Field is not nullable if constant_dependencies is None: raise ValueError( "Invalid value for 'constant_dependencies', must not be 'None'" ) + # Field is required + if constant_dependencies is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'constant_dependencies', must not be 'Unset'" + ) self._constant_dependencies = constant_dependencies @property @@ -231,7 +258,7 @@ def parameter_dependencies( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameter_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ return self._parameter_dependencies @@ -248,10 +275,16 @@ def parameter_dependencies( parameter_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameter_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ + # Field is not nullable if parameter_dependencies is None: raise ValueError( "Invalid value for 'parameter_dependencies', must not be 'None'" ) + # Field is required + if parameter_dependencies is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'parameter_dependencies', must not be 'Unset'" + ) self._parameter_dependencies = parameter_dependencies @property @@ -274,8 +307,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaExpressionsExpression. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -298,12 +335,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaExpressionsExpression. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -320,7 +361,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py index b2f1ae1a..53a9ae8d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaExpressionsExpressionsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaExpressionsExpressionsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,32 @@ class GrantaServerApiSchemaExpressionsExpressionsInfo(ModelBase): # type: ignor def __init__( self, *, - expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimExpression]]" = None, + expressions: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaExpressionsExpressionsInfo - a model defined in Swagger Parameters ---------- - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression], optional + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression], optional """ - self._expressions = None + self._expressions: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type + ] = Unset - if expressions is not None: + if expressions is not Unset: self.expressions = expressions @property def expressions( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimExpression]]": + ) -> ( + "Union[List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type]" + ): """Gets the expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimExpression] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type] The expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. """ return self._expressions @@ -92,19 +96,19 @@ def expressions( @expressions.setter def expressions( self, - expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimExpression]]", + expressions: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type]", ) -> None: """Sets the expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. Parameters ---------- - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] + expressions: Union[List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type] The expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. """ self._expressions = expressions @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py index cc558ed8..86027b9b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaExpressionsUpdateExpression(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaExpressionsUpdateExpression(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,126 +69,140 @@ class GrantaServerApiSchemaExpressionsUpdateExpression(ModelBase): # type: igno def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - value: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + value: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaExpressionsUpdateExpression - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - value: str, optional + guid: str, optional + name: str, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + value: str, optional """ - self._value = None - self._unit = None - self._name = None - self._guid = None - - if value is not None: + self._value: Union[str, Unset_Type] = Unset + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + + if value is not Unset: self.value = value - if unit is not None: + if unit is not Unset: self.unit = unit - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, Unset_Type]": """Gets the value of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns ------- - str + Union[str, Unset_Type] The value of this GrantaServerApiSchemaExpressionsUpdateExpression. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters ---------- - value: str + value: Union[str, Unset_Type] The value of this GrantaServerApiSchemaExpressionsUpdateExpression. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaExpressionsUpdateExpression. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaExpressionsUpdateExpression. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaExpressionsUpdateExpression. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaExpressionsUpdateExpression. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaExpressionsUpdateExpression. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaExpressionsUpdateExpression. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -205,7 +219,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py index 6cf6e6fe..27153854 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesCreateFolder(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesCreateFolder(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,23 +67,23 @@ def __init__( *, name: "str", parent_guid: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaFilesCreateFolder - a model defined in Swagger Parameters ---------- - name: str - parent_guid: str - guid: str, optional + name: str + parent_guid: str + guid: str, optional """ - self._parent_guid: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid = None + self._parent_guid: str + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.parent_guid = parent_guid self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -106,8 +106,12 @@ def parent_guid(self, parent_guid: "str") -> None: parent_guid: str The parent_guid of this GrantaServerApiSchemaFilesCreateFolder. """ + # Field is not nullable if parent_guid is None: raise ValueError("Invalid value for 'parent_guid', must not be 'None'") + # Field is required + if parent_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parent_guid', must not be 'Unset'") self._parent_guid = parent_guid @property @@ -130,34 +134,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaFilesCreateFolder. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaFilesCreateFolder. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaFilesCreateFolder. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaFilesCreateFolder. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaFilesCreateFolder. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py index fbde8d4b..632ade14 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesExporterRefetchInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesExporterRefetchInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,73 @@ class GrantaServerApiSchemaFilesExporterRefetchInfo(ModelBase): # type: ignore[ def __init__( self, *, - errors: "Optional[List[str]]" = None, - succeeded: "Optional[bool]" = None, + errors: "Union[List[str], None, Unset_Type]" = Unset, + succeeded: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaFilesExporterRefetchInfo - a model defined in Swagger Parameters ---------- - errors: List[str], optional - succeeded: bool, optional + errors: List[str], optional + succeeded: bool, optional """ - self._succeeded = None - self._errors = None + self._succeeded: Union[bool, Unset_Type] = Unset + self._errors: Union[List[str], None, Unset_Type] = Unset - if succeeded is not None: + if succeeded is not Unset: self.succeeded = succeeded - if errors is not None: + if errors is not Unset: self.errors = errors @property - def succeeded(self) -> "Optional[bool]": + def succeeded(self) -> "Union[bool, Unset_Type]": """Gets the succeeded of this GrantaServerApiSchemaFilesExporterRefetchInfo. Returns ------- - bool + Union[bool, Unset_Type] The succeeded of this GrantaServerApiSchemaFilesExporterRefetchInfo. """ return self._succeeded @succeeded.setter - def succeeded(self, succeeded: "Optional[bool]") -> None: + def succeeded(self, succeeded: "Union[bool, Unset_Type]") -> None: """Sets the succeeded of this GrantaServerApiSchemaFilesExporterRefetchInfo. Parameters ---------- - succeeded: bool + succeeded: Union[bool, Unset_Type] The succeeded of this GrantaServerApiSchemaFilesExporterRefetchInfo. """ + # Field is not nullable + if succeeded is None: + raise ValueError("Invalid value for 'succeeded', must not be 'None'") self._succeeded = succeeded @property - def errors(self) -> "Optional[List[str]]": + def errors(self) -> "Union[List[str], None, Unset_Type]": """Gets the errors of this GrantaServerApiSchemaFilesExporterRefetchInfo. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The errors of this GrantaServerApiSchemaFilesExporterRefetchInfo. """ return self._errors @errors.setter - def errors(self, errors: "Optional[List[str]]") -> None: + def errors(self, errors: "Union[List[str], None, Unset_Type]") -> None: """Sets the errors of this GrantaServerApiSchemaFilesExporterRefetchInfo. Parameters ---------- - errors: List[str] + errors: Union[List[str], None, Unset_Type] The errors of this GrantaServerApiSchemaFilesExporterRefetchInfo. """ self._errors = errors @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +146,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py index f96c807c..263e09f1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesFileHeader(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesFileHeader(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -85,21 +85,21 @@ def __init__( Parameters ---------- - data_length: int - description: str - extension: str - folder_guid: str - guid: str - name: str - path: str + data_length: int + description: str + extension: str + folder_guid: str + guid: str + name: str + path: str """ - self._folder_guid: str = None # type: ignore[assignment] - self._description: str = None # type: ignore[assignment] - self._extension: str = None # type: ignore[assignment] - self._data_length: int = None # type: ignore[assignment] - self._path: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._folder_guid: str + self._description: str + self._extension: str + self._data_length: int + self._path: str + self._name: str + self._guid: str self.folder_guid = folder_guid self.description = description @@ -129,8 +129,12 @@ def folder_guid(self, folder_guid: "str") -> None: folder_guid: str The folder_guid of this GrantaServerApiSchemaFilesFileHeader. """ + # Field is not nullable if folder_guid is None: raise ValueError("Invalid value for 'folder_guid', must not be 'None'") + # Field is required + if folder_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'folder_guid', must not be 'Unset'") self._folder_guid = folder_guid @property @@ -153,8 +157,12 @@ def description(self, description: "str") -> None: description: str The description of this GrantaServerApiSchemaFilesFileHeader. """ + # Field is not nullable if description is None: raise ValueError("Invalid value for 'description', must not be 'None'") + # Field is required + if description is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'description', must not be 'Unset'") self._description = description @property @@ -177,8 +185,12 @@ def extension(self, extension: "str") -> None: extension: str The extension of this GrantaServerApiSchemaFilesFileHeader. """ + # Field is not nullable if extension is None: raise ValueError("Invalid value for 'extension', must not be 'None'") + # Field is required + if extension is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'extension', must not be 'Unset'") self._extension = extension @property @@ -201,8 +213,12 @@ def data_length(self, data_length: "int") -> None: data_length: int The data_length of this GrantaServerApiSchemaFilesFileHeader. """ + # Field is not nullable if data_length is None: raise ValueError("Invalid value for 'data_length', must not be 'None'") + # Field is required + if data_length is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'data_length', must not be 'Unset'") self._data_length = data_length @property @@ -225,8 +241,12 @@ def path(self, path: "str") -> None: path: str The path of this GrantaServerApiSchemaFilesFileHeader. """ + # Field is not nullable if path is None: raise ValueError("Invalid value for 'path', must not be 'None'") + # Field is required + if path is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'path', must not be 'Unset'") self._path = path @property @@ -249,8 +269,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaFilesFileHeader. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -273,12 +297,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaFilesFileHeader. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -295,7 +323,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py index fa072a94..d07358bc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesFilesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesFilesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiSchemaFilesFilesInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - files: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimFile]]" = None, + files: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaFilesFilesInfo - a model defined in Swagger Parameters ---------- - files: List[GrantaServerApiSchemaSlimEntitiesSlimFile], optional + files: List[GrantaServerApiSchemaSlimEntitiesSlimFile], optional """ - self._files = None + self._files: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type + ] = Unset - if files is not None: + if files is not Unset: self.files = files @property - def files(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimFile]]": + def files( + self, + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type]": """Gets the files of this GrantaServerApiSchemaFilesFilesInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimFile] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type] The files of this GrantaServerApiSchemaFilesFilesInfo. """ return self._files @files.setter def files( - self, files: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimFile]]" + self, + files: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type]", ) -> None: """Sets the files of this GrantaServerApiSchemaFilesFilesInfo. Parameters ---------- - files: List[GrantaServerApiSchemaSlimEntitiesSlimFile] + files: Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type] The files of this GrantaServerApiSchemaFilesFilesInfo. """ self._files = files @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py index 0870010d..4de8ac48 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesFolder(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesFolder(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,43 +67,43 @@ def __init__( *, guid: "str", name: "str", - parent_guid: "Optional[str]" = None, + parent_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaFilesFolder - a model defined in Swagger Parameters ---------- - guid: str - name: str - parent_guid: str, optional + guid: str + name: str + parent_guid: str, optional """ - self._parent_guid = None - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._parent_guid: Union[str, None, Unset_Type] = Unset + self._name: str + self._guid: str - if parent_guid is not None: + if parent_guid is not Unset: self.parent_guid = parent_guid self.name = name self.guid = guid @property - def parent_guid(self) -> "Optional[str]": + def parent_guid(self) -> "Union[str, None, Unset_Type]": """Gets the parent_guid of this GrantaServerApiSchemaFilesFolder. Returns ------- - str + Union[str, None, Unset_Type] The parent_guid of this GrantaServerApiSchemaFilesFolder. """ return self._parent_guid @parent_guid.setter - def parent_guid(self, parent_guid: "Optional[str]") -> None: + def parent_guid(self, parent_guid: "Union[str, None, Unset_Type]") -> None: """Sets the parent_guid of this GrantaServerApiSchemaFilesFolder. Parameters ---------- - parent_guid: str + parent_guid: Union[str, None, Unset_Type] The parent_guid of this GrantaServerApiSchemaFilesFolder. """ self._parent_guid = parent_guid @@ -128,8 +128,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaFilesFolder. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -152,12 +156,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaFilesFolder. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +182,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py index 0e670d62..0dde496d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesFoldersInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesFoldersInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,49 @@ class GrantaServerApiSchemaFilesFoldersInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - folders: "Optional[List[GrantaServerApiSchemaFilesFolder]]" = None, + folders: "Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaFilesFoldersInfo - a model defined in Swagger Parameters ---------- - folders: List[GrantaServerApiSchemaFilesFolder], optional + folders: List[GrantaServerApiSchemaFilesFolder], optional """ - self._folders = None + self._folders: Union[ + List[GrantaServerApiSchemaFilesFolder], None, Unset_Type + ] = Unset - if folders is not None: + if folders is not Unset: self.folders = folders @property - def folders(self) -> "Optional[List[GrantaServerApiSchemaFilesFolder]]": + def folders( + self, + ) -> "Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type]": """Gets the folders of this GrantaServerApiSchemaFilesFoldersInfo. Returns ------- - list[GrantaServerApiSchemaFilesFolder] + Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type] The folders of this GrantaServerApiSchemaFilesFoldersInfo. """ return self._folders @folders.setter def folders( - self, folders: "Optional[List[GrantaServerApiSchemaFilesFolder]]" + self, folders: "Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type]" ) -> None: """Sets the folders of this GrantaServerApiSchemaFilesFoldersInfo. Parameters ---------- - folders: List[GrantaServerApiSchemaFilesFolder] + folders: Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type] The folders of this GrantaServerApiSchemaFilesFoldersInfo. """ self._folders = folders @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +122,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py index 49fbc95b..62d439d4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesMoveFile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesMoveFile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,9 +67,9 @@ def __init__( Parameters ---------- - folder_guid: str + folder_guid: str """ - self._folder_guid: str = None # type: ignore[assignment] + self._folder_guid: str self.folder_guid = folder_guid @@ -93,12 +93,16 @@ def folder_guid(self, folder_guid: "str") -> None: folder_guid: str The folder_guid of this GrantaServerApiSchemaFilesMoveFile. """ + # Field is not nullable if folder_guid is None: raise ValueError("Invalid value for 'folder_guid', must not be 'None'") + # Field is required + if folder_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'folder_guid', must not be 'Unset'") self._folder_guid = folder_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -115,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py index c331b700..f8044a80 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesMoveFolder(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesMoveFolder(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,9 +67,9 @@ def __init__( Parameters ---------- - parent_guid: str + parent_guid: str """ - self._parent_guid: str = None # type: ignore[assignment] + self._parent_guid: str self.parent_guid = parent_guid @@ -93,12 +93,16 @@ def parent_guid(self, parent_guid: "str") -> None: parent_guid: str The parent_guid of this GrantaServerApiSchemaFilesMoveFolder. """ + # Field is not nullable if parent_guid is None: raise ValueError("Invalid value for 'parent_guid', must not be 'None'") + # Field is required + if parent_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parent_guid', must not be 'Unset'") self._parent_guid = parent_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -115,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py index 46da3118..8a726de1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesUpdateFile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesUpdateFile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,103 @@ class GrantaServerApiSchemaFilesUpdateFile(ModelBase): # type: ignore[misc] def __init__( self, *, - description: "Optional[str]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaFilesUpdateFile - a model defined in Swagger Parameters ---------- - description: str, optional - guid: str, optional - name: str, optional + description: str, optional + guid: str, optional + name: str, optional """ - self._description = None - self._name = None - self._guid = None + self._description: Union[str, None, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if description is not None: + if description is not Unset: self.description = description - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSchemaFilesUpdateFile. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaFilesUpdateFile. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaFilesUpdateFile. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaFilesUpdateFile. """ self._description = description @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaFilesUpdateFile. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaFilesUpdateFile. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaFilesUpdateFile. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaFilesUpdateFile. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaFilesUpdateFile. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaFilesUpdateFile. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaFilesUpdateFile. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaFilesUpdateFile. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py index d42ca451..7824850f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaFilesUpdateFolder(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaFilesUpdateFolder(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiSchemaFilesUpdateFolder(ModelBase): # type: ignore[misc] def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaFilesUpdateFolder - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional + guid: str, optional + name: str, optional """ - self._name = None - self._guid = None + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaFilesUpdateFolder. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaFilesUpdateFolder. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaFilesUpdateFolder. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaFilesUpdateFolder. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaFilesUpdateFolder. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaFilesUpdateFolder. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaFilesUpdateFolder. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaFilesUpdateFolder. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py index 09a55403..f51ba211 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsCreateLayout(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsCreateLayout(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,20 +64,20 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsCreateLayout - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional + name: str + guid: str, optional """ - self._name: str = None # type: ignore[assignment] - self._guid = None + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -100,34 +100,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaLayoutsCreateLayout. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaLayoutsCreateLayout. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsCreateLayout. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsCreateLayout. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsCreateLayout. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -144,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py index 74843f5d..dea8900f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsCreateLayoutSection(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsCreateLayoutSection(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,20 +64,20 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsCreateLayoutSection - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional + name: str + guid: str, optional """ - self._name: str = None # type: ignore[assignment] - self._guid = None + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -100,34 +100,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaLayoutsCreateLayoutSection. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaLayoutsCreateLayoutSection. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsCreateLayoutSection. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsCreateLayoutSection. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsCreateLayoutSection. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -144,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py index e26c29f1..22f6cbe3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_section import ( GrantaServerApiSchemaLayoutsLayoutSection, ) # noqa: F401 @@ -86,15 +86,15 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - section_items: List[GrantaServerApiSchemaLayoutsLayoutItem] - section_detail_type: str + display_names: Dict[str, str] + guid: str + name: str + section_items: List[GrantaServerApiSchemaLayoutsLayoutItem] + section_detail_type: str """ super().__init__(display_names=display_names, guid=guid, name=name) - self._section_detail_type: str = None # type: ignore[assignment] - self._section_items: List[GrantaServerApiSchemaLayoutsLayoutItem] = None # type: ignore[assignment] + self._section_detail_type: str + self._section_items: List[GrantaServerApiSchemaLayoutsLayoutItem] self.section_detail_type = section_detail_type self.section_items = section_items @@ -119,10 +119,16 @@ def section_detail_type(self, section_detail_type: "str") -> None: section_detail_type: str The section_detail_type of this GrantaServerApiSchemaLayoutsFullLayoutSection. """ + # Field is not nullable if section_detail_type is None: raise ValueError( "Invalid value for 'section_detail_type', must not be 'None'" ) + # Field is required + if section_detail_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'section_detail_type', must not be 'Unset'" + ) self._section_detail_type = section_detail_type @property @@ -131,7 +137,7 @@ def section_items(self) -> "List[GrantaServerApiSchemaLayoutsLayoutItem]": Returns ------- - list[GrantaServerApiSchemaLayoutsLayoutItem] + List[GrantaServerApiSchemaLayoutsLayoutItem] The section_items of this GrantaServerApiSchemaLayoutsFullLayoutSection. """ return self._section_items @@ -147,12 +153,16 @@ def section_items( section_items: List[GrantaServerApiSchemaLayoutsLayoutItem] The section_items of this GrantaServerApiSchemaLayoutsFullLayoutSection. """ + # Field is not nullable if section_items is None: raise ValueError("Invalid value for 'section_items', must not be 'None'") + # Field is required + if section_items is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'section_items', must not be 'Unset'") self._section_items = section_items @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -169,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py index 5f19b16a..f980d9df 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsLayout(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsLayout(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,15 +78,15 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - sections: List[GrantaServerApiSchemaLayoutsLayoutSection] + display_names: Dict[str, str] + guid: str + name: str + sections: List[GrantaServerApiSchemaLayoutsLayoutSection] """ - self._sections: List[GrantaServerApiSchemaLayoutsLayoutSection] = None # type: ignore[assignment] - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._sections: List[GrantaServerApiSchemaLayoutsLayoutSection] + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.sections = sections self.display_names = display_names @@ -99,7 +99,7 @@ def sections(self) -> "List[GrantaServerApiSchemaLayoutsLayoutSection]": Returns ------- - list[GrantaServerApiSchemaLayoutsLayoutSection] + List[GrantaServerApiSchemaLayoutsLayoutSection] The sections of this GrantaServerApiSchemaLayoutsLayout. """ return self._sections @@ -115,8 +115,12 @@ def sections( sections: List[GrantaServerApiSchemaLayoutsLayoutSection] The sections of this GrantaServerApiSchemaLayoutsLayout. """ + # Field is not nullable if sections is None: raise ValueError("Invalid value for 'sections', must not be 'None'") + # Field is required + if sections is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'sections', must not be 'Unset'") self._sections = sections @property @@ -125,7 +129,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaLayoutsLayout. """ return self._display_names @@ -139,8 +143,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaLayoutsLayout. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -163,8 +171,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaLayoutsLayout. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -187,12 +199,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaLayoutsLayout. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -209,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py index fedc051e..9fa9e384 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_item import ( GrantaServerApiSchemaLayoutsLayoutItem, ) # noqa: F401 @@ -93,40 +93,44 @@ def __init__( required: "bool", underlying_entity_guid: "str", item_type: "str" = "attribute", - meta_attributes: "Optional[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem]]" = None, - tabular_columns: "Optional[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn]]" = None, + meta_attributes: "Union[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type]" = Unset, + tabular_columns: "Union[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsLayoutAttributeItem - a model defined in Swagger Parameters ---------- - attribute_type: GrantaServerApiAttributeType - guid: str - name: str - read_only: bool - required: bool - underlying_entity_guid: str - item_type: str - meta_attributes: List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], optional - tabular_columns: List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], optional + attribute_type: GrantaServerApiAttributeType + guid: str + name: str + read_only: bool + required: bool + underlying_entity_guid: str + item_type: str + meta_attributes: List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], optional + tabular_columns: List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], optional """ super().__init__( guid=guid, name=name, underlying_entity_guid=underlying_entity_guid ) - self._item_type: str = None # type: ignore[assignment] - self._attribute_type: GrantaServerApiAttributeType = None # type: ignore[assignment] - self._required: bool = None # type: ignore[assignment] - self._read_only: bool = None # type: ignore[assignment] - self._meta_attributes = None - self._tabular_columns = None + self._item_type: str + self._attribute_type: GrantaServerApiAttributeType + self._required: bool + self._read_only: bool + self._meta_attributes: Union[ + List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type + ] = Unset + self._tabular_columns: Union[ + List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type + ] = Unset self.item_type = item_type self.attribute_type = attribute_type self.required = required self.read_only = read_only - if meta_attributes is not None: + if meta_attributes is not Unset: self.meta_attributes = meta_attributes - if tabular_columns is not None: + if tabular_columns is not Unset: self.tabular_columns = tabular_columns @property @@ -149,8 +153,12 @@ def item_type(self, item_type: "str") -> None: item_type: str The item_type of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ + # Field is not nullable if item_type is None: raise ValueError("Invalid value for 'item_type', must not be 'None'") + # Field is required + if item_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'item_type', must not be 'Unset'") self._item_type = item_type @property @@ -173,8 +181,12 @@ def attribute_type(self, attribute_type: "GrantaServerApiAttributeType") -> None attribute_type: GrantaServerApiAttributeType The attribute_type of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ + # Field is not nullable if attribute_type is None: raise ValueError("Invalid value for 'attribute_type', must not be 'None'") + # Field is required + if attribute_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attribute_type', must not be 'Unset'") self._attribute_type = attribute_type @property @@ -197,8 +209,12 @@ def required(self, required: "bool") -> None: required: bool The required of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ + # Field is not nullable if required is None: raise ValueError("Invalid value for 'required', must not be 'None'") + # Field is required + if required is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'required', must not be 'Unset'") self._required = required @property @@ -221,19 +237,25 @@ def read_only(self, read_only: "bool") -> None: read_only: bool The read_only of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ + # Field is not nullable if read_only is None: raise ValueError("Invalid value for 'read_only', must not be 'None'") + # Field is required + if read_only is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'read_only', must not be 'Unset'") self._read_only = read_only @property def meta_attributes( self, - ) -> "Optional[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem]]": + ) -> ( + "Union[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type]" + ): """Gets the meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Returns ------- - list[GrantaServerApiSchemaLayoutsLayoutAttributeItem] + Union[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type] The meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ return self._meta_attributes @@ -241,13 +263,13 @@ def meta_attributes( @meta_attributes.setter def meta_attributes( self, - meta_attributes: "Optional[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem]]", + meta_attributes: "Union[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type]", ) -> None: """Sets the meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Parameters ---------- - meta_attributes: List[GrantaServerApiSchemaLayoutsLayoutAttributeItem] + meta_attributes: Union[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type] The meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ self._meta_attributes = meta_attributes @@ -255,12 +277,14 @@ def meta_attributes( @property def tabular_columns( self, - ) -> "Optional[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn]]": + ) -> ( + "Union[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type]" + ): """Gets the tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Returns ------- - list[GrantaServerApiSchemaLayoutsLayoutTabularColumn] + Union[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type] The tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ return self._tabular_columns @@ -268,19 +292,19 @@ def tabular_columns( @tabular_columns.setter def tabular_columns( self, - tabular_columns: "Optional[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn]]", + tabular_columns: "Union[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type]", ) -> None: """Sets the tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Parameters ---------- - tabular_columns: List[GrantaServerApiSchemaLayoutsLayoutTabularColumn] + tabular_columns: Union[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type] The tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ self._tabular_columns = tabular_columns @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -297,7 +321,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py index 91090a26..922fed67 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsLayoutItem(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsLayoutItem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,13 +80,13 @@ def __init__( Parameters ---------- - guid: str - name: str - underlying_entity_guid: str + guid: str + name: str + underlying_entity_guid: str """ - self._underlying_entity_guid: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._underlying_entity_guid: str + self._name: str + self._guid: str self.underlying_entity_guid = underlying_entity_guid self.name = name @@ -112,10 +112,16 @@ def underlying_entity_guid(self, underlying_entity_guid: "str") -> None: underlying_entity_guid: str The underlying_entity_guid of this GrantaServerApiSchemaLayoutsLayoutItem. """ + # Field is not nullable if underlying_entity_guid is None: raise ValueError( "Invalid value for 'underlying_entity_guid', must not be 'None'" ) + # Field is required + if underlying_entity_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'underlying_entity_guid', must not be 'Unset'" + ) self._underlying_entity_guid = underlying_entity_guid @property @@ -138,8 +144,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaLayoutsLayoutItem. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -162,12 +172,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaLayoutsLayoutItem. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -189,7 +203,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py index 92f82da4..9397919b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_item import ( GrantaServerApiSchemaLayoutsLayoutItem, ) # noqa: F401 @@ -94,45 +94,47 @@ def __init__( target_table: "str", underlying_entity_guid: "str", item_type: "str" = "link", - next_link: "Optional[GrantaServerApiSchemaLayoutsLayoutLinkItem]" = None, - target_database: "Optional[str]" = None, - target_database_version: "Optional[str]" = None, + next_link: "Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type]" = Unset, + target_database: "Union[str, None, Unset_Type]" = Unset, + target_database_version: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsLayoutLinkItem - a model defined in Swagger Parameters ---------- - forwards: bool - guid: str - link_type: GrantaServerApiSchemaLayoutsLayoutItemLinkType - name: str - target_table: str - underlying_entity_guid: str - item_type: str - next_link: GrantaServerApiSchemaLayoutsLayoutLinkItem, optional - target_database: str, optional - target_database_version: str, optional + forwards: bool + guid: str + link_type: GrantaServerApiSchemaLayoutsLayoutItemLinkType + name: str + target_table: str + underlying_entity_guid: str + item_type: str + next_link: GrantaServerApiSchemaLayoutsLayoutLinkItem, optional + target_database: str, optional + target_database_version: str, optional """ super().__init__( guid=guid, name=name, underlying_entity_guid=underlying_entity_guid ) - self._item_type: str = None # type: ignore[assignment] - self._link_type: GrantaServerApiSchemaLayoutsLayoutItemLinkType = None # type: ignore[assignment] - self._target_database = None - self._target_database_version = None - self._target_table: str = None # type: ignore[assignment] - self._forwards: bool = None # type: ignore[assignment] - self._next_link = None + self._item_type: str + self._link_type: GrantaServerApiSchemaLayoutsLayoutItemLinkType + self._target_database: Union[str, None, Unset_Type] = Unset + self._target_database_version: Union[str, None, Unset_Type] = Unset + self._target_table: str + self._forwards: bool + self._next_link: Union[ + GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type + ] = Unset self.item_type = item_type self.link_type = link_type - if target_database is not None: + if target_database is not Unset: self.target_database = target_database - if target_database_version is not None: + if target_database_version is not Unset: self.target_database_version = target_database_version self.target_table = target_table self.forwards = forwards - if next_link is not None: + if next_link is not Unset: self.next_link = next_link @property @@ -155,8 +157,12 @@ def item_type(self, item_type: "str") -> None: item_type: str The item_type of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ + # Field is not nullable if item_type is None: raise ValueError("Invalid value for 'item_type', must not be 'None'") + # Field is required + if item_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'item_type', must not be 'Unset'") self._item_type = item_type @property @@ -181,50 +187,56 @@ def link_type( link_type: GrantaServerApiSchemaLayoutsLayoutItemLinkType The link_type of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ + # Field is not nullable if link_type is None: raise ValueError("Invalid value for 'link_type', must not be 'None'") + # Field is required + if link_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_type', must not be 'Unset'") self._link_type = link_type @property - def target_database(self) -> "Optional[str]": + def target_database(self) -> "Union[str, None, Unset_Type]": """Gets the target_database of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Returns ------- - str + Union[str, None, Unset_Type] The target_database of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ return self._target_database @target_database.setter - def target_database(self, target_database: "Optional[str]") -> None: + def target_database(self, target_database: "Union[str, None, Unset_Type]") -> None: """Sets the target_database of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Parameters ---------- - target_database: str + target_database: Union[str, None, Unset_Type] The target_database of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ self._target_database = target_database @property - def target_database_version(self) -> "Optional[str]": + def target_database_version(self) -> "Union[str, None, Unset_Type]": """Gets the target_database_version of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Returns ------- - str + Union[str, None, Unset_Type] The target_database_version of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ return self._target_database_version @target_database_version.setter - def target_database_version(self, target_database_version: "Optional[str]") -> None: + def target_database_version( + self, target_database_version: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_database_version of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Parameters ---------- - target_database_version: str + target_database_version: Union[str, None, Unset_Type] The target_database_version of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ self._target_database_version = target_database_version @@ -249,8 +261,12 @@ def target_table(self, target_table: "str") -> None: target_table: str The target_table of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ + # Field is not nullable if target_table is None: raise ValueError("Invalid value for 'target_table', must not be 'None'") + # Field is required + if target_table is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'target_table', must not be 'Unset'") self._target_table = target_table @property @@ -273,36 +289,45 @@ def forwards(self, forwards: "bool") -> None: forwards: bool The forwards of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ + # Field is not nullable if forwards is None: raise ValueError("Invalid value for 'forwards', must not be 'None'") + # Field is required + if forwards is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'forwards', must not be 'Unset'") self._forwards = forwards @property - def next_link(self) -> "Optional[GrantaServerApiSchemaLayoutsLayoutLinkItem]": + def next_link( + self, + ) -> "Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type]": """Gets the next_link of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Returns ------- - GrantaServerApiSchemaLayoutsLayoutLinkItem + Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type] The next_link of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ return self._next_link @next_link.setter def next_link( - self, next_link: "Optional[GrantaServerApiSchemaLayoutsLayoutLinkItem]" + self, next_link: "Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type]" ) -> None: """Sets the next_link of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Parameters ---------- - next_link: GrantaServerApiSchemaLayoutsLayoutLinkItem + next_link: Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type] The next_link of this GrantaServerApiSchemaLayoutsLayoutLinkItem. """ + # Field is not nullable + if next_link is None: + raise ValueError("Invalid value for 'next_link', must not be 'None'") self._next_link = next_link @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -319,7 +344,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py index c0451240..4027fa6f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsLayoutSection(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsLayoutSection(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,13 +80,13 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str + display_names: Dict[str, str] + guid: str + name: str """ - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.display_names = display_names self.name = name @@ -98,7 +98,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaLayoutsLayoutSection. """ return self._display_names @@ -112,8 +112,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaLayoutsLayoutSection. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -136,8 +140,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaLayoutsLayoutSection. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -160,12 +168,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaLayoutsLayoutSection. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -187,7 +199,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py index b298ae82..f14d91ab 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsLayoutSectionsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsLayoutSectionsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiSchemaLayoutsLayoutSectionsInfo(ModelBase): # type: ignore def __init__( self, *, - layout_sections: "Optional[List[GrantaServerApiSchemaLayoutsLayoutSection]]" = None, + layout_sections: "Union[List[GrantaServerApiSchemaLayoutsLayoutSection], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsLayoutSectionsInfo - a model defined in Swagger Parameters ---------- - layout_sections: List[GrantaServerApiSchemaLayoutsLayoutSection], optional + layout_sections: List[GrantaServerApiSchemaLayoutsLayoutSection], optional """ - self._layout_sections = None + self._layout_sections: Union[ + List[GrantaServerApiSchemaLayoutsLayoutSection], None, Unset_Type + ] = Unset - if layout_sections is not None: + if layout_sections is not Unset: self.layout_sections = layout_sections @property def layout_sections( self, - ) -> "Optional[List[GrantaServerApiSchemaLayoutsLayoutSection]]": + ) -> "Union[List[GrantaServerApiSchemaLayoutsLayoutSection], None, Unset_Type]": """Gets the layout_sections of this GrantaServerApiSchemaLayoutsLayoutSectionsInfo. Returns ------- - list[GrantaServerApiSchemaLayoutsLayoutSection] + Union[List[GrantaServerApiSchemaLayoutsLayoutSection], None, Unset_Type] The layout_sections of this GrantaServerApiSchemaLayoutsLayoutSectionsInfo. """ return self._layout_sections @@ -92,19 +94,19 @@ def layout_sections( @layout_sections.setter def layout_sections( self, - layout_sections: "Optional[List[GrantaServerApiSchemaLayoutsLayoutSection]]", + layout_sections: "Union[List[GrantaServerApiSchemaLayoutsLayoutSection], None, Unset_Type]", ) -> None: """Sets the layout_sections of this GrantaServerApiSchemaLayoutsLayoutSectionsInfo. Parameters ---------- - layout_sections: List[GrantaServerApiSchemaLayoutsLayoutSection] + layout_sections: Union[List[GrantaServerApiSchemaLayoutsLayoutSection], None, Unset_Type] The layout_sections of this GrantaServerApiSchemaLayoutsLayoutSectionsInfo. """ self._layout_sections = layout_sections @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py index 3220a669..f2be45ba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsLayoutTabularColumn(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsLayoutTabularColumn(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,15 +78,15 @@ def __init__( Parameters ---------- - column_type: GrantaServerApiSchemaTabularColumnsTabularColumnDtoType - guid: str - name: str - tabular_column_guid: str + column_type: GrantaServerApiSchemaTabularColumnsTabularColumnDtoType + guid: str + name: str + tabular_column_guid: str """ - self._column_type: GrantaServerApiSchemaTabularColumnsTabularColumnDtoType = None # type: ignore[assignment] - self._tabular_column_guid: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._column_type: GrantaServerApiSchemaTabularColumnsTabularColumnDtoType + self._tabular_column_guid: str + self._name: str + self._guid: str self.column_type = column_type self.tabular_column_guid = tabular_column_guid @@ -115,8 +115,12 @@ def column_type( column_type: GrantaServerApiSchemaTabularColumnsTabularColumnDtoType The column_type of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -139,10 +143,16 @@ def tabular_column_guid(self, tabular_column_guid: "str") -> None: tabular_column_guid: str The tabular_column_guid of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. """ + # Field is not nullable if tabular_column_guid is None: raise ValueError( "Invalid value for 'tabular_column_guid', must not be 'None'" ) + # Field is required + if tabular_column_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'tabular_column_guid', must not be 'Unset'" + ) self._tabular_column_guid = tabular_column_guid @property @@ -165,8 +175,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -189,12 +203,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -211,7 +229,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py index 83fdc243..33fdb490 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsLayoutsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsLayoutsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiSchemaLayoutsLayoutsInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - layouts: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimLayout]]" = None, + layouts: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsLayoutsInfo - a model defined in Swagger Parameters ---------- - layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout], optional + layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout], optional """ - self._layouts = None + self._layouts: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type + ] = Unset - if layouts is not None: + if layouts is not Unset: self.layouts = layouts @property - def layouts(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimLayout]]": + def layouts( + self, + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type]": """Gets the layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimLayout] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type] The layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. """ return self._layouts @layouts.setter def layouts( - self, layouts: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimLayout]]" + self, + layouts: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type]", ) -> None: """Sets the layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. Parameters ---------- - layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] + layouts: Union[List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type] The layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. """ self._layouts = layouts @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py index 40666a79..71667488 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( GrantaServerApiSchemaLayoutsNewLayoutItem, ) # noqa: F401 @@ -76,22 +76,24 @@ def __init__( *, association_chain_links: "List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink]", association_chain_name: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, item_type: "str" = "associationChain", ) -> None: """GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem - a model defined in Swagger Parameters ---------- - association_chain_links: List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] - association_chain_name: str - guid: str, optional - item_type: str + association_chain_links: List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] + association_chain_name: str + guid: str, optional + item_type: str """ super().__init__(guid=guid) - self._item_type: str = None # type: ignore[assignment] - self._association_chain_name: str = None # type: ignore[assignment] - self._association_chain_links: List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] = None # type: ignore[assignment] + self._item_type: str + self._association_chain_name: str + self._association_chain_links: List[ + GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink + ] self.item_type = item_type self.association_chain_name = association_chain_name @@ -117,8 +119,12 @@ def item_type(self, item_type: "str") -> None: item_type: str The item_type of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem. """ + # Field is not nullable if item_type is None: raise ValueError("Invalid value for 'item_type', must not be 'None'") + # Field is required + if item_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'item_type', must not be 'Unset'") self._item_type = item_type @property @@ -141,10 +147,16 @@ def association_chain_name(self, association_chain_name: "str") -> None: association_chain_name: str The association_chain_name of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem. """ + # Field is not nullable if association_chain_name is None: raise ValueError( "Invalid value for 'association_chain_name', must not be 'None'" ) + # Field is required + if association_chain_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'association_chain_name', must not be 'Unset'" + ) self._association_chain_name = association_chain_name @property @@ -155,7 +167,7 @@ def association_chain_links( Returns ------- - list[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] + List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] The association_chain_links of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem. """ return self._association_chain_links @@ -172,14 +184,20 @@ def association_chain_links( association_chain_links: List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] The association_chain_links of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem. """ + # Field is not nullable if association_chain_links is None: raise ValueError( "Invalid value for 'association_chain_links', must not be 'None'" ) + # Field is required + if association_chain_links is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'association_chain_links', must not be 'Unset'" + ) self._association_chain_links = association_chain_links @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -196,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py index cb6b0b56..47f91705 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,45 +67,48 @@ def __init__( *, source_database_version_guid: "str", tabular_attribute_guid: "str", - forwards: "Optional[bool]" = None, + forwards: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink - a model defined in Swagger Parameters ---------- - source_database_version_guid: str - tabular_attribute_guid: str - forwards: bool, optional + source_database_version_guid: str + tabular_attribute_guid: str + forwards: bool, optional """ - self._forwards = None - self._source_database_version_guid: str = None # type: ignore[assignment] - self._tabular_attribute_guid: str = None # type: ignore[assignment] + self._forwards: Union[bool, Unset_Type] = Unset + self._source_database_version_guid: str + self._tabular_attribute_guid: str - if forwards is not None: + if forwards is not Unset: self.forwards = forwards self.source_database_version_guid = source_database_version_guid self.tabular_attribute_guid = tabular_attribute_guid @property - def forwards(self) -> "Optional[bool]": + def forwards(self) -> "Union[bool, Unset_Type]": """Gets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. Returns ------- - bool + Union[bool, Unset_Type] The forwards of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. """ return self._forwards @forwards.setter - def forwards(self, forwards: "Optional[bool]") -> None: + def forwards(self, forwards: "Union[bool, Unset_Type]") -> None: """Sets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. Parameters ---------- - forwards: bool + forwards: Union[bool, Unset_Type] The forwards of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. """ + # Field is not nullable + if forwards is None: + raise ValueError("Invalid value for 'forwards', must not be 'None'") self._forwards = forwards @property @@ -128,10 +131,16 @@ def source_database_version_guid(self, source_database_version_guid: "str") -> N source_database_version_guid: str The source_database_version_guid of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. """ + # Field is not nullable if source_database_version_guid is None: raise ValueError( "Invalid value for 'source_database_version_guid', must not be 'None'" ) + # Field is required + if source_database_version_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'source_database_version_guid', must not be 'Unset'" + ) self._source_database_version_guid = source_database_version_guid @property @@ -154,14 +163,20 @@ def tabular_attribute_guid(self, tabular_attribute_guid: "str") -> None: tabular_attribute_guid: str The tabular_attribute_guid of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. """ + # Field is not nullable if tabular_attribute_guid is None: raise ValueError( "Invalid value for 'tabular_attribute_guid', must not be 'None'" ) + # Field is required + if tabular_attribute_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'tabular_attribute_guid', must not be 'Unset'" + ) self._tabular_attribute_guid = tabular_attribute_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -178,7 +193,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py index 42be6256..cf9b2eec 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( GrantaServerApiSchemaLayoutsNewLayoutItem, ) # noqa: F401 @@ -81,42 +81,44 @@ def __init__( self, *, attribute_guid: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, item_type: "str" = "attribute", - meta_attributes: "Optional[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem]]" = None, - read_only: "Optional[bool]" = None, - required: "Optional[bool]" = None, - tabular_column_guids: "Optional[List[str]]" = None, + meta_attributes: "Union[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], None, Unset_Type]" = Unset, + read_only: "Union[bool, Unset_Type]" = Unset, + required: "Union[bool, Unset_Type]" = Unset, + tabular_column_guids: "Union[List[str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsNewLayoutAttributeItem - a model defined in Swagger Parameters ---------- - attribute_guid: str - guid: str, optional - item_type: str - meta_attributes: List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], optional - read_only: bool, optional - required: bool, optional - tabular_column_guids: List[str], optional + attribute_guid: str + guid: str, optional + item_type: str + meta_attributes: List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], optional + read_only: bool, optional + required: bool, optional + tabular_column_guids: List[str], optional """ super().__init__(guid=guid) - self._item_type: str = None # type: ignore[assignment] - self._attribute_guid: str = None # type: ignore[assignment] - self._required = None - self._read_only = None - self._meta_attributes = None - self._tabular_column_guids = None + self._item_type: str + self._attribute_guid: str + self._required: Union[bool, Unset_Type] = Unset + self._read_only: Union[bool, Unset_Type] = Unset + self._meta_attributes: Union[ + List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], None, Unset_Type + ] = Unset + self._tabular_column_guids: Union[List[str], None, Unset_Type] = Unset self.item_type = item_type self.attribute_guid = attribute_guid - if required is not None: + if required is not Unset: self.required = required - if read_only is not None: + if read_only is not Unset: self.read_only = read_only - if meta_attributes is not None: + if meta_attributes is not Unset: self.meta_attributes = meta_attributes - if tabular_column_guids is not None: + if tabular_column_guids is not Unset: self.tabular_column_guids = tabular_column_guids @property @@ -139,8 +141,12 @@ def item_type(self, item_type: "str") -> None: item_type: str The item_type of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ + # Field is not nullable if item_type is None: raise ValueError("Invalid value for 'item_type', must not be 'None'") + # Field is required + if item_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'item_type', must not be 'Unset'") self._item_type = item_type @property @@ -163,63 +169,73 @@ def attribute_guid(self, attribute_guid: "str") -> None: attribute_guid: str The attribute_guid of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ + # Field is not nullable if attribute_guid is None: raise ValueError("Invalid value for 'attribute_guid', must not be 'None'") + # Field is required + if attribute_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attribute_guid', must not be 'Unset'") self._attribute_guid = attribute_guid @property - def required(self) -> "Optional[bool]": + def required(self) -> "Union[bool, Unset_Type]": """Gets the required of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns ------- - bool + Union[bool, Unset_Type] The required of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ return self._required @required.setter - def required(self, required: "Optional[bool]") -> None: + def required(self, required: "Union[bool, Unset_Type]") -> None: """Sets the required of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters ---------- - required: bool + required: Union[bool, Unset_Type] The required of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ + # Field is not nullable + if required is None: + raise ValueError("Invalid value for 'required', must not be 'None'") self._required = required @property - def read_only(self) -> "Optional[bool]": + def read_only(self) -> "Union[bool, Unset_Type]": """Gets the read_only of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns ------- - bool + Union[bool, Unset_Type] The read_only of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ return self._read_only @read_only.setter - def read_only(self, read_only: "Optional[bool]") -> None: + def read_only(self, read_only: "Union[bool, Unset_Type]") -> None: """Sets the read_only of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters ---------- - read_only: bool + read_only: Union[bool, Unset_Type] The read_only of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ + # Field is not nullable + if read_only is None: + raise ValueError("Invalid value for 'read_only', must not be 'None'") self._read_only = read_only @property def meta_attributes( self, - ) -> "Optional[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem]]": + ) -> "Union[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], None, Unset_Type]": """Gets the meta_attributes of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns ------- - list[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem] + Union[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], None, Unset_Type] The meta_attributes of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ return self._meta_attributes @@ -227,41 +243,43 @@ def meta_attributes( @meta_attributes.setter def meta_attributes( self, - meta_attributes: "Optional[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem]]", + meta_attributes: "Union[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], None, Unset_Type]", ) -> None: """Sets the meta_attributes of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters ---------- - meta_attributes: List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem] + meta_attributes: Union[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem], None, Unset_Type] The meta_attributes of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ self._meta_attributes = meta_attributes @property - def tabular_column_guids(self) -> "Optional[List[str]]": + def tabular_column_guids(self) -> "Union[List[str], None, Unset_Type]": """Gets the tabular_column_guids of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The tabular_column_guids of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ return self._tabular_column_guids @tabular_column_guids.setter - def tabular_column_guids(self, tabular_column_guids: "Optional[List[str]]") -> None: + def tabular_column_guids( + self, tabular_column_guids: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the tabular_column_guids of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters ---------- - tabular_column_guids: List[str] + tabular_column_guids: Union[List[str], None, Unset_Type] The tabular_column_guids of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ self._tabular_column_guids = tabular_column_guids @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -278,7 +296,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py index c4e3c12c..f86f0e96 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( GrantaServerApiSchemaLayoutsNewLayoutItem, ) # noqa: F401 @@ -77,24 +77,24 @@ def __init__( link_group_guid: "str", source_database_guid: "str", source_table_guid: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, item_type: "str" = "crossDatabaseLink", ) -> None: """GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem - a model defined in Swagger Parameters ---------- - link_group_guid: str - source_database_guid: str - source_table_guid: str - guid: str, optional - item_type: str + link_group_guid: str + source_database_guid: str + source_table_guid: str + guid: str, optional + item_type: str """ super().__init__(guid=guid) - self._item_type: str = None # type: ignore[assignment] - self._source_database_guid: str = None # type: ignore[assignment] - self._source_table_guid: str = None # type: ignore[assignment] - self._link_group_guid: str = None # type: ignore[assignment] + self._item_type: str + self._source_database_guid: str + self._source_table_guid: str + self._link_group_guid: str self.item_type = item_type self.source_database_guid = source_database_guid @@ -121,8 +121,12 @@ def item_type(self, item_type: "str") -> None: item_type: str The item_type of this GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem. """ + # Field is not nullable if item_type is None: raise ValueError("Invalid value for 'item_type', must not be 'None'") + # Field is required + if item_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'item_type', must not be 'Unset'") self._item_type = item_type @property @@ -145,10 +149,16 @@ def source_database_guid(self, source_database_guid: "str") -> None: source_database_guid: str The source_database_guid of this GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem. """ + # Field is not nullable if source_database_guid is None: raise ValueError( "Invalid value for 'source_database_guid', must not be 'None'" ) + # Field is required + if source_database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'source_database_guid', must not be 'Unset'" + ) self._source_database_guid = source_database_guid @property @@ -171,10 +181,16 @@ def source_table_guid(self, source_table_guid: "str") -> None: source_table_guid: str The source_table_guid of this GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem. """ + # Field is not nullable if source_table_guid is None: raise ValueError( "Invalid value for 'source_table_guid', must not be 'None'" ) + # Field is required + if source_table_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'source_table_guid', must not be 'Unset'" + ) self._source_table_guid = source_table_guid @property @@ -197,12 +213,16 @@ def link_group_guid(self, link_group_guid: "str") -> None: link_group_guid: str The link_group_guid of this GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem. """ + # Field is not nullable if link_group_guid is None: raise ValueError("Invalid value for 'link_group_guid', must not be 'None'") + # Field is required + if link_group_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_group_guid', must not be 'Unset'") self._link_group_guid = link_group_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -219,7 +239,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py index ac622230..44baa116 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,43 +71,46 @@ class GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): # type: ignore[misc def __init__( self, *, - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsNewLayoutItem - a model defined in Swagger Parameters ---------- - guid: str, optional + guid: str, optional """ - self._guid = None + self._guid: Union[str, Unset_Type] = Unset - if guid is not None: + if guid is not Unset: self.guid = guid @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaLayoutsNewLayoutItem. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsNewLayoutItem. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsNewLayoutItem. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsNewLayoutItem. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -129,7 +132,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py index 85cb39ec..cc17c7aa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( GrantaServerApiSchemaLayoutsNewLayoutItem, ) # noqa: F401 @@ -71,20 +71,20 @@ def __init__( self, *, link_group_guid: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, item_type: "str" = "recordLink", ) -> None: """GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem - a model defined in Swagger Parameters ---------- - link_group_guid: str - guid: str, optional - item_type: str + link_group_guid: str + guid: str, optional + item_type: str """ super().__init__(guid=guid) - self._item_type: str = None # type: ignore[assignment] - self._link_group_guid: str = None # type: ignore[assignment] + self._item_type: str + self._link_group_guid: str self.item_type = item_type self.link_group_guid = link_group_guid @@ -109,8 +109,12 @@ def item_type(self, item_type: "str") -> None: item_type: str The item_type of this GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem. """ + # Field is not nullable if item_type is None: raise ValueError("Invalid value for 'item_type', must not be 'None'") + # Field is required + if item_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'item_type', must not be 'Unset'") self._item_type = item_type @property @@ -133,12 +137,16 @@ def link_group_guid(self, link_group_guid: "str") -> None: link_group_guid: str The link_group_guid of this GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem. """ + # Field is not nullable if link_group_guid is None: raise ValueError("Invalid value for 'link_group_guid', must not be 'None'") + # Field is required + if link_group_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_group_guid', must not be 'Unset'") self._link_group_guid = link_group_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -155,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py index 5e539ec9..222b66c5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( GrantaServerApiSchemaLayoutsNewLayoutItem, ) # noqa: F401 @@ -73,26 +73,26 @@ def __init__( self, *, link_group_guid: "str", - forwards: "Optional[bool]" = None, - guid: "Optional[str]" = None, + forwards: "Union[bool, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, item_type: "str" = "smartLink", ) -> None: """GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem - a model defined in Swagger Parameters ---------- - link_group_guid: str - forwards: bool, optional - guid: str, optional - item_type: str + link_group_guid: str + forwards: bool, optional + guid: str, optional + item_type: str """ super().__init__(guid=guid) - self._item_type: str = None # type: ignore[assignment] - self._forwards = None - self._link_group_guid: str = None # type: ignore[assignment] + self._item_type: str + self._forwards: Union[bool, Unset_Type] = Unset + self._link_group_guid: str self.item_type = item_type - if forwards is not None: + if forwards is not Unset: self.forwards = forwards self.link_group_guid = link_group_guid @@ -116,30 +116,37 @@ def item_type(self, item_type: "str") -> None: item_type: str The item_type of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. """ + # Field is not nullable if item_type is None: raise ValueError("Invalid value for 'item_type', must not be 'None'") + # Field is required + if item_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'item_type', must not be 'Unset'") self._item_type = item_type @property - def forwards(self) -> "Optional[bool]": + def forwards(self) -> "Union[bool, Unset_Type]": """Gets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. Returns ------- - bool + Union[bool, Unset_Type] The forwards of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. """ return self._forwards @forwards.setter - def forwards(self, forwards: "Optional[bool]") -> None: + def forwards(self, forwards: "Union[bool, Unset_Type]") -> None: """Sets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. Parameters ---------- - forwards: bool + forwards: Union[bool, Unset_Type] The forwards of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. """ + # Field is not nullable + if forwards is None: + raise ValueError("Invalid value for 'forwards', must not be 'None'") self._forwards = forwards @property @@ -162,12 +169,16 @@ def link_group_guid(self, link_group_guid: "str") -> None: link_group_guid: str The link_group_guid of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. """ + # Field is not nullable if link_group_guid is None: raise ValueError("Invalid value for 'link_group_guid', must not be 'None'") + # Field is required + if link_group_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_group_guid', must not be 'Unset'") self._link_group_guid = link_group_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -184,7 +195,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py index 53ccda1b..5d1a58ac 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsReorderSectionsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsReorderSectionsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] """ - self._layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] = None # type: ignore[assignment] + self._layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] self.layout_sections = layout_sections @@ -81,7 +81,7 @@ def layout_sections(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimEntity]" Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The layout_sections of this GrantaServerApiSchemaLayoutsReorderSectionsInfo. """ return self._layout_sections @@ -97,12 +97,16 @@ def layout_sections( layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The layout_sections of this GrantaServerApiSchemaLayoutsReorderSectionsInfo. """ + # Field is not nullable if layout_sections is None: raise ValueError("Invalid value for 'layout_sections', must not be 'None'") + # Field is required + if layout_sections is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'layout_sections', must not be 'Unset'") self._layout_sections = layout_sections @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py index 45c059d6..dbfe7645 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaLayoutsUpdateLayout(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaLayoutsUpdateLayout(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiSchemaLayoutsUpdateLayout(ModelBase): # type: ignore[misc] def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaLayoutsUpdateLayout - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional + guid: str, optional + name: str, optional """ - self._name = None - self._guid = None + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaLayoutsUpdateLayout. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaLayoutsUpdateLayout. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaLayoutsUpdateLayout. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaLayoutsUpdateLayout. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaLayoutsUpdateLayout. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsUpdateLayout. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsUpdateLayout. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaLayoutsUpdateLayout. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py index fe3b0d8c..5bde9124 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersContinuousRange(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersContinuousRange(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,70 @@ class GrantaServerApiSchemaParametersContinuousRange(ModelBase): # type: ignore def __init__( self, *, - high_value: "Optional[float]" = None, - low_value: "Optional[float]" = None, + high_value: "Union[float, None, Unset_Type]" = Unset, + low_value: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersContinuousRange - a model defined in Swagger Parameters ---------- - high_value: float, optional - low_value: float, optional + high_value: float, optional + low_value: float, optional """ - self._low_value = None - self._high_value = None + self._low_value: Union[float, None, Unset_Type] = Unset + self._high_value: Union[float, None, Unset_Type] = Unset - if low_value is not None: + if low_value is not Unset: self.low_value = low_value - if high_value is not None: + if high_value is not Unset: self.high_value = high_value @property - def low_value(self) -> "Optional[float]": + def low_value(self) -> "Union[float, None, Unset_Type]": """Gets the low_value of this GrantaServerApiSchemaParametersContinuousRange. Returns ------- - float + Union[float, None, Unset_Type] The low_value of this GrantaServerApiSchemaParametersContinuousRange. """ return self._low_value @low_value.setter - def low_value(self, low_value: "Optional[float]") -> None: + def low_value(self, low_value: "Union[float, None, Unset_Type]") -> None: """Sets the low_value of this GrantaServerApiSchemaParametersContinuousRange. Parameters ---------- - low_value: float + low_value: Union[float, None, Unset_Type] The low_value of this GrantaServerApiSchemaParametersContinuousRange. """ self._low_value = low_value @property - def high_value(self) -> "Optional[float]": + def high_value(self) -> "Union[float, None, Unset_Type]": """Gets the high_value of this GrantaServerApiSchemaParametersContinuousRange. Returns ------- - float + Union[float, None, Unset_Type] The high_value of this GrantaServerApiSchemaParametersContinuousRange. """ return self._high_value @high_value.setter - def high_value(self, high_value: "Optional[float]") -> None: + def high_value(self, high_value: "Union[float, None, Unset_Type]") -> None: """Sets the high_value of this GrantaServerApiSchemaParametersContinuousRange. Parameters ---------- - high_value: float + high_value: Union[float, None, Unset_Type] The high_value of this GrantaServerApiSchemaParametersContinuousRange. """ self._high_value = high_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py index 9d00ad36..450dc6d5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter import ( GrantaServerApiSchemaParametersCreateParameter, ) # noqa: F401 @@ -81,20 +81,20 @@ def __init__( default_parameter_value_index: "int", name: "str", values: "List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]", - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaParametersCreateDiscreteParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_index: int - name: str - values: List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] - guid: str, optional - help_path: str, optional - type: str + default_parameter_value_index: int + name: str + values: List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] + guid: str, optional + help_path: str, optional + type: str """ super().__init__( default_parameter_value_index=default_parameter_value_index, @@ -102,8 +102,8 @@ def __init__( guid=guid, help_path=help_path, ) - self._values: List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] = None # type: ignore[assignment] - self._type: str = None # type: ignore[assignment] + self._values: List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] + self._type: str self.values = values self.type = type @@ -116,7 +116,7 @@ def values( Returns ------- - list[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] + List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] The values of this GrantaServerApiSchemaParametersCreateDiscreteParameter. """ return self._values @@ -133,8 +133,12 @@ def values( values: List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] The values of this GrantaServerApiSchemaParametersCreateDiscreteParameter. """ + # Field is not nullable if values is None: raise ValueError("Invalid value for 'values', must not be 'None'") + # Field is required + if values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'values', must not be 'Unset'") self._values = values @property @@ -157,12 +161,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersCreateDiscreteParameter. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py index 4b3c84b9..8a3cbb7e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter_value import ( GrantaServerApiSchemaParametersCreateParameterValue, ) # noqa: F401 @@ -71,20 +71,20 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaParametersCreateDiscreteParameterValue - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional - type: str + name: str + guid: str, optional + type: str """ super().__init__(guid=guid) - self._type: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] + self._type: str + self._name: str self.type = type self.name = name @@ -109,8 +109,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersCreateDiscreteParameterValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -133,12 +137,16 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaParametersCreateDiscreteParameterValue. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -155,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py index f463a570..3ce066ba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter import ( GrantaServerApiSchemaParametersCreateParameter, ) # noqa: F401 @@ -95,25 +95,25 @@ def __init__( name: "str", scale_type: "GrantaServerApiSchemaParametersParameterScaleType", values: "List[GrantaServerApiSchemaParametersCreateNumericParameterValue]", - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "numeric", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersCreateNumericParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_index: int - interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType - is_restricted: bool - name: str - scale_type: GrantaServerApiSchemaParametersParameterScaleType - values: List[GrantaServerApiSchemaParametersCreateNumericParameterValue] - guid: str, optional - help_path: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_parameter_value_index: int + interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType + is_restricted: bool + name: str + scale_type: GrantaServerApiSchemaParametersParameterScaleType + values: List[GrantaServerApiSchemaParametersCreateNumericParameterValue] + guid: str, optional + help_path: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( default_parameter_value_index=default_parameter_value_index, @@ -121,16 +121,20 @@ def __init__( guid=guid, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._is_restricted: bool = None # type: ignore[assignment] - self._unit = None - self._values: List[GrantaServerApiSchemaParametersCreateNumericParameterValue] = None # type: ignore[assignment] - self._interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType = None # type: ignore[assignment] - self._scale_type: GrantaServerApiSchemaParametersParameterScaleType = None # type: ignore[assignment] + self._type: str + self._is_restricted: bool + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._values: List[GrantaServerApiSchemaParametersCreateNumericParameterValue] + self._interpolation_type: ( + GrantaServerApiSchemaParametersParameterInterpolationType + ) + self._scale_type: GrantaServerApiSchemaParametersParameterScaleType self.type = type self.is_restricted = is_restricted - if unit is not None: + if unit is not Unset: self.unit = unit self.values = values self.interpolation_type = interpolation_type @@ -156,8 +160,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersCreateNumericParameter. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -180,32 +188,39 @@ def is_restricted(self, is_restricted: "bool") -> None: is_restricted: bool The is_restricted of this GrantaServerApiSchemaParametersCreateNumericParameter. """ + # Field is not nullable if is_restricted is None: raise ValueError("Invalid value for 'is_restricted', must not be 'None'") + # Field is required + if is_restricted is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_restricted', must not be 'Unset'") self._is_restricted = is_restricted @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaParametersCreateNumericParameter. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaParametersCreateNumericParameter. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaParametersCreateNumericParameter. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaParametersCreateNumericParameter. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -216,7 +231,7 @@ def values( Returns ------- - list[GrantaServerApiSchemaParametersCreateNumericParameterValue] + List[GrantaServerApiSchemaParametersCreateNumericParameterValue] The values of this GrantaServerApiSchemaParametersCreateNumericParameter. """ return self._values @@ -232,8 +247,12 @@ def values( values: List[GrantaServerApiSchemaParametersCreateNumericParameterValue] The values of this GrantaServerApiSchemaParametersCreateNumericParameter. """ + # Field is not nullable if values is None: raise ValueError("Invalid value for 'values', must not be 'None'") + # Field is required + if values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'values', must not be 'Unset'") self._values = values @property @@ -261,10 +280,16 @@ def interpolation_type( interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType The interpolation_type of this GrantaServerApiSchemaParametersCreateNumericParameter. """ + # Field is not nullable if interpolation_type is None: raise ValueError( "Invalid value for 'interpolation_type', must not be 'None'" ) + # Field is required + if interpolation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'interpolation_type', must not be 'Unset'" + ) self._interpolation_type = interpolation_type @property @@ -289,12 +314,16 @@ def scale_type( scale_type: GrantaServerApiSchemaParametersParameterScaleType The scale_type of this GrantaServerApiSchemaParametersCreateNumericParameter. """ + # Field is not nullable if scale_type is None: raise ValueError("Invalid value for 'scale_type', must not be 'None'") + # Field is required + if scale_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'scale_type', must not be 'Unset'") self._scale_type = scale_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -311,7 +340,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py index 41f8b27c..973dcf29 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter_value import ( GrantaServerApiSchemaParametersCreateParameterValue, ) # noqa: F401 @@ -73,27 +73,27 @@ def __init__( self, *, value: "float", - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, type: "str" = "numeric", ) -> None: """GrantaServerApiSchemaParametersCreateNumericParameterValue - a model defined in Swagger Parameters ---------- - value: float - guid: str, optional - name: str, optional - type: str + value: float + guid: str, optional + name: str, optional + type: str """ super().__init__(guid=guid) - self._value: float = None # type: ignore[assignment] - self._type: str = None # type: ignore[assignment] - self._name = None + self._value: float + self._type: str + self._name: Union[str, None, Unset_Type] = Unset self.value = value self.type = type - if name is not None: + if name is not Unset: self.name = name @property @@ -116,8 +116,12 @@ def value(self, value: "float") -> None: value: float The value of this GrantaServerApiSchemaParametersCreateNumericParameterValue. """ + # 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 @property @@ -140,34 +144,38 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersCreateNumericParameterValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiSchemaParametersCreateNumericParameterValue. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiSchemaParametersCreateNumericParameterValue. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaParametersCreateNumericParameterValue. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiSchemaParametersCreateNumericParameterValue. """ self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -184,7 +192,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py index 99d801d3..e7e6593f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersCreateParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersCreateParameter(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,48 +76,48 @@ def __init__( *, default_parameter_value_index: "int", name: "str", - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersCreateParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_index: int - name: str - guid: str, optional - help_path: str, optional + default_parameter_value_index: int + name: str + guid: str, optional + help_path: str, optional """ - self._help_path = None - self._default_parameter_value_index: int = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid = None + self._help_path: Union[str, None, Unset_Type] = Unset + self._default_parameter_value_index: int + self._name: str + self._guid: Union[str, Unset_Type] = Unset - if help_path is not None: + if help_path is not Unset: self.help_path = help_path self.default_parameter_value_index = default_parameter_value_index self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def help_path(self) -> "Optional[str]": + def help_path(self) -> "Union[str, None, Unset_Type]": """Gets the help_path of this GrantaServerApiSchemaParametersCreateParameter. Returns ------- - str + Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaParametersCreateParameter. """ return self._help_path @help_path.setter - def help_path(self, help_path: "Optional[str]") -> None: + def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: """Sets the help_path of this GrantaServerApiSchemaParametersCreateParameter. Parameters ---------- - help_path: str + help_path: Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaParametersCreateParameter. """ self._help_path = help_path @@ -144,10 +144,16 @@ def default_parameter_value_index( default_parameter_value_index: int The default_parameter_value_index of this GrantaServerApiSchemaParametersCreateParameter. """ + # Field is not nullable if default_parameter_value_index is None: raise ValueError( "Invalid value for 'default_parameter_value_index', must not be 'None'" ) + # Field is required + if default_parameter_value_index is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_parameter_value_index', must not be 'Unset'" + ) self._default_parameter_value_index = default_parameter_value_index @property @@ -170,34 +176,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaParametersCreateParameter. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaParametersCreateParameter. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersCreateParameter. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersCreateParameter. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersCreateParameter. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -219,7 +232,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py index f89fba3c..ce9d71eb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersCreateParameterValue(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersCreateParameterValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,43 +68,46 @@ class GrantaServerApiSchemaParametersCreateParameterValue(ModelBase): # type: i def __init__( self, *, - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersCreateParameterValue - a model defined in Swagger Parameters ---------- - guid: str, optional + guid: str, optional """ - self._guid = None + self._guid: Union[str, Unset_Type] = Unset - if guid is not None: + if guid is not Unset: self.guid = guid @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaParametersCreateParameterValue. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersCreateParameterValue. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersCreateParameterValue. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersCreateParameterValue. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -126,7 +129,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py index 84305c97..07d41f4a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter import ( GrantaServerApiSchemaParametersParameter, ) # noqa: F401 @@ -85,20 +85,20 @@ def __init__( guid: "str", name: "str", values: "List[GrantaServerApiSchemaParametersDiscreteParameterValue]", - help_path: "Optional[str]" = None, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaParametersDiscreteParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_guid: str - display_names: Dict[str, str] - guid: str - name: str - values: List[GrantaServerApiSchemaParametersDiscreteParameterValue] - help_path: str, optional - type: str + default_parameter_value_guid: str + display_names: Dict[str, str] + guid: str + name: str + values: List[GrantaServerApiSchemaParametersDiscreteParameterValue] + help_path: str, optional + type: str """ super().__init__( default_parameter_value_guid=default_parameter_value_guid, @@ -107,8 +107,8 @@ def __init__( name=name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._values: List[GrantaServerApiSchemaParametersDiscreteParameterValue] = None # type: ignore[assignment] + self._type: str + self._values: List[GrantaServerApiSchemaParametersDiscreteParameterValue] self.type = type self.values = values @@ -133,8 +133,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersDiscreteParameter. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -143,7 +147,7 @@ def values(self) -> "List[GrantaServerApiSchemaParametersDiscreteParameterValue] Returns ------- - list[GrantaServerApiSchemaParametersDiscreteParameterValue] + List[GrantaServerApiSchemaParametersDiscreteParameterValue] The values of this GrantaServerApiSchemaParametersDiscreteParameter. """ return self._values @@ -159,12 +163,16 @@ def values( values: List[GrantaServerApiSchemaParametersDiscreteParameterValue] The values of this GrantaServerApiSchemaParametersDiscreteParameter. """ + # Field is not nullable if values is None: raise ValueError("Invalid value for 'values', must not be 'None'") + # Field is required + if values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'values', must not be 'Unset'") self._values = values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py index a093b27b..176024b9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_content import ( GrantaServerApiSchemaParametersParameterContent, ) # noqa: F401 @@ -77,25 +77,27 @@ def __init__( *, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", parameter_range: "GrantaServerApiSchemaParametersDiscreteRange", - parameter_value: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, + parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaParametersDiscreteParameterContent - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - parameter_range: GrantaServerApiSchemaParametersDiscreteRange - parameter_value: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional - type: str + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter_range: GrantaServerApiSchemaParametersDiscreteRange + parameter_value: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + type: str """ super().__init__(parameter=parameter) - self._type: str = None # type: ignore[assignment] - self._parameter_value = None - self._parameter_range: GrantaServerApiSchemaParametersDiscreteRange = None # type: ignore[assignment] + self._type: str + self._parameter_value: Union[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type + ] = Unset + self._parameter_range: GrantaServerApiSchemaParametersDiscreteRange self.type = type - if parameter_value is not None: + if parameter_value is not Unset: self.parameter_value = parameter_value self.parameter_range = parameter_range @@ -119,19 +121,23 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersDiscreteParameterContent. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property def parameter_value( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the parameter_value of this GrantaServerApiSchemaParametersDiscreteParameterContent. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The parameter_value of this GrantaServerApiSchemaParametersDiscreteParameterContent. """ return self._parameter_value @@ -139,15 +145,18 @@ def parameter_value( @parameter_value.setter def parameter_value( self, - parameter_value: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", ) -> None: """Sets the parameter_value of this GrantaServerApiSchemaParametersDiscreteParameterContent. Parameters ---------- - parameter_value: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter_value: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The parameter_value of this GrantaServerApiSchemaParametersDiscreteParameterContent. """ + # Field is not nullable + if parameter_value is None: + raise ValueError("Invalid value for 'parameter_value', must not be 'None'") self._parameter_value = parameter_value @property @@ -172,12 +181,16 @@ def parameter_range( parameter_range: GrantaServerApiSchemaParametersDiscreteRange The parameter_range of this GrantaServerApiSchemaParametersDiscreteParameterContent. """ + # Field is not nullable if parameter_range is None: raise ValueError("Invalid value for 'parameter_range', must not be 'None'") + # Field is required + if parameter_range is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter_range', must not be 'Unset'") self._parameter_range = parameter_range @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -194,7 +207,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py index 1519f1f1..9507647a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_value import ( GrantaServerApiSchemaParametersParameterValue, ) # noqa: F401 @@ -78,13 +78,13 @@ def __init__( Parameters ---------- - guid: str - name: str - type: str + guid: str + name: str + type: str """ super().__init__(guid=guid) - self._type: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] + self._type: str + self._name: str self.type = type self.name = name @@ -109,8 +109,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersDiscreteParameterValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -133,12 +137,16 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaParametersDiscreteParameterValue. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -155,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py index 474a4d2d..1d33b7d3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersDiscreteRange(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersDiscreteRange(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ - self._parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] + self._parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] self.parameter_values = parameter_values @@ -83,7 +83,7 @@ def parameter_values( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameter_values of this GrantaServerApiSchemaParametersDiscreteRange. """ return self._parameter_values @@ -99,12 +99,18 @@ def parameter_values( parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameter_values of this GrantaServerApiSchemaParametersDiscreteRange. """ + # Field is not nullable if parameter_values is None: raise ValueError("Invalid value for 'parameter_values', must not be 'None'") + # Field is required + if parameter_values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'parameter_values', must not be 'Unset'" + ) self._parameter_values = parameter_values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +127,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py index 9e4db187..2b348eee 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter import ( GrantaServerApiSchemaParametersParameter, ) # noqa: F401 @@ -99,25 +99,25 @@ def __init__( name: "str", scale_type: "GrantaServerApiSchemaParametersParameterScaleType", values: "List[GrantaServerApiSchemaParametersNumericParameterValue]", - help_path: "Optional[str]" = None, + help_path: "Union[str, None, Unset_Type]" = Unset, type: "str" = "numeric", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersNumericParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_guid: str - display_names: Dict[str, str] - guid: str - interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType - is_restricted: bool - name: str - scale_type: GrantaServerApiSchemaParametersParameterScaleType - values: List[GrantaServerApiSchemaParametersNumericParameterValue] - help_path: str, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + default_parameter_value_guid: str + display_names: Dict[str, str] + guid: str + interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType + is_restricted: bool + name: str + scale_type: GrantaServerApiSchemaParametersParameterScaleType + values: List[GrantaServerApiSchemaParametersNumericParameterValue] + help_path: str, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__( default_parameter_value_guid=default_parameter_value_guid, @@ -126,16 +126,18 @@ def __init__( name=name, help_path=help_path, ) - self._type: str = None # type: ignore[assignment] - self._is_restricted: bool = None # type: ignore[assignment] - self._unit = None - self._values: List[GrantaServerApiSchemaParametersNumericParameterValue] = None # type: ignore[assignment] - self._interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType = None # type: ignore[assignment] - self._scale_type: GrantaServerApiSchemaParametersParameterScaleType = None # type: ignore[assignment] + self._type: str + self._is_restricted: bool + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset + self._values: List[GrantaServerApiSchemaParametersNumericParameterValue] + self._interpolation_type: ( + GrantaServerApiSchemaParametersParameterInterpolationType + ) + self._scale_type: GrantaServerApiSchemaParametersParameterScaleType self.type = type self.is_restricted = is_restricted - if unit is not None: + if unit is not Unset: self.unit = unit self.values = values self.interpolation_type = interpolation_type @@ -161,8 +163,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersNumericParameter. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -185,30 +191,39 @@ def is_restricted(self, is_restricted: "bool") -> None: is_restricted: bool The is_restricted of this GrantaServerApiSchemaParametersNumericParameter. """ + # Field is not nullable if is_restricted is None: raise ValueError("Invalid value for 'is_restricted', must not be 'None'") + # Field is required + if is_restricted is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_restricted', must not be 'Unset'") self._is_restricted = is_restricted @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaParametersNumericParameter. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaParametersNumericParameter. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaParametersNumericParameter. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaParametersNumericParameter. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property @@ -217,7 +232,7 @@ def values(self) -> "List[GrantaServerApiSchemaParametersNumericParameterValue]" Returns ------- - list[GrantaServerApiSchemaParametersNumericParameterValue] + List[GrantaServerApiSchemaParametersNumericParameterValue] The values of this GrantaServerApiSchemaParametersNumericParameter. """ return self._values @@ -233,8 +248,12 @@ def values( values: List[GrantaServerApiSchemaParametersNumericParameterValue] The values of this GrantaServerApiSchemaParametersNumericParameter. """ + # Field is not nullable if values is None: raise ValueError("Invalid value for 'values', must not be 'None'") + # Field is required + if values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'values', must not be 'Unset'") self._values = values @property @@ -262,10 +281,16 @@ def interpolation_type( interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType The interpolation_type of this GrantaServerApiSchemaParametersNumericParameter. """ + # Field is not nullable if interpolation_type is None: raise ValueError( "Invalid value for 'interpolation_type', must not be 'None'" ) + # Field is required + if interpolation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'interpolation_type', must not be 'Unset'" + ) self._interpolation_type = interpolation_type @property @@ -290,12 +315,16 @@ def scale_type( scale_type: GrantaServerApiSchemaParametersParameterScaleType The scale_type of this GrantaServerApiSchemaParametersNumericParameter. """ + # Field is not nullable if scale_type is None: raise ValueError("Invalid value for 'scale_type', must not be 'None'") + # Field is required + if scale_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'scale_type', must not be 'Unset'") self._scale_type = scale_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -312,7 +341,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py index 939e831d..32f5e9f3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_content import ( GrantaServerApiSchemaParametersParameterContent, ) # noqa: F401 @@ -77,24 +77,24 @@ def __init__( parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", parameter_range: "GrantaServerApiSchemaParametersContinuousRange", type: "str" = "numeric", - value: "Optional[float]" = None, + value: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersNumericParameterContent - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - parameter_range: GrantaServerApiSchemaParametersContinuousRange - type: str - value: float, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter_range: GrantaServerApiSchemaParametersContinuousRange + type: str + value: float, optional """ super().__init__(parameter=parameter) - self._type: str = None # type: ignore[assignment] - self._value = None - self._parameter_range: GrantaServerApiSchemaParametersContinuousRange = None # type: ignore[assignment] + self._type: str + self._value: Union[float, None, Unset_Type] = Unset + self._parameter_range: GrantaServerApiSchemaParametersContinuousRange self.type = type - if value is not None: + if value is not Unset: self.value = value self.parameter_range = parameter_range @@ -118,28 +118,32 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersNumericParameterContent. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, None, Unset_Type]": """Gets the value of this GrantaServerApiSchemaParametersNumericParameterContent. Returns ------- - float + Union[float, None, Unset_Type] The value of this GrantaServerApiSchemaParametersNumericParameterContent. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaParametersNumericParameterContent. Parameters ---------- - value: float + value: Union[float, None, Unset_Type] The value of this GrantaServerApiSchemaParametersNumericParameterContent. """ self._value = value @@ -166,12 +170,16 @@ def parameter_range( parameter_range: GrantaServerApiSchemaParametersContinuousRange The parameter_range of this GrantaServerApiSchemaParametersNumericParameterContent. """ + # Field is not nullable if parameter_range is None: raise ValueError("Invalid value for 'parameter_range', must not be 'None'") + # Field is required + if parameter_range is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter_range', must not be 'Unset'") self._parameter_range = parameter_range @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -188,7 +196,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py index b283e8d9..d6aa15ef 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_value import ( GrantaServerApiSchemaParametersParameterValue, ) # noqa: F401 @@ -74,26 +74,26 @@ def __init__( *, guid: "str", value: "float", - name: "Optional[str]" = None, + name: "Union[str, None, Unset_Type]" = Unset, type: "str" = "numeric", ) -> None: """GrantaServerApiSchemaParametersNumericParameterValue - a model defined in Swagger Parameters ---------- - guid: str - value: float - name: str, optional - type: str + guid: str + value: float + name: str, optional + type: str """ super().__init__(guid=guid) - self._type: str = None # type: ignore[assignment] - self._value: float = None # type: ignore[assignment] - self._name = None + self._type: str + self._value: float + self._name: Union[str, None, Unset_Type] = Unset self.type = type self.value = value - if name is not None: + if name is not Unset: self.name = name @property @@ -116,8 +116,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersNumericParameterValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -140,34 +144,38 @@ def value(self, value: "float") -> None: value: float The value of this GrantaServerApiSchemaParametersNumericParameterValue. """ + # 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 @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiSchemaParametersNumericParameterValue. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiSchemaParametersNumericParameterValue. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaParametersNumericParameterValue. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiSchemaParametersNumericParameterValue. """ self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -184,7 +192,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py index 554db47f..392019bb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersParameter(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,25 +80,25 @@ def __init__( display_names: "Dict[str, str]", guid: "str", name: "str", - help_path: "Optional[str]" = None, + help_path: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_guid: str - display_names: Dict[str, str] - guid: str - name: str - help_path: str, optional + default_parameter_value_guid: str + display_names: Dict[str, str] + guid: str + name: str + help_path: str, optional """ - self._help_path = None - self._default_parameter_value_guid: str = None # type: ignore[assignment] - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._help_path: Union[str, None, Unset_Type] = Unset + self._default_parameter_value_guid: str + self._display_names: Dict[str, str] + self._name: str + self._guid: str - if help_path is not None: + if help_path is not Unset: self.help_path = help_path self.default_parameter_value_guid = default_parameter_value_guid self.display_names = display_names @@ -106,23 +106,23 @@ def __init__( self.guid = guid @property - def help_path(self) -> "Optional[str]": + def help_path(self) -> "Union[str, None, Unset_Type]": """Gets the help_path of this GrantaServerApiSchemaParametersParameter. Returns ------- - str + Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaParametersParameter. """ return self._help_path @help_path.setter - def help_path(self, help_path: "Optional[str]") -> None: + def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: """Sets the help_path of this GrantaServerApiSchemaParametersParameter. Parameters ---------- - help_path: str + help_path: Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaParametersParameter. """ self._help_path = help_path @@ -147,10 +147,16 @@ def default_parameter_value_guid(self, default_parameter_value_guid: "str") -> N default_parameter_value_guid: str The default_parameter_value_guid of this GrantaServerApiSchemaParametersParameter. """ + # Field is not nullable if default_parameter_value_guid is None: raise ValueError( "Invalid value for 'default_parameter_value_guid', must not be 'None'" ) + # Field is required + if default_parameter_value_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_parameter_value_guid', must not be 'Unset'" + ) self._default_parameter_value_guid = default_parameter_value_guid @property @@ -159,7 +165,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaParametersParameter. """ return self._display_names @@ -173,8 +179,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaParametersParameter. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -197,8 +207,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaParametersParameter. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -221,12 +235,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaParametersParameter. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -248,7 +266,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py index 348b320e..a28317ba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersParameterContent(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersParameterContent(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,9 +76,9 @@ def __init__( Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity """ - self._parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity self.parameter = parameter @@ -104,12 +104,16 @@ def parameter( parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity The parameter of this GrantaServerApiSchemaParametersParameterContent. """ + # Field is not nullable if parameter is None: raise ValueError("Invalid value for 'parameter', must not be 'None'") + # Field is required + if parameter is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter', must not be 'Unset'") self._parameter = parameter @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -131,7 +135,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py index 1d051d91..9300ce30 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersParameterValue(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersParameterValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -74,9 +74,9 @@ def __init__( Parameters ---------- - guid: str + guid: str """ - self._guid: str = None # type: ignore[assignment] + self._guid: str self.guid = guid @@ -100,12 +100,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaParametersParameterValue. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -127,7 +131,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py index 3695ffe1..ff9ef1e0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersParametersInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersParametersInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiSchemaParametersParametersInfo(ModelBase): # type: ignore[ def __init__( self, *, - parameters: "Optional[List[GrantaServerApiSchemaParametersParameter]]" = None, + parameters: "Union[List[GrantaServerApiSchemaParametersParameter], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersParametersInfo - a model defined in Swagger Parameters ---------- - parameters: List[GrantaServerApiSchemaParametersParameter], optional + parameters: List[GrantaServerApiSchemaParametersParameter], optional """ - self._parameters = None + self._parameters: Union[ + List[GrantaServerApiSchemaParametersParameter], None, Unset_Type + ] = Unset - if parameters is not None: + if parameters is not Unset: self.parameters = parameters @property - def parameters(self) -> "Optional[List[GrantaServerApiSchemaParametersParameter]]": + def parameters( + self, + ) -> "Union[List[GrantaServerApiSchemaParametersParameter], None, Unset_Type]": """Gets the parameters of this GrantaServerApiSchemaParametersParametersInfo. Returns ------- - list[GrantaServerApiSchemaParametersParameter] + Union[List[GrantaServerApiSchemaParametersParameter], None, Unset_Type] The parameters of this GrantaServerApiSchemaParametersParametersInfo. """ return self._parameters @parameters.setter def parameters( - self, parameters: "Optional[List[GrantaServerApiSchemaParametersParameter]]" + self, + parameters: "Union[List[GrantaServerApiSchemaParametersParameter], None, Unset_Type]", ) -> None: """Sets the parameters of this GrantaServerApiSchemaParametersParametersInfo. Parameters ---------- - parameters: List[GrantaServerApiSchemaParametersParameter] + parameters: Union[List[GrantaServerApiSchemaParametersParameter], None, Unset_Type] The parameters of this GrantaServerApiSchemaParametersParametersInfo. """ self._parameters = parameters @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py index d0bf995f..472d034c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersUpdateContinuousRange(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersUpdateContinuousRange(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,70 @@ class GrantaServerApiSchemaParametersUpdateContinuousRange(ModelBase): # type: def __init__( self, *, - high_value: "Optional[float]" = None, - low_value: "Optional[float]" = None, + high_value: "Union[float, None, Unset_Type]" = Unset, + low_value: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersUpdateContinuousRange - a model defined in Swagger Parameters ---------- - high_value: float, optional - low_value: float, optional + high_value: float, optional + low_value: float, optional """ - self._low_value = None - self._high_value = None + self._low_value: Union[float, None, Unset_Type] = Unset + self._high_value: Union[float, None, Unset_Type] = Unset - if low_value is not None: + if low_value is not Unset: self.low_value = low_value - if high_value is not None: + if high_value is not Unset: self.high_value = high_value @property - def low_value(self) -> "Optional[float]": + def low_value(self) -> "Union[float, None, Unset_Type]": """Gets the low_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Returns ------- - float + Union[float, None, Unset_Type] The low_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. """ return self._low_value @low_value.setter - def low_value(self, low_value: "Optional[float]") -> None: + def low_value(self, low_value: "Union[float, None, Unset_Type]") -> None: """Sets the low_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Parameters ---------- - low_value: float + low_value: Union[float, None, Unset_Type] The low_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. """ self._low_value = low_value @property - def high_value(self) -> "Optional[float]": + def high_value(self) -> "Union[float, None, Unset_Type]": """Gets the high_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Returns ------- - float + Union[float, None, Unset_Type] The high_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. """ return self._high_value @high_value.setter - def high_value(self, high_value: "Optional[float]") -> None: + def high_value(self, high_value: "Union[float, None, Unset_Type]") -> None: """Sets the high_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Parameters ---------- - high_value: float + high_value: Union[float, None, Unset_Type] The high_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. """ self._high_value = high_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py index c4548603..0c8869cb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import ( GrantaServerApiSchemaParametersUpdateParameter, ) # noqa: F401 @@ -74,21 +74,21 @@ class GrantaServerApiSchemaParametersUpdateDiscreteParameter( def __init__( self, *, - default_parameter_value_guid: "Optional[str]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + default_parameter_value_guid: "Union[str, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaParametersUpdateDiscreteParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_guid: str, optional - guid: str, optional - help_path: str, optional - name: str, optional - type: str + default_parameter_value_guid: str, optional + guid: str, optional + help_path: str, optional + name: str, optional + type: str """ super().__init__( default_parameter_value_guid=default_parameter_value_guid, @@ -96,7 +96,7 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -120,12 +120,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersUpdateDiscreteParameter. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -142,7 +146,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py index 13e8a665..11e6cd5e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_content import ( GrantaServerApiSchemaParametersUpdateParameterContent, ) # noqa: F401 @@ -76,28 +76,32 @@ def __init__( self, *, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity", - parameter_range: "Optional[GrantaServerApiSchemaParametersUpdateDiscreteRange]" = None, - parameter_value: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + parameter_range: "Union[GrantaServerApiSchemaParametersUpdateDiscreteRange, Unset_Type]" = Unset, + parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaParametersUpdateDiscreteParameterContent - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity - parameter_range: GrantaServerApiSchemaParametersUpdateDiscreteRange, optional - parameter_value: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - type: str + parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + parameter_range: GrantaServerApiSchemaParametersUpdateDiscreteRange, optional + parameter_value: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + type: str """ super().__init__(parameter=parameter) - self._type: str = None # type: ignore[assignment] - self._parameter_value = None - self._parameter_range = None + self._type: str + self._parameter_value: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._parameter_range: Union[ + GrantaServerApiSchemaParametersUpdateDiscreteRange, Unset_Type + ] = Unset self.type = type - if parameter_value is not None: + if parameter_value is not Unset: self.parameter_value = parameter_value - if parameter_range is not None: + if parameter_range is not Unset: self.parameter_range = parameter_range @property @@ -120,45 +124,53 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property def parameter_value( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. """ return self._parameter_value @parameter_value.setter def parameter_value( - self, parameter_value: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. Parameters ---------- - parameter_value: GrantaServerApiSchemaSlimEntitiesSlimEntity + parameter_value: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. """ + # Field is not nullable + if parameter_value is None: + raise ValueError("Invalid value for 'parameter_value', must not be 'None'") self._parameter_value = parameter_value @property def parameter_range( self, - ) -> "Optional[GrantaServerApiSchemaParametersUpdateDiscreteRange]": + ) -> "Union[GrantaServerApiSchemaParametersUpdateDiscreteRange, Unset_Type]": """Gets the parameter_range of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. Returns ------- - GrantaServerApiSchemaParametersUpdateDiscreteRange + Union[GrantaServerApiSchemaParametersUpdateDiscreteRange, Unset_Type] The parameter_range of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. """ return self._parameter_range @@ -166,19 +178,22 @@ def parameter_range( @parameter_range.setter def parameter_range( self, - parameter_range: "Optional[GrantaServerApiSchemaParametersUpdateDiscreteRange]", + parameter_range: "Union[GrantaServerApiSchemaParametersUpdateDiscreteRange, Unset_Type]", ) -> None: """Sets the parameter_range of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. Parameters ---------- - parameter_range: GrantaServerApiSchemaParametersUpdateDiscreteRange + parameter_range: Union[GrantaServerApiSchemaParametersUpdateDiscreteRange, Unset_Type] The parameter_range of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. """ + # Field is not nullable + if parameter_range is None: + raise ValueError("Invalid value for 'parameter_range', must not be 'None'") self._parameter_range = parameter_range @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -195,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py index a1f310c7..f45eb18f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_value import ( GrantaServerApiSchemaParametersUpdateParameterValue, ) # noqa: F401 @@ -70,24 +70,24 @@ class GrantaServerApiSchemaParametersUpdateDiscreteParameterValue( def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, type: "str" = "discrete", ) -> None: """GrantaServerApiSchemaParametersUpdateDiscreteParameterValue - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional - type: str + guid: str, optional + name: str, optional + type: str """ super().__init__(guid=guid) - self._type: str = None # type: ignore[assignment] - self._name = None + self._type: str + self._name: Union[str, Unset_Type] = Unset self.type = type - if name is not None: + if name is not Unset: self.name = name @property @@ -110,34 +110,41 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersUpdateDiscreteParameterValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaParametersUpdateDiscreteParameterValue. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaParametersUpdateDiscreteParameterValue. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaParametersUpdateDiscreteParameterValue. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaParametersUpdateDiscreteParameterValue. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py index 17e8ba88..5c30ae0b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersUpdateDiscreteRange(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersUpdateDiscreteRange(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,9 +69,9 @@ def __init__( Parameters ---------- - parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] """ - self._parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] = None # type: ignore[assignment] + self._parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] self.parameter_values = parameter_values @@ -81,7 +81,7 @@ def parameter_values(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimEntity] Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The parameter_values of this GrantaServerApiSchemaParametersUpdateDiscreteRange. """ return self._parameter_values @@ -97,12 +97,18 @@ def parameter_values( parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The parameter_values of this GrantaServerApiSchemaParametersUpdateDiscreteRange. """ + # Field is not nullable if parameter_values is None: raise ValueError("Invalid value for 'parameter_values', must not be 'None'") + # Field is required + if parameter_values is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'parameter_values', must not be 'Unset'" + ) self._parameter_values = parameter_values @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py index dd74b9cd..babae3b3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import ( GrantaServerApiSchemaParametersUpdateParameter, ) # noqa: F401 @@ -84,27 +84,27 @@ class GrantaServerApiSchemaParametersUpdateNumericParameter( def __init__( self, *, - default_parameter_value_guid: "Optional[str]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - interpolation_type: "Optional[GrantaServerApiSchemaParametersParameterInterpolationType]" = None, - name: "Optional[str]" = None, - scale_type: "Optional[GrantaServerApiSchemaParametersParameterScaleType]" = None, + default_parameter_value_guid: "Union[str, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + interpolation_type: "Union[GrantaServerApiSchemaParametersParameterInterpolationType, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + scale_type: "Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type]" = Unset, type: "str" = "numeric", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersUpdateNumericParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_guid: str, optional - guid: str, optional - help_path: str, optional - interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType, optional - name: str, optional - scale_type: GrantaServerApiSchemaParametersParameterScaleType, optional - type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + default_parameter_value_guid: str, optional + guid: str, optional + help_path: str, optional + interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType, optional + name: str, optional + scale_type: GrantaServerApiSchemaParametersParameterScaleType, optional + type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( default_parameter_value_guid=default_parameter_value_guid, @@ -112,17 +112,23 @@ def __init__( help_path=help_path, name=name, ) - self._type: str = None # type: ignore[assignment] - self._unit = None - self._interpolation_type = None - self._scale_type = None + self._type: str + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) + self._interpolation_type: Union[ + GrantaServerApiSchemaParametersParameterInterpolationType, Unset_Type + ] = Unset + self._scale_type: Union[ + GrantaServerApiSchemaParametersParameterScaleType, Unset_Type + ] = Unset self.type = type - if unit is not None: + if unit is not Unset: self.unit = unit - if interpolation_type is not None: + if interpolation_type is not Unset: self.interpolation_type = interpolation_type - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type @property @@ -145,43 +151,50 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersUpdateNumericParameter. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @property def interpolation_type( self, - ) -> "Optional[GrantaServerApiSchemaParametersParameterInterpolationType]": + ) -> "Union[GrantaServerApiSchemaParametersParameterInterpolationType, Unset_Type]": """Gets the interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. Returns ------- - GrantaServerApiSchemaParametersParameterInterpolationType + Union[GrantaServerApiSchemaParametersParameterInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. """ return self._interpolation_type @@ -189,45 +202,54 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( self, - interpolation_type: "Optional[GrantaServerApiSchemaParametersParameterInterpolationType]", + interpolation_type: "Union[GrantaServerApiSchemaParametersParameterInterpolationType, Unset_Type]", ) -> None: """Sets the interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. Parameters ---------- - interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType + interpolation_type: Union[GrantaServerApiSchemaParametersParameterInterpolationType, Unset_Type] The interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. """ + # Field is not nullable + if interpolation_type is None: + raise ValueError( + "Invalid value for 'interpolation_type', must not be 'None'" + ) self._interpolation_type = interpolation_type @property def scale_type( self, - ) -> "Optional[GrantaServerApiSchemaParametersParameterScaleType]": + ) -> "Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. Returns ------- - GrantaServerApiSchemaParametersParameterScaleType + Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. """ return self._scale_type @scale_type.setter def scale_type( - self, scale_type: "Optional[GrantaServerApiSchemaParametersParameterScaleType]" + self, + scale_type: "Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type]", ) -> None: """Sets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. Parameters ---------- - scale_type: GrantaServerApiSchemaParametersParameterScaleType + scale_type: Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type] The scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. """ + # Field is not nullable + if scale_type is None: + raise ValueError("Invalid value for 'scale_type', must not be 'None'") self._scale_type = scale_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -244,7 +266,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py index d5181e71..ecc0a6a1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_content import ( GrantaServerApiSchemaParametersUpdateParameterContent, ) # noqa: F401 @@ -75,28 +75,30 @@ def __init__( self, *, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity", - parameter_range: "Optional[GrantaServerApiSchemaParametersUpdateContinuousRange]" = None, + parameter_range: "Union[GrantaServerApiSchemaParametersUpdateContinuousRange, Unset_Type]" = Unset, type: "str" = "numeric", - value: "Optional[float]" = None, + value: "Union[float, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersUpdateNumericParameterContent - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity - parameter_range: GrantaServerApiSchemaParametersUpdateContinuousRange, optional - type: str - value: float, optional + parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + parameter_range: GrantaServerApiSchemaParametersUpdateContinuousRange, optional + type: str + value: float, optional """ super().__init__(parameter=parameter) - self._type: str = None # type: ignore[assignment] - self._value = None - self._parameter_range = None + self._type: str + self._value: Union[float, None, Unset_Type] = Unset + self._parameter_range: Union[ + GrantaServerApiSchemaParametersUpdateContinuousRange, Unset_Type + ] = Unset self.type = type - if value is not None: + if value is not Unset: self.value = value - if parameter_range is not None: + if parameter_range is not Unset: self.parameter_range = parameter_range @property @@ -119,28 +121,32 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, None, Unset_Type]": """Gets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. Returns ------- - float + Union[float, None, Unset_Type] The value of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. Parameters ---------- - value: float + value: Union[float, None, Unset_Type] The value of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. """ self._value = value @@ -148,12 +154,12 @@ def value(self, value: "Optional[float]") -> None: @property def parameter_range( self, - ) -> "Optional[GrantaServerApiSchemaParametersUpdateContinuousRange]": + ) -> "Union[GrantaServerApiSchemaParametersUpdateContinuousRange, Unset_Type]": """Gets the parameter_range of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. Returns ------- - GrantaServerApiSchemaParametersUpdateContinuousRange + Union[GrantaServerApiSchemaParametersUpdateContinuousRange, Unset_Type] The parameter_range of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. """ return self._parameter_range @@ -161,19 +167,22 @@ def parameter_range( @parameter_range.setter def parameter_range( self, - parameter_range: "Optional[GrantaServerApiSchemaParametersUpdateContinuousRange]", + parameter_range: "Union[GrantaServerApiSchemaParametersUpdateContinuousRange, Unset_Type]", ) -> None: """Sets the parameter_range of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. Parameters ---------- - parameter_range: GrantaServerApiSchemaParametersUpdateContinuousRange + parameter_range: Union[GrantaServerApiSchemaParametersUpdateContinuousRange, Unset_Type] The parameter_range of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. """ + # Field is not nullable + if parameter_range is None: + raise ValueError("Invalid value for 'parameter_range', must not be 'None'") self._parameter_range = parameter_range @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -190,7 +199,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py index 95f02143..b2df66e8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_value import ( GrantaServerApiSchemaParametersUpdateParameterValue, ) # noqa: F401 @@ -72,51 +72,54 @@ class GrantaServerApiSchemaParametersUpdateNumericParameterValue( def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, type: "str" = "numeric", - value: "Optional[float]" = None, + value: "Union[float, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersUpdateNumericParameterValue - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional - type: str - value: float, optional + guid: str, optional + name: str, optional + type: str + value: float, optional """ super().__init__(guid=guid) - self._value = None - self._type: str = None # type: ignore[assignment] - self._name = None + self._value: Union[float, Unset_Type] = Unset + self._type: str + self._name: Union[str, None, Unset_Type] = Unset - if value is not None: + if value is not Unset: self.value = value self.type = type - if name is not None: + if name is not Unset: self.name = name @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, Unset_Type]": """Gets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. Returns ------- - float + Union[float, Unset_Type] The value of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. Parameters ---------- - value: float + value: Union[float, Unset_Type] The value of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property @@ -139,34 +142,38 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. """ self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py index 1a9ef1c4..b3772770 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersUpdateParameter(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersUpdateParameter(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -74,126 +74,137 @@ class GrantaServerApiSchemaParametersUpdateParameter(ModelBase): # type: ignore def __init__( self, *, - default_parameter_value_guid: "Optional[str]" = None, - guid: "Optional[str]" = None, - help_path: "Optional[str]" = None, - name: "Optional[str]" = None, + default_parameter_value_guid: "Union[str, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + help_path: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersUpdateParameter - a model defined in Swagger Parameters ---------- - default_parameter_value_guid: str, optional - guid: str, optional - help_path: str, optional - name: str, optional + default_parameter_value_guid: str, optional + guid: str, optional + help_path: str, optional + name: str, optional """ - self._help_path = None - self._default_parameter_value_guid = None - self._name = None - self._guid = None + self._help_path: Union[str, None, Unset_Type] = Unset + self._default_parameter_value_guid: Union[str, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if help_path is not None: + if help_path is not Unset: self.help_path = help_path - if default_parameter_value_guid is not None: + if default_parameter_value_guid is not Unset: self.default_parameter_value_guid = default_parameter_value_guid - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def help_path(self) -> "Optional[str]": + def help_path(self) -> "Union[str, None, Unset_Type]": """Gets the help_path of this GrantaServerApiSchemaParametersUpdateParameter. Returns ------- - str + Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaParametersUpdateParameter. """ return self._help_path @help_path.setter - def help_path(self, help_path: "Optional[str]") -> None: + def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: """Sets the help_path of this GrantaServerApiSchemaParametersUpdateParameter. Parameters ---------- - help_path: str + help_path: Union[str, None, Unset_Type] The help_path of this GrantaServerApiSchemaParametersUpdateParameter. """ self._help_path = help_path @property - def default_parameter_value_guid(self) -> "Optional[str]": + def default_parameter_value_guid(self) -> "Union[str, Unset_Type]": """Gets the default_parameter_value_guid of this GrantaServerApiSchemaParametersUpdateParameter. Returns ------- - str + Union[str, Unset_Type] The default_parameter_value_guid of this GrantaServerApiSchemaParametersUpdateParameter. """ return self._default_parameter_value_guid @default_parameter_value_guid.setter def default_parameter_value_guid( - self, default_parameter_value_guid: "Optional[str]" + self, default_parameter_value_guid: "Union[str, Unset_Type]" ) -> None: """Sets the default_parameter_value_guid of this GrantaServerApiSchemaParametersUpdateParameter. Parameters ---------- - default_parameter_value_guid: str + default_parameter_value_guid: Union[str, Unset_Type] The default_parameter_value_guid of this GrantaServerApiSchemaParametersUpdateParameter. """ + # Field is not nullable + if default_parameter_value_guid is None: + raise ValueError( + "Invalid value for 'default_parameter_value_guid', must not be 'None'" + ) self._default_parameter_value_guid = default_parameter_value_guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaParametersUpdateParameter. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaParametersUpdateParameter. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaParametersUpdateParameter. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaParametersUpdateParameter. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaParametersUpdateParameter. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersUpdateParameter. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersUpdateParameter. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersUpdateParameter. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -215,7 +226,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py index 02ae9157..82231069 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersUpdateParameterContent(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersUpdateParameterContent(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,9 +76,9 @@ def __init__( Parameters ---------- - parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity + parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity """ - self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity self.parameter = parameter @@ -104,12 +104,16 @@ def parameter( parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity The parameter of this GrantaServerApiSchemaParametersUpdateParameterContent. """ + # Field is not nullable if parameter is None: raise ValueError("Invalid value for 'parameter', must not be 'None'") + # Field is required + if parameter is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter', must not be 'Unset'") self._parameter = parameter @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -131,7 +135,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py index 11336a16..2a1f20ba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaParametersUpdateParameterValue(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaParametersUpdateParameterValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,43 +68,46 @@ class GrantaServerApiSchemaParametersUpdateParameterValue(ModelBase): # type: i def __init__( self, *, - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaParametersUpdateParameterValue - a model defined in Swagger Parameters ---------- - guid: str, optional + guid: str, optional """ - self._guid = None + self._guid: Union[str, Unset_Type] = Unset - if guid is not None: + if guid is not Unset: self.guid = guid @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaParametersUpdateParameterValue. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersUpdateParameterValue. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersUpdateParameterValue. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaParametersUpdateParameterValue. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -126,7 +129,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py index f1a08b1a..869f84b3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfileTablesCreateProfileTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfileTablesCreateProfileTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,33 +71,33 @@ def __init__( *, database_guid: "str", table_guid: "str", - guid: "Optional[str]" = None, - layout_guid: "Optional[str]" = None, - subset_guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + layout_guid: "Union[str, None, Unset_Type]" = Unset, + subset_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfileTablesCreateProfileTable - a model defined in Swagger Parameters ---------- - database_guid: str - table_guid: str - guid: str, optional - layout_guid: str, optional - subset_guid: str, optional + database_guid: str + table_guid: str + guid: str, optional + layout_guid: str, optional + subset_guid: str, optional """ - self._database_guid: str = None # type: ignore[assignment] - self._table_guid: str = None # type: ignore[assignment] - self._subset_guid = None - self._layout_guid = None - self._guid = None + self._database_guid: str + self._table_guid: str + self._subset_guid: Union[str, None, Unset_Type] = Unset + self._layout_guid: Union[str, None, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset self.database_guid = database_guid self.table_guid = table_guid - if subset_guid is not None: + if subset_guid is not Unset: self.subset_guid = subset_guid - if layout_guid is not None: + if layout_guid is not Unset: self.layout_guid = layout_guid - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -120,8 +120,12 @@ def database_guid(self, database_guid: "str") -> None: database_guid: str The database_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ + # Field is not nullable if database_guid is None: raise ValueError("Invalid value for 'database_guid', must not be 'None'") + # Field is required + if database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_guid', must not be 'Unset'") self._database_guid = database_guid @property @@ -144,78 +148,85 @@ def table_guid(self, table_guid: "str") -> None: table_guid: str The table_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ + # Field is not nullable if table_guid is None: raise ValueError("Invalid value for 'table_guid', must not be 'None'") + # Field is required + if table_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table_guid', must not be 'Unset'") self._table_guid = table_guid @property - def subset_guid(self) -> "Optional[str]": + def subset_guid(self) -> "Union[str, None, Unset_Type]": """Gets the subset_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "Optional[str]") -> None: + def subset_guid(self, subset_guid: "Union[str, None, Unset_Type]") -> None: """Sets the subset_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Parameters ---------- - subset_guid: str + subset_guid: Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ self._subset_guid = subset_guid @property - def layout_guid(self) -> "Optional[str]": + def layout_guid(self) -> "Union[str, None, Unset_Type]": """Gets the layout_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The layout_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ return self._layout_guid @layout_guid.setter - def layout_guid(self, layout_guid: "Optional[str]") -> None: + def layout_guid(self, layout_guid: "Union[str, None, Unset_Type]") -> None: """Sets the layout_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Parameters ---------- - layout_guid: str + layout_guid: Union[str, None, Unset_Type] The layout_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ self._layout_guid = layout_guid @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -232,7 +243,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py index a33b3a29..4a0ea898 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfileTablesProfileTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfileTablesProfileTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -79,161 +79,165 @@ def __init__( *, database_guid: "str", table_guid: "str", - database_fallback_hint: "Optional[str]" = None, - guid: "Optional[str]" = None, - layout_fallback_hint: "Optional[str]" = None, - layout_guid: "Optional[str]" = None, - subset_fallback_hint: "Optional[str]" = None, - subset_guid: "Optional[str]" = None, - table_fallback_hint: "Optional[str]" = None, + database_fallback_hint: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + layout_fallback_hint: "Union[str, None, Unset_Type]" = Unset, + layout_guid: "Union[str, None, Unset_Type]" = Unset, + subset_fallback_hint: "Union[str, None, Unset_Type]" = Unset, + subset_guid: "Union[str, None, Unset_Type]" = Unset, + table_fallback_hint: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfileTablesProfileTable - a model defined in Swagger Parameters ---------- - database_guid: str - table_guid: str - database_fallback_hint: str, optional - guid: str, optional - layout_fallback_hint: str, optional - layout_guid: str, optional - subset_fallback_hint: str, optional - subset_guid: str, optional - table_fallback_hint: str, optional + database_guid: str + table_guid: str + database_fallback_hint: str, optional + guid: str, optional + layout_fallback_hint: str, optional + layout_guid: str, optional + subset_fallback_hint: str, optional + subset_guid: str, optional + table_fallback_hint: str, optional """ - self._subset_guid = None - self._subset_fallback_hint = None - self._layout_guid = None - self._layout_fallback_hint = None - self._guid = None - self._database_guid: str = None # type: ignore[assignment] - self._database_fallback_hint = None - self._table_guid: str = None # type: ignore[assignment] - self._table_fallback_hint = None - - if subset_guid is not None: + self._subset_guid: Union[str, None, Unset_Type] = Unset + self._subset_fallback_hint: Union[str, None, Unset_Type] = Unset + self._layout_guid: Union[str, None, Unset_Type] = Unset + self._layout_fallback_hint: Union[str, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._database_guid: str + self._database_fallback_hint: Union[str, None, Unset_Type] = Unset + self._table_guid: str + self._table_fallback_hint: Union[str, None, Unset_Type] = Unset + + if subset_guid is not Unset: self.subset_guid = subset_guid - if subset_fallback_hint is not None: + if subset_fallback_hint is not Unset: self.subset_fallback_hint = subset_fallback_hint - if layout_guid is not None: + if layout_guid is not Unset: self.layout_guid = layout_guid - if layout_fallback_hint is not None: + if layout_fallback_hint is not Unset: self.layout_fallback_hint = layout_fallback_hint - if guid is not None: + if guid is not Unset: self.guid = guid self.database_guid = database_guid - if database_fallback_hint is not None: + if database_fallback_hint is not Unset: self.database_fallback_hint = database_fallback_hint self.table_guid = table_guid - if table_fallback_hint is not None: + if table_fallback_hint is not Unset: self.table_fallback_hint = table_fallback_hint @property - def subset_guid(self) -> "Optional[str]": + def subset_guid(self) -> "Union[str, None, Unset_Type]": """Gets the subset_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "Optional[str]") -> None: + def subset_guid(self, subset_guid: "Union[str, None, Unset_Type]") -> None: """Sets the subset_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters ---------- - subset_guid: str + subset_guid: Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ self._subset_guid = subset_guid @property - def subset_fallback_hint(self) -> "Optional[str]": + def subset_fallback_hint(self) -> "Union[str, None, Unset_Type]": """Gets the subset_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The subset_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ return self._subset_fallback_hint @subset_fallback_hint.setter - def subset_fallback_hint(self, subset_fallback_hint: "Optional[str]") -> None: + def subset_fallback_hint( + self, subset_fallback_hint: "Union[str, None, Unset_Type]" + ) -> None: """Sets the subset_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters ---------- - subset_fallback_hint: str + subset_fallback_hint: Union[str, None, Unset_Type] The subset_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ self._subset_fallback_hint = subset_fallback_hint @property - def layout_guid(self) -> "Optional[str]": + def layout_guid(self) -> "Union[str, None, Unset_Type]": """Gets the layout_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The layout_guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ return self._layout_guid @layout_guid.setter - def layout_guid(self, layout_guid: "Optional[str]") -> None: + def layout_guid(self, layout_guid: "Union[str, None, Unset_Type]") -> None: """Sets the layout_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters ---------- - layout_guid: str + layout_guid: Union[str, None, Unset_Type] The layout_guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ self._layout_guid = layout_guid @property - def layout_fallback_hint(self) -> "Optional[str]": + def layout_fallback_hint(self) -> "Union[str, None, Unset_Type]": """Gets the layout_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The layout_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ return self._layout_fallback_hint @layout_fallback_hint.setter - def layout_fallback_hint(self, layout_fallback_hint: "Optional[str]") -> None: + def layout_fallback_hint( + self, layout_fallback_hint: "Union[str, None, Unset_Type]" + ) -> None: """Sets the layout_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters ---------- - layout_fallback_hint: str + layout_fallback_hint: Union[str, None, Unset_Type] The layout_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ self._layout_fallback_hint = layout_fallback_hint @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaProfileTablesProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ self._guid = guid @@ -258,28 +262,34 @@ def database_guid(self, database_guid: "str") -> None: database_guid: str The database_guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ + # Field is not nullable if database_guid is None: raise ValueError("Invalid value for 'database_guid', must not be 'None'") + # Field is required + if database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_guid', must not be 'Unset'") self._database_guid = database_guid @property - def database_fallback_hint(self) -> "Optional[str]": + def database_fallback_hint(self) -> "Union[str, None, Unset_Type]": """Gets the database_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The database_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ return self._database_fallback_hint @database_fallback_hint.setter - def database_fallback_hint(self, database_fallback_hint: "Optional[str]") -> None: + def database_fallback_hint( + self, database_fallback_hint: "Union[str, None, Unset_Type]" + ) -> None: """Sets the database_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters ---------- - database_fallback_hint: str + database_fallback_hint: Union[str, None, Unset_Type] The database_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ self._database_fallback_hint = database_fallback_hint @@ -304,34 +314,40 @@ def table_guid(self, table_guid: "str") -> None: table_guid: str The table_guid of this GrantaServerApiSchemaProfileTablesProfileTable. """ + # Field is not nullable if table_guid is None: raise ValueError("Invalid value for 'table_guid', must not be 'None'") + # Field is required + if table_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table_guid', must not be 'Unset'") self._table_guid = table_guid @property - def table_fallback_hint(self) -> "Optional[str]": + def table_fallback_hint(self) -> "Union[str, None, Unset_Type]": """Gets the table_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The table_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ return self._table_fallback_hint @table_fallback_hint.setter - def table_fallback_hint(self, table_fallback_hint: "Optional[str]") -> None: + def table_fallback_hint( + self, table_fallback_hint: "Union[str, None, Unset_Type]" + ) -> None: """Sets the table_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters ---------- - table_fallback_hint: str + table_fallback_hint: Union[str, None, Unset_Type] The table_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. """ self._table_fallback_hint = table_fallback_hint @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -348,7 +364,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py index 06767732..7eee2105 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfileTablesProfileTablesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfileTablesProfileTablesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiSchemaProfileTablesProfileTablesInfo(ModelBase): # type: i def __init__( self, *, - profile_tables: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]]" = None, + profile_tables: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfileTablesProfileTablesInfo - a model defined in Swagger Parameters ---------- - profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], optional + profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], optional """ - self._profile_tables = None + self._profile_tables: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], None, Unset_Type + ] = Unset - if profile_tables is not None: + if profile_tables is not Unset: self.profile_tables = profile_tables @property def profile_tables( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], None, Unset_Type]": """Gets the profile_tables of this GrantaServerApiSchemaProfileTablesProfileTablesInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], None, Unset_Type] The profile_tables of this GrantaServerApiSchemaProfileTablesProfileTablesInfo. """ return self._profile_tables @@ -92,19 +94,19 @@ def profile_tables( @profile_tables.setter def profile_tables( self, - profile_tables: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]]", + profile_tables: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], None, Unset_Type]", ) -> None: """Sets the profile_tables of this GrantaServerApiSchemaProfileTablesProfileTablesInfo. Parameters ---------- - profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] + profile_tables: Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable], None, Unset_Type] The profile_tables of this GrantaServerApiSchemaProfileTablesProfileTablesInfo. """ self._profile_tables = profile_tables @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py index 8efa25af..299223b5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfileTablesUpdateProfileTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfileTablesUpdateProfileTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,100 @@ class GrantaServerApiSchemaProfileTablesUpdateProfileTable(ModelBase): # type: def __init__( self, *, - guid: "Optional[str]" = None, - layout_guid: "Optional[str]" = None, - subset_guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + layout_guid: "Union[str, None, Unset_Type]" = Unset, + subset_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfileTablesUpdateProfileTable - a model defined in Swagger Parameters ---------- - guid: str, optional - layout_guid: str, optional - subset_guid: str, optional + guid: str, optional + layout_guid: str, optional + subset_guid: str, optional """ - self._subset_guid = None - self._layout_guid = None - self._guid = None + self._subset_guid: Union[str, None, Unset_Type] = Unset + self._layout_guid: Union[str, None, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if subset_guid is not None: + if subset_guid is not Unset: self.subset_guid = subset_guid - if layout_guid is not None: + if layout_guid is not Unset: self.layout_guid = layout_guid - if guid is not None: + if guid is not Unset: self.guid = guid @property - def subset_guid(self) -> "Optional[str]": + def subset_guid(self) -> "Union[str, None, Unset_Type]": """Gets the subset_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. """ return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "Optional[str]") -> None: + def subset_guid(self, subset_guid: "Union[str, None, Unset_Type]") -> None: """Sets the subset_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Parameters ---------- - subset_guid: str + subset_guid: Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. """ self._subset_guid = subset_guid @property - def layout_guid(self) -> "Optional[str]": + def layout_guid(self) -> "Union[str, None, Unset_Type]": """Gets the layout_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The layout_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. """ return self._layout_guid @layout_guid.setter - def layout_guid(self, layout_guid: "Optional[str]") -> None: + def layout_guid(self, layout_guid: "Union[str, None, Unset_Type]") -> None: """Sets the layout_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Parameters ---------- - layout_guid: str + layout_guid: Union[str, None, Unset_Type] The layout_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. """ self._layout_guid = layout_guid @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py index 208bbd34..5bb3fb0f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfilesAllProfilesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfilesAllProfilesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,46 +66,51 @@ class GrantaServerApiSchemaProfilesAllProfilesInfo(ModelBase): # type: ignore[m def __init__( self, *, - default_profile: "Optional[GrantaServerApiSchemaSlimEntitiesSlimProfile]" = None, - profiles: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfile]]" = None, + default_profile: "Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type]" = Unset, + profiles: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfile], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfilesAllProfilesInfo - a model defined in Swagger Parameters ---------- - default_profile: GrantaServerApiSchemaSlimEntitiesSlimProfile, optional - profiles: List[GrantaServerApiSchemaSlimEntitiesSlimProfile], optional + default_profile: GrantaServerApiSchemaSlimEntitiesSlimProfile, optional + profiles: List[GrantaServerApiSchemaSlimEntitiesSlimProfile], optional """ - self._profiles = None - self._default_profile = None - - if profiles is not None: + self._profiles: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimProfile], None, Unset_Type + ] = Unset + self._default_profile: Union[ + GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type + ] = Unset + + if profiles is not Unset: self.profiles = profiles - if default_profile is not None: + if default_profile is not Unset: self.default_profile = default_profile @property def profiles( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfile]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfile], None, Unset_Type]": """Gets the profiles of this GrantaServerApiSchemaProfilesAllProfilesInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimProfile] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfile], None, Unset_Type] The profiles of this GrantaServerApiSchemaProfilesAllProfilesInfo. """ return self._profiles @profiles.setter def profiles( - self, profiles: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfile]]" + self, + profiles: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfile], None, Unset_Type]", ) -> None: """Sets the profiles of this GrantaServerApiSchemaProfilesAllProfilesInfo. Parameters ---------- - profiles: List[GrantaServerApiSchemaSlimEntitiesSlimProfile] + profiles: Union[List[GrantaServerApiSchemaSlimEntitiesSlimProfile], None, Unset_Type] The profiles of this GrantaServerApiSchemaProfilesAllProfilesInfo. """ self._profiles = profiles @@ -113,31 +118,35 @@ def profiles( @property def default_profile( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimProfile]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type]": """Gets the default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimProfile + Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type] The default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. """ return self._default_profile @default_profile.setter def default_profile( - self, default_profile: "Optional[GrantaServerApiSchemaSlimEntitiesSlimProfile]" + self, + default_profile: "Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type]", ) -> None: """Sets the default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. Parameters ---------- - default_profile: GrantaServerApiSchemaSlimEntitiesSlimProfile + default_profile: Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type] The default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. """ + # Field is not nullable + if default_profile is None: + raise ValueError("Invalid value for 'default_profile', must not be 'None'") self._default_profile = default_profile @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -154,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py index 3b33e2fa..c18320dd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfilesCreateProfile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfilesCreateProfile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,99 +70,99 @@ def __init__( self, *, name: "str", - description: "Optional[str]" = None, - group_name: "Optional[str]" = None, - guid: "Optional[str]" = None, - homepage_url: "Optional[str]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + group_name: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + homepage_url: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfilesCreateProfile - a model defined in Swagger Parameters ---------- - name: str - description: str, optional - group_name: str, optional - guid: str, optional - homepage_url: str, optional + name: str + description: str, optional + group_name: str, optional + guid: str, optional + homepage_url: str, optional """ - self._description = None - self._homepage_url = None - self._group_name = None - self._name: str = None # type: ignore[assignment] - self._guid = None + self._description: Union[str, None, Unset_Type] = Unset + self._homepage_url: Union[str, None, Unset_Type] = Unset + self._group_name: Union[str, None, Unset_Type] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset - if description is not None: + if description is not Unset: self.description = description - if homepage_url is not None: + if homepage_url is not Unset: self.homepage_url = homepage_url - if group_name is not None: + if group_name is not Unset: self.group_name = group_name self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSchemaProfilesCreateProfile. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaProfilesCreateProfile. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaProfilesCreateProfile. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaProfilesCreateProfile. """ self._description = description @property - def homepage_url(self) -> "Optional[str]": + def homepage_url(self) -> "Union[str, None, Unset_Type]": """Gets the homepage_url of this GrantaServerApiSchemaProfilesCreateProfile. Returns ------- - str + Union[str, None, Unset_Type] The homepage_url of this GrantaServerApiSchemaProfilesCreateProfile. """ return self._homepage_url @homepage_url.setter - def homepage_url(self, homepage_url: "Optional[str]") -> None: + def homepage_url(self, homepage_url: "Union[str, None, Unset_Type]") -> None: """Sets the homepage_url of this GrantaServerApiSchemaProfilesCreateProfile. Parameters ---------- - homepage_url: str + homepage_url: Union[str, None, Unset_Type] The homepage_url of this GrantaServerApiSchemaProfilesCreateProfile. """ self._homepage_url = homepage_url @property - def group_name(self) -> "Optional[str]": + def group_name(self) -> "Union[str, None, Unset_Type]": """Gets the group_name of this GrantaServerApiSchemaProfilesCreateProfile. Returns ------- - str + Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaProfilesCreateProfile. """ return self._group_name @group_name.setter - def group_name(self, group_name: "Optional[str]") -> None: + def group_name(self, group_name: "Union[str, None, Unset_Type]") -> None: """Sets the group_name of this GrantaServerApiSchemaProfilesCreateProfile. Parameters ---------- - group_name: str + group_name: Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaProfilesCreateProfile. """ self._group_name = group_name @@ -187,34 +187,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaProfilesCreateProfile. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaProfilesCreateProfile. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaProfilesCreateProfile. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaProfilesCreateProfile. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaProfilesCreateProfile. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -231,7 +238,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py index 31b962fe..df589d3d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfilesProfile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfilesProfile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -81,86 +81,86 @@ def __init__( key: "str", name: "str", profile_tables: "List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]", - description: "Optional[str]" = None, - group_name: "Optional[str]" = None, - guid: "Optional[str]" = None, - homepage_url: "Optional[str]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + group_name: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + homepage_url: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfilesProfile - a model defined in Swagger Parameters ---------- - is_implicit: bool - key: str - name: str - profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] - description: str, optional - group_name: str, optional - guid: str, optional - homepage_url: str, optional + is_implicit: bool + key: str + name: str + profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] + description: str, optional + group_name: str, optional + guid: str, optional + homepage_url: str, optional """ - self._description = None - self._homepage_url = None - self._profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] = None # type: ignore[assignment] - self._key: str = None # type: ignore[assignment] - self._guid = None - self._group_name = None - self._is_implicit: bool = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - - if description is not None: + self._description: Union[str, None, Unset_Type] = Unset + self._homepage_url: Union[str, None, Unset_Type] = Unset + self._profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] + self._key: str + self._guid: Union[str, None, Unset_Type] = Unset + self._group_name: Union[str, None, Unset_Type] = Unset + self._is_implicit: bool + self._name: str + + if description is not Unset: self.description = description - if homepage_url is not None: + if homepage_url is not Unset: self.homepage_url = homepage_url self.profile_tables = profile_tables self.key = key - if guid is not None: + if guid is not Unset: self.guid = guid - if group_name is not None: + if group_name is not Unset: self.group_name = group_name self.is_implicit = is_implicit self.name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSchemaProfilesProfile. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaProfilesProfile. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaProfilesProfile. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaProfilesProfile. """ self._description = description @property - def homepage_url(self) -> "Optional[str]": + def homepage_url(self) -> "Union[str, None, Unset_Type]": """Gets the homepage_url of this GrantaServerApiSchemaProfilesProfile. Returns ------- - str + Union[str, None, Unset_Type] The homepage_url of this GrantaServerApiSchemaProfilesProfile. """ return self._homepage_url @homepage_url.setter - def homepage_url(self, homepage_url: "Optional[str]") -> None: + def homepage_url(self, homepage_url: "Union[str, None, Unset_Type]") -> None: """Sets the homepage_url of this GrantaServerApiSchemaProfilesProfile. Parameters ---------- - homepage_url: str + homepage_url: Union[str, None, Unset_Type] The homepage_url of this GrantaServerApiSchemaProfilesProfile. """ self._homepage_url = homepage_url @@ -173,7 +173,7 @@ def profile_tables( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] + List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] The profile_tables of this GrantaServerApiSchemaProfilesProfile. """ return self._profile_tables @@ -189,8 +189,12 @@ def profile_tables( profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] The profile_tables of this GrantaServerApiSchemaProfilesProfile. """ + # Field is not nullable if profile_tables is None: raise ValueError("Invalid value for 'profile_tables', must not be 'None'") + # Field is required + if profile_tables is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'profile_tables', must not be 'Unset'") self._profile_tables = profile_tables @property @@ -215,52 +219,56 @@ def key(self, key: "str") -> None: key: str The key of this GrantaServerApiSchemaProfilesProfile. """ + # Field is not nullable if key is None: raise ValueError("Invalid value for 'key', must not be 'None'") + # Field is required + if key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'key', must not be 'Unset'") self._key = key @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaProfilesProfile. Guid is a unique identifier of a profile. Separate from key. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaProfilesProfile. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaProfilesProfile. Guid is a unique identifier of a profile. Separate from key. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaProfilesProfile. """ self._guid = guid @property - def group_name(self) -> "Optional[str]": + def group_name(self) -> "Union[str, None, Unset_Type]": """Gets the group_name of this GrantaServerApiSchemaProfilesProfile. Returns ------- - str + Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaProfilesProfile. """ return self._group_name @group_name.setter - def group_name(self, group_name: "Optional[str]") -> None: + def group_name(self, group_name: "Union[str, None, Unset_Type]") -> None: """Sets the group_name of this GrantaServerApiSchemaProfilesProfile. Parameters ---------- - group_name: str + group_name: Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaProfilesProfile. """ self._group_name = group_name @@ -285,8 +293,12 @@ def is_implicit(self, is_implicit: "bool") -> None: is_implicit: bool The is_implicit of this GrantaServerApiSchemaProfilesProfile. """ + # Field is not nullable if is_implicit is None: raise ValueError("Invalid value for 'is_implicit', must not be 'None'") + # Field is required + if is_implicit is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_implicit', must not be 'Unset'") self._is_implicit = is_implicit @property @@ -309,12 +321,16 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaProfilesProfile. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -331,7 +347,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py index 40e5c043..953e18b0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfilesUpdateAllProfilesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfilesUpdateAllProfilesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,44 +66,51 @@ class GrantaServerApiSchemaProfilesUpdateAllProfilesInfo(ModelBase): # type: ig def __init__( self, *, - default_profile: "Optional[GrantaServerApiSchemaProfilesUpdateDefaultProfile]" = None, - profiles: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, + default_profile: "Union[GrantaServerApiSchemaProfilesUpdateDefaultProfile, Unset_Type]" = Unset, + profiles: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfilesUpdateAllProfilesInfo - a model defined in Swagger Parameters ---------- - default_profile: GrantaServerApiSchemaProfilesUpdateDefaultProfile, optional - profiles: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + default_profile: GrantaServerApiSchemaProfilesUpdateDefaultProfile, optional + profiles: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional """ - self._profiles = None - self._default_profile = None - - if profiles is not None: + self._profiles: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._default_profile: Union[ + GrantaServerApiSchemaProfilesUpdateDefaultProfile, Unset_Type + ] = Unset + + if profiles is not Unset: self.profiles = profiles - if default_profile is not None: + if default_profile is not Unset: self.default_profile = default_profile @property - def profiles(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + def profiles( + self, + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. """ return self._profiles @profiles.setter def profiles( - self, profiles: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" + self, + profiles: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. Parameters ---------- - profiles: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + profiles: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. """ self._profiles = profiles @@ -111,12 +118,12 @@ def profiles( @property def default_profile( self, - ) -> "Optional[GrantaServerApiSchemaProfilesUpdateDefaultProfile]": + ) -> "Union[GrantaServerApiSchemaProfilesUpdateDefaultProfile, Unset_Type]": """Gets the default_profile of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. Returns ------- - GrantaServerApiSchemaProfilesUpdateDefaultProfile + Union[GrantaServerApiSchemaProfilesUpdateDefaultProfile, Unset_Type] The default_profile of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. """ return self._default_profile @@ -124,19 +131,22 @@ def default_profile( @default_profile.setter def default_profile( self, - default_profile: "Optional[GrantaServerApiSchemaProfilesUpdateDefaultProfile]", + default_profile: "Union[GrantaServerApiSchemaProfilesUpdateDefaultProfile, Unset_Type]", ) -> None: """Sets the default_profile of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. Parameters ---------- - default_profile: GrantaServerApiSchemaProfilesUpdateDefaultProfile + default_profile: Union[GrantaServerApiSchemaProfilesUpdateDefaultProfile, Unset_Type] The default_profile of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. """ + # Field is not nullable + if default_profile is None: + raise ValueError("Invalid value for 'default_profile', must not be 'None'") self._default_profile = default_profile @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -153,7 +163,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py index 24907ee2..5e1846a2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfilesUpdateDefaultProfile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfilesUpdateDefaultProfile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,9 +67,9 @@ def __init__( Parameters ---------- - key: str + key: str """ - self._key: str = None # type: ignore[assignment] + self._key: str self.key = key @@ -95,12 +95,16 @@ def key(self, key: "str") -> None: key: str The key of this GrantaServerApiSchemaProfilesUpdateDefaultProfile. """ + # Field is not nullable if key is None: raise ValueError("Invalid value for 'key', must not be 'None'") + # Field is required + if key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'key', must not be 'Unset'") self._key = key @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -117,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py index 8b7d8a35..c3a9a3e0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,180 +71,185 @@ class GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): # type: ignore[mis def __init__( self, *, - description: "Optional[str]" = None, - group_name: "Optional[str]" = None, - guid: "Optional[str]" = None, - homepage_url: "Optional[str]" = None, - name: "Optional[str]" = None, - profile_table_guids: "Optional[List[str]]" = None, + description: "Union[str, None, Unset_Type]" = Unset, + group_name: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + homepage_url: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + profile_table_guids: "Union[List[str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaProfilesUpdateProfile - a model defined in Swagger Parameters ---------- - description: str, optional - group_name: str, optional - guid: str, optional - homepage_url: str, optional - name: str, optional - profile_table_guids: List[str], optional + description: str, optional + group_name: str, optional + guid: str, optional + homepage_url: str, optional + name: str, optional + profile_table_guids: List[str], optional """ - self._description = None - self._homepage_url = None - self._profile_table_guids = None - self._guid = None - self._group_name = None - self._name = None - - if description is not None: + self._description: Union[str, None, Unset_Type] = Unset + self._homepage_url: Union[str, None, Unset_Type] = Unset + self._profile_table_guids: Union[List[str], None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._group_name: Union[str, None, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + + if description is not Unset: self.description = description - if homepage_url is not None: + if homepage_url is not Unset: self.homepage_url = homepage_url - if profile_table_guids is not None: + if profile_table_guids is not Unset: self.profile_table_guids = profile_table_guids - if guid is not None: + if guid is not Unset: self.guid = guid - if group_name is not None: + if group_name is not Unset: self.group_name = group_name - if name is not None: + if name is not Unset: self.name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSchemaProfilesUpdateProfile. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaProfilesUpdateProfile. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSchemaProfilesUpdateProfile. """ self._description = description @property - def homepage_url(self) -> "Optional[str]": + def homepage_url(self) -> "Union[str, None, Unset_Type]": """Gets the homepage_url of this GrantaServerApiSchemaProfilesUpdateProfile. Returns ------- - str + Union[str, None, Unset_Type] The homepage_url of this GrantaServerApiSchemaProfilesUpdateProfile. """ return self._homepage_url @homepage_url.setter - def homepage_url(self, homepage_url: "Optional[str]") -> None: + def homepage_url(self, homepage_url: "Union[str, None, Unset_Type]") -> None: """Sets the homepage_url of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters ---------- - homepage_url: str + homepage_url: Union[str, None, Unset_Type] The homepage_url of this GrantaServerApiSchemaProfilesUpdateProfile. """ self._homepage_url = homepage_url @property - def profile_table_guids(self) -> "Optional[List[str]]": + def profile_table_guids(self) -> "Union[List[str], None, Unset_Type]": """Gets the profile_table_guids of this GrantaServerApiSchemaProfilesUpdateProfile. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The profile_table_guids of this GrantaServerApiSchemaProfilesUpdateProfile. """ return self._profile_table_guids @profile_table_guids.setter - def profile_table_guids(self, profile_table_guids: "Optional[List[str]]") -> None: + def profile_table_guids( + self, profile_table_guids: "Union[List[str], None, Unset_Type]" + ) -> None: """Sets the profile_table_guids of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters ---------- - profile_table_guids: List[str] + profile_table_guids: Union[List[str], None, Unset_Type] The profile_table_guids of this GrantaServerApiSchemaProfilesUpdateProfile. """ self._profile_table_guids = profile_table_guids @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaProfilesUpdateProfile. Guid is a unique identifier of a profile. Separate from key. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaProfilesUpdateProfile. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaProfilesUpdateProfile. Guid is a unique identifier of a profile. Separate from key. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaProfilesUpdateProfile. """ self._guid = guid @property - def group_name(self) -> "Optional[str]": + def group_name(self) -> "Union[str, None, Unset_Type]": """Gets the group_name of this GrantaServerApiSchemaProfilesUpdateProfile. Returns ------- - str + Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaProfilesUpdateProfile. """ return self._group_name @group_name.setter - def group_name(self, group_name: "Optional[str]") -> None: + def group_name(self, group_name: "Union[str, None, Unset_Type]") -> None: """Sets the group_name of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters ---------- - group_name: str + group_name: Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaProfilesUpdateProfile. """ self._group_name = group_name @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaProfilesUpdateProfile. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaProfilesUpdateProfile. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaProfilesUpdateProfile. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -261,7 +266,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py index 43bd8570..d1bea564 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -66,33 +66,37 @@ class GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair(ModelBase): # type def __init__( self, *, - attribute_source: "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]" = None, - attribute_target: "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]" = None, + attribute_source: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]" = Unset, + attribute_target: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair - a model defined in Swagger Parameters ---------- - attribute_source: GrantaServerApiSchemaSlimEntitiesSlimAttribute, optional - attribute_target: GrantaServerApiSchemaSlimEntitiesSlimAttribute, optional + attribute_source: GrantaServerApiSchemaSlimEntitiesSlimAttribute, optional + attribute_target: GrantaServerApiSchemaSlimEntitiesSlimAttribute, optional """ - self._attribute_source = None - self._attribute_target = None - - if attribute_source is not None: + self._attribute_source: Union[ + GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type + ] = Unset + self._attribute_target: Union[ + GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type + ] = Unset + + if attribute_source is not Unset: self.attribute_source = attribute_source - if attribute_target is not None: + if attribute_target is not Unset: self.attribute_target = attribute_target @property def attribute_source( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]": """Gets the attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimAttribute + Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type] The attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. """ return self._attribute_source @@ -100,26 +104,29 @@ def attribute_source( @attribute_source.setter def attribute_source( self, - attribute_source: "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]", + attribute_source: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]", ) -> None: """Sets the attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. Parameters ---------- - attribute_source: GrantaServerApiSchemaSlimEntitiesSlimAttribute + attribute_source: Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type] The attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. """ + # Field is not nullable + if attribute_source is None: + raise ValueError("Invalid value for 'attribute_source', must not be 'None'") self._attribute_source = attribute_source @property def attribute_target( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]": """Gets the attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimAttribute + Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type] The attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. """ return self._attribute_target @@ -127,19 +134,22 @@ def attribute_target( @attribute_target.setter def attribute_target( self, - attribute_target: "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]", + attribute_target: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]", ) -> None: """Sets the attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. Parameters ---------- - attribute_target: GrantaServerApiSchemaSlimEntitiesSlimAttribute + attribute_target: Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type] The attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. """ + # Field is not nullable + if attribute_target is None: + raise ValueError("Invalid value for 'attribute_target', must not be 'None'") self._attribute_target = attribute_target @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -156,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py index 971b8220..a56c7582 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - attribute_source_guid: str - attribute_target_guid: str + attribute_source_guid: str + attribute_target_guid: str """ - self._attribute_source_guid: str = None # type: ignore[assignment] - self._attribute_target_guid: str = None # type: ignore[assignment] + self._attribute_source_guid: str + self._attribute_target_guid: str self.attribute_source_guid = attribute_source_guid self.attribute_target_guid = attribute_target_guid @@ -99,10 +99,16 @@ def attribute_source_guid(self, attribute_source_guid: "str") -> None: attribute_source_guid: str The attribute_source_guid of this GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair. """ + # Field is not nullable if attribute_source_guid is None: raise ValueError( "Invalid value for 'attribute_source_guid', must not be 'None'" ) + # Field is required + if attribute_source_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_source_guid', must not be 'Unset'" + ) self._attribute_source_guid = attribute_source_guid @property @@ -125,14 +131,20 @@ def attribute_target_guid(self, attribute_target_guid: "str") -> None: attribute_target_guid: str The attribute_target_guid of this GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair. """ + # Field is not nullable if attribute_target_guid is None: raise ValueError( "Invalid value for 'attribute_target_guid', must not be 'None'" ) + # Field is required + if attribute_target_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_target_guid', must not be 'Unset'" + ) self._attribute_target_guid = attribute_target_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -149,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py index 104eb685..c411d1c1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup, ) # noqa: F401 @@ -79,29 +79,29 @@ def __init__( link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", name: "str", reverse_name: "str", - guid: "Optional[str]" = None, - include_indirect_links: "Optional[bool]" = None, + guid: "Union[str, Unset_Type]" = Unset, + include_indirect_links: "Union[bool, Unset_Type]" = Unset, type: "str" = "crossDatabase", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup - a model defined in Swagger Parameters ---------- - link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget - name: str - reverse_name: str - guid: str, optional - include_indirect_links: bool, optional - type: str + link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + name: str + reverse_name: str + guid: str, optional + include_indirect_links: bool, optional + type: str """ super().__init__( link_target=link_target, name=name, reverse_name=reverse_name, guid=guid ) - self._type: str = None # type: ignore[assignment] - self._include_indirect_links = None + self._type: str + self._include_indirect_links: Union[bool, Unset_Type] = Unset self.type = type - if include_indirect_links is not None: + if include_indirect_links is not Unset: self.include_indirect_links = include_indirect_links @property @@ -124,34 +124,45 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def include_indirect_links(self) -> "Optional[bool]": + def include_indirect_links(self) -> "Union[bool, Unset_Type]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. Returns ------- - bool + Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. """ return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: + def include_indirect_links( + self, include_indirect_links: "Union[bool, Unset_Type]" + ) -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. Parameters ---------- - include_indirect_links: bool + include_indirect_links: Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. """ + # Field is not nullable + if include_indirect_links is None: + raise ValueError( + "Invalid value for 'include_indirect_links', must not be 'None'" + ) self._include_indirect_links = include_indirect_links @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -168,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py index 895b0811..fb62f37a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup, ) # noqa: F401 @@ -87,36 +87,40 @@ def __init__( link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", name: "str", reverse_name: "str", - forbid_orphans: "Optional[bool]" = None, - guid: "Optional[str]" = None, - referential_integrity_model: "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]" = None, + forbid_orphans: "Union[bool, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + referential_integrity_model: "Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type]" = Unset, type: "str" = "dynamic", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup - a model defined in Swagger Parameters ---------- - attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] - link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget - name: str - reverse_name: str - forbid_orphans: bool, optional - guid: str, optional - referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, optional - type: str + attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] + link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + name: str + reverse_name: str + forbid_orphans: bool, optional + guid: str, optional + referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, optional + type: str """ super().__init__( link_target=link_target, name=name, reverse_name=reverse_name, guid=guid ) - self._type: str = None # type: ignore[assignment] - self._forbid_orphans = None - self._referential_integrity_model = None - self._attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] = None # type: ignore[assignment] + self._type: str + self._forbid_orphans: Union[bool, Unset_Type] = Unset + self._referential_integrity_model: Union[ + GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type + ] = Unset + self._attribute_pairs: List[ + GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair + ] self.type = type - if forbid_orphans is not None: + if forbid_orphans is not Unset: self.forbid_orphans = forbid_orphans - if referential_integrity_model is not None: + if referential_integrity_model is not Unset: self.referential_integrity_model = referential_integrity_model self.attribute_pairs = attribute_pairs @@ -140,41 +144,48 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def forbid_orphans(self) -> "Optional[bool]": + def forbid_orphans(self) -> "Union[bool, Unset_Type]": """Gets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Returns ------- - bool + Union[bool, Unset_Type] The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ return self._forbid_orphans @forbid_orphans.setter - def forbid_orphans(self, forbid_orphans: "Optional[bool]") -> None: + def forbid_orphans(self, forbid_orphans: "Union[bool, Unset_Type]") -> None: """Sets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Parameters ---------- - forbid_orphans: bool + forbid_orphans: Union[bool, Unset_Type] The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ + # Field is not nullable + if forbid_orphans is None: + raise ValueError("Invalid value for 'forbid_orphans', must not be 'None'") self._forbid_orphans = forbid_orphans @property def referential_integrity_model( self, - ) -> "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]": + ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type]": """Gets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Returns ------- - GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type] The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ return self._referential_integrity_model @@ -182,15 +193,20 @@ def referential_integrity_model( @referential_integrity_model.setter def referential_integrity_model( self, - referential_integrity_model: "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]", + referential_integrity_model: "Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type]", ) -> None: """Sets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Parameters ---------- - referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + referential_integrity_model: Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type] The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ + # Field is not nullable + if referential_integrity_model is None: + raise ValueError( + "Invalid value for 'referential_integrity_model', must not be 'None'" + ) self._referential_integrity_model = referential_integrity_model @property @@ -201,7 +217,7 @@ def attribute_pairs( Returns ------- - list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] + List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ return self._attribute_pairs @@ -218,12 +234,16 @@ def attribute_pairs( attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ + # Field is not nullable if attribute_pairs is None: raise ValueError("Invalid value for 'attribute_pairs', must not be 'None'") + # Field is required + if attribute_pairs is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attribute_pairs', must not be 'Unset'") self._attribute_pairs = attribute_pairs @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -240,7 +260,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py index 4064b133..4e49fd20 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,26 +80,26 @@ def __init__( link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", name: "str", reverse_name: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup - a model defined in Swagger Parameters ---------- - link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget - name: str - reverse_name: str - guid: str, optional + link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + name: str + reverse_name: str + guid: str, optional """ - self._link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget = None # type: ignore[assignment] - self._reverse_name: str = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid = None + self._link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + self._reverse_name: str + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.link_target = link_target self.reverse_name = reverse_name self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -124,8 +124,12 @@ def link_target( link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget The link_target of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. """ + # Field is not nullable if link_target is None: raise ValueError("Invalid value for 'link_target', must not be 'None'") + # Field is required + if link_target is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_target', must not be 'Unset'") self._link_target = link_target @property @@ -148,8 +152,12 @@ def reverse_name(self, reverse_name: "str") -> None: reverse_name: str The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. """ + # Field is not nullable if reverse_name is None: raise ValueError("Invalid value for 'reverse_name', must not be 'None'") + # Field is required + if reverse_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'reverse_name', must not be 'Unset'") self._reverse_name = reverse_name @property @@ -172,34 +180,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -221,7 +236,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py index 3fd24812..8c7e1833 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup, ) # noqa: F401 @@ -79,29 +79,29 @@ def __init__( link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", name: "str", reverse_name: "str", - guid: "Optional[str]" = None, - include_indirect_links: "Optional[bool]" = None, + guid: "Union[str, Unset_Type]" = Unset, + include_indirect_links: "Union[bool, Unset_Type]" = Unset, type: "str" = "static", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup - a model defined in Swagger Parameters ---------- - link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget - name: str - reverse_name: str - guid: str, optional - include_indirect_links: bool, optional - type: str + link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + name: str + reverse_name: str + guid: str, optional + include_indirect_links: bool, optional + type: str """ super().__init__( link_target=link_target, name=name, reverse_name=reverse_name, guid=guid ) - self._type: str = None # type: ignore[assignment] - self._include_indirect_links = None + self._type: str + self._include_indirect_links: Union[bool, Unset_Type] = Unset self.type = type - if include_indirect_links is not None: + if include_indirect_links is not Unset: self.include_indirect_links = include_indirect_links @property @@ -124,34 +124,45 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def include_indirect_links(self) -> "Optional[bool]": + def include_indirect_links(self) -> "Union[bool, Unset_Type]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. Returns ------- - bool + Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. """ return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: + def include_indirect_links( + self, include_indirect_links: "Union[bool, Unset_Type]" + ) -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. Parameters ---------- - include_indirect_links: bool + include_indirect_links: Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. """ + # Field is not nullable + if include_indirect_links is None: + raise ValueError( + "Invalid value for 'include_indirect_links', must not be 'None'" + ) self._include_indirect_links = include_indirect_links @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -168,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py index 855ff4c5..c678fef6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, ) # noqa: F401 @@ -88,23 +88,23 @@ def __init__( link_info: "GrantaServerApiSchemaRecordLinkGroupsLinkInfo", name: "str", reverse_name: "str", - identity: "Optional[int]" = None, - reverse_display_names: "Optional[Dict[str, str]]" = None, + identity: "Union[int, None, Unset_Type]" = Unset, + reverse_display_names: "Union[Dict[str, str], None, Unset_Type]" = Unset, type: "str" = "crossDatabase", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup - a model defined in Swagger Parameters ---------- - display_names: Dict[str, str] - guid: str - include_indirect_links: bool - link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo - name: str - reverse_name: str - identity: int, optional - reverse_display_names: Dict[str, str], optional - type: str + display_names: Dict[str, str] + guid: str + include_indirect_links: bool + link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo + name: str + reverse_name: str + identity: int, optional + reverse_display_names: Dict[str, str], optional + type: str """ super().__init__( display_names=display_names, @@ -115,8 +115,8 @@ def __init__( identity=identity, reverse_display_names=reverse_display_names, ) - self._type: str = None # type: ignore[assignment] - self._include_indirect_links: bool = None # type: ignore[assignment] + self._type: str + self._include_indirect_links: bool self.type = type self.include_indirect_links = include_indirect_links @@ -141,8 +141,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -165,14 +169,20 @@ def include_indirect_links(self, include_indirect_links: "bool") -> None: include_indirect_links: bool The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. """ + # Field is not nullable if include_indirect_links is None: raise ValueError( "Invalid value for 'include_indirect_links', must not be 'None'" ) + # Field is required + if include_indirect_links is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'include_indirect_links', must not be 'Unset'" + ) self._include_indirect_links = include_indirect_links @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -189,7 +199,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py index 8e9edc79..4511658c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, ) # noqa: F401 @@ -97,25 +97,25 @@ def __init__( name: "str", referential_integrity_model: "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", reverse_name: "str", - identity: "Optional[int]" = None, - reverse_display_names: "Optional[Dict[str, str]]" = None, + identity: "Union[int, None, Unset_Type]" = Unset, + reverse_display_names: "Union[Dict[str, str], None, Unset_Type]" = Unset, type: "str" = "dynamic", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup - a model defined in Swagger Parameters ---------- - attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] - display_names: Dict[str, str] - forbid_orphans: bool - guid: str - link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo - name: str - referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel - reverse_name: str - identity: int, optional - reverse_display_names: Dict[str, str], optional - type: str + attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] + display_names: Dict[str, str] + forbid_orphans: bool + guid: str + link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo + name: str + referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + reverse_name: str + identity: int, optional + reverse_display_names: Dict[str, str], optional + type: str """ super().__init__( display_names=display_names, @@ -126,10 +126,14 @@ def __init__( identity=identity, reverse_display_names=reverse_display_names, ) - self._type: str = None # type: ignore[assignment] - self._forbid_orphans: bool = None # type: ignore[assignment] - self._referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel = None # type: ignore[assignment] - self._attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] = None # type: ignore[assignment] + self._type: str + self._forbid_orphans: bool + self._referential_integrity_model: ( + GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + ) + self._attribute_pairs: List[ + GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair + ] self.type = type self.forbid_orphans = forbid_orphans @@ -156,8 +160,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -180,8 +188,12 @@ def forbid_orphans(self, forbid_orphans: "bool") -> None: forbid_orphans: bool The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. """ + # Field is not nullable if forbid_orphans is None: raise ValueError("Invalid value for 'forbid_orphans', must not be 'None'") + # Field is required + if forbid_orphans is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'forbid_orphans', must not be 'Unset'") self._forbid_orphans = forbid_orphans @property @@ -209,10 +221,16 @@ def referential_integrity_model( referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. """ + # Field is not nullable if referential_integrity_model is None: raise ValueError( "Invalid value for 'referential_integrity_model', must not be 'None'" ) + # Field is required + if referential_integrity_model is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'referential_integrity_model', must not be 'Unset'" + ) self._referential_integrity_model = referential_integrity_model @property @@ -223,7 +241,7 @@ def attribute_pairs( Returns ------- - list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] + List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. """ return self._attribute_pairs @@ -240,12 +258,16 @@ def attribute_pairs( attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. """ + # Field is not nullable if attribute_pairs is None: raise ValueError("Invalid value for 'attribute_pairs', must not be 'None'") + # Field is required + if attribute_pairs is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attribute_pairs', must not be 'Unset'") self._attribute_pairs = attribute_pairs @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -262,7 +284,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py index 4e2d7e31..1d493455 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsLinkInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsLinkInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,11 +73,11 @@ def __init__( Parameters ---------- - link_source: GrantaServerApiSchemaRecordLinkGroupsLinkTarget - link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + link_source: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget """ - self._link_source: GrantaServerApiSchemaRecordLinkGroupsLinkTarget = None # type: ignore[assignment] - self._link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget = None # type: ignore[assignment] + self._link_source: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + self._link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget self.link_source = link_source self.link_target = link_target @@ -104,8 +104,12 @@ def link_source( link_source: GrantaServerApiSchemaRecordLinkGroupsLinkTarget The link_source of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. """ + # Field is not nullable if link_source is None: raise ValueError("Invalid value for 'link_source', must not be 'None'") + # Field is required + if link_source is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_source', must not be 'Unset'") self._link_source = link_source @property @@ -130,12 +134,16 @@ def link_target( link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget The link_target of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. """ + # Field is not nullable if link_target is None: raise ValueError("Invalid value for 'link_target', must not be 'None'") + # Field is required + if link_target is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_target', must not be 'Unset'") self._link_target = link_target @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -152,7 +160,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py index c6e5a6f0..9bb855ea 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsLinkTarget(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsLinkTarget(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,99 @@ class GrantaServerApiSchemaRecordLinkGroupsLinkTarget(ModelBase): # type: ignor def __init__( self, *, - database_guid: "Optional[str]" = None, - database_version_guid: "Optional[str]" = None, - table_guid: "Optional[str]" = None, + database_guid: "Union[str, None, Unset_Type]" = Unset, + database_version_guid: "Union[str, None, Unset_Type]" = Unset, + table_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaRecordLinkGroupsLinkTarget - a model defined in Swagger Parameters ---------- - database_guid: str, optional - database_version_guid: str, optional - table_guid: str, optional + database_guid: str, optional + database_version_guid: str, optional + table_guid: str, optional """ - self._database_guid = None - self._database_version_guid = None - self._table_guid = None + self._database_guid: Union[str, None, Unset_Type] = Unset + self._database_version_guid: Union[str, None, Unset_Type] = Unset + self._table_guid: Union[str, None, Unset_Type] = Unset - if database_guid is not None: + if database_guid is not Unset: self.database_guid = database_guid - if database_version_guid is not None: + if database_version_guid is not Unset: self.database_version_guid = database_version_guid - if table_guid is not None: + if table_guid is not Unset: self.table_guid = table_guid @property - def database_guid(self) -> "Optional[str]": + def database_guid(self) -> "Union[str, None, Unset_Type]": """Gets the database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Returns ------- - str + Union[str, None, Unset_Type] The database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. """ return self._database_guid @database_guid.setter - def database_guid(self, database_guid: "Optional[str]") -> None: + def database_guid(self, database_guid: "Union[str, None, Unset_Type]") -> None: """Sets the database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Parameters ---------- - database_guid: str + database_guid: Union[str, None, Unset_Type] The database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. """ self._database_guid = database_guid @property - def database_version_guid(self) -> "Optional[str]": + def database_version_guid(self) -> "Union[str, None, Unset_Type]": """Gets the database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Returns ------- - str + Union[str, None, Unset_Type] The database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. """ return self._database_version_guid @database_version_guid.setter - def database_version_guid(self, database_version_guid: "Optional[str]") -> None: + def database_version_guid( + self, database_version_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Parameters ---------- - database_version_guid: str + database_version_guid: Union[str, None, Unset_Type] The database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. """ self._database_version_guid = database_version_guid @property - def table_guid(self) -> "Optional[str]": + def table_guid(self) -> "Union[str, None, Unset_Type]": """Gets the table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Returns ------- - str + Union[str, None, Unset_Type] The table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. """ return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "Optional[str]") -> None: + def table_guid(self, table_guid: "Union[str, None, Unset_Type]") -> None: """Sets the table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Parameters ---------- - table_guid: str + table_guid: Union[str, None, Unset_Type] The table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. """ self._table_guid = table_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py index d5f810a0..2deb372a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -88,34 +88,34 @@ def __init__( link_info: "GrantaServerApiSchemaRecordLinkGroupsLinkInfo", name: "str", reverse_name: "str", - identity: "Optional[int]" = None, - reverse_display_names: "Optional[Dict[str, str]]" = None, + identity: "Union[int, None, Unset_Type]" = Unset, + reverse_display_names: "Union[Dict[str, str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup - a model defined in Swagger Parameters ---------- - display_names: Dict[str, str] - guid: str - link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo - name: str - reverse_name: str - identity: int, optional - reverse_display_names: Dict[str, str], optional + display_names: Dict[str, str] + guid: str + link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo + name: str + reverse_name: str + identity: int, optional + reverse_display_names: Dict[str, str], optional """ - self._link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo = None # type: ignore[assignment] - self._identity = None - self._reverse_name: str = None # type: ignore[assignment] - self._reverse_display_names = None - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo + self._identity: Union[int, None, Unset_Type] = Unset + self._reverse_name: str + self._reverse_display_names: Union[Dict[str, str], None, Unset_Type] = Unset + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.link_info = link_info - if identity is not None: + if identity is not Unset: self.identity = identity self.reverse_name = reverse_name - if reverse_display_names is not None: + if reverse_display_names is not Unset: self.reverse_display_names = reverse_display_names self.display_names = display_names self.name = name @@ -143,28 +143,32 @@ def link_info( link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo The link_info of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ + # Field is not nullable if link_info is None: raise ValueError("Invalid value for 'link_info', must not be 'None'") + # Field is required + if link_info is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'link_info', must not be 'Unset'") self._link_info = link_info @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ self._identity = identity @@ -189,30 +193,34 @@ def reverse_name(self, reverse_name: "str") -> None: reverse_name: str The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ + # Field is not nullable if reverse_name is None: raise ValueError("Invalid value for 'reverse_name', must not be 'None'") + # Field is required + if reverse_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'reverse_name', must not be 'Unset'") self._reverse_name = reverse_name @property - def reverse_display_names(self) -> "Optional[Dict[str, str]]": + def reverse_display_names(self) -> "Union[Dict[str, str], None, Unset_Type]": """Gets the reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Returns ------- - dict(str, str) + Union[Dict[str, str], None, Unset_Type] The reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ return self._reverse_display_names @reverse_display_names.setter def reverse_display_names( - self, reverse_display_names: "Optional[Dict[str, str]]" + self, reverse_display_names: "Union[Dict[str, str], None, Unset_Type]" ) -> None: """Sets the reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Parameters ---------- - reverse_display_names: Dict[str, str] + reverse_display_names: Union[Dict[str, str], None, Unset_Type] The reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ self._reverse_display_names = reverse_display_names @@ -223,7 +231,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ return self._display_names @@ -237,8 +245,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -261,8 +273,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -285,12 +301,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -312,7 +332,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py index 10fd9b71..5be91b05 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo(ModelBase): # t def __init__( self, *, - record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]]" = None, + record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo - a model defined in Swagger Parameters ---------- - record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], optional + record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], optional """ - self._record_link_groups = None + self._record_link_groups: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], None, Unset_Type + ] = Unset - if record_link_groups is not None: + if record_link_groups is not Unset: self.record_link_groups = record_link_groups @property def record_link_groups( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], None, Unset_Type]": """Gets the record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], None, Unset_Type] The record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. """ return self._record_link_groups @@ -92,19 +94,19 @@ def record_link_groups( @record_link_groups.setter def record_link_groups( self, - record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]]", + record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], None, Unset_Type]", ) -> None: """Sets the record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. Parameters ---------- - record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup] + record_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup], None, Unset_Type] The record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. """ self._record_link_groups = record_link_groups @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py index a8367b72..6a634fae 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, ) # noqa: F401 @@ -88,23 +88,23 @@ def __init__( link_info: "GrantaServerApiSchemaRecordLinkGroupsLinkInfo", name: "str", reverse_name: "str", - identity: "Optional[int]" = None, - reverse_display_names: "Optional[Dict[str, str]]" = None, + identity: "Union[int, None, Unset_Type]" = Unset, + reverse_display_names: "Union[Dict[str, str], None, Unset_Type]" = Unset, type: "str" = "static", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup - a model defined in Swagger Parameters ---------- - display_names: Dict[str, str] - guid: str - include_indirect_links: bool - link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo - name: str - reverse_name: str - identity: int, optional - reverse_display_names: Dict[str, str], optional - type: str + display_names: Dict[str, str] + guid: str + include_indirect_links: bool + link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo + name: str + reverse_name: str + identity: int, optional + reverse_display_names: Dict[str, str], optional + type: str """ super().__init__( display_names=display_names, @@ -115,8 +115,8 @@ def __init__( identity=identity, reverse_display_names=reverse_display_names, ) - self._type: str = None # type: ignore[assignment] - self._include_indirect_links: bool = None # type: ignore[assignment] + self._type: str + self._include_indirect_links: bool self.type = type self.include_indirect_links = include_indirect_links @@ -141,8 +141,12 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -165,14 +169,20 @@ def include_indirect_links(self, include_indirect_links: "bool") -> None: include_indirect_links: bool The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. """ + # Field is not nullable if include_indirect_links is None: raise ValueError( "Invalid value for 'include_indirect_links', must not be 'None'" ) + # Field is required + if include_indirect_links is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'include_indirect_links', must not be 'Unset'" + ) self._include_indirect_links = include_indirect_links @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -189,7 +199,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py index d5c51bc4..a5d73225 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, ) # noqa: F401 @@ -74,50 +74,57 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup( def __init__( self, *, - guid: "Optional[str]" = None, - include_indirect_links: "Optional[bool]" = None, - name: "Optional[str]" = None, - reverse_name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + include_indirect_links: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + reverse_name: "Union[str, Unset_Type]" = Unset, type: "str" = "crossDatabase", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup - a model defined in Swagger Parameters ---------- - guid: str, optional - include_indirect_links: bool, optional - name: str, optional - reverse_name: str, optional - type: str + guid: str, optional + include_indirect_links: bool, optional + name: str, optional + reverse_name: str, optional + type: str """ super().__init__(guid=guid, name=name, reverse_name=reverse_name) - self._include_indirect_links = None - self._type: str = None # type: ignore[assignment] + self._include_indirect_links: Union[bool, Unset_Type] = Unset + self._type: str - if include_indirect_links is not None: + if include_indirect_links is not Unset: self.include_indirect_links = include_indirect_links self.type = type @property - def include_indirect_links(self) -> "Optional[bool]": + def include_indirect_links(self) -> "Union[bool, Unset_Type]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. Returns ------- - bool + Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. """ return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: + def include_indirect_links( + self, include_indirect_links: "Union[bool, Unset_Type]" + ) -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. Parameters ---------- - include_indirect_links: bool + include_indirect_links: Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. """ + # Field is not nullable + if include_indirect_links is None: + raise ValueError( + "Invalid value for 'include_indirect_links', must not be 'None'" + ) self._include_indirect_links = include_indirect_links @property @@ -140,12 +147,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +173,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py index b0f0e34b..c654c831 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, ) # noqa: F401 @@ -81,71 +81,79 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup( def __init__( self, *, - attribute_pairs: "Optional[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]]" = None, - forbid_orphans: "Optional[bool]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - referential_integrity_model: "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]" = None, - reverse_name: "Optional[str]" = None, + attribute_pairs: "Union[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], Unset_Type]" = Unset, + forbid_orphans: "Union[bool, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + referential_integrity_model: "Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type]" = Unset, + reverse_name: "Union[str, Unset_Type]" = Unset, type: "str" = "dynamic", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup - a model defined in Swagger Parameters ---------- - attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], optional - forbid_orphans: bool, optional - guid: str, optional - name: str, optional - referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, optional - reverse_name: str, optional - type: str + attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], optional + forbid_orphans: bool, optional + guid: str, optional + name: str, optional + referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, optional + reverse_name: str, optional + type: str """ super().__init__(guid=guid, name=name, reverse_name=reverse_name) - self._forbid_orphans = None - self._referential_integrity_model = None - self._attribute_pairs = None - self._type: str = None # type: ignore[assignment] - - if forbid_orphans is not None: + self._forbid_orphans: Union[bool, Unset_Type] = Unset + self._referential_integrity_model: Union[ + GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type + ] = Unset + self._attribute_pairs: Union[ + List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], + Unset_Type, + ] = Unset + self._type: str + + if forbid_orphans is not Unset: self.forbid_orphans = forbid_orphans - if referential_integrity_model is not None: + if referential_integrity_model is not Unset: self.referential_integrity_model = referential_integrity_model - if attribute_pairs is not None: + if attribute_pairs is not Unset: self.attribute_pairs = attribute_pairs self.type = type @property - def forbid_orphans(self) -> "Optional[bool]": + def forbid_orphans(self) -> "Union[bool, Unset_Type]": """Gets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Returns ------- - bool + Union[bool, Unset_Type] The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ return self._forbid_orphans @forbid_orphans.setter - def forbid_orphans(self, forbid_orphans: "Optional[bool]") -> None: + def forbid_orphans(self, forbid_orphans: "Union[bool, Unset_Type]") -> None: """Sets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Parameters ---------- - forbid_orphans: bool + forbid_orphans: Union[bool, Unset_Type] The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ + # Field is not nullable + if forbid_orphans is None: + raise ValueError("Invalid value for 'forbid_orphans', must not be 'None'") self._forbid_orphans = forbid_orphans @property def referential_integrity_model( self, - ) -> "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]": + ) -> "Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type]": """Gets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Returns ------- - GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type] The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ return self._referential_integrity_model @@ -153,26 +161,31 @@ def referential_integrity_model( @referential_integrity_model.setter def referential_integrity_model( self, - referential_integrity_model: "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]", + referential_integrity_model: "Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type]", ) -> None: """Sets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Parameters ---------- - referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + referential_integrity_model: Union[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type] The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ + # Field is not nullable + if referential_integrity_model is None: + raise ValueError( + "Invalid value for 'referential_integrity_model', must not be 'None'" + ) self._referential_integrity_model = referential_integrity_model @property def attribute_pairs( self, - ) -> "Optional[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]]": + ) -> "Union[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], Unset_Type]": """Gets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Returns ------- - list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] + Union[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], Unset_Type] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ return self._attribute_pairs @@ -180,15 +193,18 @@ def attribute_pairs( @attribute_pairs.setter def attribute_pairs( self, - attribute_pairs: "Optional[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]]", + attribute_pairs: "Union[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], Unset_Type]", ) -> None: """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Parameters ---------- - attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] + attribute_pairs: Union[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], Unset_Type] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ + # Field is not nullable + if attribute_pairs is None: + raise ValueError("Invalid value for 'attribute_pairs', must not be 'None'") self._attribute_pairs = attribute_pairs @property @@ -211,12 +227,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -233,7 +253,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py index b095f1da..a2248ee4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,97 +73,106 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): # def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - reverse_name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + reverse_name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional - reverse_name: str, optional + guid: str, optional + name: str, optional + reverse_name: str, optional """ - self._reverse_name = None - self._name = None - self._guid = None + self._reverse_name: Union[str, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if reverse_name is not None: + if reverse_name is not Unset: self.reverse_name = reverse_name - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def reverse_name(self) -> "Optional[str]": + def reverse_name(self) -> "Union[str, Unset_Type]": """Gets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Returns ------- - str + Union[str, Unset_Type] The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. """ return self._reverse_name @reverse_name.setter - def reverse_name(self, reverse_name: "Optional[str]") -> None: + def reverse_name(self, reverse_name: "Union[str, Unset_Type]") -> None: """Sets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Parameters ---------- - reverse_name: str + reverse_name: Union[str, Unset_Type] The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. """ + # Field is not nullable + if reverse_name is None: + raise ValueError("Invalid value for 'reverse_name', must not be 'None'") self._reverse_name = reverse_name @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -185,7 +194,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py index 09d02999..e9a64385 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, ) # noqa: F401 @@ -74,50 +74,57 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup( def __init__( self, *, - guid: "Optional[str]" = None, - include_indirect_links: "Optional[bool]" = None, - name: "Optional[str]" = None, - reverse_name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + include_indirect_links: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + reverse_name: "Union[str, Unset_Type]" = Unset, type: "str" = "static", ) -> None: """GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup - a model defined in Swagger Parameters ---------- - guid: str, optional - include_indirect_links: bool, optional - name: str, optional - reverse_name: str, optional - type: str + guid: str, optional + include_indirect_links: bool, optional + name: str, optional + reverse_name: str, optional + type: str """ super().__init__(guid=guid, name=name, reverse_name=reverse_name) - self._include_indirect_links = None - self._type: str = None # type: ignore[assignment] + self._include_indirect_links: Union[bool, Unset_Type] = Unset + self._type: str - if include_indirect_links is not None: + if include_indirect_links is not Unset: self.include_indirect_links = include_indirect_links self.type = type @property - def include_indirect_links(self) -> "Optional[bool]": + def include_indirect_links(self) -> "Union[bool, Unset_Type]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. Returns ------- - bool + Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. """ return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: + def include_indirect_links( + self, include_indirect_links: "Union[bool, Unset_Type]" + ) -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. Parameters ---------- - include_indirect_links: bool + include_indirect_links: Union[bool, Unset_Type] The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. """ + # Field is not nullable + if include_indirect_links is None: + raise ValueError( + "Invalid value for 'include_indirect_links', must not be 'None'" + ) self._include_indirect_links = include_indirect_links @property @@ -140,12 +147,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +173,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py index 65139c44..ba8bfc3c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimAttribute(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimAttribute(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,26 +76,28 @@ def __init__( guid: "str", name: "str", type: "GrantaServerApiAttributeType", - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" = None, + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSlimEntitiesSlimAttribute - a model defined in Swagger Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - type: GrantaServerApiAttributeType - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional + display_names: Dict[str, str] + guid: str + name: str + type: GrantaServerApiAttributeType + about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional """ - self._type: GrantaServerApiAttributeType = None # type: ignore[assignment] - self._about_attribute = None - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._type: GrantaServerApiAttributeType + self._about_attribute: Union[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type + ] = Unset + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.type = type - if about_attribute is not None: + if about_attribute is not Unset: self.about_attribute = about_attribute self.display_names = display_names self.name = name @@ -121,19 +123,23 @@ def type(self, type: "GrantaServerApiAttributeType") -> None: type: GrantaServerApiAttributeType The type of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property def about_attribute( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the about_attribute of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ return self._about_attribute @@ -141,15 +147,18 @@ def about_attribute( @about_attribute.setter def about_attribute( self, - about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. Parameters ---------- - about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + about_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] The about_attribute of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ + # Field is not nullable + if about_attribute is None: + raise ValueError("Invalid value for 'about_attribute', must not be 'None'") self._about_attribute = about_attribute @property @@ -158,7 +167,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ return self._display_names @@ -172,8 +181,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -196,8 +209,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -220,12 +237,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -242,7 +263,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py index ff6054d5..fd3a8c8d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimConfiguration(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimConfiguration(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - guid: str - name: str + guid: str + name: str """ - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._name: str + self._guid: str self.name = name self.guid = guid @@ -99,8 +99,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -123,12 +127,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py index bd14f1d9..b7447f49 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimConstant(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimConstant(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - guid: str - name: str + guid: str + name: str """ - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._name: str + self._guid: str self.name = name self.guid = guid @@ -99,8 +99,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimConstant. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -123,12 +127,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimConstant. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py index 9c70aa3b..eff31eb6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -89,53 +89,53 @@ def __init__( key: "str", name: "str", status: "GrantaServerApiSchemaDatabaseStatus", - index_in_sync: "Optional[bool]" = None, - index_out_of_date_duration: "Optional[str]" = None, - index_up_to_date: "Optional[bool]" = None, - schema_version: "Optional[str]" = None, - version_guid: "Optional[str]" = None, + index_in_sync: "Union[bool, None, Unset_Type]" = Unset, + index_out_of_date_duration: "Union[str, None, Unset_Type]" = Unset, + index_up_to_date: "Union[bool, None, Unset_Type]" = Unset, + schema_version: "Union[str, None, Unset_Type]" = Unset, + version_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSlimEntitiesSlimDatabase - a model defined in Swagger Parameters ---------- - guid: str - is_locked: bool - is_read_only: bool - key: str - name: str - status: GrantaServerApiSchemaDatabaseStatus - index_in_sync: bool, optional - index_out_of_date_duration: str, optional - index_up_to_date: bool, optional - schema_version: str, optional - version_guid: str, optional + guid: str + is_locked: bool + is_read_only: bool + key: str + name: str + status: GrantaServerApiSchemaDatabaseStatus + index_in_sync: bool, optional + index_out_of_date_duration: str, optional + index_up_to_date: bool, optional + schema_version: str, optional + version_guid: str, optional """ - self._key: str = None # type: ignore[assignment] - self._version_guid = None - self._status: GrantaServerApiSchemaDatabaseStatus = None # type: ignore[assignment] - self._is_read_only: bool = None # type: ignore[assignment] - self._is_locked: bool = None # type: ignore[assignment] - self._index_in_sync = None - self._index_up_to_date = None - self._index_out_of_date_duration = None - self._schema_version = None - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._key: str + self._version_guid: Union[str, None, Unset_Type] = Unset + self._status: GrantaServerApiSchemaDatabaseStatus + self._is_read_only: bool + self._is_locked: bool + self._index_in_sync: Union[bool, None, Unset_Type] = Unset + self._index_up_to_date: Union[bool, None, Unset_Type] = Unset + self._index_out_of_date_duration: Union[str, None, Unset_Type] = Unset + self._schema_version: Union[str, None, Unset_Type] = Unset + self._name: str + self._guid: str self.key = key - if version_guid is not None: + if version_guid is not Unset: self.version_guid = version_guid self.status = status self.is_read_only = is_read_only self.is_locked = is_locked - if index_in_sync is not None: + if index_in_sync is not Unset: self.index_in_sync = index_in_sync - if index_up_to_date is not None: + if index_up_to_date is not Unset: self.index_up_to_date = index_up_to_date - if index_out_of_date_duration is not None: + if index_out_of_date_duration is not Unset: self.index_out_of_date_duration = index_out_of_date_duration - if schema_version is not None: + if schema_version is not Unset: self.schema_version = schema_version self.name = name self.guid = guid @@ -160,28 +160,32 @@ def key(self, key: "str") -> None: key: str The key of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ + # Field is not nullable if key is None: raise ValueError("Invalid value for 'key', must not be 'None'") + # Field is required + if key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'key', must not be 'Unset'") self._key = key @property - def version_guid(self) -> "Optional[str]": + def version_guid(self) -> "Union[str, None, Unset_Type]": """Gets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns ------- - str + Union[str, None, Unset_Type] The version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ return self._version_guid @version_guid.setter - def version_guid(self, version_guid: "Optional[str]") -> None: + def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: """Sets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters ---------- - version_guid: str + version_guid: Union[str, None, Unset_Type] The version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ self._version_guid = version_guid @@ -206,8 +210,12 @@ def status(self, status: "GrantaServerApiSchemaDatabaseStatus") -> None: status: GrantaServerApiSchemaDatabaseStatus The status of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ + # Field is not nullable if status is None: raise ValueError("Invalid value for 'status', must not be 'None'") + # Field is required + if status is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'status', must not be 'Unset'") self._status = status @property @@ -230,8 +238,12 @@ def is_read_only(self, is_read_only: "bool") -> None: is_read_only: bool The is_read_only of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ + # Field is not nullable if is_read_only is None: raise ValueError("Invalid value for 'is_read_only', must not be 'None'") + # Field is required + if is_read_only is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_read_only', must not be 'Unset'") self._is_read_only = is_read_only @property @@ -254,96 +266,102 @@ def is_locked(self, is_locked: "bool") -> None: is_locked: bool The is_locked of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ + # Field is not nullable if is_locked is None: raise ValueError("Invalid value for 'is_locked', must not be 'None'") + # Field is required + if is_locked is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_locked', must not be 'Unset'") self._is_locked = is_locked @property - def index_in_sync(self) -> "Optional[bool]": + def index_in_sync(self) -> "Union[bool, None, Unset_Type]": """Gets the index_in_sync of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns ------- - bool + Union[bool, None, Unset_Type] The index_in_sync of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ return self._index_in_sync @index_in_sync.setter - def index_in_sync(self, index_in_sync: "Optional[bool]") -> None: + def index_in_sync(self, index_in_sync: "Union[bool, None, Unset_Type]") -> None: """Sets the index_in_sync of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters ---------- - index_in_sync: bool + index_in_sync: Union[bool, None, Unset_Type] The index_in_sync of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ self._index_in_sync = index_in_sync @property - def index_up_to_date(self) -> "Optional[bool]": + def index_up_to_date(self) -> "Union[bool, None, Unset_Type]": """Gets the index_up_to_date of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns ------- - bool + Union[bool, None, Unset_Type] The index_up_to_date of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ return self._index_up_to_date @index_up_to_date.setter - def index_up_to_date(self, index_up_to_date: "Optional[bool]") -> None: + def index_up_to_date( + self, index_up_to_date: "Union[bool, None, Unset_Type]" + ) -> None: """Sets the index_up_to_date of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters ---------- - index_up_to_date: bool + index_up_to_date: Union[bool, None, Unset_Type] The index_up_to_date of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ self._index_up_to_date = index_up_to_date @property - def index_out_of_date_duration(self) -> "Optional[str]": + def index_out_of_date_duration(self) -> "Union[str, None, Unset_Type]": """Gets the index_out_of_date_duration of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns ------- - str + Union[str, None, Unset_Type] The index_out_of_date_duration of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ return self._index_out_of_date_duration @index_out_of_date_duration.setter def index_out_of_date_duration( - self, index_out_of_date_duration: "Optional[str]" + self, index_out_of_date_duration: "Union[str, None, Unset_Type]" ) -> None: """Sets the index_out_of_date_duration of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters ---------- - index_out_of_date_duration: str + index_out_of_date_duration: Union[str, None, Unset_Type] The index_out_of_date_duration of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ self._index_out_of_date_duration = index_out_of_date_duration @property - def schema_version(self) -> "Optional[str]": + def schema_version(self) -> "Union[str, None, Unset_Type]": """Gets the schema_version of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns ------- - str + Union[str, None, Unset_Type] The schema_version of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ return self._schema_version @schema_version.setter - def schema_version(self, schema_version: "Optional[str]") -> None: + def schema_version(self, schema_version: "Union[str, None, Unset_Type]") -> None: """Sets the schema_version of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters ---------- - schema_version: str + schema_version: Union[str, None, Unset_Type] The schema_version of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ self._schema_version = schema_version @@ -368,8 +386,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -392,12 +414,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -414,7 +440,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py index ac45796a..c1c48158 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimEntity(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimEntity(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,9 +67,9 @@ def __init__( Parameters ---------- - guid: str + guid: str """ - self._guid: str = None # type: ignore[assignment] + self._guid: str self.guid = guid @@ -93,12 +93,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimEntity. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -115,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py index 468bae19..3600d2dd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimExpression(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimExpression(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - guid: str - name: str + guid: str + name: str """ - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._name: str + self._guid: str self.name = name self.guid = guid @@ -99,8 +99,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimExpression. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -123,12 +127,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimExpression. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py index 611bd7a0..85841bbc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimFile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimFile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - guid: str - name: str + guid: str + name: str """ - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._name: str + self._guid: str self.name = name self.guid = guid @@ -99,8 +99,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimFile. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -123,12 +127,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimFile. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py index d23f4778..89e35180 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimLayout(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimLayout(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,13 +73,13 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str + display_names: Dict[str, str] + guid: str + name: str """ - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.display_names = display_names self.name = name @@ -91,7 +91,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimLayout. """ return self._display_names @@ -105,8 +105,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimLayout. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -129,8 +133,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimLayout. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -153,12 +161,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimLayout. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py index 6e798022..393a3cd3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_section import ( GrantaServerApiSchemaLayoutsLayoutSection, ) # noqa: F401 @@ -81,13 +81,13 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - section_detail_type: str + display_names: Dict[str, str] + guid: str + name: str + section_detail_type: str """ super().__init__(display_names=display_names, guid=guid, name=name) - self._section_detail_type: str = None # type: ignore[assignment] + self._section_detail_type: str self.section_detail_type = section_detail_type @@ -111,14 +111,20 @@ def section_detail_type(self, section_detail_type: "str") -> None: section_detail_type: str The section_detail_type of this GrantaServerApiSchemaSlimEntitiesSlimLayoutSection. """ + # Field is not nullable if section_detail_type is None: raise ValueError( "Invalid value for 'section_detail_type', must not be 'None'" ) + # Field is required + if section_detail_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'section_detail_type', must not be 'Unset'" + ) self._section_detail_type = section_detail_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -135,7 +141,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py index 2e46b555..3d3faa0d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimNamedEntity(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimNamedEntity(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - guid: str - name: str + guid: str + name: str """ - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._name: str + self._guid: str self.name = name self.guid = guid @@ -99,8 +99,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimNamedEntity. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -123,12 +127,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimNamedEntity. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py index 8fd9bebb..6a223fa5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimObjects(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimObjects(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiSchemaSlimEntitiesSlimObjects(ModelBase): # type: ignore[m def __init__( self, *, - attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]" = None, + attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSlimEntitiesSlimObjects - a model defined in Swagger Parameters ---------- - attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional + attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional """ - self._attributes = None + self._attributes: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type + ] = Unset - if attributes is not None: + if attributes is not Unset: self.attributes = attributes @property def attributes( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]": """Gets the attributes of this GrantaServerApiSchemaSlimEntitiesSlimObjects. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The attributes of this GrantaServerApiSchemaSlimEntitiesSlimObjects. """ return self._attributes @@ -92,19 +94,19 @@ def attributes( @attributes.setter def attributes( self, - attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", + attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type]", ) -> None: """Sets the attributes of this GrantaServerApiSchemaSlimEntitiesSlimObjects. Parameters ---------- - attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + attributes: Union[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type] The attributes of this GrantaServerApiSchemaSlimEntitiesSlimObjects. """ self._attributes = attributes @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py index 5b7bc8a5..96b7944a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimProfile(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimProfile(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,29 +72,29 @@ def __init__( is_implicit: "bool", key: "str", name: "str", - group_name: "Optional[str]" = None, - guid: "Optional[str]" = None, + group_name: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSlimEntitiesSlimProfile - a model defined in Swagger Parameters ---------- - is_implicit: bool - key: str - name: str - group_name: str, optional - guid: str, optional + is_implicit: bool + key: str + name: str + group_name: str, optional + guid: str, optional """ - self._key: str = None # type: ignore[assignment] - self._guid = None - self._group_name = None - self._is_implicit: bool = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] + self._key: str + self._guid: Union[str, None, Unset_Type] = Unset + self._group_name: Union[str, None, Unset_Type] = Unset + self._is_implicit: bool + self._name: str self.key = key - if guid is not None: + if guid is not Unset: self.guid = guid - if group_name is not None: + if group_name is not Unset: self.group_name = group_name self.is_implicit = is_implicit self.name = name @@ -121,52 +121,56 @@ def key(self, key: "str") -> None: key: str The key of this GrantaServerApiSchemaSlimEntitiesSlimProfile. """ + # Field is not nullable if key is None: raise ValueError("Invalid value for 'key', must not be 'None'") + # Field is required + if key is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'key', must not be 'Unset'") self._key = key @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Guid is a unique identifier of a profile. Separate from key. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaSlimEntitiesSlimProfile. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Guid is a unique identifier of a profile. Separate from key. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaSlimEntitiesSlimProfile. """ self._guid = guid @property - def group_name(self) -> "Optional[str]": + def group_name(self) -> "Union[str, None, Unset_Type]": """Gets the group_name of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Returns ------- - str + Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaSlimEntitiesSlimProfile. """ return self._group_name @group_name.setter - def group_name(self, group_name: "Optional[str]") -> None: + def group_name(self, group_name: "Union[str, None, Unset_Type]") -> None: """Sets the group_name of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Parameters ---------- - group_name: str + group_name: Union[str, None, Unset_Type] The group_name of this GrantaServerApiSchemaSlimEntitiesSlimProfile. """ self._group_name = group_name @@ -191,8 +195,12 @@ def is_implicit(self, is_implicit: "bool") -> None: is_implicit: bool The is_implicit of this GrantaServerApiSchemaSlimEntitiesSlimProfile. """ + # Field is not nullable if is_implicit is None: raise ValueError("Invalid value for 'is_implicit', must not be 'None'") + # Field is required + if is_implicit is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_implicit', must not be 'Unset'") self._is_implicit = is_implicit @property @@ -215,12 +223,16 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimProfile. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -237,7 +249,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py index 7d75c961..8b12add5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimProfileTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimProfileTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,53 +71,53 @@ def __init__( *, database_guid: "str", table_guid: "str", - database_fallback_hint: "Optional[str]" = None, - guid: "Optional[str]" = None, - table_fallback_hint: "Optional[str]" = None, + database_fallback_hint: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + table_fallback_hint: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSlimEntitiesSlimProfileTable - a model defined in Swagger Parameters ---------- - database_guid: str - table_guid: str - database_fallback_hint: str, optional - guid: str, optional - table_fallback_hint: str, optional + database_guid: str + table_guid: str + database_fallback_hint: str, optional + guid: str, optional + table_fallback_hint: str, optional """ - self._guid = None - self._database_guid: str = None # type: ignore[assignment] - self._database_fallback_hint = None - self._table_guid: str = None # type: ignore[assignment] - self._table_fallback_hint = None + self._guid: Union[str, None, Unset_Type] = Unset + self._database_guid: str + self._database_fallback_hint: Union[str, None, Unset_Type] = Unset + self._table_guid: str + self._table_fallback_hint: Union[str, None, Unset_Type] = Unset - if guid is not None: + if guid is not Unset: self.guid = guid self.database_guid = database_guid - if database_fallback_hint is not None: + if database_fallback_hint is not Unset: self.database_fallback_hint = database_fallback_hint self.table_guid = table_guid - if table_fallback_hint is not None: + if table_fallback_hint is not Unset: self.table_fallback_hint = table_fallback_hint @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ self._guid = guid @@ -142,28 +142,34 @@ def database_guid(self, database_guid: "str") -> None: database_guid: str The database_guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ + # Field is not nullable if database_guid is None: raise ValueError("Invalid value for 'database_guid', must not be 'None'") + # Field is required + if database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'database_guid', must not be 'Unset'") self._database_guid = database_guid @property - def database_fallback_hint(self) -> "Optional[str]": + def database_fallback_hint(self) -> "Union[str, None, Unset_Type]": """Gets the database_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The database_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ return self._database_fallback_hint @database_fallback_hint.setter - def database_fallback_hint(self, database_fallback_hint: "Optional[str]") -> None: + def database_fallback_hint( + self, database_fallback_hint: "Union[str, None, Unset_Type]" + ) -> None: """Sets the database_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Parameters ---------- - database_fallback_hint: str + database_fallback_hint: Union[str, None, Unset_Type] The database_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ self._database_fallback_hint = database_fallback_hint @@ -188,34 +194,40 @@ def table_guid(self, table_guid: "str") -> None: table_guid: str The table_guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ + # Field is not nullable if table_guid is None: raise ValueError("Invalid value for 'table_guid', must not be 'None'") + # Field is required + if table_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table_guid', must not be 'Unset'") self._table_guid = table_guid @property - def table_fallback_hint(self) -> "Optional[str]": + def table_fallback_hint(self) -> "Union[str, None, Unset_Type]": """Gets the table_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Returns ------- - str + Union[str, None, Unset_Type] The table_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ return self._table_fallback_hint @table_fallback_hint.setter - def table_fallback_hint(self, table_fallback_hint: "Optional[str]") -> None: + def table_fallback_hint( + self, table_fallback_hint: "Union[str, None, Unset_Type]" + ) -> None: """Sets the table_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Parameters ---------- - table_fallback_hint: str + table_fallback_hint: Union[str, None, Unset_Type] The table_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. """ self._table_fallback_hint = table_fallback_hint @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -232,7 +244,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py index 05ca4b7f..30a9a041 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,57 +80,57 @@ def __init__( name: "str", reverse_name: "str", type: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType", - identity: "Optional[int]" = None, - reverse_display_names: "Optional[Dict[str, str]]" = None, + identity: "Union[int, None, Unset_Type]" = Unset, + reverse_display_names: "Union[Dict[str, str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup - a model defined in Swagger Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - reverse_name: str - type: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType - identity: int, optional - reverse_display_names: Dict[str, str], optional + display_names: Dict[str, str] + guid: str + name: str + reverse_name: str + type: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType + identity: int, optional + reverse_display_names: Dict[str, str], optional """ - self._identity = None - self._type: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType = None # type: ignore[assignment] - self._reverse_name: str = None # type: ignore[assignment] - self._reverse_display_names = None - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] - - if identity is not None: + self._identity: Union[int, None, Unset_Type] = Unset + self._type: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType + self._reverse_name: str + self._reverse_display_names: Union[Dict[str, str], None, Unset_Type] = Unset + self._display_names: Dict[str, str] + self._name: str + self._guid: str + + if identity is not Unset: self.identity = identity self.type = type self.reverse_name = reverse_name - if reverse_display_names is not None: + if reverse_display_names is not Unset: self.reverse_display_names = reverse_display_names self.display_names = display_names self.name = name self.guid = guid @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ self._identity = identity @@ -157,8 +157,12 @@ def type( type: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType The type of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property @@ -181,30 +185,34 @@ def reverse_name(self, reverse_name: "str") -> None: reverse_name: str The reverse_name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ + # Field is not nullable if reverse_name is None: raise ValueError("Invalid value for 'reverse_name', must not be 'None'") + # Field is required + if reverse_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'reverse_name', must not be 'Unset'") self._reverse_name = reverse_name @property - def reverse_display_names(self) -> "Optional[Dict[str, str]]": + def reverse_display_names(self) -> "Union[Dict[str, str], None, Unset_Type]": """Gets the reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Returns ------- - dict(str, str) + Union[Dict[str, str], None, Unset_Type] The reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ return self._reverse_display_names @reverse_display_names.setter def reverse_display_names( - self, reverse_display_names: "Optional[Dict[str, str]]" + self, reverse_display_names: "Union[Dict[str, str], None, Unset_Type]" ) -> None: """Sets the reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Parameters ---------- - reverse_display_names: Dict[str, str] + reverse_display_names: Union[Dict[str, str], None, Unset_Type] The reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ self._reverse_display_names = reverse_display_names @@ -215,7 +223,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ return self._display_names @@ -229,8 +237,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -253,8 +265,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -277,12 +293,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -299,7 +319,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py index c5da0b24..c0c3f362 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimSubset(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimSubset(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,13 +73,13 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str + display_names: Dict[str, str] + guid: str + name: str """ - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.display_names = display_names self.name = name @@ -91,7 +91,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimSubset. """ return self._display_names @@ -105,8 +105,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimSubset. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -129,8 +133,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimSubset. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -153,12 +161,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimSubset. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py index c9721e44..399a111d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -82,19 +82,19 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - is_hidden_from_browse: bool - is_hidden_from_search: bool - is_versioned: bool - name: str + display_names: Dict[str, str] + guid: str + is_hidden_from_browse: bool + is_hidden_from_search: bool + is_versioned: bool + name: str """ - self._is_hidden_from_browse: bool = None # type: ignore[assignment] - self._is_hidden_from_search: bool = None # type: ignore[assignment] - self._is_versioned: bool = None # type: ignore[assignment] - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._is_hidden_from_browse: bool + self._is_hidden_from_search: bool + self._is_versioned: bool + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.is_hidden_from_browse = is_hidden_from_browse self.is_hidden_from_search = is_hidden_from_search @@ -123,10 +123,16 @@ def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: is_hidden_from_browse: bool The is_hidden_from_browse of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ + # Field is not nullable if is_hidden_from_browse is None: raise ValueError( "Invalid value for 'is_hidden_from_browse', must not be 'None'" ) + # Field is required + if is_hidden_from_browse is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'is_hidden_from_browse', must not be 'Unset'" + ) self._is_hidden_from_browse = is_hidden_from_browse @property @@ -149,10 +155,16 @@ def is_hidden_from_search(self, is_hidden_from_search: "bool") -> None: is_hidden_from_search: bool The is_hidden_from_search of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ + # Field is not nullable if is_hidden_from_search is None: raise ValueError( "Invalid value for 'is_hidden_from_search', must not be 'None'" ) + # Field is required + if is_hidden_from_search is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'is_hidden_from_search', must not be 'Unset'" + ) self._is_hidden_from_search = is_hidden_from_search @property @@ -175,8 +187,12 @@ def is_versioned(self, is_versioned: "bool") -> None: is_versioned: bool The is_versioned of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ + # Field is not nullable if is_versioned is None: raise ValueError("Invalid value for 'is_versioned', must not be 'None'") + # Field is required + if is_versioned is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_versioned', must not be 'Unset'") self._is_versioned = is_versioned @property @@ -185,7 +201,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ return self._display_names @@ -199,8 +215,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -223,8 +243,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -247,12 +271,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -269,7 +297,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py index 1eb876e3..591cadb4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimUnit(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimUnit(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,11 +70,11 @@ def __init__( Parameters ---------- - guid: str - symbol: str + guid: str + symbol: str """ - self._symbol: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._symbol: str + self._guid: str self.symbol = symbol self.guid = guid @@ -99,8 +99,12 @@ def symbol(self, symbol: "str") -> None: symbol: str The symbol of this GrantaServerApiSchemaSlimEntitiesSlimUnit. """ + # Field is not nullable if symbol is None: raise ValueError("Invalid value for 'symbol', must not be 'None'") + # Field is required + if symbol is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'symbol', must not be 'Unset'") self._symbol = symbol @property @@ -123,12 +127,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimUnit. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -145,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py index b9a7e9a0..332ca980 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSlimEntitiesSlimUnitSystem(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSlimEntitiesSlimUnitSystem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,13 +73,13 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str + display_names: Dict[str, str] + guid: str + name: str """ - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.display_names = display_names self.name = name @@ -91,7 +91,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimUnitSystem. """ return self._display_names @@ -105,8 +105,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimUnitSystem. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -129,8 +133,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSlimEntitiesSlimUnitSystem. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -153,12 +161,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSlimEntitiesSlimUnitSystem. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -175,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py index 513c107d..cbe38eb8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaStandardNamesCreateStandardName(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaStandardNamesCreateStandardName(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -77,53 +77,61 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, - mapped_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - mapped_cross_database_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - mapped_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - mapped_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, + guid: "Union[str, Unset_Type]" = Unset, + mapped_attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + mapped_cross_database_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + mapped_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + mapped_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaStandardNamesCreateStandardName - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional - mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + name: str + guid: str, optional + mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional """ - self._mapped_attributes = None - self._mapped_parameters = None - self._mapped_record_link_groups = None - self._mapped_cross_database_record_link_groups = None - self._name: str = None # type: ignore[assignment] - self._guid = None - - if mapped_attributes is not None: + self._mapped_attributes: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._mapped_parameters: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._mapped_record_link_groups: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._mapped_cross_database_record_link_groups: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset + + if mapped_attributes is not Unset: self.mapped_attributes = mapped_attributes - if mapped_parameters is not None: + if mapped_parameters is not Unset: self.mapped_parameters = mapped_parameters - if mapped_record_link_groups is not None: + if mapped_record_link_groups is not Unset: self.mapped_record_link_groups = mapped_record_link_groups - if mapped_cross_database_record_link_groups is not None: + if mapped_cross_database_record_link_groups is not Unset: self.mapped_cross_database_record_link_groups = ( mapped_cross_database_record_link_groups ) self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property def mapped_attributes( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_attributes of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_attributes of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ return self._mapped_attributes @@ -131,13 +139,13 @@ def mapped_attributes( @mapped_attributes.setter def mapped_attributes( self, - mapped_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_attributes of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_attributes: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_attributes of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_attributes = mapped_attributes @@ -145,12 +153,12 @@ def mapped_attributes( @property def mapped_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_parameters of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_parameters of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ return self._mapped_parameters @@ -158,13 +166,13 @@ def mapped_parameters( @mapped_parameters.setter def mapped_parameters( self, - mapped_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_parameters of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_parameters: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_parameters of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_parameters = mapped_parameters @@ -172,12 +180,12 @@ def mapped_parameters( @property def mapped_record_link_groups( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ return self._mapped_record_link_groups @@ -185,13 +193,13 @@ def mapped_record_link_groups( @mapped_record_link_groups.setter def mapped_record_link_groups( self, - mapped_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_record_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_record_link_groups = mapped_record_link_groups @@ -199,12 +207,12 @@ def mapped_record_link_groups( @property def mapped_cross_database_record_link_groups( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ return self._mapped_cross_database_record_link_groups @@ -212,13 +220,13 @@ def mapped_cross_database_record_link_groups( @mapped_cross_database_record_link_groups.setter def mapped_cross_database_record_link_groups( self, - mapped_cross_database_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_cross_database_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_cross_database_record_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_cross_database_record_link_groups = ( @@ -245,34 +253,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -289,7 +304,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py index a155d6e8..6bef27a7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaStandardNamesStandardName(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaStandardNamesStandardName(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -87,19 +87,23 @@ def __init__( Parameters ---------- - guid: str - mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - name: str + guid: str + mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + name: str """ - self._mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._mapped_record_link_groups: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._mapped_cross_database_record_link_groups: List[ + GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + ] + self._name: str + self._guid: str self.mapped_attributes = mapped_attributes self.mapped_parameters = mapped_parameters @@ -118,7 +122,7 @@ def mapped_attributes( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_attributes of this GrantaServerApiSchemaStandardNamesStandardName. """ return self._mapped_attributes @@ -135,10 +139,16 @@ def mapped_attributes( mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_attributes of this GrantaServerApiSchemaStandardNamesStandardName. """ + # Field is not nullable if mapped_attributes is None: raise ValueError( "Invalid value for 'mapped_attributes', must not be 'None'" ) + # Field is required + if mapped_attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'mapped_attributes', must not be 'Unset'" + ) self._mapped_attributes = mapped_attributes @property @@ -149,7 +159,7 @@ def mapped_parameters( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_parameters of this GrantaServerApiSchemaStandardNamesStandardName. """ return self._mapped_parameters @@ -166,10 +176,16 @@ def mapped_parameters( mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_parameters of this GrantaServerApiSchemaStandardNamesStandardName. """ + # Field is not nullable if mapped_parameters is None: raise ValueError( "Invalid value for 'mapped_parameters', must not be 'None'" ) + # Field is required + if mapped_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'mapped_parameters', must not be 'Unset'" + ) self._mapped_parameters = mapped_parameters @property @@ -180,7 +196,7 @@ def mapped_record_link_groups( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. """ return self._mapped_record_link_groups @@ -197,10 +213,16 @@ def mapped_record_link_groups( mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. """ + # Field is not nullable if mapped_record_link_groups is None: raise ValueError( "Invalid value for 'mapped_record_link_groups', must not be 'None'" ) + # Field is required + if mapped_record_link_groups is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'mapped_record_link_groups', must not be 'Unset'" + ) self._mapped_record_link_groups = mapped_record_link_groups @property @@ -211,7 +233,7 @@ def mapped_cross_database_record_link_groups( Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. """ return self._mapped_cross_database_record_link_groups @@ -228,10 +250,16 @@ def mapped_cross_database_record_link_groups( mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. """ + # Field is not nullable if mapped_cross_database_record_link_groups is None: raise ValueError( "Invalid value for 'mapped_cross_database_record_link_groups', must not be 'None'" ) + # Field is required + if mapped_cross_database_record_link_groups is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'mapped_cross_database_record_link_groups', must not be 'Unset'" + ) self._mapped_cross_database_record_link_groups = ( mapped_cross_database_record_link_groups ) @@ -256,8 +284,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaStandardNamesStandardName. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -280,12 +312,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaStandardNamesStandardName. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -302,7 +338,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py index 8f25aa0a..052a7bb9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaStandardNamesStandardNamesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaStandardNamesStandardNamesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,32 @@ class GrantaServerApiSchemaStandardNamesStandardNamesInfo(ModelBase): # type: i def __init__( self, *, - standard_names: "Optional[List[GrantaServerApiSchemaStandardNamesStandardName]]" = None, + standard_names: "Union[List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaStandardNamesStandardNamesInfo - a model defined in Swagger Parameters ---------- - standard_names: List[GrantaServerApiSchemaStandardNamesStandardName], optional + standard_names: List[GrantaServerApiSchemaStandardNamesStandardName], optional """ - self._standard_names = None + self._standard_names: Union[ + List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type + ] = Unset - if standard_names is not None: + if standard_names is not Unset: self.standard_names = standard_names @property def standard_names( self, - ) -> "Optional[List[GrantaServerApiSchemaStandardNamesStandardName]]": + ) -> ( + "Union[List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type]" + ): """Gets the standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. Returns ------- - list[GrantaServerApiSchemaStandardNamesStandardName] + Union[List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type] The standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. """ return self._standard_names @@ -92,19 +96,19 @@ def standard_names( @standard_names.setter def standard_names( self, - standard_names: "Optional[List[GrantaServerApiSchemaStandardNamesStandardName]]", + standard_names: "Union[List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type]", ) -> None: """Sets the standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. Parameters ---------- - standard_names: List[GrantaServerApiSchemaStandardNamesStandardName] + standard_names: Union[List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type] The standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. """ self._standard_names = standard_names @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py index d0e7de68..c0f7c3af 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,55 +76,63 @@ class GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): # type: def __init__( self, *, - guid: "Optional[str]" = None, - mapped_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - mapped_cross_database_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - mapped_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - mapped_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + mapped_attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + mapped_cross_database_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + mapped_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + mapped_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaStandardNamesUpdateStandardName - a model defined in Swagger Parameters ---------- - guid: str, optional - mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional - name: str, optional + guid: str, optional + mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity], optional + name: str, optional """ - self._mapped_attributes = None - self._mapped_parameters = None - self._mapped_record_link_groups = None - self._mapped_cross_database_record_link_groups = None - self._name = None - self._guid = None - - if mapped_attributes is not None: + self._mapped_attributes: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._mapped_parameters: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._mapped_record_link_groups: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._mapped_cross_database_record_link_groups: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type + ] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + + if mapped_attributes is not Unset: self.mapped_attributes = mapped_attributes - if mapped_parameters is not None: + if mapped_parameters is not Unset: self.mapped_parameters = mapped_parameters - if mapped_record_link_groups is not None: + if mapped_record_link_groups is not Unset: self.mapped_record_link_groups = mapped_record_link_groups - if mapped_cross_database_record_link_groups is not None: + if mapped_cross_database_record_link_groups is not Unset: self.mapped_cross_database_record_link_groups = ( mapped_cross_database_record_link_groups ) - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property def mapped_attributes( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_attributes of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_attributes of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ return self._mapped_attributes @@ -132,13 +140,13 @@ def mapped_attributes( @mapped_attributes.setter def mapped_attributes( self, - mapped_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_attributes: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_attributes of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_attributes: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_attributes of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_attributes = mapped_attributes @@ -146,12 +154,12 @@ def mapped_attributes( @property def mapped_parameters( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_parameters of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_parameters of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ return self._mapped_parameters @@ -159,13 +167,13 @@ def mapped_parameters( @mapped_parameters.setter def mapped_parameters( self, - mapped_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_parameters: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_parameters of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_parameters: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_parameters of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_parameters = mapped_parameters @@ -173,12 +181,12 @@ def mapped_parameters( @property def mapped_record_link_groups( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ return self._mapped_record_link_groups @@ -186,13 +194,13 @@ def mapped_record_link_groups( @mapped_record_link_groups.setter def mapped_record_link_groups( self, - mapped_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_record_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_record_link_groups = mapped_record_link_groups @@ -200,12 +208,12 @@ def mapped_record_link_groups( @property def mapped_cross_database_record_link_groups( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]": """Gets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ return self._mapped_cross_database_record_link_groups @@ -213,13 +221,13 @@ def mapped_cross_database_record_link_groups( @mapped_cross_database_record_link_groups.setter def mapped_cross_database_record_link_groups( self, - mapped_cross_database_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", + mapped_cross_database_record_link_groups: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", ) -> None: """Sets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_cross_database_record_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_cross_database_record_link_groups = ( @@ -227,51 +235,57 @@ def mapped_cross_database_record_link_groups( ) @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -288,7 +302,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py index bd50304b..9af10497 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,20 +64,20 @@ def __init__( self, *, record_history_guid: "str", - recurse_children: "Optional[bool]" = None, + recurse_children: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset - a model defined in Swagger Parameters ---------- - record_history_guid: str - recurse_children: bool, optional + record_history_guid: str + recurse_children: bool, optional """ - self._record_history_guid: str = None # type: ignore[assignment] - self._recurse_children = None + self._record_history_guid: str + self._recurse_children: Union[bool, Unset_Type] = Unset self.record_history_guid = record_history_guid - if recurse_children is not None: + if recurse_children is not Unset: self.recurse_children = recurse_children @property @@ -100,36 +100,45 @@ def record_history_guid(self, record_history_guid: "str") -> None: record_history_guid: str The record_history_guid of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. """ + # Field is not nullable if record_history_guid is None: raise ValueError( "Invalid value for 'record_history_guid', must not be 'None'" ) + # Field is required + if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'Unset'" + ) self._record_history_guid = record_history_guid @property - def recurse_children(self) -> "Optional[bool]": + def recurse_children(self) -> "Union[bool, Unset_Type]": """Gets the recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. Returns ------- - bool + Union[bool, Unset_Type] The recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. """ return self._recurse_children @recurse_children.setter - def recurse_children(self, recurse_children: "Optional[bool]") -> None: + def recurse_children(self, recurse_children: "Union[bool, Unset_Type]") -> None: """Sets the recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. Parameters ---------- - recurse_children: bool + recurse_children: Union[bool, Unset_Type] The recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. """ + # Field is not nullable + if recurse_children is None: + raise ValueError("Invalid value for 'recurse_children', must not be 'None'") self._recurse_children = recurse_children @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -146,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py index 02348d46..5025291a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSubsetsCreateSubset(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSubsetsCreateSubset(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,51 +68,59 @@ def __init__( self, *, name: "str", - associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - guid: "Optional[str]" = None, + associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSubsetsCreateSubset - a model defined in Swagger Parameters ---------- - name: str - associated_layout: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - guid: str, optional + name: str + associated_layout: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + guid: str, optional """ - self._associated_layout = None - self._name: str = None # type: ignore[assignment] - self._guid = None + self._associated_layout: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset - if associated_layout is not None: + if associated_layout is not Unset: self.associated_layout = associated_layout self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property def associated_layout( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. """ return self._associated_layout @associated_layout.setter def associated_layout( - self, associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. Parameters ---------- - associated_layout: GrantaServerApiSchemaSlimEntitiesSlimEntity + associated_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. """ + # Field is not nullable + if associated_layout is None: + raise ValueError( + "Invalid value for 'associated_layout', must not be 'None'" + ) self._associated_layout = associated_layout @property @@ -135,34 +143,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSubsetsCreateSubset. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaSubsetsCreateSubset. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaSubsetsCreateSubset. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaSubsetsCreateSubset. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaSubsetsCreateSubset. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -179,7 +194,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py index 7552aa02..2f3fb74e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,9 +67,9 @@ def __init__( Parameters ---------- - record_history_guid: str + record_history_guid: str """ - self._record_history_guid: str = None # type: ignore[assignment] + self._record_history_guid: str self.record_history_guid = record_history_guid @@ -93,14 +93,20 @@ def record_history_guid(self, record_history_guid: "str") -> None: record_history_guid: str The record_history_guid of this GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset. """ + # Field is not nullable if record_history_guid is None: raise ValueError( "Invalid value for 'record_history_guid', must not be 'None'" ) + # Field is required + if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'Unset'" + ) self._record_history_guid = record_history_guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -117,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py index e06b809d..51372d18 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSubsetsSubset(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSubsetsSubset(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -72,23 +72,25 @@ def __init__( display_names: "Dict[str, str]", guid: "str", name: "str", - associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]" = None, + associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSubsetsSubset - a model defined in Swagger Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - associated_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional + display_names: Dict[str, str] + guid: str + name: str + associated_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional """ - self._associated_layout = None - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] - - if associated_layout is not None: + self._associated_layout: Union[ + GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type + ] = Unset + self._display_names: Dict[str, str] + self._name: str + self._guid: str + + if associated_layout is not Unset: self.associated_layout = associated_layout self.display_names = display_names self.name = name @@ -97,27 +99,33 @@ def __init__( @property def associated_layout( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsSubset. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimLayout + Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type] The associated_layout of this GrantaServerApiSchemaSubsetsSubset. """ return self._associated_layout @associated_layout.setter def associated_layout( - self, associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]" + self, + associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]", ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsSubset. Parameters ---------- - associated_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout + associated_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type] The associated_layout of this GrantaServerApiSchemaSubsetsSubset. """ + # Field is not nullable + if associated_layout is None: + raise ValueError( + "Invalid value for 'associated_layout', must not be 'None'" + ) self._associated_layout = associated_layout @property @@ -126,7 +134,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaSubsetsSubset. """ return self._display_names @@ -140,8 +148,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSubsetsSubset. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -164,8 +176,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaSubsetsSubset. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -188,12 +204,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaSubsetsSubset. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -210,7 +230,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py index e6f4ee0d..b129dc75 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSubsetsSubsetsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSubsetsSubsetsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiSchemaSubsetsSubsetsInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - subsets: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimSubset]]" = None, + subsets: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSubsetsSubsetsInfo - a model defined in Swagger Parameters ---------- - subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset], optional + subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset], optional """ - self._subsets = None + self._subsets: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type + ] = Unset - if subsets is not None: + if subsets is not Unset: self.subsets = subsets @property - def subsets(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimSubset]]": + def subsets( + self, + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type]": """Gets the subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type] The subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. """ return self._subsets @subsets.setter def subsets( - self, subsets: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimSubset]]" + self, + subsets: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type]", ) -> None: """Sets the subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. Parameters ---------- - subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] + subsets: Union[List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type] The subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. """ self._subsets = subsets @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py index 2246c073..aed56d06 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaSubsetsUpdateSubset(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaSubsetsUpdateSubset(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,101 +67,115 @@ class GrantaServerApiSchemaSubsetsUpdateSubset(ModelBase): # type: ignore[misc] def __init__( self, *, - associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaSubsetsUpdateSubset - a model defined in Swagger Parameters ---------- - associated_layout: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - guid: str, optional - name: str, optional + associated_layout: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + guid: str, optional + name: str, optional """ - self._associated_layout = None - self._name = None - self._guid = None + self._associated_layout: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if associated_layout is not None: + if associated_layout is not Unset: self.associated_layout = associated_layout - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property def associated_layout( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. """ return self._associated_layout @associated_layout.setter def associated_layout( - self, associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. Parameters ---------- - associated_layout: GrantaServerApiSchemaSlimEntitiesSlimEntity + associated_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. """ + # Field is not nullable + if associated_layout is None: + raise ValueError( + "Invalid value for 'associated_layout', must not be 'None'" + ) self._associated_layout = associated_layout @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaSubsetsUpdateSubset. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaSubsetsUpdateSubset. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaSubsetsUpdateSubset. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaSubsetsUpdateSubset. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaSubsetsUpdateSubset. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaSubsetsUpdateSubset. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaSubsetsUpdateSubset. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaSubsetsUpdateSubset. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -178,7 +192,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py index 80fc45ac..042575f0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaTablesCreateTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaTablesCreateTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,74 +68,88 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, - is_hidden_from_browse: "Optional[bool]" = None, - is_hidden_from_search: "Optional[bool]" = None, + guid: "Union[str, Unset_Type]" = Unset, + is_hidden_from_browse: "Union[bool, Unset_Type]" = Unset, + is_hidden_from_search: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTablesCreateTable - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional - is_hidden_from_browse: bool, optional - is_hidden_from_search: bool, optional + name: str + guid: str, optional + is_hidden_from_browse: bool, optional + is_hidden_from_search: bool, optional """ - self._is_hidden_from_browse = None - self._is_hidden_from_search = None - self._name: str = None # type: ignore[assignment] - self._guid = None + self._is_hidden_from_browse: Union[bool, Unset_Type] = Unset + self._is_hidden_from_search: Union[bool, Unset_Type] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset - if is_hidden_from_browse is not None: + if is_hidden_from_browse is not Unset: self.is_hidden_from_browse = is_hidden_from_browse - if is_hidden_from_search is not None: + if is_hidden_from_search is not Unset: self.is_hidden_from_search = is_hidden_from_search self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def is_hidden_from_browse(self) -> "Optional[bool]": + def is_hidden_from_browse(self) -> "Union[bool, Unset_Type]": """Gets the is_hidden_from_browse of this GrantaServerApiSchemaTablesCreateTable. Returns ------- - bool + Union[bool, Unset_Type] The is_hidden_from_browse of this GrantaServerApiSchemaTablesCreateTable. """ return self._is_hidden_from_browse @is_hidden_from_browse.setter - def is_hidden_from_browse(self, is_hidden_from_browse: "Optional[bool]") -> None: + def is_hidden_from_browse( + self, is_hidden_from_browse: "Union[bool, Unset_Type]" + ) -> None: """Sets the is_hidden_from_browse of this GrantaServerApiSchemaTablesCreateTable. Parameters ---------- - is_hidden_from_browse: bool + is_hidden_from_browse: Union[bool, Unset_Type] The is_hidden_from_browse of this GrantaServerApiSchemaTablesCreateTable. """ + # Field is not nullable + if is_hidden_from_browse is None: + raise ValueError( + "Invalid value for 'is_hidden_from_browse', must not be 'None'" + ) self._is_hidden_from_browse = is_hidden_from_browse @property - def is_hidden_from_search(self) -> "Optional[bool]": + def is_hidden_from_search(self) -> "Union[bool, Unset_Type]": """Gets the is_hidden_from_search of this GrantaServerApiSchemaTablesCreateTable. Returns ------- - bool + Union[bool, Unset_Type] The is_hidden_from_search of this GrantaServerApiSchemaTablesCreateTable. """ return self._is_hidden_from_search @is_hidden_from_search.setter - def is_hidden_from_search(self, is_hidden_from_search: "Optional[bool]") -> None: + def is_hidden_from_search( + self, is_hidden_from_search: "Union[bool, Unset_Type]" + ) -> None: """Sets the is_hidden_from_search of this GrantaServerApiSchemaTablesCreateTable. Parameters ---------- - is_hidden_from_search: bool + is_hidden_from_search: Union[bool, Unset_Type] The is_hidden_from_search of this GrantaServerApiSchemaTablesCreateTable. """ + # Field is not nullable + if is_hidden_from_search is None: + raise ValueError( + "Invalid value for 'is_hidden_from_search', must not be 'None'" + ) self._is_hidden_from_search = is_hidden_from_search @property @@ -158,34 +172,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaTablesCreateTable. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaTablesCreateTable. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTablesCreateTable. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaTablesCreateTable. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTablesCreateTable. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -202,7 +223,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py index fe6bd578..5af5f552 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaTablesTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaTablesTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -96,41 +96,45 @@ def __init__( name: "str", subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]", version_state: "GrantaServerApiVersionState", - default_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]" = None, - default_subset: "Optional[GrantaServerApiSchemaSlimEntitiesSlimSubset]" = None, + default_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]" = Unset, + default_subset: "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTablesTable - a model defined in Swagger Parameters ---------- - display_names: Dict[str, str] - guid: str - is_hidden_from_browse: bool - is_hidden_from_search: bool - is_versioned: bool - layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] - name: str - subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] - version_state: GrantaServerApiVersionState - default_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional - default_subset: GrantaServerApiSchemaSlimEntitiesSlimSubset, optional + display_names: Dict[str, str] + guid: str + is_hidden_from_browse: bool + is_hidden_from_search: bool + is_versioned: bool + layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] + name: str + subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] + version_state: GrantaServerApiVersionState + default_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional + default_subset: GrantaServerApiSchemaSlimEntitiesSlimSubset, optional """ - self._default_subset = None - self._subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] = None # type: ignore[assignment] - self._default_layout = None - self._layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] = None # type: ignore[assignment] - self._version_state: GrantaServerApiVersionState = None # type: ignore[assignment] - self._is_hidden_from_browse: bool = None # type: ignore[assignment] - self._is_hidden_from_search: bool = None # type: ignore[assignment] - self._is_versioned: bool = None # type: ignore[assignment] - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] - - if default_subset is not None: + self._default_subset: Union[ + GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type + ] = Unset + self._subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] + self._default_layout: Union[ + GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type + ] = Unset + self._layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] + self._version_state: GrantaServerApiVersionState + self._is_hidden_from_browse: bool + self._is_hidden_from_search: bool + self._is_versioned: bool + self._display_names: Dict[str, str] + self._name: str + self._guid: str + + if default_subset is not Unset: self.default_subset = default_subset self.subsets = subsets - if default_layout is not None: + if default_layout is not Unset: self.default_layout = default_layout self.layouts = layouts self.version_state = version_state @@ -142,27 +146,33 @@ def __init__( self.guid = guid @property - def default_subset(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimSubset]": + def default_subset( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]": """Gets the default_subset of this GrantaServerApiSchemaTablesTable. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimSubset + Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type] The default_subset of this GrantaServerApiSchemaTablesTable. """ return self._default_subset @default_subset.setter def default_subset( - self, default_subset: "Optional[GrantaServerApiSchemaSlimEntitiesSlimSubset]" + self, + default_subset: "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]", ) -> None: """Sets the default_subset of this GrantaServerApiSchemaTablesTable. Parameters ---------- - default_subset: GrantaServerApiSchemaSlimEntitiesSlimSubset + default_subset: Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type] The default_subset of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable + if default_subset is None: + raise ValueError("Invalid value for 'default_subset', must not be 'None'") self._default_subset = default_subset @property @@ -171,7 +181,7 @@ def subsets(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]": Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + List[GrantaServerApiSchemaSlimEntitiesSlimSubset] The subsets of this GrantaServerApiSchemaTablesTable. """ return self._subsets @@ -187,32 +197,42 @@ def subsets( subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] The subsets of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if subsets is None: raise ValueError("Invalid value for 'subsets', must not be 'None'") + # Field is required + if subsets is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'subsets', must not be 'Unset'") self._subsets = subsets @property - def default_layout(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]": + def default_layout( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]": """Gets the default_layout of this GrantaServerApiSchemaTablesTable. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimLayout + Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type] The default_layout of this GrantaServerApiSchemaTablesTable. """ return self._default_layout @default_layout.setter def default_layout( - self, default_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]" + self, + default_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]", ) -> None: """Sets the default_layout of this GrantaServerApiSchemaTablesTable. Parameters ---------- - default_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout + default_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type] The default_layout of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable + if default_layout is None: + raise ValueError("Invalid value for 'default_layout', must not be 'None'") self._default_layout = default_layout @property @@ -221,7 +241,7 @@ def layouts(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]": Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimLayout] + List[GrantaServerApiSchemaSlimEntitiesSlimLayout] The layouts of this GrantaServerApiSchemaTablesTable. """ return self._layouts @@ -237,8 +257,12 @@ def layouts( layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] The layouts of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if layouts is None: raise ValueError("Invalid value for 'layouts', must not be 'None'") + # Field is required + if layouts is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'layouts', must not be 'Unset'") self._layouts = layouts @property @@ -261,8 +285,12 @@ def version_state(self, version_state: "GrantaServerApiVersionState") -> None: version_state: GrantaServerApiVersionState The version_state of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if version_state is None: raise ValueError("Invalid value for 'version_state', must not be 'None'") + # Field is required + if version_state is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'version_state', must not be 'Unset'") self._version_state = version_state @property @@ -285,10 +313,16 @@ def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: is_hidden_from_browse: bool The is_hidden_from_browse of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if is_hidden_from_browse is None: raise ValueError( "Invalid value for 'is_hidden_from_browse', must not be 'None'" ) + # Field is required + if is_hidden_from_browse is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'is_hidden_from_browse', must not be 'Unset'" + ) self._is_hidden_from_browse = is_hidden_from_browse @property @@ -311,10 +345,16 @@ def is_hidden_from_search(self, is_hidden_from_search: "bool") -> None: is_hidden_from_search: bool The is_hidden_from_search of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if is_hidden_from_search is None: raise ValueError( "Invalid value for 'is_hidden_from_search', must not be 'None'" ) + # Field is required + if is_hidden_from_search is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'is_hidden_from_search', must not be 'Unset'" + ) self._is_hidden_from_search = is_hidden_from_search @property @@ -337,8 +377,12 @@ def is_versioned(self, is_versioned: "bool") -> None: is_versioned: bool The is_versioned of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if is_versioned is None: raise ValueError("Invalid value for 'is_versioned', must not be 'None'") + # Field is required + if is_versioned is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'is_versioned', must not be 'Unset'") self._is_versioned = is_versioned @property @@ -347,7 +391,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaTablesTable. """ return self._display_names @@ -361,8 +405,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -385,8 +433,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -409,12 +461,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaTablesTable. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -431,7 +487,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py index fd6ca490..4e571215 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaTablesTablesInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaTablesTablesInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiSchemaTablesTablesInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - tables: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimTable]]" = None, + tables: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTablesTablesInfo - a model defined in Swagger Parameters ---------- - tables: List[GrantaServerApiSchemaSlimEntitiesSlimTable], optional + tables: List[GrantaServerApiSchemaSlimEntitiesSlimTable], optional """ - self._tables = None + self._tables: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type + ] = Unset - if tables is not None: + if tables is not Unset: self.tables = tables @property - def tables(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimTable]]": + def tables( + self, + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type]": """Gets the tables of this GrantaServerApiSchemaTablesTablesInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimTable] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type] The tables of this GrantaServerApiSchemaTablesTablesInfo. """ return self._tables @tables.setter def tables( - self, tables: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimTable]]" + self, + tables: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type]", ) -> None: """Sets the tables of this GrantaServerApiSchemaTablesTablesInfo. Parameters ---------- - tables: List[GrantaServerApiSchemaSlimEntitiesSlimTable] + tables: Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type] The tables of this GrantaServerApiSchemaTablesTablesInfo. """ self._tables = tables @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py index c62de9bd..07f82af2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaTablesUpdateTable(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaTablesUpdateTable(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,178 +71,202 @@ class GrantaServerApiSchemaTablesUpdateTable(ModelBase): # type: ignore[misc] def __init__( self, *, - default_layout_guid: "Optional[str]" = None, - default_subset_guid: "Optional[str]" = None, - guid: "Optional[str]" = None, - is_hidden_from_browse: "Optional[bool]" = None, - is_hidden_from_search: "Optional[bool]" = None, - name: "Optional[str]" = None, + default_layout_guid: "Union[str, None, Unset_Type]" = Unset, + default_subset_guid: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + is_hidden_from_browse: "Union[bool, Unset_Type]" = Unset, + is_hidden_from_search: "Union[bool, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTablesUpdateTable - a model defined in Swagger Parameters ---------- - default_layout_guid: str, optional - default_subset_guid: str, optional - guid: str, optional - is_hidden_from_browse: bool, optional - is_hidden_from_search: bool, optional - name: str, optional + default_layout_guid: str, optional + default_subset_guid: str, optional + guid: str, optional + is_hidden_from_browse: bool, optional + is_hidden_from_search: bool, optional + name: str, optional """ - self._is_hidden_from_browse = None - self._is_hidden_from_search = None - self._default_subset_guid = None - self._default_layout_guid = None - self._name = None - self._guid = None - - if is_hidden_from_browse is not None: + self._is_hidden_from_browse: Union[bool, Unset_Type] = Unset + self._is_hidden_from_search: Union[bool, Unset_Type] = Unset + self._default_subset_guid: Union[str, None, Unset_Type] = Unset + self._default_layout_guid: Union[str, None, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + + if is_hidden_from_browse is not Unset: self.is_hidden_from_browse = is_hidden_from_browse - if is_hidden_from_search is not None: + if is_hidden_from_search is not Unset: self.is_hidden_from_search = is_hidden_from_search - if default_subset_guid is not None: + if default_subset_guid is not Unset: self.default_subset_guid = default_subset_guid - if default_layout_guid is not None: + if default_layout_guid is not Unset: self.default_layout_guid = default_layout_guid - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def is_hidden_from_browse(self) -> "Optional[bool]": + def is_hidden_from_browse(self) -> "Union[bool, Unset_Type]": """Gets the is_hidden_from_browse of this GrantaServerApiSchemaTablesUpdateTable. Returns ------- - bool + Union[bool, Unset_Type] The is_hidden_from_browse of this GrantaServerApiSchemaTablesUpdateTable. """ return self._is_hidden_from_browse @is_hidden_from_browse.setter - def is_hidden_from_browse(self, is_hidden_from_browse: "Optional[bool]") -> None: + def is_hidden_from_browse( + self, is_hidden_from_browse: "Union[bool, Unset_Type]" + ) -> None: """Sets the is_hidden_from_browse of this GrantaServerApiSchemaTablesUpdateTable. Parameters ---------- - is_hidden_from_browse: bool + is_hidden_from_browse: Union[bool, Unset_Type] The is_hidden_from_browse of this GrantaServerApiSchemaTablesUpdateTable. """ + # Field is not nullable + if is_hidden_from_browse is None: + raise ValueError( + "Invalid value for 'is_hidden_from_browse', must not be 'None'" + ) self._is_hidden_from_browse = is_hidden_from_browse @property - def is_hidden_from_search(self) -> "Optional[bool]": + def is_hidden_from_search(self) -> "Union[bool, Unset_Type]": """Gets the is_hidden_from_search of this GrantaServerApiSchemaTablesUpdateTable. Returns ------- - bool + Union[bool, Unset_Type] The is_hidden_from_search of this GrantaServerApiSchemaTablesUpdateTable. """ return self._is_hidden_from_search @is_hidden_from_search.setter - def is_hidden_from_search(self, is_hidden_from_search: "Optional[bool]") -> None: + def is_hidden_from_search( + self, is_hidden_from_search: "Union[bool, Unset_Type]" + ) -> None: """Sets the is_hidden_from_search of this GrantaServerApiSchemaTablesUpdateTable. Parameters ---------- - is_hidden_from_search: bool + is_hidden_from_search: Union[bool, Unset_Type] The is_hidden_from_search of this GrantaServerApiSchemaTablesUpdateTable. """ + # Field is not nullable + if is_hidden_from_search is None: + raise ValueError( + "Invalid value for 'is_hidden_from_search', must not be 'None'" + ) self._is_hidden_from_search = is_hidden_from_search @property - def default_subset_guid(self) -> "Optional[str]": + def default_subset_guid(self) -> "Union[str, None, Unset_Type]": """Gets the default_subset_guid of this GrantaServerApiSchemaTablesUpdateTable. Returns ------- - str + Union[str, None, Unset_Type] The default_subset_guid of this GrantaServerApiSchemaTablesUpdateTable. """ return self._default_subset_guid @default_subset_guid.setter - def default_subset_guid(self, default_subset_guid: "Optional[str]") -> None: + def default_subset_guid( + self, default_subset_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the default_subset_guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters ---------- - default_subset_guid: str + default_subset_guid: Union[str, None, Unset_Type] The default_subset_guid of this GrantaServerApiSchemaTablesUpdateTable. """ self._default_subset_guid = default_subset_guid @property - def default_layout_guid(self) -> "Optional[str]": + def default_layout_guid(self) -> "Union[str, None, Unset_Type]": """Gets the default_layout_guid of this GrantaServerApiSchemaTablesUpdateTable. Returns ------- - str + Union[str, None, Unset_Type] The default_layout_guid of this GrantaServerApiSchemaTablesUpdateTable. """ return self._default_layout_guid @default_layout_guid.setter - def default_layout_guid(self, default_layout_guid: "Optional[str]") -> None: + def default_layout_guid( + self, default_layout_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the default_layout_guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters ---------- - default_layout_guid: str + default_layout_guid: Union[str, None, Unset_Type] The default_layout_guid of this GrantaServerApiSchemaTablesUpdateTable. """ self._default_layout_guid = default_layout_guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaTablesUpdateTable. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaTablesUpdateTable. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaTablesUpdateTable. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaTablesUpdateTable. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaTablesUpdateTable. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTablesUpdateTable. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTablesUpdateTable. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -259,7 +283,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py index f8d3c333..f97e44cd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -87,26 +87,26 @@ def __init__( linked_attribute: "GrantaServerApiSchemaSlimEntitiesSlimEntity", name: "str", column_type: "str" = "linkedAttribute", - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttributeTabularColumn - a model defined in Swagger Parameters ---------- - linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity - name: str - column_type: str - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity + name: str + column_type: str + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,8 +117,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] + self._column_type: str + self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity self.column_type = column_type self.linked_attribute = linked_attribute @@ -143,8 +143,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttributeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -169,12 +173,18 @@ def linked_attribute( linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity The linked_attribute of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttributeTabularColumn. """ + # Field is not nullable if linked_attribute is None: raise ValueError("Invalid value for 'linked_attribute', must not be 'None'") + # Field is required + if linked_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'linked_attribute', must not be 'Unset'" + ) self._linked_attribute = linked_attribute @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -191,7 +201,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py index 6f679142..79a6822d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -87,26 +87,26 @@ def __init__( linked_column: "GrantaServerApiSchemaSlimEntitiesSlimEntity", name: "str", column_type: "str" = "linkedColumn", - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnTabularColumn - a model defined in Swagger Parameters ---------- - linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity - name: str - column_type: str - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity + name: str + column_type: str + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,8 +117,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] + self._column_type: str + self._linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity self.column_type = column_type self.linked_column = linked_column @@ -143,8 +143,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -169,12 +173,16 @@ def linked_column( linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity The linked_column of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnTabularColumn. """ + # Field is not nullable if linked_column is None: raise ValueError("Invalid value for 'linked_column', must not be 'None'") + # Field is required + if linked_column is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'linked_column', must not be 'Unset'") self._linked_column = linked_column @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -191,7 +199,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py index 266a620f..2e675d12 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -82,25 +82,25 @@ def __init__( *, name: "str", column_type: "str" = "linkedRecord", - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedRecordTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -111,7 +111,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] + self._column_type: str self.column_type = column_type @@ -135,12 +135,16 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedRecordTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -157,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py index 2e8f61f2..149465a9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localDateTime", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py index d9bef69b..e8a3dd86 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -90,28 +90,28 @@ def __init__( discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity", name: "str", column_type: "str" = "localDiscrete", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn - a model defined in Swagger Parameters ---------- - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -122,12 +122,14 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None - self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type self.discrete_type = discrete_type @@ -151,19 +153,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. """ return self._default_threshold_type @@ -171,15 +177,20 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property @@ -204,12 +215,16 @@ def discrete_type( discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity The discrete_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. """ + # Field is not nullable if discrete_type is None: raise ValueError("Invalid value for 'discrete_type', must not be 'None'") + # Field is required + if discrete_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'discrete_type', must not be 'Unset'") self._discrete_type = discrete_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -226,7 +241,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py index 8e3389e3..4cf02062 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localFile", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py index 049638b9..8e834f12 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localHyperlink", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py index 223be6a8..3de2d89e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localInteger", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py index 982bc11e..10f1f23e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localLogical", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py index efff237d..9f858c97 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localLongText", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py index bd097224..d8f71f64 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localPicture", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py index 9d4f4d04..8cc160de 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -89,29 +89,29 @@ def __init__( *, name: "str", column_type: "str" = "localPoint", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( name=name, @@ -122,14 +122,18 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None - self._unit = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -152,19 +156,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. """ return self._default_threshold_type @@ -172,43 +180,51 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -225,7 +241,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py index 6a3b931e..d53e498c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -89,29 +89,29 @@ def __init__( *, name: "str", column_type: "str" = "localRange", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( name=name, @@ -122,14 +122,18 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None - self._unit = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -152,19 +156,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. """ return self._default_threshold_type @@ -172,43 +180,51 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -225,7 +241,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py index eb85eb0f..24932f9d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, ) # noqa: F401 @@ -86,27 +86,27 @@ def __init__( *, name: "str", column_type: "str" = "localShortText", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn - a model defined in Swagger Parameters ---------- - name: str - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( name=name, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py index 188bfdd4..fd6b1b63 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -96,109 +98,125 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + name: str + guid: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ - self._show_as_link = None - self._summary_row_enabled = None - self._summary_row_text = None - self._roll_up_type = None - self._summary_row_roll_up_type = None - self._name: str = None # type: ignore[assignment] - self._guid = None - - if show_as_link is not None: + self._show_as_link: Union[bool, Unset_Type] = Unset + self._summary_row_enabled: Union[bool, Unset_Type] = Unset + self._summary_row_text: Union[str, None, Unset_Type] = Unset + self._roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + self._summary_row_roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset + + if show_as_link is not Unset: self.show_as_link = show_as_link - if summary_row_enabled is not None: + if summary_row_enabled is not Unset: self.summary_row_enabled = summary_row_enabled - if summary_row_text is not None: + if summary_row_text is not Unset: self.summary_row_text = summary_row_text - if roll_up_type is not None: + if roll_up_type is not Unset: self.roll_up_type = roll_up_type - if summary_row_roll_up_type is not None: + if summary_row_roll_up_type is not Unset: self.summary_row_roll_up_type = summary_row_roll_up_type self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def show_as_link(self) -> "Optional[bool]": + def show_as_link(self) -> "Union[bool, Unset_Type]": """Gets the show_as_link of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns ------- - bool + Union[bool, Unset_Type] The show_as_link of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ return self._show_as_link @show_as_link.setter - def show_as_link(self, show_as_link: "Optional[bool]") -> None: + def show_as_link(self, show_as_link: "Union[bool, Unset_Type]") -> None: """Sets the show_as_link of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters ---------- - show_as_link: bool + show_as_link: Union[bool, Unset_Type] The show_as_link of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ + # Field is not nullable + if show_as_link is None: + raise ValueError("Invalid value for 'show_as_link', must not be 'None'") self._show_as_link = show_as_link @property - def summary_row_enabled(self) -> "Optional[bool]": + def summary_row_enabled(self) -> "Union[bool, Unset_Type]": """Gets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns ------- - bool + Union[bool, Unset_Type] The summary_row_enabled of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ return self._summary_row_enabled @summary_row_enabled.setter - def summary_row_enabled(self, summary_row_enabled: "Optional[bool]") -> None: + def summary_row_enabled( + self, summary_row_enabled: "Union[bool, Unset_Type]" + ) -> None: """Sets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters ---------- - summary_row_enabled: bool + summary_row_enabled: Union[bool, Unset_Type] The summary_row_enabled of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ + # Field is not nullable + if summary_row_enabled is None: + raise ValueError( + "Invalid value for 'summary_row_enabled', must not be 'None'" + ) self._summary_row_enabled = summary_row_enabled @property - def summary_row_text(self) -> "Optional[str]": + def summary_row_text(self) -> "Union[str, None, Unset_Type]": """Gets the summary_row_text of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns ------- - str + Union[str, None, Unset_Type] The summary_row_text of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ return self._summary_row_text @summary_row_text.setter - def summary_row_text(self, summary_row_text: "Optional[str]") -> None: + def summary_row_text( + self, summary_row_text: "Union[str, None, Unset_Type]" + ) -> None: """Sets the summary_row_text of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters ---------- - summary_row_text: str + summary_row_text: Union[str, None, Unset_Type] The summary_row_text of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ self._summary_row_text = summary_row_text @@ -206,12 +224,14 @@ def summary_row_text(self, summary_row_text: "Optional[str]") -> None: @property def roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ return self._roll_up_type @@ -219,26 +239,31 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( self, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters ---------- - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ + # Field is not nullable + if roll_up_type is None: + raise ValueError("Invalid value for 'roll_up_type', must not be 'None'") self._roll_up_type = roll_up_type @property def summary_row_roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ return self._summary_row_roll_up_type @@ -246,15 +271,20 @@ def summary_row_roll_up_type( @summary_row_roll_up_type.setter def summary_row_roll_up_type( self, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters ---------- - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ + # Field is not nullable + if summary_row_roll_up_type is None: + raise ValueError( + "Invalid value for 'summary_row_roll_up_type', must not be 'None'" + ) self._summary_row_roll_up_type = summary_row_roll_up_type @property @@ -277,34 +307,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -326,7 +363,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py index 6fda8945..aca83e35 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + display_names: Dict[str, str] + guid: str + linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute = None # type: ignore[assignment] + self._column_type: str + self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute self.column_type = column_type self.linked_attribute = linked_attribute @@ -148,8 +148,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -174,12 +178,18 @@ def linked_attribute( linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute The linked_attribute of this GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn. """ + # Field is not nullable if linked_attribute is None: raise ValueError("Invalid value for 'linked_attribute', must not be 'None'") + # Field is required + if linked_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'linked_attribute', must not be 'Unset'" + ) self._linked_attribute = linked_attribute @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -196,7 +206,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py index 8c651b67..45f2c9c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -105,17 +105,17 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute - linked_column: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + display_names: Dict[str, str] + guid: str + linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute + linked_column: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -127,9 +127,9 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute = None # type: ignore[assignment] - self._linked_column: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] + self._column_type: str + self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute + self._linked_column: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity self.column_type = column_type self.linked_attribute = linked_attribute @@ -155,8 +155,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -181,8 +185,14 @@ def linked_attribute( linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute The linked_attribute of this GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn. """ + # Field is not nullable if linked_attribute is None: raise ValueError("Invalid value for 'linked_attribute', must not be 'None'") + # Field is required + if linked_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'linked_attribute', must not be 'Unset'" + ) self._linked_attribute = linked_attribute @property @@ -207,12 +217,16 @@ def linked_column( linked_column: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity The linked_column of this GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn. """ + # Field is not nullable if linked_column is None: raise ValueError("Invalid value for 'linked_column', must not be 'None'") + # Field is required + if linked_column is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'linked_column', must not be 'Unset'") self._linked_column = linked_column @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -229,7 +243,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py index eddb9066..c80bf58e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -96,15 +96,15 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -116,7 +116,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] + self._column_type: str self.column_type = column_type @@ -140,12 +140,16 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py index 3bd76bc8..a129a237 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py index fb383970..d9311581 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -105,17 +105,17 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -127,9 +127,11 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] - self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -155,8 +157,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -184,10 +190,16 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @property @@ -212,12 +224,16 @@ def discrete_type( discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity The discrete_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. """ + # Field is not nullable if discrete_type is None: raise ValueError("Invalid value for 'discrete_type', must not be 'None'") + # Field is required + if discrete_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'discrete_type', must not be 'Unset'") self._discrete_type = discrete_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -234,7 +250,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py index 73560869..59deba3d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py index f628fa30..9bc03867 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py index 6f47b8e8..68f84812 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py index 24926be1..a9b658d6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py index c2f51359..657507bc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py index d8f2c6a5..ea4ff6c2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py index 3e1dc03f..65d6d993 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -99,23 +99,23 @@ def __init__( summary_row_roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", summary_row_text: "str", column_type: "str" = "localPoint", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__( display_names=display_names, @@ -127,13 +127,15 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] - self._unit = None + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.column_type = column_type self.default_threshold_type = default_threshold_type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -156,8 +158,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -185,36 +191,47 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -231,7 +248,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py index 124759a1..96e0e5d8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -99,23 +99,23 @@ def __init__( summary_row_roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", summary_row_text: "str", column_type: "str" = "localRange", - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn - a model defined in Swagger Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__( display_names=display_names, @@ -127,13 +127,15 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] - self._unit = None + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.column_type = column_type self.default_threshold_type = default_threshold_type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -156,8 +158,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -185,36 +191,47 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimUnit + Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. """ return self._unit @unit.setter - def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def unit( + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -231,7 +248,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py index 2355da91..42f25ae6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -101,16 +101,16 @@ def __init__( Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -122,8 +122,10 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] + self._column_type: str + self._default_threshold_type: ( + GrantaServerApiSchemaAttributesAttributeThresholdType + ) self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -148,8 +150,12 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property @@ -177,14 +183,20 @@ def default_threshold_type( default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. """ + # Field is not nullable if default_threshold_type is None: raise ValueError( "Invalid value for 'default_threshold_type', must not be 'None'" ) + # Field is required + if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'Unset'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py index 55ec9dae..78bafcb2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -111,23 +111,25 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str """ - self._show_as_link: bool = None # type: ignore[assignment] - self._summary_row_enabled: bool = None # type: ignore[assignment] - self._summary_row_text: str = None # type: ignore[assignment] - self._roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType = None # type: ignore[assignment] - self._summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType = None # type: ignore[assignment] - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._show_as_link: bool + self._summary_row_enabled: bool + self._summary_row_text: str + self._roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + self._summary_row_roll_up_type: ( + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + ) + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.show_as_link = show_as_link self.summary_row_enabled = summary_row_enabled @@ -158,8 +160,12 @@ def show_as_link(self, show_as_link: "bool") -> None: show_as_link: bool The show_as_link of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if show_as_link is None: raise ValueError("Invalid value for 'show_as_link', must not be 'None'") + # Field is required + if show_as_link is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'show_as_link', must not be 'Unset'") self._show_as_link = show_as_link @property @@ -182,10 +188,16 @@ def summary_row_enabled(self, summary_row_enabled: "bool") -> None: summary_row_enabled: bool The summary_row_enabled of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if summary_row_enabled is None: raise ValueError( "Invalid value for 'summary_row_enabled', must not be 'None'" ) + # Field is required + if summary_row_enabled is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'summary_row_enabled', must not be 'Unset'" + ) self._summary_row_enabled = summary_row_enabled @property @@ -208,8 +220,14 @@ def summary_row_text(self, summary_row_text: "str") -> None: summary_row_text: str The summary_row_text of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if summary_row_text is None: raise ValueError("Invalid value for 'summary_row_text', must not be 'None'") + # Field is required + if summary_row_text is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'summary_row_text', must not be 'Unset'" + ) self._summary_row_text = summary_row_text @property @@ -236,8 +254,12 @@ def roll_up_type( roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType The roll_up_type of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if roll_up_type is None: raise ValueError("Invalid value for 'roll_up_type', must not be 'None'") + # Field is required + if roll_up_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'roll_up_type', must not be 'Unset'") self._roll_up_type = roll_up_type @property @@ -265,10 +287,16 @@ def summary_row_roll_up_type( summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType The summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if summary_row_roll_up_type is None: raise ValueError( "Invalid value for 'summary_row_roll_up_type', must not be 'None'" ) + # Field is required + if summary_row_roll_up_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'summary_row_roll_up_type', must not be 'Unset'" + ) self._summary_row_roll_up_type = summary_row_roll_up_type @property @@ -277,7 +305,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ return self._display_names @@ -291,8 +319,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -315,8 +347,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -339,12 +375,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -366,7 +406,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py index 902a10a7..067e5cf2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( GrantaServerApiSchemaTabularColumnsTabularColumn, ) # noqa: F401 @@ -96,15 +96,15 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - show_as_link: bool - summary_row_enabled: bool - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - summary_row_text: str - column_type: str + display_names: Dict[str, str] + guid: str + name: str + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + show_as_link: bool + summary_row_enabled: bool + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_text: str + column_type: str """ super().__init__( display_names=display_names, @@ -116,7 +116,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] + self._column_type: str self.column_type = column_type @@ -140,12 +140,16 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -162,7 +166,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py index 5c7aca67..7c2d9dcf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "linkedAttribute", - guid: "Optional[str]" = None, - linked_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + linked_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - guid: str, optional - linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + guid: str, optional + linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._linked_attribute = None + self._column_type: str + self._linked_attribute: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset self.column_type = column_type - if linked_attribute is not None: + if linked_attribute is not Unset: self.linked_attribute = linked_attribute @property @@ -144,38 +146,46 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def linked_attribute( self, - ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. """ return self._linked_attribute @linked_attribute.setter def linked_attribute( - self, linked_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + linked_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. Parameters ---------- - linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity + linked_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. """ + # Field is not nullable + if linked_attribute is None: + raise ValueError("Invalid value for 'linked_attribute', must not be 'None'") self._linked_attribute = linked_attribute @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -192,7 +202,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py index ad21d4ca..8503b013 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "linkedColumn", - guid: "Optional[str]" = None, - linked_column: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + linked_column: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - guid: str, optional - linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + guid: str, optional + linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._linked_column = None + self._column_type: str + self._linked_column: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset self.column_type = column_type - if linked_column is not None: + if linked_column is not Unset: self.linked_column = linked_column @property @@ -144,36 +146,46 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property - def linked_column(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def linked_column( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. """ return self._linked_column @linked_column.setter def linked_column( - self, linked_column: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + linked_column: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. Parameters ---------- - linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity + linked_column: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. """ + # Field is not nullable + if linked_column is None: + raise ValueError("Invalid value for 'linked_column', must not be 'None'") self._linked_column = linked_column @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -190,7 +202,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py index e7184809..73549c7e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -81,26 +81,26 @@ def __init__( self, *, column_type: "str" = "linkedRecord", - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedRecordTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -111,7 +111,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] + self._column_type: str self.column_type = column_type @@ -135,12 +135,16 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedRecordTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -157,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py index 69834096..d4a45906 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localDateTime", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py index 68514df9..3f407368 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -88,30 +88,30 @@ def __init__( self, *, column_type: "str" = "localDiscrete", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - discrete_type: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + discrete_type: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -122,14 +122,18 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None - self._discrete_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._discrete_type: Union[ + GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type - if discrete_type is not None: + if discrete_type is not Unset: self.discrete_type = discrete_type @property @@ -152,19 +156,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. """ return self._default_threshold_type @@ -172,43 +180,54 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property - def discrete_type(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def discrete_type( + self, + ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. """ return self._discrete_type @discrete_type.setter def discrete_type( - self, discrete_type: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + discrete_type: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", ) -> None: """Sets the discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. Parameters ---------- - discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity + discrete_type: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. """ + # Field is not nullable + if discrete_type is None: + raise ValueError("Invalid value for 'discrete_type', must not be 'None'") self._discrete_type = discrete_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -225,7 +244,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py index 71e726b6..7c50fa46 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localFile", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py index 39e4c714..078cce4e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localHyperlink", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py index 54d53054..4ae84434 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localInteger", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py index 66b70174..95e32c63 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localLogical", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py index 2197df2e..faf685ca 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localLongText", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py index 28329c2b..ce042304 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localPicture", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py index bef75e5b..2cf6db38 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -88,30 +88,30 @@ def __init__( self, *, column_type: "str" = "localPoint", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( guid=guid, @@ -122,14 +122,18 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None - self._unit = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -152,19 +156,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. """ return self._default_threshold_type @@ -172,43 +180,51 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -225,7 +241,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py index c796ac7b..677ba453 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -88,30 +88,30 @@ def __init__( self, *, column_type: "str" = "localRange", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, - unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, + unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional + unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ super().__init__( guid=guid, @@ -122,14 +122,18 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None - self._unit = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type - if unit is not None: + if unit is not Unset: self.unit = unit @property @@ -152,19 +156,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. """ return self._default_threshold_type @@ -172,43 +180,51 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @property - def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Returns ------- - GrantaServerApiSchemaSlimEntitiesSlimEntity + Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. """ return self._unit @unit.setter def unit( - self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Parameters ---------- - unit: GrantaServerApiSchemaSlimEntitiesSlimEntity + unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] The unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. """ + # Field is not nullable + if unit is None: + raise ValueError("Invalid value for 'unit', must not be 'None'") self._unit = unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -225,7 +241,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py index 16e867e9..39fee28f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) # noqa: F401 @@ -85,28 +85,28 @@ def __init__( self, *, column_type: "str" = "localShortText", - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn - a model defined in Swagger Parameters ---------- - column_type: str - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + column_type: str + default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ super().__init__( guid=guid, @@ -117,11 +117,13 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type: str = None # type: ignore[assignment] - self._default_threshold_type = None + self._column_type: str + self._default_threshold_type: Union[ + GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type + ] = Unset self.column_type = column_type - if default_threshold_type is not None: + if default_threshold_type is not Unset: self.default_threshold_type = default_threshold_type @property @@ -144,19 +146,23 @@ def column_type(self, column_type: "str") -> None: column_type: str The column_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn. """ + # Field is not nullable if column_type is None: raise ValueError("Invalid value for 'column_type', must not be 'None'") + # Field is required + if column_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'column_type', must not be 'Unset'") self._column_type = column_type @property def default_threshold_type( self, - ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": + ) -> "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn. Returns ------- - GrantaServerApiSchemaAttributesAttributeThresholdType + Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn. """ return self._default_threshold_type @@ -164,19 +170,24 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", + default_threshold_type: "Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn. Parameters ---------- - default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType + default_threshold_type: Union[GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type] The default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn. """ + # Field is not nullable + if default_threshold_type is None: + raise ValueError( + "Invalid value for 'default_threshold_type', must not be 'None'" + ) self._default_threshold_type = default_threshold_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -193,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py index fe745d67..c169f194 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,9 @@ from . import * -class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn( + ModelBase +): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -95,111 +97,127 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - show_as_link: "Optional[bool]" = None, - summary_row_enabled: "Optional[bool]" = None, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]" = None, - summary_row_text: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + show_as_link: "Union[bool, Unset_Type]" = Unset, + summary_row_enabled: "Union[bool, Unset_Type]" = Unset, + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, + summary_row_text: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - show_as_link: bool, optional - summary_row_enabled: bool, optional - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - summary_row_text: str, optional + guid: str, optional + name: str, optional + roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + show_as_link: bool, optional + summary_row_enabled: bool, optional + summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional + summary_row_text: str, optional """ - self._show_as_link = None - self._summary_row_enabled = None - self._summary_row_text = None - self._roll_up_type = None - self._summary_row_roll_up_type = None - self._name = None - self._guid = None - - if show_as_link is not None: + self._show_as_link: Union[bool, Unset_Type] = Unset + self._summary_row_enabled: Union[bool, Unset_Type] = Unset + self._summary_row_text: Union[str, None, Unset_Type] = Unset + self._roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + self._summary_row_roll_up_type: Union[ + GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type + ] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + + if show_as_link is not Unset: self.show_as_link = show_as_link - if summary_row_enabled is not None: + if summary_row_enabled is not Unset: self.summary_row_enabled = summary_row_enabled - if summary_row_text is not None: + if summary_row_text is not Unset: self.summary_row_text = summary_row_text - if roll_up_type is not None: + if roll_up_type is not Unset: self.roll_up_type = roll_up_type - if summary_row_roll_up_type is not None: + if summary_row_roll_up_type is not Unset: self.summary_row_roll_up_type = summary_row_roll_up_type - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def show_as_link(self) -> "Optional[bool]": + def show_as_link(self) -> "Union[bool, Unset_Type]": """Gets the show_as_link of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns ------- - bool + Union[bool, Unset_Type] The show_as_link of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ return self._show_as_link @show_as_link.setter - def show_as_link(self, show_as_link: "Optional[bool]") -> None: + def show_as_link(self, show_as_link: "Union[bool, Unset_Type]") -> None: """Sets the show_as_link of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters ---------- - show_as_link: bool + show_as_link: Union[bool, Unset_Type] The show_as_link of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ + # Field is not nullable + if show_as_link is None: + raise ValueError("Invalid value for 'show_as_link', must not be 'None'") self._show_as_link = show_as_link @property - def summary_row_enabled(self) -> "Optional[bool]": + def summary_row_enabled(self) -> "Union[bool, Unset_Type]": """Gets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns ------- - bool + Union[bool, Unset_Type] The summary_row_enabled of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ return self._summary_row_enabled @summary_row_enabled.setter - def summary_row_enabled(self, summary_row_enabled: "Optional[bool]") -> None: + def summary_row_enabled( + self, summary_row_enabled: "Union[bool, Unset_Type]" + ) -> None: """Sets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters ---------- - summary_row_enabled: bool + summary_row_enabled: Union[bool, Unset_Type] The summary_row_enabled of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ + # Field is not nullable + if summary_row_enabled is None: + raise ValueError( + "Invalid value for 'summary_row_enabled', must not be 'None'" + ) self._summary_row_enabled = summary_row_enabled @property - def summary_row_text(self) -> "Optional[str]": + def summary_row_text(self) -> "Union[str, None, Unset_Type]": """Gets the summary_row_text of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns ------- - str + Union[str, None, Unset_Type] The summary_row_text of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ return self._summary_row_text @summary_row_text.setter - def summary_row_text(self, summary_row_text: "Optional[str]") -> None: + def summary_row_text( + self, summary_row_text: "Union[str, None, Unset_Type]" + ) -> None: """Sets the summary_row_text of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters ---------- - summary_row_text: str + summary_row_text: Union[str, None, Unset_Type] The summary_row_text of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ self._summary_row_text = summary_row_text @@ -207,12 +225,14 @@ def summary_row_text(self, summary_row_text: "Optional[str]") -> None: @property def roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ return self._roll_up_type @@ -220,26 +240,31 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( self, - roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters ---------- - roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ + # Field is not nullable + if roll_up_type is None: + raise ValueError("Invalid value for 'roll_up_type', must not be 'None'") self._roll_up_type = roll_up_type @property def summary_row_roll_up_type( self, - ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": + ) -> ( + "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" + ): """Gets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns ------- - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ return self._summary_row_roll_up_type @@ -247,63 +272,74 @@ def summary_row_roll_up_type( @summary_row_roll_up_type.setter def summary_row_roll_up_type( self, - summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", + summary_row_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]", ) -> None: """Sets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters ---------- - summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType + summary_row_roll_up_type: Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type] The summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ + # Field is not nullable + if summary_row_roll_up_type is None: + raise ValueError( + "Invalid value for 'summary_row_roll_up_type', must not be 'None'" + ) self._summary_row_roll_up_type = summary_row_roll_up_type @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -325,7 +361,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py index 331d9669..ed2884d6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsCreateUnit(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsCreateUnit(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,28 +69,28 @@ def __init__( *, name: "str", symbol: "str", - equation: "Optional[str]" = None, - guid: "Optional[str]" = None, + equation: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsCreateUnit - a model defined in Swagger Parameters ---------- - name: str - symbol: str - equation: str, optional - guid: str, optional + name: str + symbol: str + equation: str, optional + guid: str, optional """ - self._symbol: str = None # type: ignore[assignment] - self._equation = None - self._name: str = None # type: ignore[assignment] - self._guid = None + self._symbol: str + self._equation: Union[str, None, Unset_Type] = Unset + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.symbol = symbol - if equation is not None: + if equation is not Unset: self.equation = equation self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -113,28 +113,32 @@ def symbol(self, symbol: "str") -> None: symbol: str The symbol of this GrantaServerApiSchemaUnitsCreateUnit. """ + # Field is not nullable if symbol is None: raise ValueError("Invalid value for 'symbol', must not be 'None'") + # Field is required + if symbol is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'symbol', must not be 'Unset'") self._symbol = symbol @property - def equation(self) -> "Optional[str]": + def equation(self) -> "Union[str, None, Unset_Type]": """Gets the equation of this GrantaServerApiSchemaUnitsCreateUnit. Returns ------- - str + Union[str, None, Unset_Type] The equation of this GrantaServerApiSchemaUnitsCreateUnit. """ return self._equation @equation.setter - def equation(self, equation: "Optional[str]") -> None: + def equation(self, equation: "Union[str, None, Unset_Type]") -> None: """Sets the equation of this GrantaServerApiSchemaUnitsCreateUnit. Parameters ---------- - equation: str + equation: Union[str, None, Unset_Type] The equation of this GrantaServerApiSchemaUnitsCreateUnit. """ self._equation = equation @@ -159,34 +163,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaUnitsCreateUnit. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaUnitsCreateUnit. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsCreateUnit. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsCreateUnit. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsCreateUnit. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -203,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py index 9a14af6c..cb70891a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsCreateUnitSystem(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsCreateUnitSystem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -64,20 +64,20 @@ def __init__( self, *, name: "str", - guid: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsCreateUnitSystem - a model defined in Swagger Parameters ---------- - name: str - guid: str, optional + name: str + guid: str, optional """ - self._name: str = None # type: ignore[assignment] - self._guid = None + self._name: str + self._guid: Union[str, Unset_Type] = Unset self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property @@ -100,34 +100,41 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaUnitsCreateUnitSystem. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaUnitsCreateUnitSystem. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsCreateUnitSystem. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsCreateUnitSystem. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsCreateUnitSystem. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -144,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py index 581722a2..9d7cfcd1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnit(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnit(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -70,24 +70,24 @@ def __init__( guid: "str", name: "str", symbol: "str", - equation: "Optional[str]" = None, + equation: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsUnit - a model defined in Swagger Parameters ---------- - guid: str - name: str - symbol: str - equation: str, optional + guid: str + name: str + symbol: str + equation: str, optional """ - self._name: str = None # type: ignore[assignment] - self._equation = None - self._symbol: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._name: str + self._equation: Union[str, None, Unset_Type] = Unset + self._symbol: str + self._guid: str self.name = name - if equation is not None: + if equation is not Unset: self.equation = equation self.symbol = symbol self.guid = guid @@ -112,28 +112,32 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaUnitsUnit. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property - def equation(self) -> "Optional[str]": + def equation(self) -> "Union[str, None, Unset_Type]": """Gets the equation of this GrantaServerApiSchemaUnitsUnit. Returns ------- - str + Union[str, None, Unset_Type] The equation of this GrantaServerApiSchemaUnitsUnit. """ return self._equation @equation.setter - def equation(self, equation: "Optional[str]") -> None: + def equation(self, equation: "Union[str, None, Unset_Type]") -> None: """Sets the equation of this GrantaServerApiSchemaUnitsUnit. Parameters ---------- - equation: str + equation: Union[str, None, Unset_Type] The equation of this GrantaServerApiSchemaUnitsUnit. """ self._equation = equation @@ -158,8 +162,12 @@ def symbol(self, symbol: "str") -> None: symbol: str The symbol of this GrantaServerApiSchemaUnitsUnit. """ + # Field is not nullable if symbol is None: raise ValueError("Invalid value for 'symbol', must not be 'None'") + # Field is required + if symbol is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'symbol', must not be 'Unset'") self._symbol = symbol @property @@ -182,12 +190,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaUnitsUnit. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -204,7 +216,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py index 5fcca12e..5c10fade 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnitEquivalent(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnitEquivalent(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -77,13 +77,13 @@ def __init__( Parameters ---------- - equivalent_unit: GrantaServerApiSchemaUnitsUnit - unit: GrantaServerApiSchemaUnitsUnit - unit_system: GrantaServerApiSchemaUnitsUnitSystem + equivalent_unit: GrantaServerApiSchemaUnitsUnit + unit: GrantaServerApiSchemaUnitsUnit + unit_system: GrantaServerApiSchemaUnitsUnitSystem """ - self._unit: GrantaServerApiSchemaUnitsUnit = None # type: ignore[assignment] - self._unit_system: GrantaServerApiSchemaUnitsUnitSystem = None # type: ignore[assignment] - self._equivalent_unit: GrantaServerApiSchemaUnitsUnit = None # type: ignore[assignment] + self._unit: GrantaServerApiSchemaUnitsUnit + self._unit_system: GrantaServerApiSchemaUnitsUnitSystem + self._equivalent_unit: GrantaServerApiSchemaUnitsUnit self.unit = unit self.unit_system = unit_system @@ -109,8 +109,12 @@ def unit(self, unit: "GrantaServerApiSchemaUnitsUnit") -> None: unit: GrantaServerApiSchemaUnitsUnit The unit of this GrantaServerApiSchemaUnitsUnitEquivalent. """ + # Field is not nullable if unit is None: raise ValueError("Invalid value for 'unit', must not be 'None'") + # Field is required + if unit is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'unit', must not be 'Unset'") self._unit = unit @property @@ -133,8 +137,12 @@ def unit_system(self, unit_system: "GrantaServerApiSchemaUnitsUnitSystem") -> No unit_system: GrantaServerApiSchemaUnitsUnitSystem The unit_system of this GrantaServerApiSchemaUnitsUnitEquivalent. """ + # Field is not nullable if unit_system is None: raise ValueError("Invalid value for 'unit_system', must not be 'None'") + # Field is required + if unit_system is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'unit_system', must not be 'Unset'") self._unit_system = unit_system @property @@ -159,12 +167,16 @@ def equivalent_unit( equivalent_unit: GrantaServerApiSchemaUnitsUnit The equivalent_unit of this GrantaServerApiSchemaUnitsUnitEquivalent. """ + # Field is not nullable if equivalent_unit is None: raise ValueError("Invalid value for 'equivalent_unit', must not be 'None'") + # Field is required + if equivalent_unit is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'equivalent_unit', must not be 'Unset'") self._equivalent_unit = equivalent_unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +193,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py index f88ac53b..d3cf7db8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnitEquivalentsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnitEquivalentsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,30 @@ class GrantaServerApiSchemaUnitsUnitEquivalentsInfo(ModelBase): # type: ignore[ def __init__( self, *, - unit_equivalents: "Optional[List[GrantaServerApiSchemaUnitsUnitEquivalent]]" = None, + unit_equivalents: "Union[List[GrantaServerApiSchemaUnitsUnitEquivalent], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsUnitEquivalentsInfo - a model defined in Swagger Parameters ---------- - unit_equivalents: List[GrantaServerApiSchemaUnitsUnitEquivalent], optional + unit_equivalents: List[GrantaServerApiSchemaUnitsUnitEquivalent], optional """ - self._unit_equivalents = None + self._unit_equivalents: Union[ + List[GrantaServerApiSchemaUnitsUnitEquivalent], None, Unset_Type + ] = Unset - if unit_equivalents is not None: + if unit_equivalents is not Unset: self.unit_equivalents = unit_equivalents @property def unit_equivalents( self, - ) -> "Optional[List[GrantaServerApiSchemaUnitsUnitEquivalent]]": + ) -> "Union[List[GrantaServerApiSchemaUnitsUnitEquivalent], None, Unset_Type]": """Gets the unit_equivalents of this GrantaServerApiSchemaUnitsUnitEquivalentsInfo. Returns ------- - list[GrantaServerApiSchemaUnitsUnitEquivalent] + Union[List[GrantaServerApiSchemaUnitsUnitEquivalent], None, Unset_Type] The unit_equivalents of this GrantaServerApiSchemaUnitsUnitEquivalentsInfo. """ return self._unit_equivalents @@ -92,19 +94,19 @@ def unit_equivalents( @unit_equivalents.setter def unit_equivalents( self, - unit_equivalents: "Optional[List[GrantaServerApiSchemaUnitsUnitEquivalent]]", + unit_equivalents: "Union[List[GrantaServerApiSchemaUnitsUnitEquivalent], None, Unset_Type]", ) -> None: """Sets the unit_equivalents of this GrantaServerApiSchemaUnitsUnitEquivalentsInfo. Parameters ---------- - unit_equivalents: List[GrantaServerApiSchemaUnitsUnitEquivalent] + unit_equivalents: Union[List[GrantaServerApiSchemaUnitsUnitEquivalent], None, Unset_Type] The unit_equivalents of this GrantaServerApiSchemaUnitsUnitEquivalentsInfo. """ self._unit_equivalents = unit_equivalents @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py index 3f0109fc..7764f24a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnitMapping(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnitMapping(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,11 +73,11 @@ def __init__( Parameters ---------- - equivalent_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit - unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + equivalent_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit """ - self._unit: GrantaServerApiSchemaSlimEntitiesSlimUnit = None # type: ignore[assignment] - self._equivalent_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit = None # type: ignore[assignment] + self._unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + self._equivalent_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit self.unit = unit self.equivalent_unit = equivalent_unit @@ -102,8 +102,12 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: unit: GrantaServerApiSchemaSlimEntitiesSlimUnit The unit of this GrantaServerApiSchemaUnitsUnitMapping. """ + # Field is not nullable if unit is None: raise ValueError("Invalid value for 'unit', must not be 'None'") + # Field is required + if unit is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'unit', must not be 'Unset'") self._unit = unit @property @@ -128,12 +132,16 @@ def equivalent_unit( equivalent_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit The equivalent_unit of this GrantaServerApiSchemaUnitsUnitMapping. """ + # Field is not nullable if equivalent_unit is None: raise ValueError("Invalid value for 'equivalent_unit', must not be 'None'") + # Field is required + if equivalent_unit is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'equivalent_unit', must not be 'Unset'") self._equivalent_unit = equivalent_unit @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +158,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py index 3482fd29..25649519 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnitSystem(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnitSystem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -78,15 +78,15 @@ def __init__( Parameters ---------- - display_names: Dict[str, str] - guid: str - name: str - unit_mappings: List[GrantaServerApiSchemaUnitsUnitMapping] + display_names: Dict[str, str] + guid: str + name: str + unit_mappings: List[GrantaServerApiSchemaUnitsUnitMapping] """ - self._unit_mappings: List[GrantaServerApiSchemaUnitsUnitMapping] = None # type: ignore[assignment] - self._display_names: Dict[str, str] = None # type: ignore[assignment] - self._name: str = None # type: ignore[assignment] - self._guid: str = None # type: ignore[assignment] + self._unit_mappings: List[GrantaServerApiSchemaUnitsUnitMapping] + self._display_names: Dict[str, str] + self._name: str + self._guid: str self.unit_mappings = unit_mappings self.display_names = display_names @@ -99,7 +99,7 @@ def unit_mappings(self) -> "List[GrantaServerApiSchemaUnitsUnitMapping]": Returns ------- - list[GrantaServerApiSchemaUnitsUnitMapping] + List[GrantaServerApiSchemaUnitsUnitMapping] The unit_mappings of this GrantaServerApiSchemaUnitsUnitSystem. """ return self._unit_mappings @@ -115,8 +115,12 @@ def unit_mappings( unit_mappings: List[GrantaServerApiSchemaUnitsUnitMapping] The unit_mappings of this GrantaServerApiSchemaUnitsUnitSystem. """ + # Field is not nullable if unit_mappings is None: raise ValueError("Invalid value for 'unit_mappings', must not be 'None'") + # Field is required + if unit_mappings is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'unit_mappings', must not be 'Unset'") self._unit_mappings = unit_mappings @property @@ -125,7 +129,7 @@ def display_names(self) -> "Dict[str, str]": Returns ------- - dict(str, str) + Dict[str, str] The display_names of this GrantaServerApiSchemaUnitsUnitSystem. """ return self._display_names @@ -139,8 +143,12 @@ def display_names(self, display_names: "Dict[str, str]") -> None: display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaUnitsUnitSystem. """ + # Field is not nullable if display_names is None: raise ValueError("Invalid value for 'display_names', must not be 'None'") + # Field is required + if display_names is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'display_names', must not be 'Unset'") self._display_names = display_names @property @@ -163,8 +171,12 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiSchemaUnitsUnitSystem. """ + # Field is not nullable if name is None: raise ValueError("Invalid value for 'name', must not be 'None'") + # Field is required + if name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'name', must not be 'Unset'") self._name = name @property @@ -187,12 +199,16 @@ def guid(self, guid: "str") -> None: guid: str The guid of this GrantaServerApiSchemaUnitsUnitSystem. """ + # Field is not nullable if guid is None: raise ValueError("Invalid value for 'guid', must not be 'None'") + # Field is required + if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'guid', must not be 'Unset'") self._guid = guid @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -209,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py index f51cb43f..28976c8b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnitSystemsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnitSystemsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,28 +63,32 @@ class GrantaServerApiSchemaUnitsUnitSystemsInfo(ModelBase): # type: ignore[misc def __init__( self, *, - unit_systems: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]]" = None, + unit_systems: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsUnitSystemsInfo - a model defined in Swagger Parameters ---------- - unit_systems: List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], optional + unit_systems: List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], optional """ - self._unit_systems = None + self._unit_systems: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type + ] = Unset - if unit_systems is not None: + if unit_systems is not Unset: self.unit_systems = unit_systems @property def unit_systems( self, - ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]]": + ) -> ( + "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type]" + ): """Gets the unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type] The unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. """ return self._unit_systems @@ -92,19 +96,19 @@ def unit_systems( @unit_systems.setter def unit_systems( self, - unit_systems: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]]", + unit_systems: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type]", ) -> None: """Sets the unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. Parameters ---------- - unit_systems: List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem] + unit_systems: Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type] The unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. """ self._unit_systems = unit_systems @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py index 2e8118aa..2a2997c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnitUsage(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnitUsage(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -85,17 +85,17 @@ def __init__( Parameters ---------- - attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - constants: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - expressions: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] + attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + constants: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] """ - self._attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._constants: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._expressions: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] - self._units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] = None # type: ignore[assignment] + self._attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._constants: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._expressions: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] self.attributes = attributes self.parameters = parameters @@ -109,7 +109,7 @@ def attributes(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attributes of this GrantaServerApiSchemaUnitsUnitUsage. """ return self._attributes @@ -125,8 +125,12 @@ def attributes( attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attributes of this GrantaServerApiSchemaUnitsUnitUsage. """ + # Field is not nullable if attributes is None: raise ValueError("Invalid value for 'attributes', must not be 'None'") + # Field is required + if attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'attributes', must not be 'Unset'") self._attributes = attributes @property @@ -135,7 +139,7 @@ def parameters(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameters of this GrantaServerApiSchemaUnitsUnitUsage. """ return self._parameters @@ -151,8 +155,12 @@ def parameters( parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameters of this GrantaServerApiSchemaUnitsUnitUsage. """ + # Field is not nullable if parameters is None: raise ValueError("Invalid value for 'parameters', must not be 'None'") + # Field is required + if parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameters', must not be 'Unset'") self._parameters = parameters @property @@ -161,7 +169,7 @@ def constants(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The constants of this GrantaServerApiSchemaUnitsUnitUsage. """ return self._constants @@ -177,8 +185,12 @@ def constants( constants: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The constants of this GrantaServerApiSchemaUnitsUnitUsage. """ + # Field is not nullable if constants is None: raise ValueError("Invalid value for 'constants', must not be 'None'") + # Field is required + if constants is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'constants', must not be 'Unset'") self._constants = constants @property @@ -187,7 +199,7 @@ def expressions(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The expressions of this GrantaServerApiSchemaUnitsUnitUsage. """ return self._expressions @@ -203,8 +215,12 @@ def expressions( expressions: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The expressions of this GrantaServerApiSchemaUnitsUnitUsage. """ + # Field is not nullable if expressions is None: raise ValueError("Invalid value for 'expressions', must not be 'None'") + # Field is required + if expressions is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'expressions', must not be 'Unset'") self._expressions = expressions @property @@ -213,7 +229,7 @@ def units(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimUnit]": Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimUnit] + List[GrantaServerApiSchemaSlimEntitiesSlimUnit] The units of this GrantaServerApiSchemaUnitsUnitUsage. """ return self._units @@ -227,12 +243,16 @@ def units(self, units: "List[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> Non units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] The units of this GrantaServerApiSchemaUnitsUnitUsage. """ + # Field is not nullable if units is None: raise ValueError("Invalid value for 'units', must not be 'None'") + # Field is required + if units is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'units', must not be 'Unset'") self._units = units @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -249,7 +269,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py index 4a61f6f0..14aaf9cb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUnitsInfo(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUnitsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,45 +63,50 @@ class GrantaServerApiSchemaUnitsUnitsInfo(ModelBase): # type: ignore[misc] def __init__( self, *, - units: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnit]]" = None, + units: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsUnitsInfo - a model defined in Swagger Parameters ---------- - units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit], optional + units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit], optional """ - self._units = None + self._units: Union[ + List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type + ] = Unset - if units is not None: + if units is not Unset: self.units = units @property - def units(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnit]]": + def units( + self, + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type]": """Gets the units of this GrantaServerApiSchemaUnitsUnitsInfo. Returns ------- - list[GrantaServerApiSchemaSlimEntitiesSlimUnit] + Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type] The units of this GrantaServerApiSchemaUnitsUnitsInfo. """ return self._units @units.setter def units( - self, units: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnit]]" + self, + units: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type]", ) -> None: """Sets the units of this GrantaServerApiSchemaUnitsUnitsInfo. Parameters ---------- - units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] + units: Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type] The units of this GrantaServerApiSchemaUnitsUnitsInfo. """ self._units = units @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -118,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py index ef0290f8..b271e11c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUpdateUnit(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUpdateUnit(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,133 @@ class GrantaServerApiSchemaUnitsUpdateUnit(ModelBase): # type: ignore[misc] def __init__( self, *, - equation: "Optional[str]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - symbol: "Optional[str]" = None, + equation: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + symbol: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsUpdateUnit - a model defined in Swagger Parameters ---------- - equation: str, optional - guid: str, optional - name: str, optional - symbol: str, optional + equation: str, optional + guid: str, optional + name: str, optional + symbol: str, optional """ - self._symbol = None - self._equation = None - self._name = None - self._guid = None + self._symbol: Union[str, Unset_Type] = Unset + self._equation: Union[str, None, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if symbol is not None: + if symbol is not Unset: self.symbol = symbol - if equation is not None: + if equation is not Unset: self.equation = equation - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def symbol(self) -> "Optional[str]": + def symbol(self) -> "Union[str, Unset_Type]": """Gets the symbol of this GrantaServerApiSchemaUnitsUpdateUnit. Returns ------- - str + Union[str, Unset_Type] The symbol of this GrantaServerApiSchemaUnitsUpdateUnit. """ return self._symbol @symbol.setter - def symbol(self, symbol: "Optional[str]") -> None: + def symbol(self, symbol: "Union[str, Unset_Type]") -> None: """Sets the symbol of this GrantaServerApiSchemaUnitsUpdateUnit. Parameters ---------- - symbol: str + symbol: Union[str, Unset_Type] The symbol of this GrantaServerApiSchemaUnitsUpdateUnit. """ + # Field is not nullable + if symbol is None: + raise ValueError("Invalid value for 'symbol', must not be 'None'") self._symbol = symbol @property - def equation(self) -> "Optional[str]": + def equation(self) -> "Union[str, None, Unset_Type]": """Gets the equation of this GrantaServerApiSchemaUnitsUpdateUnit. Returns ------- - str + Union[str, None, Unset_Type] The equation of this GrantaServerApiSchemaUnitsUpdateUnit. """ return self._equation @equation.setter - def equation(self, equation: "Optional[str]") -> None: + def equation(self, equation: "Union[str, None, Unset_Type]") -> None: """Sets the equation of this GrantaServerApiSchemaUnitsUpdateUnit. Parameters ---------- - equation: str + equation: Union[str, None, Unset_Type] The equation of this GrantaServerApiSchemaUnitsUpdateUnit. """ self._equation = equation @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaUnitsUpdateUnit. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaUnitsUpdateUnit. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaUnitsUpdateUnit. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaUnitsUpdateUnit. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaUnitsUpdateUnit. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsUpdateUnit. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsUpdateUnit. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsUpdateUnit. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py index addd3c37..2723266b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUnitsUpdateUnitSystem(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUnitsUpdateUnitSystem(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiSchemaUnitsUpdateUnitSystem(ModelBase): # type: ignore[mis def __init__( self, *, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUnitsUpdateUnitSystem - a model defined in Swagger Parameters ---------- - guid: str, optional - name: str, optional + guid: str, optional + name: str, optional """ - self._name = None - self._guid = None + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py index 9719f7f0..a5dbc085 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSchemaUpdateDatabase(ModelBase): # type: ignore[misc] +class GrantaServerApiSchemaUpdateDatabase(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -73,205 +73,214 @@ class GrantaServerApiSchemaUpdateDatabase(ModelBase): # type: ignore[misc] def __init__( self, *, - author: "Optional[str]" = None, - company: "Optional[str]" = None, - currency_code: "Optional[str]" = None, - guid: "Optional[str]" = None, - name: "Optional[str]" = None, - notes: "Optional[str]" = None, - version_guid: "Optional[str]" = None, + author: "Union[str, None, Unset_Type]" = Unset, + company: "Union[str, None, Unset_Type]" = Unset, + currency_code: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + name: "Union[str, Unset_Type]" = Unset, + notes: "Union[str, None, Unset_Type]" = Unset, + version_guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSchemaUpdateDatabase - a model defined in Swagger Parameters ---------- - author: str, optional - company: str, optional - currency_code: str, optional - guid: str, optional - name: str, optional - notes: str, optional - version_guid: str, optional + author: str, optional + company: str, optional + currency_code: str, optional + guid: str, optional + name: str, optional + notes: str, optional + version_guid: str, optional """ - self._author = None - self._company = None - self._notes = None - self._currency_code = None - self._version_guid = None - self._name = None - self._guid = None - - if author is not None: + self._author: Union[str, None, Unset_Type] = Unset + self._company: Union[str, None, Unset_Type] = Unset + self._notes: Union[str, None, Unset_Type] = Unset + self._currency_code: Union[str, None, Unset_Type] = Unset + self._version_guid: Union[str, Unset_Type] = Unset + self._name: Union[str, Unset_Type] = Unset + self._guid: Union[str, Unset_Type] = Unset + + if author is not Unset: self.author = author - if company is not None: + if company is not Unset: self.company = company - if notes is not None: + if notes is not Unset: self.notes = notes - if currency_code is not None: + if currency_code is not Unset: self.currency_code = currency_code - if version_guid is not None: + if version_guid is not Unset: self.version_guid = version_guid - if name is not None: + if name is not Unset: self.name = name - if guid is not None: + if guid is not Unset: self.guid = guid @property - def author(self) -> "Optional[str]": + def author(self) -> "Union[str, None, Unset_Type]": """Gets the author of this GrantaServerApiSchemaUpdateDatabase. Returns ------- - str + Union[str, None, Unset_Type] The author of this GrantaServerApiSchemaUpdateDatabase. """ return self._author @author.setter - def author(self, author: "Optional[str]") -> None: + def author(self, author: "Union[str, None, Unset_Type]") -> None: """Sets the author of this GrantaServerApiSchemaUpdateDatabase. Parameters ---------- - author: str + author: Union[str, None, Unset_Type] The author of this GrantaServerApiSchemaUpdateDatabase. """ self._author = author @property - def company(self) -> "Optional[str]": + def company(self) -> "Union[str, None, Unset_Type]": """Gets the company of this GrantaServerApiSchemaUpdateDatabase. Returns ------- - str + Union[str, None, Unset_Type] The company of this GrantaServerApiSchemaUpdateDatabase. """ return self._company @company.setter - def company(self, company: "Optional[str]") -> None: + def company(self, company: "Union[str, None, Unset_Type]") -> None: """Sets the company of this GrantaServerApiSchemaUpdateDatabase. Parameters ---------- - company: str + company: Union[str, None, Unset_Type] The company of this GrantaServerApiSchemaUpdateDatabase. """ self._company = company @property - def notes(self) -> "Optional[str]": + def notes(self) -> "Union[str, None, Unset_Type]": """Gets the notes of this GrantaServerApiSchemaUpdateDatabase. Returns ------- - str + Union[str, None, Unset_Type] The notes of this GrantaServerApiSchemaUpdateDatabase. """ return self._notes @notes.setter - def notes(self, notes: "Optional[str]") -> None: + def notes(self, notes: "Union[str, None, Unset_Type]") -> None: """Sets the notes of this GrantaServerApiSchemaUpdateDatabase. Parameters ---------- - notes: str + notes: Union[str, None, Unset_Type] The notes of this GrantaServerApiSchemaUpdateDatabase. """ self._notes = notes @property - def currency_code(self) -> "Optional[str]": + def currency_code(self) -> "Union[str, None, Unset_Type]": """Gets the currency_code of this GrantaServerApiSchemaUpdateDatabase. Returns ------- - str + Union[str, None, Unset_Type] The currency_code of this GrantaServerApiSchemaUpdateDatabase. """ return self._currency_code @currency_code.setter - def currency_code(self, currency_code: "Optional[str]") -> None: + def currency_code(self, currency_code: "Union[str, None, Unset_Type]") -> None: """Sets the currency_code of this GrantaServerApiSchemaUpdateDatabase. Parameters ---------- - currency_code: str + currency_code: Union[str, None, Unset_Type] The currency_code of this GrantaServerApiSchemaUpdateDatabase. """ self._currency_code = currency_code @property - def version_guid(self) -> "Optional[str]": + def version_guid(self) -> "Union[str, Unset_Type]": """Gets the version_guid of this GrantaServerApiSchemaUpdateDatabase. Returns ------- - str + Union[str, Unset_Type] The version_guid of this GrantaServerApiSchemaUpdateDatabase. """ return self._version_guid @version_guid.setter - def version_guid(self, version_guid: "Optional[str]") -> None: + def version_guid(self, version_guid: "Union[str, Unset_Type]") -> None: """Sets the version_guid of this GrantaServerApiSchemaUpdateDatabase. Parameters ---------- - version_guid: str + version_guid: Union[str, Unset_Type] The version_guid of this GrantaServerApiSchemaUpdateDatabase. """ + # Field is not nullable + if version_guid is None: + raise ValueError("Invalid value for 'version_guid', must not be 'None'") self._version_guid = version_guid @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, Unset_Type]": """Gets the name of this GrantaServerApiSchemaUpdateDatabase. Returns ------- - str + Union[str, Unset_Type] The name of this GrantaServerApiSchemaUpdateDatabase. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSchemaUpdateDatabase. Parameters ---------- - name: str + name: Union[str, Unset_Type] The name of this GrantaServerApiSchemaUpdateDatabase. """ + # Field is not nullable + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSchemaUpdateDatabase. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUpdateDatabase. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSchemaUpdateDatabase. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSchemaUpdateDatabase. """ + # 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: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -288,7 +297,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py index 0995faef..7c0c8b10 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -78,98 +78,103 @@ class GrantaServerApiSearchAttributeCriterion(GrantaServerApiSearchCriterion): def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - is_meta_attribute: "Optional[bool]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + is_meta_attribute: "Union[bool, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiSearchAttributeCriterion - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional - is_meta_attribute: bool, optional - type: str + guid: str, optional + identity: int, optional + is_meta_attribute: bool, optional + type: str """ super().__init__() - self._identity = None - self._guid = None - self._is_meta_attribute = None - self._type: str = None # type: ignore[assignment] + self._identity: Union[int, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._is_meta_attribute: Union[bool, Unset_Type] = Unset + self._type: str - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid - if is_meta_attribute is not None: + if is_meta_attribute is not Unset: self.is_meta_attribute = is_meta_attribute self.type = type @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiSearchAttributeCriterion. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiSearchAttributeCriterion. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiSearchAttributeCriterion. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiSearchAttributeCriterion. """ self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSearchAttributeCriterion. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSearchAttributeCriterion. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSearchAttributeCriterion. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSearchAttributeCriterion. """ self._guid = guid @property - def is_meta_attribute(self) -> "Optional[bool]": + def is_meta_attribute(self) -> "Union[bool, Unset_Type]": """Gets the is_meta_attribute of this GrantaServerApiSearchAttributeCriterion. Returns ------- - bool + Union[bool, Unset_Type] The is_meta_attribute of this GrantaServerApiSearchAttributeCriterion. """ return self._is_meta_attribute @is_meta_attribute.setter - def is_meta_attribute(self, is_meta_attribute: "Optional[bool]") -> None: + def is_meta_attribute(self, is_meta_attribute: "Union[bool, Unset_Type]") -> None: """Sets the is_meta_attribute of this GrantaServerApiSearchAttributeCriterion. Parameters ---------- - is_meta_attribute: bool + is_meta_attribute: Union[bool, Unset_Type] The is_meta_attribute of this GrantaServerApiSearchAttributeCriterion. """ + # Field is not nullable + if is_meta_attribute is None: + raise ValueError( + "Invalid value for 'is_meta_attribute', must not be 'None'" + ) self._is_meta_attribute = is_meta_attribute @property @@ -192,12 +197,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchAttributeCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -219,7 +228,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py index 9d28892c..b5ed4c18 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( GrantaServerApiSearchAttributeCriterion, ) # noqa: F401 @@ -79,55 +79,63 @@ def __init__( self, *, attribute_criterion_type: "str" = "exists", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - inner_criterion: "Optional[GrantaServerApiSearchDatumExistsCriterion]" = None, - is_meta_attribute: "Optional[bool]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type]" = Unset, + is_meta_attribute: "Union[bool, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiSearchAttributeExistsCriterion - a model defined in Swagger Parameters ---------- - attribute_criterion_type: str - guid: str, optional - identity: int, optional - inner_criterion: GrantaServerApiSearchDatumExistsCriterion, optional - is_meta_attribute: bool, optional - type: str + attribute_criterion_type: str + guid: str, optional + identity: int, optional + inner_criterion: GrantaServerApiSearchDatumExistsCriterion, optional + is_meta_attribute: bool, optional + type: str """ super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._inner_criterion = None - self._attribute_criterion_type: str = None # type: ignore[assignment] + self._inner_criterion: Union[ + GrantaServerApiSearchDatumExistsCriterion, Unset_Type + ] = Unset + self._attribute_criterion_type: str - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion self.attribute_criterion_type = attribute_criterion_type @property - def inner_criterion(self) -> "Optional[GrantaServerApiSearchDatumExistsCriterion]": + def inner_criterion( + self, + ) -> "Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. Returns ------- - GrantaServerApiSearchDatumExistsCriterion + Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. """ return self._inner_criterion @inner_criterion.setter def inner_criterion( - self, inner_criterion: "Optional[GrantaServerApiSearchDatumExistsCriterion]" + self, + inner_criterion: "Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type]", ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. Parameters ---------- - inner_criterion: GrantaServerApiSearchDatumExistsCriterion + inner_criterion: Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @property @@ -150,14 +158,20 @@ def attribute_criterion_type(self, attribute_criterion_type: "str") -> None: attribute_criterion_type: str The attribute_criterion_type of this GrantaServerApiSearchAttributeExistsCriterion. """ + # Field is not nullable if attribute_criterion_type is None: raise ValueError( "Invalid value for 'attribute_criterion_type', must not be 'None'" ) + # Field is required + if attribute_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_criterion_type', must not be 'Unset'" + ) self._attribute_criterion_type = attribute_criterion_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +188,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py index 30119fa3..a04036b1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( GrantaServerApiSearchAttributeCriterion, ) # noqa: F401 @@ -79,55 +79,62 @@ def __init__( self, *, attribute_criterion_type: "str" = "matches", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - inner_criterion: "Optional[GrantaServerApiSearchDatumCriterion]" = None, - is_meta_attribute: "Optional[bool]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]" = Unset, + is_meta_attribute: "Union[bool, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiSearchAttributeMatchesCriterion - a model defined in Swagger Parameters ---------- - attribute_criterion_type: str - guid: str, optional - identity: int, optional - inner_criterion: GrantaServerApiSearchDatumCriterion, optional - is_meta_attribute: bool, optional - type: str + attribute_criterion_type: str + guid: str, optional + identity: int, optional + inner_criterion: GrantaServerApiSearchDatumCriterion, optional + is_meta_attribute: bool, optional + type: str """ super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._inner_criterion = None - self._attribute_criterion_type: str = None # type: ignore[assignment] + self._inner_criterion: Union[ + GrantaServerApiSearchDatumCriterion, Unset_Type + ] = Unset + self._attribute_criterion_type: str - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion self.attribute_criterion_type = attribute_criterion_type @property - def inner_criterion(self) -> "Optional[GrantaServerApiSearchDatumCriterion]": + def inner_criterion( + self, + ) -> "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiSearchAttributeMatchesCriterion. Returns ------- - GrantaServerApiSearchDatumCriterion + Union[GrantaServerApiSearchDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchAttributeMatchesCriterion. """ return self._inner_criterion @inner_criterion.setter def inner_criterion( - self, inner_criterion: "Optional[GrantaServerApiSearchDatumCriterion]" + self, inner_criterion: "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchAttributeMatchesCriterion. Parameters ---------- - inner_criterion: GrantaServerApiSearchDatumCriterion + inner_criterion: Union[GrantaServerApiSearchDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchAttributeMatchesCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @property @@ -150,14 +157,20 @@ def attribute_criterion_type(self, attribute_criterion_type: "str") -> None: attribute_criterion_type: str The attribute_criterion_type of this GrantaServerApiSearchAttributeMatchesCriterion. """ + # Field is not nullable if attribute_criterion_type is None: raise ValueError( "Invalid value for 'attribute_criterion_type', must not be 'None'" ) + # Field is required + if attribute_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_criterion_type', must not be 'Unset'" + ) self._attribute_criterion_type = attribute_criterion_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -174,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py index ca990100..c9f76cc3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( GrantaServerApiSearchAttributeCriterion, ) # noqa: F401 @@ -75,25 +75,25 @@ def __init__( self, *, attribute_criterion_type: "str" = "notApplicable", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - is_meta_attribute: "Optional[bool]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + is_meta_attribute: "Union[bool, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiSearchAttributeNotApplicableCriterion - a model defined in Swagger Parameters ---------- - attribute_criterion_type: str - guid: str, optional - identity: int, optional - is_meta_attribute: bool, optional - type: str + attribute_criterion_type: str + guid: str, optional + identity: int, optional + is_meta_attribute: bool, optional + type: str """ super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._attribute_criterion_type: str = None # type: ignore[assignment] + self._attribute_criterion_type: str self.attribute_criterion_type = attribute_criterion_type @@ -117,14 +117,20 @@ def attribute_criterion_type(self, attribute_criterion_type: "str") -> None: attribute_criterion_type: str The attribute_criterion_type of this GrantaServerApiSearchAttributeNotApplicableCriterion. """ + # Field is not nullable if attribute_criterion_type is None: raise ValueError( "Invalid value for 'attribute_criterion_type', must not be 'None'" ) + # Field is required + if attribute_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'attribute_criterion_type', must not be 'Unset'" + ) self._attribute_criterion_type = attribute_criterion_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -141,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py index 3f6a29dd..2b98c816 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( GrantaServerApiSearchSortCriterion, ) # noqa: F401 @@ -77,129 +77,137 @@ class GrantaServerApiSearchAttributeSortCriterion(GrantaServerApiSearchSortCrite def __init__( self, *, - attribute_type: "Optional[GrantaServerApiAttributeType]" = None, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, - sort_direction: "Optional[GrantaServerApiSearchSortDirection]" = None, - sort_type: "Optional[GrantaServerApiSearchSortType]" = None, + attribute_type: "Union[GrantaServerApiAttributeType, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, + sort_direction: "Union[GrantaServerApiSearchSortDirection, Unset_Type]" = Unset, + sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]" = Unset, type: "str" = "attribute", ) -> None: """GrantaServerApiSearchAttributeSortCriterion - a model defined in Swagger Parameters ---------- - attribute_type: GrantaServerApiAttributeType, optional - guid: str, optional - identity: int, optional - sort_direction: GrantaServerApiSearchSortDirection, optional - sort_type: GrantaServerApiSearchSortType, optional - type: str + attribute_type: GrantaServerApiAttributeType, optional + guid: str, optional + identity: int, optional + sort_direction: GrantaServerApiSearchSortDirection, optional + sort_type: GrantaServerApiSearchSortType, optional + type: str """ super().__init__(sort_direction=sort_direction) - self._identity = None - self._guid = None - self._attribute_type = None - self._sort_type = None - self._type: str = None # type: ignore[assignment] + self._identity: Union[int, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._attribute_type: Union[GrantaServerApiAttributeType, Unset_Type] = Unset + self._sort_type: Union[GrantaServerApiSearchSortType, Unset_Type] = Unset + self._type: str - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid - if attribute_type is not None: + if attribute_type is not Unset: self.attribute_type = attribute_type - if sort_type is not None: + if sort_type is not Unset: self.sort_type = sort_type self.type = type @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiSearchAttributeSortCriterion. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiSearchAttributeSortCriterion. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiSearchAttributeSortCriterion. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiSearchAttributeSortCriterion. """ self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSearchAttributeSortCriterion. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSearchAttributeSortCriterion. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSearchAttributeSortCriterion. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSearchAttributeSortCriterion. """ self._guid = guid @property - def attribute_type(self) -> "Optional[GrantaServerApiAttributeType]": + def attribute_type(self) -> "Union[GrantaServerApiAttributeType, Unset_Type]": """Gets the attribute_type of this GrantaServerApiSearchAttributeSortCriterion. Returns ------- - GrantaServerApiAttributeType + Union[GrantaServerApiAttributeType, Unset_Type] The attribute_type of this GrantaServerApiSearchAttributeSortCriterion. """ return self._attribute_type @attribute_type.setter def attribute_type( - self, attribute_type: "Optional[GrantaServerApiAttributeType]" + self, attribute_type: "Union[GrantaServerApiAttributeType, Unset_Type]" ) -> None: """Sets the attribute_type of this GrantaServerApiSearchAttributeSortCriterion. Parameters ---------- - attribute_type: GrantaServerApiAttributeType + attribute_type: Union[GrantaServerApiAttributeType, Unset_Type] The attribute_type of this GrantaServerApiSearchAttributeSortCriterion. """ + # 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 sort_type(self) -> "Optional[GrantaServerApiSearchSortType]": + def sort_type(self) -> "Union[GrantaServerApiSearchSortType, Unset_Type]": """Gets the sort_type of this GrantaServerApiSearchAttributeSortCriterion. Returns ------- - GrantaServerApiSearchSortType + Union[GrantaServerApiSearchSortType, Unset_Type] The sort_type of this GrantaServerApiSearchAttributeSortCriterion. """ return self._sort_type @sort_type.setter - def sort_type(self, sort_type: "Optional[GrantaServerApiSearchSortType]") -> None: + def sort_type( + self, sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]" + ) -> None: """Sets the sort_type of this GrantaServerApiSearchAttributeSortCriterion. Parameters ---------- - sort_type: GrantaServerApiSearchSortType + sort_type: Union[GrantaServerApiSearchSortType, Unset_Type] The sort_type of this GrantaServerApiSearchAttributeSortCriterion. """ + # Field is not nullable + if sort_type is None: + raise ValueError("Invalid value for 'sort_type', must not be 'None'") self._sort_type = sort_type @property @@ -222,12 +230,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchAttributeSortCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -244,7 +256,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py index c0ee8fb5..ab377e7b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -74,102 +74,110 @@ class GrantaServerApiSearchBooleanCriterion(GrantaServerApiSearchCriterion): def __init__( self, *, - _none: "Optional[List[GrantaServerApiSearchCriterion]]" = None, - all: "Optional[List[GrantaServerApiSearchCriterion]]" = None, - any: "Optional[List[GrantaServerApiSearchCriterion]]" = None, + _none: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" = Unset, + all: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" = Unset, + any: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" = Unset, type: "str" = "boolean", ) -> None: """GrantaServerApiSearchBooleanCriterion - a model defined in Swagger Parameters ---------- - _none: List[GrantaServerApiSearchCriterion], optional - all: List[GrantaServerApiSearchCriterion], optional - any: List[GrantaServerApiSearchCriterion], optional - type: str + _none: List[GrantaServerApiSearchCriterion], optional + all: List[GrantaServerApiSearchCriterion], optional + any: List[GrantaServerApiSearchCriterion], optional + type: str """ super().__init__() - self._all = None - self._any = None - self.__none = None - self._type: str = None # type: ignore[assignment] - - if all is not None: + self._all: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] = Unset + self._any: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] = Unset + self.__none: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] = ( + Unset + ) + self._type: str + + if all is not Unset: self.all = all - if any is not None: + if any is not Unset: self.any = any - if _none is not None: + if _none is not Unset: self._none = _none self.type = type @property - def all(self) -> "Optional[List[GrantaServerApiSearchCriterion]]": + def all(self) -> "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]": """Gets the all of this GrantaServerApiSearchBooleanCriterion. Only records that match all of these criteria are returned. Returns ------- - list[GrantaServerApiSearchCriterion] + Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] The all of this GrantaServerApiSearchBooleanCriterion. """ return self._all @all.setter - def all(self, all: "Optional[List[GrantaServerApiSearchCriterion]]") -> None: + def all( + self, all: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" + ) -> None: """Sets the all of this GrantaServerApiSearchBooleanCriterion. Only records that match all of these criteria are returned. Parameters ---------- - all: List[GrantaServerApiSearchCriterion] + all: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] The all of this GrantaServerApiSearchBooleanCriterion. """ self._all = all @property - def any(self) -> "Optional[List[GrantaServerApiSearchCriterion]]": + def any(self) -> "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]": """Gets the any of this GrantaServerApiSearchBooleanCriterion. Only results that match any of these criteria are returned. Returns ------- - list[GrantaServerApiSearchCriterion] + Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] The any of this GrantaServerApiSearchBooleanCriterion. """ return self._any @any.setter - def any(self, any: "Optional[List[GrantaServerApiSearchCriterion]]") -> None: + def any( + self, any: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" + ) -> None: """Sets the any of this GrantaServerApiSearchBooleanCriterion. Only results that match any of these criteria are returned. Parameters ---------- - any: List[GrantaServerApiSearchCriterion] + any: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] The any of this GrantaServerApiSearchBooleanCriterion. """ self._any = any @property - def _none(self) -> "Optional[List[GrantaServerApiSearchCriterion]]": + def _none(self) -> "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]": """Gets the _none of this GrantaServerApiSearchBooleanCriterion. Only results that match none of these criteria are returned. Returns ------- - list[GrantaServerApiSearchCriterion] + Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] The _none of this GrantaServerApiSearchBooleanCriterion. """ return self.__none @_none.setter - def _none(self, _none: "Optional[List[GrantaServerApiSearchCriterion]]") -> None: + def _none( + self, _none: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" + ) -> None: """Sets the _none of this GrantaServerApiSearchBooleanCriterion. Only results that match none of these criteria are returned. Parameters ---------- - _none: List[GrantaServerApiSearchCriterion] + _none: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] The _none of this GrantaServerApiSearchBooleanCriterion. """ self.__none = _none @@ -194,12 +202,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchBooleanCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -216,7 +228,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py index 36d5c14c..140e70dc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchBoostByGuid(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchBoostByGuid(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiSearchBoostByGuid(ModelBase): # type: ignore[misc] def __init__( self, *, - boost_factor: "Optional[float]" = None, - guid: "Optional[str]" = None, + boost_factor: "Union[float, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchBoostByGuid - a model defined in Swagger Parameters ---------- - boost_factor: float, optional - guid: str, optional + boost_factor: float, optional + guid: str, optional """ - self._guid = None - self._boost_factor = None + self._guid: Union[str, Unset_Type] = Unset + self._boost_factor: Union[float, Unset_Type] = Unset - if guid is not None: + if guid is not Unset: self.guid = guid - if boost_factor is not None: + if boost_factor is not Unset: self.boost_factor = boost_factor @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, Unset_Type]": """Gets the guid of this GrantaServerApiSearchBoostByGuid. Returns ------- - str + Union[str, Unset_Type] The guid of this GrantaServerApiSearchBoostByGuid. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSearchBoostByGuid. Parameters ---------- - guid: str + guid: Union[str, Unset_Type] The guid of this GrantaServerApiSearchBoostByGuid. """ + # Field is not nullable + if guid is None: + raise ValueError("Invalid value for 'guid', must not be 'None'") self._guid = guid @property - def boost_factor(self) -> "Optional[float]": + def boost_factor(self) -> "Union[float, Unset_Type]": """Gets the boost_factor of this GrantaServerApiSearchBoostByGuid. Returns ------- - float + Union[float, Unset_Type] The boost_factor of this GrantaServerApiSearchBoostByGuid. """ return self._boost_factor @boost_factor.setter - def boost_factor(self, boost_factor: "Optional[float]") -> None: + def boost_factor(self, boost_factor: "Union[float, Unset_Type]") -> None: """Sets the boost_factor of this GrantaServerApiSearchBoostByGuid. Parameters ---------- - boost_factor: float + boost_factor: Union[float, Unset_Type] The boost_factor of this GrantaServerApiSearchBoostByGuid. """ + # Field is not nullable + if boost_factor is None: + raise ValueError("Invalid value for 'boost_factor', must not be 'None'") self._boost_factor = boost_factor @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py index 7d389143..1d112b02 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchBoostByIdentity(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchBoostByIdentity(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,70 +63,76 @@ class GrantaServerApiSearchBoostByIdentity(ModelBase): # type: ignore[misc] def __init__( self, *, - boost_factor: "Optional[float]" = None, - identity: "Optional[int]" = None, + boost_factor: "Union[float, Unset_Type]" = Unset, + identity: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchBoostByIdentity - a model defined in Swagger Parameters ---------- - boost_factor: float, optional - identity: int, optional + boost_factor: float, optional + identity: int, optional """ - self._identity = None - self._boost_factor = None + self._identity: Union[int, Unset_Type] = Unset + self._boost_factor: Union[float, Unset_Type] = Unset - if identity is not None: + if identity is not Unset: self.identity = identity - if boost_factor is not None: + if boost_factor is not Unset: self.boost_factor = boost_factor @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, Unset_Type]": """Gets the identity of this GrantaServerApiSearchBoostByIdentity. Returns ------- - int + Union[int, Unset_Type] The identity of this GrantaServerApiSearchBoostByIdentity. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiSearchBoostByIdentity. Parameters ---------- - identity: int + identity: Union[int, Unset_Type] The identity of this GrantaServerApiSearchBoostByIdentity. """ + # Field is not nullable + if identity is None: + raise ValueError("Invalid value for 'identity', must not be 'None'") self._identity = identity @property - def boost_factor(self) -> "Optional[float]": + def boost_factor(self) -> "Union[float, Unset_Type]": """Gets the boost_factor of this GrantaServerApiSearchBoostByIdentity. Returns ------- - float + Union[float, Unset_Type] The boost_factor of this GrantaServerApiSearchBoostByIdentity. """ return self._boost_factor @boost_factor.setter - def boost_factor(self, boost_factor: "Optional[float]") -> None: + def boost_factor(self, boost_factor: "Union[float, Unset_Type]") -> None: """Sets the boost_factor of this GrantaServerApiSearchBoostByIdentity. Parameters ---------- - boost_factor: float + boost_factor: Union[float, Unset_Type] The boost_factor of this GrantaServerApiSearchBoostByIdentity. """ + # Field is not nullable + if boost_factor is None: + raise ValueError("Invalid value for 'boost_factor', must not be 'None'") self._boost_factor = boost_factor @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -143,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py index 5628a2d4..9b1935f8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -76,7 +76,7 @@ def __init__( """GrantaServerApiSearchCriterion - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -98,7 +98,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py index 5b9c8cfa..d17e8f7a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -68,73 +68,73 @@ class GrantaServerApiSearchDateTimeDatumCriterion(GrantaServerApiSearchDatumCrit def __init__( self, *, - gte: "Optional[datetime]" = None, - lte: "Optional[datetime]" = None, + gte: "Union[datetime, None, Unset_Type]" = Unset, + lte: "Union[datetime, None, Unset_Type]" = Unset, type: "str" = "dateTime", ) -> None: """GrantaServerApiSearchDateTimeDatumCriterion - a model defined in Swagger Parameters ---------- - gte: datetime, optional - lte: datetime, optional - type: str + gte: datetime, optional + lte: datetime, optional + type: str """ super().__init__() - self._gte = None - self._lte = None - self._type: str = None # type: ignore[assignment] + self._gte: Union[datetime, None, Unset_Type] = Unset + self._lte: Union[datetime, None, Unset_Type] = Unset + self._type: str - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte self.type = type @property - def gte(self) -> "Optional[datetime]": + def gte(self) -> "Union[datetime, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchDateTimeDatumCriterion. Greater than or equal to Returns ------- - datetime + Union[datetime, None, Unset_Type] The gte of this GrantaServerApiSearchDateTimeDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[datetime]") -> None: + def gte(self, gte: "Union[datetime, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchDateTimeDatumCriterion. Greater than or equal to Parameters ---------- - gte: datetime + gte: Union[datetime, None, Unset_Type] The gte of this GrantaServerApiSearchDateTimeDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[datetime]": + def lte(self) -> "Union[datetime, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchDateTimeDatumCriterion. Less than or equal to Returns ------- - datetime + Union[datetime, None, Unset_Type] The lte of this GrantaServerApiSearchDateTimeDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[datetime]") -> None: + def lte(self, lte: "Union[datetime, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchDateTimeDatumCriterion. Less than or equal to Parameters ---------- - lte: datetime + lte: Union[datetime, None, Unset_Type] The lte of this GrantaServerApiSearchDateTimeDatumCriterion. """ self._lte = lte @@ -159,12 +159,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDateTimeDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py index 4d4bb7ba..d4db88d0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchDatumCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchDatumCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -88,7 +88,7 @@ def __init__( """GrantaServerApiSearchDatumCriterion - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -110,7 +110,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py index c410ab0c..1de010c3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchDatumExistsCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchDatumExistsCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,7 +67,7 @@ def __init__( """GrantaServerApiSearchDatumExistsCriterion - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -89,7 +89,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py index c6b193ed..97e97ccf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -74,32 +74,34 @@ class GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion( def __init__( self, *, - constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" = None, - gte: "Optional[int]" = None, - lte: "Optional[int]" = None, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" = Unset, + gte: "Union[int, None, Unset_Type]" = Unset, + lte: "Union[int, None, Unset_Type]" = Unset, type: "str" = "discreteFunctionalRange", ) -> None: """GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion - a model defined in Swagger Parameters ---------- - constraints: List[GrantaServerApiSearchParameterConstraint], optional - gte: int, optional - lte: int, optional - type: str + constraints: List[GrantaServerApiSearchParameterConstraint], optional + gte: int, optional + lte: int, optional + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] - self._gte = None - self._lte = None - self._constraints = None + self._type: str + self._gte: Union[int, None, Unset_Type] = Unset + self._lte: Union[int, None, Unset_Type] = Unset + self._constraints: Union[ + List[GrantaServerApiSearchParameterConstraint], None, Unset_Type + ] = Unset self.type = type - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte - if constraints is not None: + if constraints is not Unset: self.constraints = constraints @property @@ -122,86 +124,93 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def gte(self) -> "Optional[int]": + def gte(self) -> "Union[int, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Greater than or equal to Returns ------- - int + Union[int, None, Unset_Type] The gte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[int]") -> None: + def gte(self, gte: "Union[int, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Greater than or equal to Parameters ---------- - gte: int + gte: Union[int, None, Unset_Type] The gte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[int]": + def lte(self) -> "Union[int, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Less than or equal to Returns ------- - int + Union[int, None, Unset_Type] The lte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[int]") -> None: + def lte(self, lte: "Union[int, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Less than or equal to Parameters ---------- - lte: int + lte: Union[int, None, Unset_Type] The lte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ self._lte = lte @property - def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": + def constraints( + self, + ) -> "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]": """Gets the constraints of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Optional unit string. If not included, the gte and lte values are assumed to be in database units. Returns ------- - list[GrantaServerApiSearchParameterConstraint] + Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ return self._constraints @constraints.setter def constraints( - self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" + self, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", ) -> None: """Sets the constraints of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Optional unit string. If not included, the gte and lte values are assumed to be in database units. Parameters ---------- - constraints: List[GrantaServerApiSearchParameterConstraint] + constraints: Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ self._constraints = constraints @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -218,7 +227,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py index 76cba8d4..90a68ba6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -74,78 +74,82 @@ class GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion( def __init__( self, *, - any_guids: "Optional[List[str]]" = None, - any_identities: "Optional[List[int]]" = None, - constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" = None, + any_guids: "Union[List[str], None, Unset_Type]" = Unset, + any_identities: "Union[List[int], None, Unset_Type]" = Unset, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" = Unset, type: "str" = "discreteFunctionalValues", ) -> None: """GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion - a model defined in Swagger Parameters ---------- - any_guids: List[str], optional - any_identities: List[int], optional - constraints: List[GrantaServerApiSearchParameterConstraint], optional - type: str + any_guids: List[str], optional + any_identities: List[int], optional + constraints: List[GrantaServerApiSearchParameterConstraint], optional + type: str """ super().__init__() - self._any_identities = None - self._any_guids = None - self._type: str = None # type: ignore[assignment] - self._constraints = None - - if any_identities is not None: + self._any_identities: Union[List[int], None, Unset_Type] = Unset + self._any_guids: Union[List[str], None, Unset_Type] = Unset + self._type: str + self._constraints: Union[ + List[GrantaServerApiSearchParameterConstraint], None, Unset_Type + ] = Unset + + if any_identities is not Unset: self.any_identities = any_identities - if any_guids is not None: + if any_guids is not Unset: self.any_guids = any_guids self.type = type - if constraints is not None: + if constraints is not Unset: self.constraints = constraints @property - def any_identities(self) -> "Optional[List[int]]": + def any_identities(self) -> "Union[List[int], None, Unset_Type]": """Gets the any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type identities Returns ------- - list[int] + Union[List[int], None, Unset_Type] The any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ return self._any_identities @any_identities.setter - def any_identities(self, any_identities: "Optional[List[int]]") -> None: + def any_identities( + self, any_identities: "Union[List[int], None, Unset_Type]" + ) -> None: """Sets the any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type identities Parameters ---------- - any_identities: List[int] + any_identities: Union[List[int], None, Unset_Type] The any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ self._any_identities = any_identities @property - def any_guids(self) -> "Optional[List[str]]": + def any_guids(self) -> "Union[List[str], None, Unset_Type]": """Gets the any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type GUIDs Returns ------- - list[str] + Union[List[str], None, Unset_Type] The any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ return self._any_guids @any_guids.setter - def any_guids(self, any_guids: "Optional[List[str]]") -> None: + def any_guids(self, any_guids: "Union[List[str], None, Unset_Type]") -> None: """Sets the any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type GUIDs Parameters ---------- - any_guids: List[str] + any_guids: Union[List[str], None, Unset_Type] The any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ self._any_guids = any_guids @@ -170,38 +174,45 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": + def constraints( + self, + ) -> "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]": """Gets the constraints of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. Returns ------- - list[GrantaServerApiSearchParameterConstraint] + Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ return self._constraints @constraints.setter def constraints( - self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" + self, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", ) -> None: """Sets the constraints of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. Parameters ---------- - constraints: List[GrantaServerApiSearchParameterConstraint] + constraints: Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ self._constraints = constraints @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -218,7 +229,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py index 8178c395..ec38b4ec 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -69,43 +69,46 @@ def __init__( self, *, type: "str" = "discreteGuid", - value: "Optional[str]" = None, + value: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchDiscreteGuidDatumCriterion - a model defined in Swagger Parameters ---------- - type: str - value: str, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[str, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, Unset_Type]": """Gets the value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. Returns ------- - str + Union[str, Unset_Type] The value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. Parameters ---------- - value: str + value: Union[str, Unset_Type] The value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property @@ -128,12 +131,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteGuidDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py index 32dbff84..63e4dce5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -72,102 +72,102 @@ class GrantaServerApiSearchDiscreteGuidValuesDatumCriterion( def __init__( self, *, - _none: "Optional[List[str]]" = None, - all: "Optional[List[str]]" = None, - any: "Optional[List[str]]" = None, + _none: "Union[List[str], None, Unset_Type]" = Unset, + all: "Union[List[str], None, Unset_Type]" = Unset, + any: "Union[List[str], None, Unset_Type]" = Unset, type: "str" = "discreteGuidValues", ) -> None: """GrantaServerApiSearchDiscreteGuidValuesDatumCriterion - a model defined in Swagger Parameters ---------- - _none: List[str], optional - all: List[str], optional - any: List[str], optional - type: str + _none: List[str], optional + all: List[str], optional + any: List[str], optional + type: str """ super().__init__() - self._all = None - self._any = None - self.__none = None - self._type: str = None # type: ignore[assignment] + self._all: Union[List[str], None, Unset_Type] = Unset + self._any: Union[List[str], None, Unset_Type] = Unset + self.__none: Union[List[str], None, Unset_Type] = Unset + self._type: str - if all is not None: + if all is not Unset: self.all = all - if any is not None: + if any is not Unset: self.any = any - if _none is not None: + if _none is not Unset: self._none = _none self.type = type @property - def all(self) -> "Optional[List[str]]": + def all(self) -> "Union[List[str], None, Unset_Type]": """Gets the all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match all of these discrete value GUIDs Returns ------- - list[str] + Union[List[str], None, Unset_Type] The all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ return self._all @all.setter - def all(self, all: "Optional[List[str]]") -> None: + def all(self, all: "Union[List[str], None, Unset_Type]") -> None: """Sets the all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match all of these discrete value GUIDs Parameters ---------- - all: List[str] + all: Union[List[str], None, Unset_Type] The all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ self._all = all @property - def any(self) -> "Optional[List[str]]": + def any(self) -> "Union[List[str], None, Unset_Type]": """Gets the any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match any of these discrete type GUIDs Returns ------- - list[str] + Union[List[str], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ return self._any @any.setter - def any(self, any: "Optional[List[str]]") -> None: + def any(self, any: "Union[List[str], None, Unset_Type]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match any of these discrete type GUIDs Parameters ---------- - any: List[str] + any: Union[List[str], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ self._any = any @property - def _none(self) -> "Optional[List[str]]": + def _none(self) -> "Union[List[str], None, Unset_Type]": """Gets the _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match none of the discrete type GUIDs Returns ------- - list[str] + Union[List[str], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ return self.__none @_none.setter - def _none(self, _none: "Optional[List[str]]") -> None: + def _none(self, _none: "Union[List[str], None, Unset_Type]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match none of the discrete type GUIDs Parameters ---------- - _none: List[str] + _none: Union[List[str], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ self.__none = _none @@ -192,12 +192,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -214,7 +218,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py index 28277bee..11afe722 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -69,43 +69,46 @@ def __init__( self, *, type: "str" = "discreteIdentity", - value: "Optional[int]" = None, + value: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchDiscreteIdentityDatumCriterion - a model defined in Swagger Parameters ---------- - type: str - value: int, optional + type: str + value: int, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[int, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[int]": + def value(self) -> "Union[int, Unset_Type]": """Gets the value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. Returns ------- - int + Union[int, Unset_Type] The value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[int]") -> None: + def value(self, value: "Union[int, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. Parameters ---------- - value: int + value: Union[int, Unset_Type] The value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property @@ -128,12 +131,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py index 396d1fcd..e2fed336 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -72,102 +72,102 @@ class GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion( def __init__( self, *, - _none: "Optional[List[int]]" = None, - all: "Optional[List[int]]" = None, - any: "Optional[List[int]]" = None, + _none: "Union[List[int], None, Unset_Type]" = Unset, + all: "Union[List[int], None, Unset_Type]" = Unset, + any: "Union[List[int], None, Unset_Type]" = Unset, type: "str" = "discreteIdentityValues", ) -> None: """GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion - a model defined in Swagger Parameters ---------- - _none: List[int], optional - all: List[int], optional - any: List[int], optional - type: str + _none: List[int], optional + all: List[int], optional + any: List[int], optional + type: str """ super().__init__() - self._all = None - self._any = None - self.__none = None - self._type: str = None # type: ignore[assignment] + self._all: Union[List[int], None, Unset_Type] = Unset + self._any: Union[List[int], None, Unset_Type] = Unset + self.__none: Union[List[int], None, Unset_Type] = Unset + self._type: str - if all is not None: + if all is not Unset: self.all = all - if any is not None: + if any is not Unset: self.any = any - if _none is not None: + if _none is not Unset: self._none = _none self.type = type @property - def all(self) -> "Optional[List[int]]": + def all(self) -> "Union[List[int], None, Unset_Type]": """Gets the all of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match all of these discrete value identities Returns ------- - list[int] + Union[List[int], None, Unset_Type] The all of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ return self._all @all.setter - def all(self, all: "Optional[List[int]]") -> None: + def all(self, all: "Union[List[int], None, Unset_Type]") -> None: """Sets the all of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match all of these discrete value identities Parameters ---------- - all: List[int] + all: Union[List[int], None, Unset_Type] The all of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ self._all = all @property - def any(self) -> "Optional[List[int]]": + def any(self) -> "Union[List[int], None, Unset_Type]": """Gets the any of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match any of these discrete type identities Returns ------- - list[int] + Union[List[int], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ return self._any @any.setter - def any(self, any: "Optional[List[int]]") -> None: + def any(self, any: "Union[List[int], None, Unset_Type]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match any of these discrete type identities Parameters ---------- - any: List[int] + any: Union[List[int], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ self._any = any @property - def _none(self) -> "Optional[List[int]]": + def _none(self) -> "Union[List[int], None, Unset_Type]": """Gets the _none of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match none of the discrete type identities Returns ------- - list[int] + Union[List[int], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ return self.__none @_none.setter - def _none(self, _none: "Optional[List[int]]") -> None: + def _none(self, _none: "Union[List[int], None, Unset_Type]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match none of the discrete type identities Parameters ---------- - _none: List[int] + _none: Union[List[int], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ self.__none = _none @@ -192,12 +192,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -214,7 +218,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py index 6ac0babd..4900a84e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( GrantaServerApiSearchParameterConstraint, ) # noqa: F401 @@ -72,71 +72,71 @@ class GrantaServerApiSearchDiscreteParameterNameConstraint( def __init__( self, *, - _none: "Optional[List[str]]" = None, - any: "Optional[List[str]]" = None, - parameter: "Optional[GrantaServerApiObjectIdentifier]" = None, + _none: "Union[List[str], None, Unset_Type]" = Unset, + any: "Union[List[str], None, Unset_Type]" = Unset, + parameter: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, type: "str" = "discreteName", ) -> None: """GrantaServerApiSearchDiscreteParameterNameConstraint - a model defined in Swagger Parameters ---------- - _none: List[str], optional - any: List[str], optional - parameter: GrantaServerApiObjectIdentifier, optional - type: str + _none: List[str], optional + any: List[str], optional + parameter: GrantaServerApiObjectIdentifier, optional + type: str """ super().__init__(parameter=parameter) - self._any = None - self.__none = None - self._type: str = None # type: ignore[assignment] + self._any: Union[List[str], None, Unset_Type] = Unset + self.__none: Union[List[str], None, Unset_Type] = Unset + self._type: str - if any is not None: + if any is not Unset: self.any = any - if _none is not None: + if _none is not Unset: self._none = _none self.type = type @property - def any(self) -> "Optional[List[str]]": + def any(self) -> "Union[List[str], None, Unset_Type]": """Gets the any of this GrantaServerApiSearchDiscreteParameterNameConstraint. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteParameterNameConstraint. """ return self._any @any.setter - def any(self, any: "Optional[List[str]]") -> None: + def any(self, any: "Union[List[str], None, Unset_Type]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteParameterNameConstraint. Parameters ---------- - any: List[str] + any: Union[List[str], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteParameterNameConstraint. """ self._any = any @property - def _none(self) -> "Optional[List[str]]": + def _none(self) -> "Union[List[str], None, Unset_Type]": """Gets the _none of this GrantaServerApiSearchDiscreteParameterNameConstraint. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteParameterNameConstraint. """ return self.__none @_none.setter - def _none(self, _none: "Optional[List[str]]") -> None: + def _none(self, _none: "Union[List[str], None, Unset_Type]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteParameterNameConstraint. Parameters ---------- - _none: List[str] + _none: Union[List[str], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteParameterNameConstraint. """ self.__none = _none @@ -161,12 +161,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteParameterNameConstraint. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py index 01e7c796..80ae3955 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( GrantaServerApiSearchParameterConstraint, ) # noqa: F401 @@ -72,71 +72,71 @@ class GrantaServerApiSearchDiscreteParameterValueConstraint( def __init__( self, *, - _none: "Optional[List[float]]" = None, - any: "Optional[List[float]]" = None, - parameter: "Optional[GrantaServerApiObjectIdentifier]" = None, + _none: "Union[List[float], None, Unset_Type]" = Unset, + any: "Union[List[float], None, Unset_Type]" = Unset, + parameter: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, type: "str" = "discreteValue", ) -> None: """GrantaServerApiSearchDiscreteParameterValueConstraint - a model defined in Swagger Parameters ---------- - _none: List[float], optional - any: List[float], optional - parameter: GrantaServerApiObjectIdentifier, optional - type: str + _none: List[float], optional + any: List[float], optional + parameter: GrantaServerApiObjectIdentifier, optional + type: str """ super().__init__(parameter=parameter) - self._any = None - self.__none = None - self._type: str = None # type: ignore[assignment] + self._any: Union[List[float], None, Unset_Type] = Unset + self.__none: Union[List[float], None, Unset_Type] = Unset + self._type: str - if any is not None: + if any is not Unset: self.any = any - if _none is not None: + if _none is not Unset: self._none = _none self.type = type @property - def any(self) -> "Optional[List[float]]": + def any(self) -> "Union[List[float], None, Unset_Type]": """Gets the any of this GrantaServerApiSearchDiscreteParameterValueConstraint. Returns ------- - list[float] + Union[List[float], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteParameterValueConstraint. """ return self._any @any.setter - def any(self, any: "Optional[List[float]]") -> None: + def any(self, any: "Union[List[float], None, Unset_Type]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteParameterValueConstraint. Parameters ---------- - any: List[float] + any: Union[List[float], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteParameterValueConstraint. """ self._any = any @property - def _none(self) -> "Optional[List[float]]": + def _none(self) -> "Union[List[float], None, Unset_Type]": """Gets the _none of this GrantaServerApiSearchDiscreteParameterValueConstraint. Returns ------- - list[float] + Union[List[float], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteParameterValueConstraint. """ return self.__none @_none.setter - def _none(self, _none: "Optional[List[float]]") -> None: + def _none(self, _none: "Union[List[float], None, Unset_Type]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteParameterValueConstraint. Parameters ---------- - _none: List[float] + _none: Union[List[float], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteParameterValueConstraint. """ self.__none = _none @@ -161,12 +161,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteParameterValueConstraint. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py index 64be5e4c..447b202c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -70,73 +70,73 @@ class GrantaServerApiSearchDiscreteRangeDatumCriterion( def __init__( self, *, - gte: "Optional[int]" = None, - lte: "Optional[int]" = None, + gte: "Union[int, None, Unset_Type]" = Unset, + lte: "Union[int, None, Unset_Type]" = Unset, type: "str" = "discreteRange", ) -> None: """GrantaServerApiSearchDiscreteRangeDatumCriterion - a model defined in Swagger Parameters ---------- - gte: int, optional - lte: int, optional - type: str + gte: int, optional + lte: int, optional + type: str """ super().__init__() - self._gte = None - self._lte = None - self._type: str = None # type: ignore[assignment] + self._gte: Union[int, None, Unset_Type] = Unset + self._lte: Union[int, None, Unset_Type] = Unset + self._type: str - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte self.type = type @property - def gte(self) -> "Optional[int]": + def gte(self) -> "Union[int, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Greater than or equal to Returns ------- - int + Union[int, None, Unset_Type] The gte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[int]") -> None: + def gte(self, gte: "Union[int, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Greater than or equal to Parameters ---------- - gte: int + gte: Union[int, None, Unset_Type] The gte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[int]": + def lte(self) -> "Union[int, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Less than or equal to Returns ------- - int + Union[int, None, Unset_Type] The lte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[int]") -> None: + def lte(self, lte: "Union[int, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Less than or equal to Parameters ---------- - lte: int + lte: Union[int, None, Unset_Type] The lte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. """ self._lte = lte @@ -161,12 +161,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteRangeDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +187,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py index 73837098..40b7e2db 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -72,47 +72,49 @@ class GrantaServerApiSearchDiscreteTextDatumCriterion( def __init__( self, *, - text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" = None, + text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]" = Unset, type: "str" = "discreteText", - value: "Optional[str]" = None, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchDiscreteTextDatumCriterion - a model defined in Swagger Parameters ---------- - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional - type: str - value: str, optional + text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._text_match_behaviour = None - self._type: str = None # type: ignore[assignment] + self._value: Union[str, None, Unset_Type] = Unset + self._text_match_behaviour: Union[ + GrantaServerApiSearchTextMatchBehaviour, Unset_Type + ] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value - if text_match_behaviour is not None: + if text_match_behaviour is not Unset: self.text_match_behaviour = text_match_behaviour self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSearchDiscreteTextDatumCriterion. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSearchDiscreteTextDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchDiscreteTextDatumCriterion. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSearchDiscreteTextDatumCriterion. """ self._value = value @@ -120,27 +122,33 @@ def value(self, value: "Optional[str]") -> None: @property def text_match_behaviour( self, - ) -> "Optional[GrantaServerApiSearchTextMatchBehaviour]": + ) -> "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]": """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. Returns ------- - GrantaServerApiSearchTextMatchBehaviour + Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] The text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. """ return self._text_match_behaviour @text_match_behaviour.setter def text_match_behaviour( - self, text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" + self, + text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]", ) -> None: """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. Parameters ---------- - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour + text_match_behaviour: Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] The text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. """ + # Field is not nullable + if text_match_behaviour is None: + raise ValueError( + "Invalid value for 'text_match_behaviour', must not be 'None'" + ) self._text_match_behaviour = text_match_behaviour @property @@ -163,12 +171,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteTextDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -185,7 +197,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py index 19b9a6a4..166c5e45 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -76,101 +76,103 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion( def __init__( self, *, - _none: "Optional[List[str]]" = None, - all: "Optional[List[str]]" = None, - any: "Optional[List[str]]" = None, - text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" = None, + _none: "Union[List[str], None, Unset_Type]" = Unset, + all: "Union[List[str], None, Unset_Type]" = Unset, + any: "Union[List[str], None, Unset_Type]" = Unset, + text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]" = Unset, type: "str" = "discreteTextValues", ) -> None: """GrantaServerApiSearchDiscreteTextValuesDatumCriterion - a model defined in Swagger Parameters ---------- - _none: List[str], optional - all: List[str], optional - any: List[str], optional - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional - type: str + _none: List[str], optional + all: List[str], optional + any: List[str], optional + text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional + type: str """ super().__init__() - self._all = None - self._any = None - self.__none = None - self._text_match_behaviour = None - self._type: str = None # type: ignore[assignment] - - if all is not None: + self._all: Union[List[str], None, Unset_Type] = Unset + self._any: Union[List[str], None, Unset_Type] = Unset + self.__none: Union[List[str], None, Unset_Type] = Unset + self._text_match_behaviour: Union[ + GrantaServerApiSearchTextMatchBehaviour, Unset_Type + ] = Unset + self._type: str + + if all is not Unset: self.all = all - if any is not None: + if any is not Unset: self.any = any - if _none is not None: + if _none is not Unset: self._none = _none - if text_match_behaviour is not None: + if text_match_behaviour is not Unset: self.text_match_behaviour = text_match_behaviour self.type = type @property - def all(self) -> "Optional[List[str]]": + def all(self) -> "Union[List[str], None, Unset_Type]": """Gets the all of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The all of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ return self._all @all.setter - def all(self, all: "Optional[List[str]]") -> None: + def all(self, all: "Union[List[str], None, Unset_Type]") -> None: """Sets the all of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - all: List[str] + all: Union[List[str], None, Unset_Type] The all of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ self._all = all @property - def any(self) -> "Optional[List[str]]": + def any(self) -> "Union[List[str], None, Unset_Type]": """Gets the any of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ return self._any @any.setter - def any(self, any: "Optional[List[str]]") -> None: + def any(self, any: "Union[List[str], None, Unset_Type]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - any: List[str] + any: Union[List[str], None, Unset_Type] The any of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ self._any = any @property - def _none(self) -> "Optional[List[str]]": + def _none(self) -> "Union[List[str], None, Unset_Type]": """Gets the _none of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ return self.__none @_none.setter - def _none(self, _none: "Optional[List[str]]") -> None: + def _none(self, _none: "Union[List[str], None, Unset_Type]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - _none: List[str] + _none: Union[List[str], None, Unset_Type] The _none of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ self.__none = _none @@ -178,27 +180,33 @@ def _none(self, _none: "Optional[List[str]]") -> None: @property def text_match_behaviour( self, - ) -> "Optional[GrantaServerApiSearchTextMatchBehaviour]": + ) -> "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]": """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns ------- - GrantaServerApiSearchTextMatchBehaviour + Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] The text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ return self._text_match_behaviour @text_match_behaviour.setter def text_match_behaviour( - self, text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" + self, + text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]", ) -> None: """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour + text_match_behaviour: Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] The text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ + # Field is not nullable + if text_match_behaviour is None: + raise ValueError( + "Invalid value for 'text_match_behaviour', must not be 'None'" + ) self._text_match_behaviour = text_match_behaviour @property @@ -221,12 +229,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -243,7 +255,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py index 9508f9c2..b994fb41 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( GrantaServerApiSearchSortingValue, ) # noqa: F401 @@ -67,43 +67,46 @@ def __init__( self, *, type: "str" = "double", - value: "Optional[float]" = None, + value: "Union[float, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchDoubleSortingValue - a model defined in Swagger Parameters ---------- - type: str - value: float, optional + type: str + value: float, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[float, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[float]": + def value(self) -> "Union[float, Unset_Type]": """Gets the value of this GrantaServerApiSearchDoubleSortingValue. Returns ------- - float + Union[float, Unset_Type] The value of this GrantaServerApiSearchDoubleSortingValue. """ return self._value @value.setter - def value(self, value: "Optional[float]") -> None: + def value(self, value: "Union[float, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchDoubleSortingValue. Parameters ---------- - value: float + value: Union[float, Unset_Type] The value of this GrantaServerApiSearchDoubleSortingValue. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property @@ -126,12 +129,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchDoubleSortingValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -148,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py index e46b6643..e755ba33 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -67,41 +67,41 @@ def __init__( self, *, type: "str" = "file", - value: "Optional[str]" = None, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchFileDatumCriterion - a model defined in Swagger Parameters ---------- - type: str - value: str, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[str, None, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSearchFileDatumCriterion. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSearchFileDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchFileDatumCriterion. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSearchFileDatumCriterion. """ self._value = value @@ -126,12 +126,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchFileDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -148,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py index e895c654..ab408747 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -74,32 +74,34 @@ class GrantaServerApiSearchFloatFunctionalDatumCriterion( def __init__( self, *, - constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" = None, - gte: "Optional[float]" = None, - lte: "Optional[float]" = None, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" = Unset, + gte: "Union[float, None, Unset_Type]" = Unset, + lte: "Union[float, None, Unset_Type]" = Unset, type: "str" = "floatFunctionalData", ) -> None: """GrantaServerApiSearchFloatFunctionalDatumCriterion - a model defined in Swagger Parameters ---------- - constraints: List[GrantaServerApiSearchParameterConstraint], optional - gte: float, optional - lte: float, optional - type: str + constraints: List[GrantaServerApiSearchParameterConstraint], optional + gte: float, optional + lte: float, optional + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] - self._gte = None - self._lte = None - self._constraints = None + self._type: str + self._gte: Union[float, None, Unset_Type] = Unset + self._lte: Union[float, None, Unset_Type] = Unset + self._constraints: Union[ + List[GrantaServerApiSearchParameterConstraint], None, Unset_Type + ] = Unset self.type = type - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte - if constraints is not None: + if constraints is not Unset: self.constraints = constraints @property @@ -122,86 +124,93 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def gte(self) -> "Optional[float]": + def gte(self) -> "Union[float, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Greater than or equal to Returns ------- - float + Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[float]") -> None: + def gte(self, gte: "Union[float, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Greater than or equal to Parameters ---------- - gte: float + gte: Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[float]": + def lte(self) -> "Union[float, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Less than or equal to Returns ------- - float + Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[float]") -> None: + def lte(self, lte: "Union[float, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Less than or equal to Parameters ---------- - lte: float + lte: Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ self._lte = lte @property - def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": + def constraints( + self, + ) -> "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]": """Gets the constraints of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. Returns ------- - list[GrantaServerApiSearchParameterConstraint] + Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ return self._constraints @constraints.setter def constraints( - self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" + self, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", ) -> None: """Sets the constraints of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. Parameters ---------- - constraints: List[GrantaServerApiSearchParameterConstraint] + constraints: Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ self._constraints = constraints @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -218,7 +227,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py index 74207098..91e44974 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -86,67 +86,67 @@ class GrantaServerApiSearchFloatFunctionalGraphDatumCriterion( def __init__( self, *, - default_x_axis_parameter_guid: "Optional[str]" = None, - default_x_axis_parameter_identity: "Optional[int]" = None, - is_series_graph: "Optional[bool]" = None, - number_of_points_gte: "Optional[int]" = None, - number_of_points_lte: "Optional[int]" = None, - number_of_series_gte: "Optional[int]" = None, - number_of_series_lte: "Optional[int]" = None, - show_as_table: "Optional[bool]" = None, + default_x_axis_parameter_guid: "Union[str, None, Unset_Type]" = Unset, + default_x_axis_parameter_identity: "Union[int, None, Unset_Type]" = Unset, + is_series_graph: "Union[bool, None, Unset_Type]" = Unset, + number_of_points_gte: "Union[int, None, Unset_Type]" = Unset, + number_of_points_lte: "Union[int, None, Unset_Type]" = Unset, + number_of_series_gte: "Union[int, None, Unset_Type]" = Unset, + number_of_series_lte: "Union[int, None, Unset_Type]" = Unset, + show_as_table: "Union[bool, None, Unset_Type]" = Unset, type: "str" = "floatFunctionalGraph", - x_axis_parameter_guid: "Optional[str]" = None, - x_axis_parameter_identity: "Optional[int]" = None, + x_axis_parameter_guid: "Union[str, None, Unset_Type]" = Unset, + x_axis_parameter_identity: "Union[int, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchFloatFunctionalGraphDatumCriterion - a model defined in Swagger Parameters ---------- - default_x_axis_parameter_guid: str, optional - default_x_axis_parameter_identity: int, optional - is_series_graph: bool, optional - number_of_points_gte: int, optional - number_of_points_lte: int, optional - number_of_series_gte: int, optional - number_of_series_lte: int, optional - show_as_table: bool, optional - type: str - x_axis_parameter_guid: str, optional - x_axis_parameter_identity: int, optional + default_x_axis_parameter_guid: str, optional + default_x_axis_parameter_identity: int, optional + is_series_graph: bool, optional + number_of_points_gte: int, optional + number_of_points_lte: int, optional + number_of_series_gte: int, optional + number_of_series_lte: int, optional + show_as_table: bool, optional + type: str + x_axis_parameter_guid: str, optional + x_axis_parameter_identity: int, optional """ super().__init__() - self._type: str = None # type: ignore[assignment] - self._x_axis_parameter_identity = None - self._x_axis_parameter_guid = None - self._number_of_series_lte = None - self._number_of_series_gte = None - self._show_as_table = None - self._default_x_axis_parameter_identity = None - self._default_x_axis_parameter_guid = None - self._number_of_points_lte = None - self._number_of_points_gte = None - self._is_series_graph = None + self._type: str + self._x_axis_parameter_identity: Union[int, None, Unset_Type] = Unset + self._x_axis_parameter_guid: Union[str, None, Unset_Type] = Unset + self._number_of_series_lte: Union[int, None, Unset_Type] = Unset + self._number_of_series_gte: Union[int, None, Unset_Type] = Unset + self._show_as_table: Union[bool, None, Unset_Type] = Unset + self._default_x_axis_parameter_identity: Union[int, None, Unset_Type] = Unset + self._default_x_axis_parameter_guid: Union[str, None, Unset_Type] = Unset + self._number_of_points_lte: Union[int, None, Unset_Type] = Unset + self._number_of_points_gte: Union[int, None, Unset_Type] = Unset + self._is_series_graph: Union[bool, None, Unset_Type] = Unset self.type = type - if x_axis_parameter_identity is not None: + if x_axis_parameter_identity is not Unset: self.x_axis_parameter_identity = x_axis_parameter_identity - if x_axis_parameter_guid is not None: + if x_axis_parameter_guid is not Unset: self.x_axis_parameter_guid = x_axis_parameter_guid - if number_of_series_lte is not None: + if number_of_series_lte is not Unset: self.number_of_series_lte = number_of_series_lte - if number_of_series_gte is not None: + if number_of_series_gte is not Unset: self.number_of_series_gte = number_of_series_gte - if show_as_table is not None: + if show_as_table is not Unset: self.show_as_table = show_as_table - if default_x_axis_parameter_identity is not None: + if default_x_axis_parameter_identity is not Unset: self.default_x_axis_parameter_identity = default_x_axis_parameter_identity - if default_x_axis_parameter_guid is not None: + if default_x_axis_parameter_guid is not Unset: self.default_x_axis_parameter_guid = default_x_axis_parameter_guid - if number_of_points_lte is not None: + if number_of_points_lte is not Unset: self.number_of_points_lte = number_of_points_lte - if number_of_points_gte is not None: + if number_of_points_gte is not Unset: self.number_of_points_gte = number_of_points_gte - if is_series_graph is not None: + if is_series_graph is not Unset: self.is_series_graph = is_series_graph @property @@ -169,258 +169,272 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def x_axis_parameter_identity(self) -> "Optional[int]": + def x_axis_parameter_identity(self) -> "Union[int, None, Unset_Type]": """Gets the x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. Returns ------- - int + Union[int, None, Unset_Type] The x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._x_axis_parameter_identity @x_axis_parameter_identity.setter def x_axis_parameter_identity( - self, x_axis_parameter_identity: "Optional[int]" + self, x_axis_parameter_identity: "Union[int, None, Unset_Type]" ) -> None: """Sets the x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. Parameters ---------- - x_axis_parameter_identity: int + x_axis_parameter_identity: Union[int, None, Unset_Type] The x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._x_axis_parameter_identity = x_axis_parameter_identity @property - def x_axis_parameter_guid(self) -> "Optional[str]": + def x_axis_parameter_guid(self) -> "Union[str, None, Unset_Type]": """Gets the x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. Returns ------- - str + Union[str, None, Unset_Type] The x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._x_axis_parameter_guid @x_axis_parameter_guid.setter - def x_axis_parameter_guid(self, x_axis_parameter_guid: "Optional[str]") -> None: + def x_axis_parameter_guid( + self, x_axis_parameter_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. Parameters ---------- - x_axis_parameter_guid: str + x_axis_parameter_guid: Union[str, None, Unset_Type] The x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._x_axis_parameter_guid = x_axis_parameter_guid @property - def number_of_series_lte(self) -> "Optional[int]": + def number_of_series_lte(self) -> "Union[int, None, Unset_Type]": """Gets the number_of_series_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. Returns ------- - int + Union[int, None, Unset_Type] The number_of_series_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._number_of_series_lte @number_of_series_lte.setter - def number_of_series_lte(self, number_of_series_lte: "Optional[int]") -> None: + def number_of_series_lte( + self, number_of_series_lte: "Union[int, None, Unset_Type]" + ) -> None: """Sets the number_of_series_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. Parameters ---------- - number_of_series_lte: int + number_of_series_lte: Union[int, None, Unset_Type] The number_of_series_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._number_of_series_lte = number_of_series_lte @property - def number_of_series_gte(self) -> "Optional[int]": + def number_of_series_gte(self) -> "Union[int, None, Unset_Type]": """Gets the number_of_series_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. Returns ------- - int + Union[int, None, Unset_Type] The number_of_series_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._number_of_series_gte @number_of_series_gte.setter - def number_of_series_gte(self, number_of_series_gte: "Optional[int]") -> None: + def number_of_series_gte( + self, number_of_series_gte: "Union[int, None, Unset_Type]" + ) -> None: """Sets the number_of_series_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. Parameters ---------- - number_of_series_gte: int + number_of_series_gte: Union[int, None, Unset_Type] The number_of_series_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._number_of_series_gte = number_of_series_gte @property - def show_as_table(self) -> "Optional[bool]": + def show_as_table(self) -> "Union[bool, None, Unset_Type]": """Gets the show_as_table of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the \"Show as table\" property Returns ------- - bool + Union[bool, None, Unset_Type] The show_as_table of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._show_as_table @show_as_table.setter - def show_as_table(self, show_as_table: "Optional[bool]") -> None: + def show_as_table(self, show_as_table: "Union[bool, None, Unset_Type]") -> None: """Sets the show_as_table of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the \"Show as table\" property Parameters ---------- - show_as_table: bool + show_as_table: Union[bool, None, Unset_Type] The show_as_table of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._show_as_table = show_as_table @property - def default_x_axis_parameter_identity(self) -> "Optional[int]": + def default_x_axis_parameter_identity(self) -> "Union[int, None, Unset_Type]": """Gets the default_x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional default x axis parameter filter. Only grid graphs have a default x axis. Returns ------- - int + Union[int, None, Unset_Type] The default_x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._default_x_axis_parameter_identity @default_x_axis_parameter_identity.setter def default_x_axis_parameter_identity( - self, default_x_axis_parameter_identity: "Optional[int]" + self, default_x_axis_parameter_identity: "Union[int, None, Unset_Type]" ) -> None: """Sets the default_x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional default x axis parameter filter. Only grid graphs have a default x axis. Parameters ---------- - default_x_axis_parameter_identity: int + default_x_axis_parameter_identity: Union[int, None, Unset_Type] The default_x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._default_x_axis_parameter_identity = default_x_axis_parameter_identity @property - def default_x_axis_parameter_guid(self) -> "Optional[str]": + def default_x_axis_parameter_guid(self) -> "Union[str, None, Unset_Type]": """Gets the default_x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only grid graphs have a default x axis.. Returns ------- - str + Union[str, None, Unset_Type] The default_x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._default_x_axis_parameter_guid @default_x_axis_parameter_guid.setter def default_x_axis_parameter_guid( - self, default_x_axis_parameter_guid: "Optional[str]" + self, default_x_axis_parameter_guid: "Union[str, None, Unset_Type]" ) -> None: """Sets the default_x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only grid graphs have a default x axis.. Parameters ---------- - default_x_axis_parameter_guid: str + default_x_axis_parameter_guid: Union[str, None, Unset_Type] The default_x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._default_x_axis_parameter_guid = default_x_axis_parameter_guid @property - def number_of_points_lte(self) -> "Optional[int]": + def number_of_points_lte(self) -> "Union[int, None, Unset_Type]": """Gets the number_of_points_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. Returns ------- - int + Union[int, None, Unset_Type] The number_of_points_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._number_of_points_lte @number_of_points_lte.setter - def number_of_points_lte(self, number_of_points_lte: "Optional[int]") -> None: + def number_of_points_lte( + self, number_of_points_lte: "Union[int, None, Unset_Type]" + ) -> None: """Sets the number_of_points_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. Parameters ---------- - number_of_points_lte: int + number_of_points_lte: Union[int, None, Unset_Type] The number_of_points_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._number_of_points_lte = number_of_points_lte @property - def number_of_points_gte(self) -> "Optional[int]": + def number_of_points_gte(self) -> "Union[int, None, Unset_Type]": """Gets the number_of_points_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. Returns ------- - int + Union[int, None, Unset_Type] The number_of_points_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._number_of_points_gte @number_of_points_gte.setter - def number_of_points_gte(self, number_of_points_gte: "Optional[int]") -> None: + def number_of_points_gte( + self, number_of_points_gte: "Union[int, None, Unset_Type]" + ) -> None: """Sets the number_of_points_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. Parameters ---------- - number_of_points_gte: int + number_of_points_gte: Union[int, None, Unset_Type] The number_of_points_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._number_of_points_gte = number_of_points_gte @property - def is_series_graph(self) -> "Optional[bool]": + def is_series_graph(self) -> "Union[bool, None, Unset_Type]": """Gets the is_series_graph of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the type of graph Returns ------- - bool + Union[bool, None, Unset_Type] The is_series_graph of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ return self._is_series_graph @is_series_graph.setter - def is_series_graph(self, is_series_graph: "Optional[bool]") -> None: + def is_series_graph(self, is_series_graph: "Union[bool, None, Unset_Type]") -> None: """Sets the is_series_graph of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the type of graph Parameters ---------- - is_series_graph: bool + is_series_graph: Union[bool, None, Unset_Type] The is_series_graph of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. """ self._is_series_graph = is_series_graph @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -437,7 +451,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py index 8db6cd85..6b9e06fc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -85,131 +85,147 @@ class GrantaServerApiSearchFreeTextCriterion(GrantaServerApiSearchCriterion): def __init__( self, *, - attribute_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - attribute_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - attributes: "Optional[GrantaServerApiValueSpecifier]" = None, - column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" = None, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]" = None, - local_columns: "Optional[GrantaServerApiValueSpecifier]" = None, + attribute_guids_to_boost: "Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type]" = Unset, + attribute_identities_to_boost: "Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type]" = Unset, + attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]" = Unset, + column_guids_to_boost: "Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type]" = Unset, + column_identities_to_boost: "Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type]" = Unset, + local_columns: "Union[GrantaServerApiValueSpecifier, Unset_Type]" = Unset, type: "str" = "text", - value: "Optional[str]" = None, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchFreeTextCriterion - a model defined in Swagger Parameters ---------- - attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - attribute_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - attributes: GrantaServerApiValueSpecifier, optional - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional - local_columns: GrantaServerApiValueSpecifier, optional - type: str - value: str, optional + attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional + attribute_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional + attributes: GrantaServerApiValueSpecifier, optional + column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid], optional + column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity], optional + local_columns: GrantaServerApiValueSpecifier, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._attributes = None - self._local_columns = None - self._attribute_identities_to_boost = None - self._attribute_guids_to_boost = None - self._column_identities_to_boost = None - self._column_guids_to_boost = None - self._type: str = None # type: ignore[assignment] - - if value is not None: + self._value: Union[str, None, Unset_Type] = Unset + self._attributes: Union[GrantaServerApiValueSpecifier, Unset_Type] = Unset + self._local_columns: Union[GrantaServerApiValueSpecifier, Unset_Type] = Unset + self._attribute_identities_to_boost: Union[ + List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type + ] = Unset + self._attribute_guids_to_boost: Union[ + List[GrantaServerApiSearchBoostByGuid], None, Unset_Type + ] = Unset + self._column_identities_to_boost: Union[ + List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type + ] = Unset + self._column_guids_to_boost: Union[ + List[GrantaServerApiSearchBoostByGuid], None, Unset_Type + ] = Unset + self._type: str + + if value is not Unset: self.value = value - if attributes is not None: + if attributes is not Unset: self.attributes = attributes - if local_columns is not None: + if local_columns is not Unset: self.local_columns = local_columns - if attribute_identities_to_boost is not None: + if attribute_identities_to_boost is not Unset: self.attribute_identities_to_boost = attribute_identities_to_boost - if attribute_guids_to_boost is not None: + if attribute_guids_to_boost is not Unset: self.attribute_guids_to_boost = attribute_guids_to_boost - if column_identities_to_boost is not None: + if column_identities_to_boost is not Unset: self.column_identities_to_boost = column_identities_to_boost - if column_guids_to_boost is not None: + if column_guids_to_boost is not Unset: self.column_guids_to_boost = column_guids_to_boost self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSearchFreeTextCriterion. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSearchFreeTextCriterion. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchFreeTextCriterion. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSearchFreeTextCriterion. """ self._value = value @property - def attributes(self) -> "Optional[GrantaServerApiValueSpecifier]": + def attributes(self) -> "Union[GrantaServerApiValueSpecifier, Unset_Type]": """Gets the attributes of this GrantaServerApiSearchFreeTextCriterion. Returns ------- - GrantaServerApiValueSpecifier + Union[GrantaServerApiValueSpecifier, Unset_Type] The attributes of this GrantaServerApiSearchFreeTextCriterion. """ return self._attributes @attributes.setter - def attributes(self, attributes: "Optional[GrantaServerApiValueSpecifier]") -> None: + def attributes( + self, attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]" + ) -> None: """Sets the attributes of this GrantaServerApiSearchFreeTextCriterion. Parameters ---------- - attributes: GrantaServerApiValueSpecifier + attributes: Union[GrantaServerApiValueSpecifier, Unset_Type] The attributes of this GrantaServerApiSearchFreeTextCriterion. """ + # Field is not nullable + if attributes is None: + raise ValueError("Invalid value for 'attributes', must not be 'None'") self._attributes = attributes @property - def local_columns(self) -> "Optional[GrantaServerApiValueSpecifier]": + def local_columns(self) -> "Union[GrantaServerApiValueSpecifier, Unset_Type]": """Gets the local_columns of this GrantaServerApiSearchFreeTextCriterion. Returns ------- - GrantaServerApiValueSpecifier + Union[GrantaServerApiValueSpecifier, Unset_Type] The local_columns of this GrantaServerApiSearchFreeTextCriterion. """ return self._local_columns @local_columns.setter def local_columns( - self, local_columns: "Optional[GrantaServerApiValueSpecifier]" + self, local_columns: "Union[GrantaServerApiValueSpecifier, Unset_Type]" ) -> None: """Sets the local_columns of this GrantaServerApiSearchFreeTextCriterion. Parameters ---------- - local_columns: GrantaServerApiValueSpecifier + local_columns: Union[GrantaServerApiValueSpecifier, Unset_Type] The local_columns of this GrantaServerApiSearchFreeTextCriterion. """ + # Field is not nullable + if local_columns is None: + raise ValueError("Invalid value for 'local_columns', must not be 'None'") self._local_columns = local_columns @property def attribute_identities_to_boost( self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": + ) -> "Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type]": """Gets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. Returns ------- - list[GrantaServerApiSearchBoostByIdentity] + Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type] The attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ return self._attribute_identities_to_boost @@ -217,13 +233,13 @@ def attribute_identities_to_boost( @attribute_identities_to_boost.setter def attribute_identities_to_boost( self, - attribute_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", + attribute_identities_to_boost: "Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type]", ) -> None: """Sets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. Parameters ---------- - attribute_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] + attribute_identities_to_boost: Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type] The attribute_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ self._attribute_identities_to_boost = attribute_identities_to_boost @@ -231,12 +247,12 @@ def attribute_identities_to_boost( @property def attribute_guids_to_boost( self, - ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": + ) -> "Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type]": """Gets the attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. Returns ------- - list[GrantaServerApiSearchBoostByGuid] + Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type] The attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ return self._attribute_guids_to_boost @@ -244,13 +260,13 @@ def attribute_guids_to_boost( @attribute_guids_to_boost.setter def attribute_guids_to_boost( self, - attribute_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]", + attribute_guids_to_boost: "Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type]", ) -> None: """Sets the attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. Parameters ---------- - attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] + attribute_guids_to_boost: Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type] The attribute_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ self._attribute_guids_to_boost = attribute_guids_to_boost @@ -258,12 +274,12 @@ def attribute_guids_to_boost( @property def column_identities_to_boost( self, - ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": + ) -> "Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type]": """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. Returns ------- - list[GrantaServerApiSearchBoostByIdentity] + Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type] The column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ return self._column_identities_to_boost @@ -271,13 +287,13 @@ def column_identities_to_boost( @column_identities_to_boost.setter def column_identities_to_boost( self, - column_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", + column_identities_to_boost: "Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type]", ) -> None: """Sets the column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. Parameters ---------- - column_identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] + column_identities_to_boost: Union[List[GrantaServerApiSearchBoostByIdentity], None, Unset_Type] The column_identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ self._column_identities_to_boost = column_identities_to_boost @@ -285,25 +301,26 @@ def column_identities_to_boost( @property def column_guids_to_boost( self, - ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": + ) -> "Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type]": """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. Returns ------- - list[GrantaServerApiSearchBoostByGuid] + Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type] The column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ return self._column_guids_to_boost @column_guids_to_boost.setter def column_guids_to_boost( - self, column_guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" + self, + column_guids_to_boost: "Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type]", ) -> None: """Sets the column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. Parameters ---------- - column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] + column_guids_to_boost: Union[List[GrantaServerApiSearchBoostByGuid], None, Unset_Type] The column_guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. """ self._column_guids_to_boost = column_guids_to_boost @@ -328,12 +345,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchFreeTextCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -350,7 +371,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py index 38a1139a..6cc99370 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -67,41 +67,41 @@ def __init__( self, *, type: "str" = "hyperlink", - value: "Optional[str]" = None, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchHyperlinkDatumCriterion - a model defined in Swagger Parameters ---------- - type: str - value: str, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[str, None, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSearchHyperlinkDatumCriterion. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSearchHyperlinkDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchHyperlinkDatumCriterion. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSearchHyperlinkDatumCriterion. """ self._value = value @@ -126,12 +126,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchHyperlinkDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -148,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py index faceb948..1f13e129 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchIndexStatus(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchIndexStatus(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -80,253 +80,274 @@ class GrantaServerApiSearchIndexStatus(ModelBase): # type: ignore[misc] def __init__( self, *, - disk_status: "Optional[GrantaServerApiDiskStatus]" = None, - disk_threshold: "Optional[str]" = None, - records_that_failed_to_index: "Optional[List[GrantaServerApiIndexRecordFailure]]" = None, - search_index_in_sync: "Optional[bool]" = None, - search_index_is_read_only: "Optional[bool]" = None, - search_index_location: "Optional[str]" = None, - search_index_out_of_date_duration: "Optional[str]" = None, - search_index_unavailable: "Optional[bool]" = None, - search_index_up_to_date: "Optional[bool]" = None, + disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]" = Unset, + disk_threshold: "Union[str, None, Unset_Type]" = Unset, + records_that_failed_to_index: "Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type]" = Unset, + search_index_in_sync: "Union[bool, Unset_Type]" = Unset, + search_index_is_read_only: "Union[bool, None, Unset_Type]" = Unset, + search_index_location: "Union[str, None, Unset_Type]" = Unset, + search_index_out_of_date_duration: "Union[str, None, Unset_Type]" = Unset, + search_index_unavailable: "Union[bool, None, Unset_Type]" = Unset, + search_index_up_to_date: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchIndexStatus - a model defined in Swagger Parameters ---------- - disk_status: GrantaServerApiDiskStatus, optional - disk_threshold: str, optional - records_that_failed_to_index: List[GrantaServerApiIndexRecordFailure], optional - search_index_in_sync: bool, optional - search_index_is_read_only: bool, optional - search_index_location: str, optional - search_index_out_of_date_duration: str, optional - search_index_unavailable: bool, optional - search_index_up_to_date: bool, optional + disk_status: GrantaServerApiDiskStatus, optional + disk_threshold: str, optional + records_that_failed_to_index: List[GrantaServerApiIndexRecordFailure], optional + search_index_in_sync: bool, optional + search_index_is_read_only: bool, optional + search_index_location: str, optional + search_index_out_of_date_duration: str, optional + search_index_unavailable: bool, optional + search_index_up_to_date: bool, optional """ - self._search_index_up_to_date = None - self._search_index_out_of_date_duration = None - self._search_index_in_sync = None - self._search_index_location = None - self._search_index_is_read_only = None - self._disk_status = None - self._disk_threshold = None - self._search_index_unavailable = None - self._records_that_failed_to_index = None - - if search_index_up_to_date is not None: + self._search_index_up_to_date: Union[bool, Unset_Type] = Unset + self._search_index_out_of_date_duration: Union[str, None, Unset_Type] = Unset + self._search_index_in_sync: Union[bool, Unset_Type] = Unset + self._search_index_location: Union[str, None, Unset_Type] = Unset + self._search_index_is_read_only: Union[bool, None, Unset_Type] = Unset + self._disk_status: Union[GrantaServerApiDiskStatus, Unset_Type] = Unset + self._disk_threshold: Union[str, None, Unset_Type] = Unset + self._search_index_unavailable: Union[bool, None, Unset_Type] = Unset + self._records_that_failed_to_index: Union[ + List[GrantaServerApiIndexRecordFailure], None, Unset_Type + ] = Unset + + if search_index_up_to_date is not Unset: self.search_index_up_to_date = search_index_up_to_date - if search_index_out_of_date_duration is not None: + if search_index_out_of_date_duration is not Unset: self.search_index_out_of_date_duration = search_index_out_of_date_duration - if search_index_in_sync is not None: + if search_index_in_sync is not Unset: self.search_index_in_sync = search_index_in_sync - if search_index_location is not None: + if search_index_location is not Unset: self.search_index_location = search_index_location - if search_index_is_read_only is not None: + if search_index_is_read_only is not Unset: self.search_index_is_read_only = search_index_is_read_only - if disk_status is not None: + if disk_status is not Unset: self.disk_status = disk_status - if disk_threshold is not None: + if disk_threshold is not Unset: self.disk_threshold = disk_threshold - if search_index_unavailable is not None: + if search_index_unavailable is not Unset: self.search_index_unavailable = search_index_unavailable - if records_that_failed_to_index is not None: + if records_that_failed_to_index is not Unset: self.records_that_failed_to_index = records_that_failed_to_index @property - def search_index_up_to_date(self) -> "Optional[bool]": + def search_index_up_to_date(self) -> "Union[bool, Unset_Type]": """Gets the search_index_up_to_date of this GrantaServerApiSearchIndexStatus. Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed Returns ------- - bool + Union[bool, Unset_Type] The search_index_up_to_date of this GrantaServerApiSearchIndexStatus. """ return self._search_index_up_to_date @search_index_up_to_date.setter def search_index_up_to_date( - self, search_index_up_to_date: "Optional[bool]" + self, search_index_up_to_date: "Union[bool, Unset_Type]" ) -> None: """Sets the search_index_up_to_date of this GrantaServerApiSearchIndexStatus. Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed Parameters ---------- - search_index_up_to_date: bool + search_index_up_to_date: Union[bool, Unset_Type] The search_index_up_to_date of this GrantaServerApiSearchIndexStatus. """ + # Field is not nullable + if search_index_up_to_date is None: + raise ValueError( + "Invalid value for 'search_index_up_to_date', must not be 'None'" + ) self._search_index_up_to_date = search_index_up_to_date @property - def search_index_out_of_date_duration(self) -> "Optional[str]": + def search_index_out_of_date_duration(self) -> "Union[str, None, Unset_Type]": """Gets the search_index_out_of_date_duration of this GrantaServerApiSearchIndexStatus. How long has the index been out of date. Specifically the duration between the first non-indexed revision and the current time. Returns ------- - str + Union[str, None, Unset_Type] The search_index_out_of_date_duration of this GrantaServerApiSearchIndexStatus. """ return self._search_index_out_of_date_duration @search_index_out_of_date_duration.setter def search_index_out_of_date_duration( - self, search_index_out_of_date_duration: "Optional[str]" + self, search_index_out_of_date_duration: "Union[str, None, Unset_Type]" ) -> None: """Sets the search_index_out_of_date_duration of this GrantaServerApiSearchIndexStatus. How long has the index been out of date. Specifically the duration between the first non-indexed revision and the current time. Parameters ---------- - search_index_out_of_date_duration: str + search_index_out_of_date_duration: Union[str, None, Unset_Type] The search_index_out_of_date_duration of this GrantaServerApiSearchIndexStatus. """ self._search_index_out_of_date_duration = search_index_out_of_date_duration @property - def search_index_in_sync(self) -> "Optional[bool]": + def search_index_in_sync(self) -> "Union[bool, Unset_Type]": """Gets the search_index_in_sync of this GrantaServerApiSearchIndexStatus. Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) Returns ------- - bool + Union[bool, Unset_Type] The search_index_in_sync of this GrantaServerApiSearchIndexStatus. """ return self._search_index_in_sync @search_index_in_sync.setter - def search_index_in_sync(self, search_index_in_sync: "Optional[bool]") -> None: + def search_index_in_sync( + self, search_index_in_sync: "Union[bool, Unset_Type]" + ) -> None: """Sets the search_index_in_sync of this GrantaServerApiSearchIndexStatus. Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) Parameters ---------- - search_index_in_sync: bool + search_index_in_sync: Union[bool, Unset_Type] The search_index_in_sync of this GrantaServerApiSearchIndexStatus. """ + # Field is not nullable + if search_index_in_sync is None: + raise ValueError( + "Invalid value for 'search_index_in_sync', must not be 'None'" + ) self._search_index_in_sync = search_index_in_sync @property - def search_index_location(self) -> "Optional[str]": + def search_index_location(self) -> "Union[str, None, Unset_Type]": """Gets the search_index_location of this GrantaServerApiSearchIndexStatus. The location of the index. Returns ------- - str + Union[str, None, Unset_Type] The search_index_location of this GrantaServerApiSearchIndexStatus. """ return self._search_index_location @search_index_location.setter - def search_index_location(self, search_index_location: "Optional[str]") -> None: + def search_index_location( + self, search_index_location: "Union[str, None, Unset_Type]" + ) -> None: """Sets the search_index_location of this GrantaServerApiSearchIndexStatus. The location of the index. Parameters ---------- - search_index_location: str + search_index_location: Union[str, None, Unset_Type] The search_index_location of this GrantaServerApiSearchIndexStatus. """ self._search_index_location = search_index_location @property - def search_index_is_read_only(self) -> "Optional[bool]": + def search_index_is_read_only(self) -> "Union[bool, None, Unset_Type]": """Gets the search_index_is_read_only of this GrantaServerApiSearchIndexStatus. True if the index is read only. Returns ------- - bool + Union[bool, None, Unset_Type] The search_index_is_read_only of this GrantaServerApiSearchIndexStatus. """ return self._search_index_is_read_only @search_index_is_read_only.setter def search_index_is_read_only( - self, search_index_is_read_only: "Optional[bool]" + self, search_index_is_read_only: "Union[bool, None, Unset_Type]" ) -> None: """Sets the search_index_is_read_only of this GrantaServerApiSearchIndexStatus. True if the index is read only. Parameters ---------- - search_index_is_read_only: bool + search_index_is_read_only: Union[bool, None, Unset_Type] The search_index_is_read_only of this GrantaServerApiSearchIndexStatus. """ self._search_index_is_read_only = search_index_is_read_only @property - def disk_status(self) -> "Optional[GrantaServerApiDiskStatus]": + def disk_status(self) -> "Union[GrantaServerApiDiskStatus, Unset_Type]": """Gets the disk_status of this GrantaServerApiSearchIndexStatus. Returns ------- - GrantaServerApiDiskStatus + Union[GrantaServerApiDiskStatus, Unset_Type] The disk_status of this GrantaServerApiSearchIndexStatus. """ return self._disk_status @disk_status.setter - def disk_status(self, disk_status: "Optional[GrantaServerApiDiskStatus]") -> None: + def disk_status( + self, disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]" + ) -> None: """Sets the disk_status of this GrantaServerApiSearchIndexStatus. Parameters ---------- - disk_status: GrantaServerApiDiskStatus + disk_status: Union[GrantaServerApiDiskStatus, Unset_Type] The disk_status of this GrantaServerApiSearchIndexStatus. """ + # Field is not nullable + if disk_status is None: + raise ValueError("Invalid value for 'disk_status', must not be 'None'") self._disk_status = disk_status @property - def disk_threshold(self) -> "Optional[str]": + def disk_threshold(self) -> "Union[str, None, Unset_Type]": """Gets the disk_threshold of this GrantaServerApiSearchIndexStatus. The 'flood stage' threshold from Elasticsearch. Returns ------- - str + Union[str, None, Unset_Type] The disk_threshold of this GrantaServerApiSearchIndexStatus. """ return self._disk_threshold @disk_threshold.setter - def disk_threshold(self, disk_threshold: "Optional[str]") -> None: + def disk_threshold(self, disk_threshold: "Union[str, None, Unset_Type]") -> None: """Sets the disk_threshold of this GrantaServerApiSearchIndexStatus. The 'flood stage' threshold from Elasticsearch. Parameters ---------- - disk_threshold: str + disk_threshold: Union[str, None, Unset_Type] The disk_threshold of this GrantaServerApiSearchIndexStatus. """ self._disk_threshold = disk_threshold @property - def search_index_unavailable(self) -> "Optional[bool]": + def search_index_unavailable(self) -> "Union[bool, None, Unset_Type]": """Gets the search_index_unavailable of this GrantaServerApiSearchIndexStatus. True if the index could not be contacted. Returns ------- - bool + Union[bool, None, Unset_Type] The search_index_unavailable of this GrantaServerApiSearchIndexStatus. """ return self._search_index_unavailable @search_index_unavailable.setter def search_index_unavailable( - self, search_index_unavailable: "Optional[bool]" + self, search_index_unavailable: "Union[bool, None, Unset_Type]" ) -> None: """Sets the search_index_unavailable of this GrantaServerApiSearchIndexStatus. True if the index could not be contacted. Parameters ---------- - search_index_unavailable: bool + search_index_unavailable: Union[bool, None, Unset_Type] The search_index_unavailable of this GrantaServerApiSearchIndexStatus. """ self._search_index_unavailable = search_index_unavailable @@ -334,13 +355,13 @@ def search_index_unavailable( @property def records_that_failed_to_index( self, - ) -> "Optional[List[GrantaServerApiIndexRecordFailure]]": + ) -> "Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type]": """Gets the records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. Details of any records that failed to index. Returns ------- - list[GrantaServerApiIndexRecordFailure] + Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type] The records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. """ return self._records_that_failed_to_index @@ -348,20 +369,20 @@ def records_that_failed_to_index( @records_that_failed_to_index.setter def records_that_failed_to_index( self, - records_that_failed_to_index: "Optional[List[GrantaServerApiIndexRecordFailure]]", + records_that_failed_to_index: "Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type]", ) -> None: """Sets the records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. Details of any records that failed to index. Parameters ---------- - records_that_failed_to_index: List[GrantaServerApiIndexRecordFailure] + records_that_failed_to_index: Union[List[GrantaServerApiIndexRecordFailure], None, Unset_Type] The records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. """ self._records_that_failed_to_index = records_that_failed_to_index @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -378,7 +399,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py index 74494625..c00c077f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -68,73 +68,73 @@ class GrantaServerApiSearchIntegerDatumCriterion(GrantaServerApiSearchDatumCrite def __init__( self, *, - gte: "Optional[int]" = None, - lte: "Optional[int]" = None, + gte: "Union[int, None, Unset_Type]" = Unset, + lte: "Union[int, None, Unset_Type]" = Unset, type: "str" = "integer", ) -> None: """GrantaServerApiSearchIntegerDatumCriterion - a model defined in Swagger Parameters ---------- - gte: int, optional - lte: int, optional - type: str + gte: int, optional + lte: int, optional + type: str """ super().__init__() - self._gte = None - self._lte = None - self._type: str = None # type: ignore[assignment] + self._gte: Union[int, None, Unset_Type] = Unset + self._lte: Union[int, None, Unset_Type] = Unset + self._type: str - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte self.type = type @property - def gte(self) -> "Optional[int]": + def gte(self) -> "Union[int, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchIntegerDatumCriterion. Greater than or equal to Returns ------- - int + Union[int, None, Unset_Type] The gte of this GrantaServerApiSearchIntegerDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[int]") -> None: + def gte(self, gte: "Union[int, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchIntegerDatumCriterion. Greater than or equal to Parameters ---------- - gte: int + gte: Union[int, None, Unset_Type] The gte of this GrantaServerApiSearchIntegerDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[int]": + def lte(self) -> "Union[int, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchIntegerDatumCriterion. Less than or equal to Returns ------- - int + Union[int, None, Unset_Type] The lte of this GrantaServerApiSearchIntegerDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[int]") -> None: + def lte(self, lte: "Union[int, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchIntegerDatumCriterion. Less than or equal to Parameters ---------- - lte: int + lte: Union[int, None, Unset_Type] The lte of this GrantaServerApiSearchIntegerDatumCriterion. """ self._lte = lte @@ -159,12 +159,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchIntegerDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py index 7816c3f5..2c8ee630 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -92,314 +92,343 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio def __init__( self, *, - indirect_links: "Optional[GrantaServerApiIndirectLinks]" = None, - inner_criterion: "Optional[GrantaServerApiSearchCriterion]" = None, - link_datum_type: "Optional[GrantaServerApiLinkAttributeType]" = None, - local_criterion: "Optional[GrantaServerApiSearchCriterion]" = None, - local_rows_behaviour: "Optional[GrantaServerApiSearchLocalRowsBehaviour]" = None, - search_in_reversed_direction: "Optional[bool]" = None, - target_attribute_guid: "Optional[str]" = None, - target_attribute_identity: "Optional[int]" = None, - target_database_key: "Optional[str]" = None, - target_table_guid: "Optional[str]" = None, - target_table_identity: "Optional[int]" = None, + indirect_links: "Union[GrantaServerApiIndirectLinks, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, + link_datum_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" = Unset, + local_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, + local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]" = Unset, + search_in_reversed_direction: "Union[bool, Unset_Type]" = Unset, + target_attribute_guid: "Union[str, None, Unset_Type]" = Unset, + target_attribute_identity: "Union[int, None, Unset_Type]" = Unset, + target_database_key: "Union[str, None, Unset_Type]" = Unset, + target_table_guid: "Union[str, None, Unset_Type]" = Unset, + target_table_identity: "Union[int, None, Unset_Type]" = Unset, type: "str" = "link", ) -> None: """GrantaServerApiSearchLinkDatumCriterion - a model defined in Swagger Parameters ---------- - indirect_links: GrantaServerApiIndirectLinks, optional - inner_criterion: GrantaServerApiSearchCriterion, optional - link_datum_type: GrantaServerApiLinkAttributeType, optional - local_criterion: GrantaServerApiSearchCriterion, optional - local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour, optional - search_in_reversed_direction: bool, optional - target_attribute_guid: str, optional - target_attribute_identity: int, optional - target_database_key: str, optional - target_table_guid: str, optional - target_table_identity: int, optional - type: str + indirect_links: GrantaServerApiIndirectLinks, optional + inner_criterion: GrantaServerApiSearchCriterion, optional + link_datum_type: GrantaServerApiLinkAttributeType, optional + local_criterion: GrantaServerApiSearchCriterion, optional + local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour, optional + search_in_reversed_direction: bool, optional + target_attribute_guid: str, optional + target_attribute_identity: int, optional + target_database_key: str, optional + target_table_guid: str, optional + target_table_identity: int, optional + type: str """ super().__init__() - self._target_table_identity = None - self._target_table_guid = None - self._target_database_key = None - self._local_criterion = None - self._link_datum_type = None - self._indirect_links = None - self._search_in_reversed_direction = None - self._target_attribute_identity = None - self._target_attribute_guid = None - self._inner_criterion = None - self._type: str = None # type: ignore[assignment] - self._local_rows_behaviour = None - - if target_table_identity is not None: + self._target_table_identity: Union[int, None, Unset_Type] = Unset + self._target_table_guid: Union[str, None, Unset_Type] = Unset + self._target_database_key: Union[str, None, Unset_Type] = Unset + self._local_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset + self._link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = ( + Unset + ) + self._indirect_links: Union[GrantaServerApiIndirectLinks, Unset_Type] = Unset + self._search_in_reversed_direction: Union[bool, Unset_Type] = Unset + self._target_attribute_identity: Union[int, None, Unset_Type] = Unset + self._target_attribute_guid: Union[str, None, Unset_Type] = Unset + self._inner_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset + self._type: str + self._local_rows_behaviour: Union[ + GrantaServerApiSearchLocalRowsBehaviour, Unset_Type + ] = Unset + + if target_table_identity is not Unset: self.target_table_identity = target_table_identity - if target_table_guid is not None: + if target_table_guid is not Unset: self.target_table_guid = target_table_guid - if target_database_key is not None: + if target_database_key is not Unset: self.target_database_key = target_database_key - if local_criterion is not None: + if local_criterion is not Unset: self.local_criterion = local_criterion - if link_datum_type is not None: + if link_datum_type is not Unset: self.link_datum_type = link_datum_type - if indirect_links is not None: + if indirect_links is not Unset: self.indirect_links = indirect_links - if search_in_reversed_direction is not None: + if search_in_reversed_direction is not Unset: self.search_in_reversed_direction = search_in_reversed_direction - if target_attribute_identity is not None: + if target_attribute_identity is not Unset: self.target_attribute_identity = target_attribute_identity - if target_attribute_guid is not None: + if target_attribute_guid is not Unset: self.target_attribute_guid = target_attribute_guid - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion self.type = type - if local_rows_behaviour is not None: + if local_rows_behaviour is not Unset: self.local_rows_behaviour = local_rows_behaviour @property - def target_table_identity(self) -> "Optional[int]": + def target_table_identity(self) -> "Union[int, None, Unset_Type]": """Gets the target_table_identity of this GrantaServerApiSearchLinkDatumCriterion. Table containing the linked records. The target table can be omitted; it is likely to improve performance if it is included. For tabular search, if either the target attribute or the target table is provided, they should both be provided. Returns ------- - int + Union[int, None, Unset_Type] The target_table_identity of this GrantaServerApiSearchLinkDatumCriterion. """ return self._target_table_identity @target_table_identity.setter - def target_table_identity(self, target_table_identity: "Optional[int]") -> None: + def target_table_identity( + self, target_table_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the target_table_identity of this GrantaServerApiSearchLinkDatumCriterion. Table containing the linked records. The target table can be omitted; it is likely to improve performance if it is included. For tabular search, if either the target attribute or the target table is provided, they should both be provided. Parameters ---------- - target_table_identity: int + target_table_identity: Union[int, None, Unset_Type] The target_table_identity of this GrantaServerApiSearchLinkDatumCriterion. """ self._target_table_identity = target_table_identity @property - def target_table_guid(self) -> "Optional[str]": + def target_table_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. Table containing the linked records. The target table can be omitted; it is likely to improve performance if it is included. For tabular search, if either the target attribute or the target table is provided, they should both be provided. Returns ------- - str + Union[str, None, Unset_Type] The target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. """ return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "Optional[str]") -> None: + def target_table_guid( + self, target_table_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. Table containing the linked records. The target table can be omitted; it is likely to improve performance if it is included. For tabular search, if either the target attribute or the target table is provided, they should both be provided. Parameters ---------- - target_table_guid: str + target_table_guid: Union[str, None, Unset_Type] The target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. """ self._target_table_guid = target_table_guid @property - def target_database_key(self) -> "Optional[str]": + def target_database_key(self) -> "Union[str, None, Unset_Type]": """Gets the target_database_key of this GrantaServerApiSearchLinkDatumCriterion. Database containing the linked records. For reverse cross database links, this is the database where the link is defined Returns ------- - str + Union[str, None, Unset_Type] The target_database_key of this GrantaServerApiSearchLinkDatumCriterion. """ return self._target_database_key @target_database_key.setter - def target_database_key(self, target_database_key: "Optional[str]") -> None: + def target_database_key( + self, target_database_key: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_database_key of this GrantaServerApiSearchLinkDatumCriterion. Database containing the linked records. For reverse cross database links, this is the database where the link is defined Parameters ---------- - target_database_key: str + target_database_key: Union[str, None, Unset_Type] The target_database_key of this GrantaServerApiSearchLinkDatumCriterion. """ self._target_database_key = target_database_key @property - def local_criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": + def local_criterion(self) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": """Gets the local_criterion of this GrantaServerApiSearchLinkDatumCriterion. Returns ------- - GrantaServerApiSearchCriterion + Union[GrantaServerApiSearchCriterion, Unset_Type] The local_criterion of this GrantaServerApiSearchLinkDatumCriterion. """ return self._local_criterion @local_criterion.setter def local_criterion( - self, local_criterion: "Optional[GrantaServerApiSearchCriterion]" + self, local_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" ) -> None: """Sets the local_criterion of this GrantaServerApiSearchLinkDatumCriterion. Parameters ---------- - local_criterion: GrantaServerApiSearchCriterion + local_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] The local_criterion of this GrantaServerApiSearchLinkDatumCriterion. """ + # Field is not nullable + if local_criterion is None: + raise ValueError("Invalid value for 'local_criterion', must not be 'None'") self._local_criterion = local_criterion @property - def link_datum_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": + def link_datum_type(self) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": """Gets the link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. Returns ------- - GrantaServerApiLinkAttributeType + Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. """ return self._link_datum_type @link_datum_type.setter def link_datum_type( - self, link_datum_type: "Optional[GrantaServerApiLinkAttributeType]" + self, link_datum_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" ) -> None: """Sets the link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. Parameters ---------- - link_datum_type: GrantaServerApiLinkAttributeType + link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. """ + # Field is not nullable + if link_datum_type is None: + raise ValueError("Invalid value for 'link_datum_type', must not be 'None'") self._link_datum_type = link_datum_type @property - def indirect_links(self) -> "Optional[GrantaServerApiIndirectLinks]": + def indirect_links(self) -> "Union[GrantaServerApiIndirectLinks, Unset_Type]": """Gets the indirect_links of this GrantaServerApiSearchLinkDatumCriterion. Returns ------- - GrantaServerApiIndirectLinks + Union[GrantaServerApiIndirectLinks, Unset_Type] The indirect_links of this GrantaServerApiSearchLinkDatumCriterion. """ return self._indirect_links @indirect_links.setter def indirect_links( - self, indirect_links: "Optional[GrantaServerApiIndirectLinks]" + self, indirect_links: "Union[GrantaServerApiIndirectLinks, Unset_Type]" ) -> None: """Sets the indirect_links of this GrantaServerApiSearchLinkDatumCriterion. Parameters ---------- - indirect_links: GrantaServerApiIndirectLinks + indirect_links: Union[GrantaServerApiIndirectLinks, Unset_Type] The indirect_links of this GrantaServerApiSearchLinkDatumCriterion. """ + # Field is not nullable + if indirect_links is None: + raise ValueError("Invalid value for 'indirect_links', must not be 'None'") self._indirect_links = indirect_links @property - def search_in_reversed_direction(self) -> "Optional[bool]": + def search_in_reversed_direction(self) -> "Union[bool, Unset_Type]": """Gets the search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. Returns ------- - bool + Union[bool, Unset_Type] The search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. """ return self._search_in_reversed_direction @search_in_reversed_direction.setter def search_in_reversed_direction( - self, search_in_reversed_direction: "Optional[bool]" + self, search_in_reversed_direction: "Union[bool, Unset_Type]" ) -> None: """Sets the search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. Parameters ---------- - search_in_reversed_direction: bool + search_in_reversed_direction: Union[bool, Unset_Type] The search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. """ + # Field is not nullable + if search_in_reversed_direction is None: + raise ValueError( + "Invalid value for 'search_in_reversed_direction', must not be 'None'" + ) self._search_in_reversed_direction = search_in_reversed_direction @property - def target_attribute_identity(self) -> "Optional[int]": + def target_attribute_identity(self) -> "Union[int, None, Unset_Type]": """Gets the target_attribute_identity of this GrantaServerApiSearchLinkDatumCriterion. For tabular searching: this is the identity of the short-text linking attribute. The target attribute and table can both be omitted; it is likely to improve performance if they are included. If either the target attribute or the target table is provided, they should both be provided. Otherwise null. Returns ------- - int + Union[int, None, Unset_Type] The target_attribute_identity of this GrantaServerApiSearchLinkDatumCriterion. """ return self._target_attribute_identity @target_attribute_identity.setter def target_attribute_identity( - self, target_attribute_identity: "Optional[int]" + self, target_attribute_identity: "Union[int, None, Unset_Type]" ) -> None: """Sets the target_attribute_identity of this GrantaServerApiSearchLinkDatumCriterion. For tabular searching: this is the identity of the short-text linking attribute. The target attribute and table can both be omitted; it is likely to improve performance if they are included. If either the target attribute or the target table is provided, they should both be provided. Otherwise null. Parameters ---------- - target_attribute_identity: int + target_attribute_identity: Union[int, None, Unset_Type] The target_attribute_identity of this GrantaServerApiSearchLinkDatumCriterion. """ self._target_attribute_identity = target_attribute_identity @property - def target_attribute_guid(self) -> "Optional[str]": + def target_attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. /// The target attribute and table can both be omitted; it is likely to improve performance if they are included. If either the target attribute or the target table is provided, they should both be provided. Otherwise null. Returns ------- - str + Union[str, None, Unset_Type] The target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. """ return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> None: + def target_attribute_guid( + self, target_attribute_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. /// The target attribute and table can both be omitted; it is likely to improve performance if they are included. If either the target attribute or the target table is provided, they should both be provided. Otherwise null. Parameters ---------- - target_attribute_guid: str + target_attribute_guid: Union[str, None, Unset_Type] The target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. """ self._target_attribute_guid = target_attribute_guid @property - def inner_criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": + def inner_criterion(self) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiSearchLinkDatumCriterion. Returns ------- - GrantaServerApiSearchCriterion + Union[GrantaServerApiSearchCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchLinkDatumCriterion. """ return self._inner_criterion @inner_criterion.setter def inner_criterion( - self, inner_criterion: "Optional[GrantaServerApiSearchCriterion]" + self, inner_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchLinkDatumCriterion. Parameters ---------- - inner_criterion: GrantaServerApiSearchCriterion + inner_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchLinkDatumCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @property @@ -422,38 +451,48 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchLinkDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property def local_rows_behaviour( self, - ) -> "Optional[GrantaServerApiSearchLocalRowsBehaviour]": + ) -> "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]": """Gets the local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. Returns ------- - GrantaServerApiSearchLocalRowsBehaviour + Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] The local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. """ return self._local_rows_behaviour @local_rows_behaviour.setter def local_rows_behaviour( - self, local_rows_behaviour: "Optional[GrantaServerApiSearchLocalRowsBehaviour]" + self, + local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]", ) -> None: """Sets the local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. Parameters ---------- - local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour + local_rows_behaviour: Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] The local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. """ + # Field is not nullable + if local_rows_behaviour is None: + raise ValueError( + "Invalid value for 'local_rows_behaviour', must not be 'None'" + ) self._local_rows_behaviour = local_rows_behaviour @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -470,7 +509,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py index 11230436..4efdd948 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( GrantaServerApiSearchDatumExistsCriterion, ) # noqa: F401 @@ -88,280 +88,309 @@ class GrantaServerApiSearchLinkExistsDatumCriterion( def __init__( self, *, - indirect_links: "Optional[GrantaServerApiIndirectLinks]" = None, - link_datum_type: "Optional[GrantaServerApiLinkAttributeType]" = None, - local_rows_behaviour: "Optional[GrantaServerApiSearchLocalRowsBehaviour]" = None, - search_in_reversed_direction: "Optional[bool]" = None, - target_attribute_guid: "Optional[str]" = None, - target_attribute_identity: "Optional[int]" = None, - target_database_key: "Optional[str]" = None, - target_table_guid: "Optional[str]" = None, - target_table_identity: "Optional[int]" = None, + indirect_links: "Union[GrantaServerApiIndirectLinks, Unset_Type]" = Unset, + link_datum_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" = Unset, + local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]" = Unset, + search_in_reversed_direction: "Union[bool, Unset_Type]" = Unset, + target_attribute_guid: "Union[str, None, Unset_Type]" = Unset, + target_attribute_identity: "Union[int, None, Unset_Type]" = Unset, + target_database_key: "Union[str, None, Unset_Type]" = Unset, + target_table_guid: "Union[str, None, Unset_Type]" = Unset, + target_table_identity: "Union[int, None, Unset_Type]" = Unset, type: "str" = "link", ) -> None: """GrantaServerApiSearchLinkExistsDatumCriterion - a model defined in Swagger Parameters ---------- - indirect_links: GrantaServerApiIndirectLinks, optional - link_datum_type: GrantaServerApiLinkAttributeType, optional - local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour, optional - search_in_reversed_direction: bool, optional - target_attribute_guid: str, optional - target_attribute_identity: int, optional - target_database_key: str, optional - target_table_guid: str, optional - target_table_identity: int, optional - type: str + indirect_links: GrantaServerApiIndirectLinks, optional + link_datum_type: GrantaServerApiLinkAttributeType, optional + local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour, optional + search_in_reversed_direction: bool, optional + target_attribute_guid: str, optional + target_attribute_identity: int, optional + target_database_key: str, optional + target_table_guid: str, optional + target_table_identity: int, optional + type: str """ super().__init__() - self._target_table_identity = None - self._target_table_guid = None - self._target_database_key = None - self._link_datum_type = None - self._indirect_links = None - self._search_in_reversed_direction = None - self._local_rows_behaviour = None - self._target_attribute_identity = None - self._target_attribute_guid = None - self._type: str = None # type: ignore[assignment] - - if target_table_identity is not None: + self._target_table_identity: Union[int, None, Unset_Type] = Unset + self._target_table_guid: Union[str, None, Unset_Type] = Unset + self._target_database_key: Union[str, None, Unset_Type] = Unset + self._link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = ( + Unset + ) + self._indirect_links: Union[GrantaServerApiIndirectLinks, Unset_Type] = Unset + self._search_in_reversed_direction: Union[bool, Unset_Type] = Unset + self._local_rows_behaviour: Union[ + GrantaServerApiSearchLocalRowsBehaviour, Unset_Type + ] = Unset + self._target_attribute_identity: Union[int, None, Unset_Type] = Unset + self._target_attribute_guid: Union[str, None, Unset_Type] = Unset + self._type: str + + if target_table_identity is not Unset: self.target_table_identity = target_table_identity - if target_table_guid is not None: + if target_table_guid is not Unset: self.target_table_guid = target_table_guid - if target_database_key is not None: + if target_database_key is not Unset: self.target_database_key = target_database_key - if link_datum_type is not None: + if link_datum_type is not Unset: self.link_datum_type = link_datum_type - if indirect_links is not None: + if indirect_links is not Unset: self.indirect_links = indirect_links - if search_in_reversed_direction is not None: + if search_in_reversed_direction is not Unset: self.search_in_reversed_direction = search_in_reversed_direction - if local_rows_behaviour is not None: + if local_rows_behaviour is not Unset: self.local_rows_behaviour = local_rows_behaviour - if target_attribute_identity is not None: + if target_attribute_identity is not Unset: self.target_attribute_identity = target_attribute_identity - if target_attribute_guid is not None: + if target_attribute_guid is not Unset: self.target_attribute_guid = target_attribute_guid self.type = type @property - def target_table_identity(self) -> "Optional[int]": + def target_table_identity(self) -> "Union[int, None, Unset_Type]": """Gets the target_table_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records Returns ------- - int + Union[int, None, Unset_Type] The target_table_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._target_table_identity @target_table_identity.setter - def target_table_identity(self, target_table_identity: "Optional[int]") -> None: + def target_table_identity( + self, target_table_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the target_table_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records Parameters ---------- - target_table_identity: int + target_table_identity: Union[int, None, Unset_Type] The target_table_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. """ self._target_table_identity = target_table_identity @property - def target_table_guid(self) -> "Optional[str]": + def target_table_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_table_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records Returns ------- - str + Union[str, None, Unset_Type] The target_table_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "Optional[str]") -> None: + def target_table_guid( + self, target_table_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_table_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records Parameters ---------- - target_table_guid: str + target_table_guid: Union[str, None, Unset_Type] The target_table_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. """ self._target_table_guid = target_table_guid @property - def target_database_key(self) -> "Optional[str]": + def target_database_key(self) -> "Union[str, None, Unset_Type]": """Gets the target_database_key of this GrantaServerApiSearchLinkExistsDatumCriterion. Database containing the linked records. For reverse cross database links, this is the database where the link is defined Returns ------- - str + Union[str, None, Unset_Type] The target_database_key of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._target_database_key @target_database_key.setter - def target_database_key(self, target_database_key: "Optional[str]") -> None: + def target_database_key( + self, target_database_key: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_database_key of this GrantaServerApiSearchLinkExistsDatumCriterion. Database containing the linked records. For reverse cross database links, this is the database where the link is defined Parameters ---------- - target_database_key: str + target_database_key: Union[str, None, Unset_Type] The target_database_key of this GrantaServerApiSearchLinkExistsDatumCriterion. """ self._target_database_key = target_database_key @property - def link_datum_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": + def link_datum_type(self) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": """Gets the link_datum_type of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns ------- - GrantaServerApiLinkAttributeType + Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_datum_type of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._link_datum_type @link_datum_type.setter def link_datum_type( - self, link_datum_type: "Optional[GrantaServerApiLinkAttributeType]" + self, link_datum_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" ) -> None: """Sets the link_datum_type of this GrantaServerApiSearchLinkExistsDatumCriterion. Parameters ---------- - link_datum_type: GrantaServerApiLinkAttributeType + link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] The link_datum_type of this GrantaServerApiSearchLinkExistsDatumCriterion. """ + # Field is not nullable + if link_datum_type is None: + raise ValueError("Invalid value for 'link_datum_type', must not be 'None'") self._link_datum_type = link_datum_type @property - def indirect_links(self) -> "Optional[GrantaServerApiIndirectLinks]": + def indirect_links(self) -> "Union[GrantaServerApiIndirectLinks, Unset_Type]": """Gets the indirect_links of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns ------- - GrantaServerApiIndirectLinks + Union[GrantaServerApiIndirectLinks, Unset_Type] The indirect_links of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._indirect_links @indirect_links.setter def indirect_links( - self, indirect_links: "Optional[GrantaServerApiIndirectLinks]" + self, indirect_links: "Union[GrantaServerApiIndirectLinks, Unset_Type]" ) -> None: """Sets the indirect_links of this GrantaServerApiSearchLinkExistsDatumCriterion. Parameters ---------- - indirect_links: GrantaServerApiIndirectLinks + indirect_links: Union[GrantaServerApiIndirectLinks, Unset_Type] The indirect_links of this GrantaServerApiSearchLinkExistsDatumCriterion. """ + # Field is not nullable + if indirect_links is None: + raise ValueError("Invalid value for 'indirect_links', must not be 'None'") self._indirect_links = indirect_links @property - def search_in_reversed_direction(self) -> "Optional[bool]": + def search_in_reversed_direction(self) -> "Union[bool, Unset_Type]": """Gets the search_in_reversed_direction of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns ------- - bool + Union[bool, Unset_Type] The search_in_reversed_direction of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._search_in_reversed_direction @search_in_reversed_direction.setter def search_in_reversed_direction( - self, search_in_reversed_direction: "Optional[bool]" + self, search_in_reversed_direction: "Union[bool, Unset_Type]" ) -> None: """Sets the search_in_reversed_direction of this GrantaServerApiSearchLinkExistsDatumCriterion. Parameters ---------- - search_in_reversed_direction: bool + search_in_reversed_direction: Union[bool, Unset_Type] The search_in_reversed_direction of this GrantaServerApiSearchLinkExistsDatumCriterion. """ + # Field is not nullable + if search_in_reversed_direction is None: + raise ValueError( + "Invalid value for 'search_in_reversed_direction', must not be 'None'" + ) self._search_in_reversed_direction = search_in_reversed_direction @property def local_rows_behaviour( self, - ) -> "Optional[GrantaServerApiSearchLocalRowsBehaviour]": + ) -> "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]": """Gets the local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns ------- - GrantaServerApiSearchLocalRowsBehaviour + Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] The local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._local_rows_behaviour @local_rows_behaviour.setter def local_rows_behaviour( - self, local_rows_behaviour: "Optional[GrantaServerApiSearchLocalRowsBehaviour]" + self, + local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]", ) -> None: """Sets the local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. Parameters ---------- - local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour + local_rows_behaviour: Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] The local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. """ + # Field is not nullable + if local_rows_behaviour is None: + raise ValueError( + "Invalid value for 'local_rows_behaviour', must not be 'None'" + ) self._local_rows_behaviour = local_rows_behaviour @property - def target_attribute_identity(self) -> "Optional[int]": + def target_attribute_identity(self) -> "Union[int, None, Unset_Type]": """Gets the target_attribute_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the identity of the short-text linking attribute. Otherwise null. Returns ------- - int + Union[int, None, Unset_Type] The target_attribute_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._target_attribute_identity @target_attribute_identity.setter def target_attribute_identity( - self, target_attribute_identity: "Optional[int]" + self, target_attribute_identity: "Union[int, None, Unset_Type]" ) -> None: """Sets the target_attribute_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the identity of the short-text linking attribute. Otherwise null. Parameters ---------- - target_attribute_identity: int + target_attribute_identity: Union[int, None, Unset_Type] The target_attribute_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. """ self._target_attribute_identity = target_attribute_identity @property - def target_attribute_guid(self) -> "Optional[str]": + def target_attribute_guid(self) -> "Union[str, None, Unset_Type]": """Gets the target_attribute_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. Otherwise null. Returns ------- - str + Union[str, None, Unset_Type] The target_attribute_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. """ return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> None: + def target_attribute_guid( + self, target_attribute_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the target_attribute_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. Otherwise null. Parameters ---------- - target_attribute_guid: str + target_attribute_guid: Union[str, None, Unset_Type] The target_attribute_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. """ self._target_attribute_guid = target_attribute_guid @@ -386,12 +415,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchLinkExistsDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -408,7 +441,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py index d2f3015d..272097bf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -76,69 +76,69 @@ class GrantaServerApiSearchLocalColumnCriterion(GrantaServerApiSearchCriterion): def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, type: "str" = "localColumn", ) -> None: """GrantaServerApiSearchLocalColumnCriterion - a model defined in Swagger Parameters ---------- - guid: str, optional - identity: int, optional - type: str + guid: str, optional + identity: int, optional + type: str """ super().__init__() - self._identity = None - self._guid = None - self._type: str = None # type: ignore[assignment] + self._identity: Union[int, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._type: str - if identity is not None: + if identity is not Unset: self.identity = identity - if guid is not None: + if guid is not Unset: self.guid = guid self.type = type @property - def identity(self) -> "Optional[int]": + def identity(self) -> "Union[int, None, Unset_Type]": """Gets the identity of this GrantaServerApiSearchLocalColumnCriterion. Returns ------- - int + Union[int, None, Unset_Type] The identity of this GrantaServerApiSearchLocalColumnCriterion. """ return self._identity @identity.setter - def identity(self, identity: "Optional[int]") -> None: + def identity(self, identity: "Union[int, None, Unset_Type]") -> None: """Sets the identity of this GrantaServerApiSearchLocalColumnCriterion. Parameters ---------- - identity: int + identity: Union[int, None, Unset_Type] The identity of this GrantaServerApiSearchLocalColumnCriterion. """ self._identity = identity @property - def guid(self) -> "Optional[str]": + def guid(self) -> "Union[str, None, Unset_Type]": """Gets the guid of this GrantaServerApiSearchLocalColumnCriterion. Returns ------- - str + Union[str, None, Unset_Type] The guid of this GrantaServerApiSearchLocalColumnCriterion. """ return self._guid @guid.setter - def guid(self, guid: "Optional[str]") -> None: + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: """Sets the guid of this GrantaServerApiSearchLocalColumnCriterion. Parameters ---------- - guid: str + guid: Union[str, None, Unset_Type] The guid of this GrantaServerApiSearchLocalColumnCriterion. """ self._guid = guid @@ -163,12 +163,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchLocalColumnCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -190,7 +194,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py index 9cfd04bc..04ee4524 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( GrantaServerApiSearchLocalColumnCriterion, ) # noqa: F401 @@ -77,8 +77,8 @@ def __init__( self, *, inner_criterion: "GrantaServerApiSearchDatumExistsCriterion", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, local_column_criterion_type: "str" = "exists", type: "str" = "localColumn", ) -> None: @@ -86,15 +86,15 @@ def __init__( Parameters ---------- - inner_criterion: GrantaServerApiSearchDatumExistsCriterion - guid: str, optional - identity: int, optional - local_column_criterion_type: str - type: str + inner_criterion: GrantaServerApiSearchDatumExistsCriterion + guid: str, optional + identity: int, optional + local_column_criterion_type: str + type: str """ super().__init__(guid=guid, identity=identity, type=type) - self._inner_criterion: GrantaServerApiSearchDatumExistsCriterion = None # type: ignore[assignment] - self._local_column_criterion_type: str = None # type: ignore[assignment] + self._inner_criterion: GrantaServerApiSearchDatumExistsCriterion + self._local_column_criterion_type: str self.inner_criterion = inner_criterion self.local_column_criterion_type = local_column_criterion_type @@ -121,8 +121,12 @@ def inner_criterion( inner_criterion: GrantaServerApiSearchDatumExistsCriterion The inner_criterion of this GrantaServerApiSearchLocalColumnExistsCriterion. """ + # Field is not nullable if inner_criterion is None: raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") + # Field is required + if inner_criterion is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'inner_criterion', must not be 'Unset'") self._inner_criterion = inner_criterion @property @@ -145,14 +149,20 @@ def local_column_criterion_type(self, local_column_criterion_type: "str") -> Non local_column_criterion_type: str The local_column_criterion_type of this GrantaServerApiSearchLocalColumnExistsCriterion. """ + # Field is not nullable if local_column_criterion_type is None: raise ValueError( "Invalid value for 'local_column_criterion_type', must not be 'None'" ) + # Field is required + if local_column_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'local_column_criterion_type', must not be 'Unset'" + ) self._local_column_criterion_type = local_column_criterion_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -169,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py index b15caaf9..240d3d67 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( GrantaServerApiSearchLocalColumnCriterion, ) # noqa: F401 @@ -77,8 +77,8 @@ def __init__( self, *, inner_criterion: "GrantaServerApiSearchDatumCriterion", - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, local_column_criterion_type: "str" = "matches", type: "str" = "localColumn", ) -> None: @@ -86,15 +86,15 @@ def __init__( Parameters ---------- - inner_criterion: GrantaServerApiSearchDatumCriterion - guid: str, optional - identity: int, optional - local_column_criterion_type: str - type: str + inner_criterion: GrantaServerApiSearchDatumCriterion + guid: str, optional + identity: int, optional + local_column_criterion_type: str + type: str """ super().__init__(guid=guid, identity=identity, type=type) - self._inner_criterion: GrantaServerApiSearchDatumCriterion = None # type: ignore[assignment] - self._local_column_criterion_type: str = None # type: ignore[assignment] + self._inner_criterion: GrantaServerApiSearchDatumCriterion + self._local_column_criterion_type: str self.inner_criterion = inner_criterion self.local_column_criterion_type = local_column_criterion_type @@ -121,8 +121,12 @@ def inner_criterion( inner_criterion: GrantaServerApiSearchDatumCriterion The inner_criterion of this GrantaServerApiSearchLocalColumnMatchesCriterion. """ + # Field is not nullable if inner_criterion is None: raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") + # Field is required + if inner_criterion is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'inner_criterion', must not be 'Unset'") self._inner_criterion = inner_criterion @property @@ -145,14 +149,20 @@ def local_column_criterion_type(self, local_column_criterion_type: "str") -> Non local_column_criterion_type: str The local_column_criterion_type of this GrantaServerApiSearchLocalColumnMatchesCriterion. """ + # Field is not nullable if local_column_criterion_type is None: raise ValueError( "Invalid value for 'local_column_criterion_type', must not be 'None'" ) + # Field is required + if local_column_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'local_column_criterion_type', must not be 'Unset'" + ) self._local_column_criterion_type = local_column_criterion_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -169,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py index 32e53e85..95c189b1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( GrantaServerApiSearchLocalColumnCriterion, ) # noqa: F401 @@ -72,8 +72,8 @@ class GrantaServerApiSearchLocalColumnNotApplicableCriterion( def __init__( self, *, - guid: "Optional[str]" = None, - identity: "Optional[int]" = None, + guid: "Union[str, None, Unset_Type]" = Unset, + identity: "Union[int, None, Unset_Type]" = Unset, local_column_criterion_type: "str" = "notApplicable", type: "str" = "localColumn", ) -> None: @@ -81,13 +81,13 @@ def __init__( Parameters ---------- - guid: str, optional - identity: int, optional - local_column_criterion_type: str - type: str + guid: str, optional + identity: int, optional + local_column_criterion_type: str + type: str """ super().__init__(guid=guid, identity=identity, type=type) - self._local_column_criterion_type: str = None # type: ignore[assignment] + self._local_column_criterion_type: str self.local_column_criterion_type = local_column_criterion_type @@ -111,14 +111,20 @@ def local_column_criterion_type(self, local_column_criterion_type: "str") -> Non local_column_criterion_type: str The local_column_criterion_type of this GrantaServerApiSearchLocalColumnNotApplicableCriterion. """ + # Field is not nullable if local_column_criterion_type is None: raise ValueError( "Invalid value for 'local_column_criterion_type', must not be 'None'" ) + # Field is required + if local_column_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'local_column_criterion_type', must not be 'Unset'" + ) self._local_column_criterion_type = local_column_criterion_type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -135,7 +141,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py index 87994557..ddfbdcd7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -67,45 +67,48 @@ def __init__( self, *, type: "str" = "logical", - value: "Optional[bool]" = None, + value: "Union[bool, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchLogicalDatumCriterion - a model defined in Swagger Parameters ---------- - type: str - value: bool, optional + type: str + value: bool, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[bool, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[bool]": + def value(self) -> "Union[bool, Unset_Type]": """Gets the value of this GrantaServerApiSearchLogicalDatumCriterion. Logical search value Returns ------- - bool + Union[bool, Unset_Type] The value of this GrantaServerApiSearchLogicalDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[bool]") -> None: + def value(self, value: "Union[bool, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchLogicalDatumCriterion. Logical search value Parameters ---------- - value: bool + value: Union[bool, Unset_Type] The value of this GrantaServerApiSearchLogicalDatumCriterion. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property @@ -128,12 +131,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchLogicalDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py index 2c762efa..e48a81d6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( GrantaServerApiSearchSortingValue, ) # noqa: F401 @@ -67,43 +67,46 @@ def __init__( self, *, type: "str" = "long", - value: "Optional[int]" = None, + value: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchLongSortingValue - a model defined in Swagger Parameters ---------- - type: str - value: int, optional + type: str + value: int, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[int, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[int]": + def value(self) -> "Union[int, Unset_Type]": """Gets the value of this GrantaServerApiSearchLongSortingValue. Returns ------- - int + Union[int, Unset_Type] The value of this GrantaServerApiSearchLongSortingValue. """ return self._value @value.setter - def value(self, value: "Optional[int]") -> None: + def value(self, value: "Union[int, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchLongSortingValue. Parameters ---------- - value: int + value: Union[int, Unset_Type] The value of this GrantaServerApiSearchLongSortingValue. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @property @@ -126,12 +129,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchLongSortingValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -148,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py index e06c4f2b..266875e4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -67,43 +67,43 @@ def __init__( self, *, type: "str" = "longText", - value: "Optional[str]" = None, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchLongTextDatumCriterion - a model defined in Swagger Parameters ---------- - type: str - value: str, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[str, None, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSearchLongTextDatumCriterion. Long text search value Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSearchLongTextDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchLongTextDatumCriterion. Long text search value Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSearchLongTextDatumCriterion. """ self._value = value @@ -128,12 +128,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchLongTextDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py index 38bacd4b..c7e4336c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -74,32 +74,34 @@ class GrantaServerApiSearchMathsFunctionalDatumCriterion( def __init__( self, *, - constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" = None, - gte: "Optional[float]" = None, - lte: "Optional[float]" = None, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" = Unset, + gte: "Union[float, None, Unset_Type]" = Unset, + lte: "Union[float, None, Unset_Type]" = Unset, type: "str" = "mathsFunctional", ) -> None: """GrantaServerApiSearchMathsFunctionalDatumCriterion - a model defined in Swagger Parameters ---------- - constraints: List[GrantaServerApiSearchParameterConstraint], optional - gte: float, optional - lte: float, optional - type: str + constraints: List[GrantaServerApiSearchParameterConstraint], optional + gte: float, optional + lte: float, optional + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] - self._gte = None - self._lte = None - self._constraints = None + self._type: str + self._gte: Union[float, None, Unset_Type] = Unset + self._lte: Union[float, None, Unset_Type] = Unset + self._constraints: Union[ + List[GrantaServerApiSearchParameterConstraint], None, Unset_Type + ] = Unset self.type = type - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte - if constraints is not None: + if constraints is not Unset: self.constraints = constraints @property @@ -122,86 +124,93 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @property - def gte(self) -> "Optional[float]": + def gte(self) -> "Union[float, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Greater than or equal to Returns ------- - float + Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[float]") -> None: + def gte(self, gte: "Union[float, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Greater than or equal to Parameters ---------- - gte: float + gte: Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[float]": + def lte(self) -> "Union[float, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Less than or equal to Returns ------- - float + Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[float]") -> None: + def lte(self, lte: "Union[float, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Less than or equal to Parameters ---------- - lte: float + lte: Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ self._lte = lte @property - def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": + def constraints( + self, + ) -> "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]": """Gets the constraints of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. Returns ------- - list[GrantaServerApiSearchParameterConstraint] + Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ return self._constraints @constraints.setter def constraints( - self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" + self, + constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", ) -> None: """Sets the constraints of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. Parameters ---------- - constraints: List[GrantaServerApiSearchParameterConstraint] + constraints: Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type] The constraints of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ self._constraints = constraints @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -218,7 +227,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py index b70b0ccf..8b3008a9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( GrantaServerApiSearchParameterConstraint, ) # noqa: F401 @@ -78,156 +78,160 @@ class GrantaServerApiSearchNumericParameterConstraint( def __init__( self, *, - gte: "Optional[float]" = None, - interpolation_type: "Optional[str]" = None, - lte: "Optional[float]" = None, - parameter: "Optional[GrantaServerApiObjectIdentifier]" = None, - scale_type: "Optional[str]" = None, - significant_figures: "Optional[int]" = None, + gte: "Union[float, None, Unset_Type]" = Unset, + interpolation_type: "Union[str, None, Unset_Type]" = Unset, + lte: "Union[float, None, Unset_Type]" = Unset, + parameter: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + scale_type: "Union[str, None, Unset_Type]" = Unset, + significant_figures: "Union[int, None, Unset_Type]" = Unset, type: "str" = "numeric", ) -> None: """GrantaServerApiSearchNumericParameterConstraint - a model defined in Swagger Parameters ---------- - gte: float, optional - interpolation_type: str, optional - lte: float, optional - parameter: GrantaServerApiObjectIdentifier, optional - scale_type: str, optional - significant_figures: int, optional - type: str + gte: float, optional + interpolation_type: str, optional + lte: float, optional + parameter: GrantaServerApiObjectIdentifier, optional + scale_type: str, optional + significant_figures: int, optional + type: str """ super().__init__(parameter=parameter) - self._gte = None - self._lte = None - self._scale_type = None - self._interpolation_type = None - self._significant_figures = None - self._type: str = None # type: ignore[assignment] - - if gte is not None: + self._gte: Union[float, None, Unset_Type] = Unset + self._lte: Union[float, None, Unset_Type] = Unset + self._scale_type: Union[str, None, Unset_Type] = Unset + self._interpolation_type: Union[str, None, Unset_Type] = Unset + self._significant_figures: Union[int, None, Unset_Type] = Unset + self._type: str + + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte - if scale_type is not None: + if scale_type is not Unset: self.scale_type = scale_type - if interpolation_type is not None: + if interpolation_type is not Unset: self.interpolation_type = interpolation_type - if significant_figures is not None: + if significant_figures is not Unset: self.significant_figures = significant_figures self.type = type @property - def gte(self) -> "Optional[float]": + def gte(self) -> "Union[float, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchNumericParameterConstraint. Returns ------- - float + Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchNumericParameterConstraint. """ return self._gte @gte.setter - def gte(self, gte: "Optional[float]") -> None: + def gte(self, gte: "Union[float, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchNumericParameterConstraint. Parameters ---------- - gte: float + gte: Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchNumericParameterConstraint. """ self._gte = gte @property - def lte(self) -> "Optional[float]": + def lte(self) -> "Union[float, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchNumericParameterConstraint. Returns ------- - float + Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchNumericParameterConstraint. """ return self._lte @lte.setter - def lte(self, lte: "Optional[float]") -> None: + def lte(self, lte: "Union[float, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchNumericParameterConstraint. Parameters ---------- - lte: float + lte: Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchNumericParameterConstraint. """ self._lte = lte @property - def scale_type(self) -> "Optional[str]": + def scale_type(self) -> "Union[str, None, Unset_Type]": """Gets the scale_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the scale type of the parameter. Can be Linear or Log Returns ------- - str + Union[str, None, Unset_Type] The scale_type of this GrantaServerApiSearchNumericParameterConstraint. """ return self._scale_type @scale_type.setter - def scale_type(self, scale_type: "Optional[str]") -> None: + def scale_type(self, scale_type: "Union[str, None, Unset_Type]") -> None: """Sets the scale_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the scale type of the parameter. Can be Linear or Log Parameters ---------- - scale_type: str + scale_type: Union[str, None, Unset_Type] The scale_type of this GrantaServerApiSearchNumericParameterConstraint. """ self._scale_type = scale_type @property - def interpolation_type(self) -> "Optional[str]": + def interpolation_type(self) -> "Union[str, None, Unset_Type]": """Gets the interpolation_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the interpolation type of the parameter. Can be Auto, None, Linear or CubicSpline Returns ------- - str + Union[str, None, Unset_Type] The interpolation_type of this GrantaServerApiSearchNumericParameterConstraint. """ return self._interpolation_type @interpolation_type.setter - def interpolation_type(self, interpolation_type: "Optional[str]") -> None: + def interpolation_type( + self, interpolation_type: "Union[str, None, Unset_Type]" + ) -> None: """Sets the interpolation_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the interpolation type of the parameter. Can be Auto, None, Linear or CubicSpline Parameters ---------- - interpolation_type: str + interpolation_type: Union[str, None, Unset_Type] The interpolation_type of this GrantaServerApiSearchNumericParameterConstraint. """ self._interpolation_type = interpolation_type @property - def significant_figures(self) -> "Optional[int]": + def significant_figures(self) -> "Union[int, None, Unset_Type]": """Gets the significant_figures of this GrantaServerApiSearchNumericParameterConstraint. Returns ------- - int + Union[int, None, Unset_Type] The significant_figures of this GrantaServerApiSearchNumericParameterConstraint. """ return self._significant_figures @significant_figures.setter - def significant_figures(self, significant_figures: "Optional[int]") -> None: + def significant_figures( + self, significant_figures: "Union[int, None, Unset_Type]" + ) -> None: """Sets the significant_figures of this GrantaServerApiSearchNumericParameterConstraint. Parameters ---------- - significant_figures: int + significant_figures: Union[int, None, Unset_Type] The significant_figures of this GrantaServerApiSearchNumericParameterConstraint. """ self._significant_figures = significant_figures @@ -252,12 +256,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchNumericParameterConstraint. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -274,7 +282,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py index 76731200..6a0ca83d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchPagingOptions(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchPagingOptions(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,103 +65,108 @@ class GrantaServerApiSearchPagingOptions(ModelBase): # type: ignore[misc] def __init__( self, *, - keep_alive_in_minutes: "Optional[int]" = None, - page_number: "Optional[int]" = None, - page_size: "Optional[int]" = None, + keep_alive_in_minutes: "Union[int, None, Unset_Type]" = Unset, + page_number: "Union[int, None, Unset_Type]" = Unset, + page_size: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchPagingOptions - a model defined in Swagger Parameters ---------- - keep_alive_in_minutes: int, optional - page_number: int, optional - page_size: int, optional + keep_alive_in_minutes: int, optional + page_number: int, optional + page_size: int, optional """ - self._page_size = None - self._keep_alive_in_minutes = None - self._page_number = None + self._page_size: Union[int, Unset_Type] = Unset + self._keep_alive_in_minutes: Union[int, None, Unset_Type] = Unset + self._page_number: Union[int, None, Unset_Type] = Unset - if page_size is not None: + if page_size is not Unset: self.page_size = page_size - if keep_alive_in_minutes is not None: + if keep_alive_in_minutes is not Unset: self.keep_alive_in_minutes = keep_alive_in_minutes - if page_number is not None: + if page_number is not Unset: self.page_number = page_number @property - def page_size(self) -> "Optional[int]": + def page_size(self) -> "Union[int, Unset_Type]": """Gets the page_size of this GrantaServerApiSearchPagingOptions. The number of results that should be returned in each page Returns ------- - int + Union[int, Unset_Type] The page_size of this GrantaServerApiSearchPagingOptions. """ return self._page_size @page_size.setter - def page_size(self, page_size: "Optional[int]") -> None: + def page_size(self, page_size: "Union[int, Unset_Type]") -> None: """Sets the page_size of this GrantaServerApiSearchPagingOptions. The number of results that should be returned in each page Parameters ---------- - page_size: int + page_size: Union[int, Unset_Type] The page_size of this GrantaServerApiSearchPagingOptions. """ + # Field is not nullable + if page_size is None: + raise ValueError("Invalid value for 'page_size', must not be 'None'") self._page_size = page_size @property - def keep_alive_in_minutes(self) -> "Optional[int]": + def keep_alive_in_minutes(self) -> "Union[int, None, Unset_Type]": """Gets the keep_alive_in_minutes of this GrantaServerApiSearchPagingOptions. The length of time that the paginated search should be kept in memory Returns ------- - int + Union[int, None, Unset_Type] The keep_alive_in_minutes of this GrantaServerApiSearchPagingOptions. """ return self._keep_alive_in_minutes @keep_alive_in_minutes.setter - def keep_alive_in_minutes(self, keep_alive_in_minutes: "Optional[int]") -> None: + def keep_alive_in_minutes( + self, keep_alive_in_minutes: "Union[int, None, Unset_Type]" + ) -> None: """Sets the keep_alive_in_minutes of this GrantaServerApiSearchPagingOptions. The length of time that the paginated search should be kept in memory Parameters ---------- - keep_alive_in_minutes: int + keep_alive_in_minutes: Union[int, None, Unset_Type] The keep_alive_in_minutes of this GrantaServerApiSearchPagingOptions. """ self._keep_alive_in_minutes = keep_alive_in_minutes @property - def page_number(self) -> "Optional[int]": + def page_number(self) -> "Union[int, None, Unset_Type]": """Gets the page_number of this GrantaServerApiSearchPagingOptions. (Optional) the (1-indexed) number of the page to return from the search. No pages are returned if not provided Returns ------- - int + Union[int, None, Unset_Type] The page_number of this GrantaServerApiSearchPagingOptions. """ return self._page_number @page_number.setter - def page_number(self, page_number: "Optional[int]") -> None: + def page_number(self, page_number: "Union[int, None, Unset_Type]") -> None: """Sets the page_number of this GrantaServerApiSearchPagingOptions. (Optional) the (1-indexed) number of the page to return from the search. No pages are returned if not provided Parameters ---------- - page_number: int + page_number: Union[int, None, Unset_Type] The page_number of this GrantaServerApiSearchPagingOptions. """ self._page_number = page_number @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -178,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py index 78f59944..8169ebc5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchParameterConstraint(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchParameterConstraint(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,43 +71,48 @@ class GrantaServerApiSearchParameterConstraint(ModelBase): # type: ignore[misc] def __init__( self, *, - parameter: "Optional[GrantaServerApiObjectIdentifier]" = None, + parameter: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchParameterConstraint - a model defined in Swagger Parameters ---------- - parameter: GrantaServerApiObjectIdentifier, optional + parameter: GrantaServerApiObjectIdentifier, optional """ - self._parameter = None + self._parameter: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset - if parameter is not None: + if parameter is not Unset: self.parameter = parameter @property - def parameter(self) -> "Optional[GrantaServerApiObjectIdentifier]": + def parameter(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": """Gets the parameter of this GrantaServerApiSearchParameterConstraint. Returns ------- - GrantaServerApiObjectIdentifier + Union[GrantaServerApiObjectIdentifier, Unset_Type] The parameter of this GrantaServerApiSearchParameterConstraint. """ return self._parameter @parameter.setter - def parameter(self, parameter: "Optional[GrantaServerApiObjectIdentifier]") -> None: + def parameter( + self, parameter: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" + ) -> None: """Sets the parameter of this GrantaServerApiSearchParameterConstraint. Parameters ---------- - parameter: GrantaServerApiObjectIdentifier + parameter: Union[GrantaServerApiObjectIdentifier, Unset_Type] The parameter of this GrantaServerApiSearchParameterConstraint. """ + # Field is not nullable + if parameter is None: + raise ValueError("Invalid value for 'parameter', must not be 'None'") self._parameter = parameter @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -129,7 +134,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py index 1c52f74d..7b2c0681 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -70,10 +70,10 @@ def __init__( Parameters ---------- - type: str + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -97,12 +97,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchPictureDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -119,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py index f90aca5a..ec7940c0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -68,73 +68,73 @@ class GrantaServerApiSearchPointDatumCriterion(GrantaServerApiSearchDatumCriteri def __init__( self, *, - gte: "Optional[float]" = None, - lte: "Optional[float]" = None, + gte: "Union[float, None, Unset_Type]" = Unset, + lte: "Union[float, None, Unset_Type]" = Unset, type: "str" = "point", ) -> None: """GrantaServerApiSearchPointDatumCriterion - a model defined in Swagger Parameters ---------- - gte: float, optional - lte: float, optional - type: str + gte: float, optional + lte: float, optional + type: str """ super().__init__() - self._gte = None - self._lte = None - self._type: str = None # type: ignore[assignment] + self._gte: Union[float, None, Unset_Type] = Unset + self._lte: Union[float, None, Unset_Type] = Unset + self._type: str - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte self.type = type @property - def gte(self) -> "Optional[float]": + def gte(self) -> "Union[float, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchPointDatumCriterion. Greater than or equal Returns ------- - float + Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchPointDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[float]") -> None: + def gte(self, gte: "Union[float, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchPointDatumCriterion. Greater than or equal Parameters ---------- - gte: float + gte: Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchPointDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[float]": + def lte(self) -> "Union[float, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchPointDatumCriterion. Less than or equal Returns ------- - float + Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchPointDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[float]") -> None: + def lte(self, lte: "Union[float, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchPointDatumCriterion. Less than or equal Parameters ---------- - lte: float + lte: Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchPointDatumCriterion. """ self._lte = lte @@ -159,12 +159,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchPointDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py index 480ed348..2efe5162 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -68,73 +68,73 @@ class GrantaServerApiSearchRangeDatumCriterion(GrantaServerApiSearchDatumCriteri def __init__( self, *, - gte: "Optional[float]" = None, - lte: "Optional[float]" = None, + gte: "Union[float, None, Unset_Type]" = Unset, + lte: "Union[float, None, Unset_Type]" = Unset, type: "str" = "range", ) -> None: """GrantaServerApiSearchRangeDatumCriterion - a model defined in Swagger Parameters ---------- - gte: float, optional - lte: float, optional - type: str + gte: float, optional + lte: float, optional + type: str """ super().__init__() - self._gte = None - self._lte = None - self._type: str = None # type: ignore[assignment] + self._gte: Union[float, None, Unset_Type] = Unset + self._lte: Union[float, None, Unset_Type] = Unset + self._type: str - if gte is not None: + if gte is not Unset: self.gte = gte - if lte is not None: + if lte is not Unset: self.lte = lte self.type = type @property - def gte(self) -> "Optional[float]": + def gte(self) -> "Union[float, None, Unset_Type]": """Gets the gte of this GrantaServerApiSearchRangeDatumCriterion. Greater than or equal to Returns ------- - float + Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchRangeDatumCriterion. """ return self._gte @gte.setter - def gte(self, gte: "Optional[float]") -> None: + def gte(self, gte: "Union[float, None, Unset_Type]") -> None: """Sets the gte of this GrantaServerApiSearchRangeDatumCriterion. Greater than or equal to Parameters ---------- - gte: float + gte: Union[float, None, Unset_Type] The gte of this GrantaServerApiSearchRangeDatumCriterion. """ self._gte = gte @property - def lte(self) -> "Optional[float]": + def lte(self) -> "Union[float, None, Unset_Type]": """Gets the lte of this GrantaServerApiSearchRangeDatumCriterion. Less than or equal to Returns ------- - float + Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchRangeDatumCriterion. """ return self._lte @lte.setter - def lte(self, lte: "Optional[float]") -> None: + def lte(self, lte: "Union[float, None, Unset_Type]") -> None: """Sets the lte of this GrantaServerApiSearchRangeDatumCriterion. Less than or equal to Parameters ---------- - lte: float + lte: Union[float, None, Unset_Type] The lte of this GrantaServerApiSearchRangeDatumCriterion. """ self._lte = lte @@ -159,12 +159,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRangeDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py index ddcf9113..9f0ae84a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -68,69 +68,73 @@ class GrantaServerApiSearchRecordAncestorCriterion(GrantaServerApiSearchCriterio def __init__( self, *, - ancestor_identity: "Optional[int]" = None, - direct_parent_only: "Optional[bool]" = None, + ancestor_identity: "Union[int, None, Unset_Type]" = Unset, + direct_parent_only: "Union[bool, None, Unset_Type]" = Unset, type: "str" = "recordAncestor", ) -> None: """GrantaServerApiSearchRecordAncestorCriterion - a model defined in Swagger Parameters ---------- - ancestor_identity: int, optional - direct_parent_only: bool, optional - type: str + ancestor_identity: int, optional + direct_parent_only: bool, optional + type: str """ super().__init__() - self._ancestor_identity = None - self._direct_parent_only = None - self._type: str = None # type: ignore[assignment] + self._ancestor_identity: Union[int, None, Unset_Type] = Unset + self._direct_parent_only: Union[bool, None, Unset_Type] = Unset + self._type: str - if ancestor_identity is not None: + if ancestor_identity is not Unset: self.ancestor_identity = ancestor_identity - if direct_parent_only is not None: + if direct_parent_only is not Unset: self.direct_parent_only = direct_parent_only self.type = type @property - def ancestor_identity(self) -> "Optional[int]": + def ancestor_identity(self) -> "Union[int, None, Unset_Type]": """Gets the ancestor_identity of this GrantaServerApiSearchRecordAncestorCriterion. Returns ------- - int + Union[int, None, Unset_Type] The ancestor_identity of this GrantaServerApiSearchRecordAncestorCriterion. """ return self._ancestor_identity @ancestor_identity.setter - def ancestor_identity(self, ancestor_identity: "Optional[int]") -> None: + def ancestor_identity( + self, ancestor_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the ancestor_identity of this GrantaServerApiSearchRecordAncestorCriterion. Parameters ---------- - ancestor_identity: int + ancestor_identity: Union[int, None, Unset_Type] The ancestor_identity of this GrantaServerApiSearchRecordAncestorCriterion. """ self._ancestor_identity = ancestor_identity @property - def direct_parent_only(self) -> "Optional[bool]": + def direct_parent_only(self) -> "Union[bool, None, Unset_Type]": """Gets the direct_parent_only of this GrantaServerApiSearchRecordAncestorCriterion. Returns ------- - bool + Union[bool, None, Unset_Type] The direct_parent_only of this GrantaServerApiSearchRecordAncestorCriterion. """ return self._direct_parent_only @direct_parent_only.setter - def direct_parent_only(self, direct_parent_only: "Optional[bool]") -> None: + def direct_parent_only( + self, direct_parent_only: "Union[bool, None, Unset_Type]" + ) -> None: """Sets the direct_parent_only of this GrantaServerApiSearchRecordAncestorCriterion. Parameters ---------- - direct_parent_only: bool + direct_parent_only: Union[bool, None, Unset_Type] The direct_parent_only of this GrantaServerApiSearchRecordAncestorCriterion. """ self._direct_parent_only = direct_parent_only @@ -155,12 +159,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRecordAncestorCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -177,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py index e7850be3..513b9e40 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -70,71 +70,71 @@ class GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion( def __init__( self, *, - ancestor_history_identities: "Optional[List[int]]" = None, - database_key: "Optional[str]" = None, + ancestor_history_identities: "Union[List[int], None, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, type: "str" = "recordAncestorIdentities", ) -> None: """GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion - a model defined in Swagger Parameters ---------- - ancestor_history_identities: List[int], optional - database_key: str, optional - type: str + ancestor_history_identities: List[int], optional + database_key: str, optional + type: str """ super().__init__() - self._ancestor_history_identities = None - self._database_key = None - self._type: str = None # type: ignore[assignment] + self._ancestor_history_identities: Union[List[int], None, Unset_Type] = Unset + self._database_key: Union[str, None, Unset_Type] = Unset + self._type: str - if ancestor_history_identities is not None: + if ancestor_history_identities is not Unset: self.ancestor_history_identities = ancestor_history_identities - if database_key is not None: + if database_key is not Unset: self.database_key = database_key self.type = type @property - def ancestor_history_identities(self) -> "Optional[List[int]]": + def ancestor_history_identities(self) -> "Union[List[int], None, Unset_Type]": """Gets the ancestor_history_identities of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Returns ------- - list[int] + Union[List[int], None, Unset_Type] The ancestor_history_identities of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. """ return self._ancestor_history_identities @ancestor_history_identities.setter def ancestor_history_identities( - self, ancestor_history_identities: "Optional[List[int]]" + self, ancestor_history_identities: "Union[List[int], None, Unset_Type]" ) -> None: """Sets the ancestor_history_identities of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Parameters ---------- - ancestor_history_identities: List[int] + ancestor_history_identities: Union[List[int], None, Unset_Type] The ancestor_history_identities of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. """ self._ancestor_history_identities = ancestor_history_identities @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. """ self._database_key = database_key @@ -159,12 +159,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -181,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py index 734c219a..e98e0791 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -66,44 +66,44 @@ class GrantaServerApiSearchRecordListMemberCriterion(GrantaServerApiSearchCriter def __init__( self, *, - record_list_identifiers: "Optional[List[str]]" = None, + record_list_identifiers: "Union[List[str], None, Unset_Type]" = Unset, type: "str" = "recordListMember", ) -> None: """GrantaServerApiSearchRecordListMemberCriterion - a model defined in Swagger Parameters ---------- - record_list_identifiers: List[str], optional - type: str + record_list_identifiers: List[str], optional + type: str """ super().__init__() - self._record_list_identifiers = None - self._type: str = None # type: ignore[assignment] + self._record_list_identifiers: Union[List[str], None, Unset_Type] = Unset + self._type: str - if record_list_identifiers is not None: + if record_list_identifiers is not Unset: self.record_list_identifiers = record_list_identifiers self.type = type @property - def record_list_identifiers(self) -> "Optional[List[str]]": + def record_list_identifiers(self) -> "Union[List[str], None, Unset_Type]": """Gets the record_list_identifiers of this GrantaServerApiSearchRecordListMemberCriterion. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The record_list_identifiers of this GrantaServerApiSearchRecordListMemberCriterion. """ return self._record_list_identifiers @record_list_identifiers.setter def record_list_identifiers( - self, record_list_identifiers: "Optional[List[str]]" + self, record_list_identifiers: "Union[List[str], None, Unset_Type]" ) -> None: """Sets the record_list_identifiers of this GrantaServerApiSearchRecordListMemberCriterion. Parameters ---------- - record_list_identifiers: List[str] + record_list_identifiers: Union[List[str], None, Unset_Type] The record_list_identifiers of this GrantaServerApiSearchRecordListMemberCriterion. """ self._record_list_identifiers = record_list_identifiers @@ -128,12 +128,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRecordListMemberCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -150,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py index 2a5ab8fd..c33bf79a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -71,75 +71,90 @@ class GrantaServerApiSearchRecordPropertyCriterion(GrantaServerApiSearchCriterio def __init__( self, *, - _property: "Optional[GrantaServerApiSearchSearchableRecordProperty]" = None, - inner_criterion: "Optional[GrantaServerApiSearchDatumCriterion]" = None, + _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]" = Unset, + inner_criterion: "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]" = Unset, type: "str" = "recordProperty", ) -> None: """GrantaServerApiSearchRecordPropertyCriterion - a model defined in Swagger Parameters ---------- - _property: GrantaServerApiSearchSearchableRecordProperty, optional - inner_criterion: GrantaServerApiSearchDatumCriterion, optional - type: str + _property: GrantaServerApiSearchSearchableRecordProperty, optional + inner_criterion: GrantaServerApiSearchDatumCriterion, optional + type: str """ super().__init__() - self.__property = None - self._inner_criterion = None - self._type: str = None # type: ignore[assignment] - - if _property is not None: + self.__property: Union[ + GrantaServerApiSearchSearchableRecordProperty, Unset_Type + ] = Unset + self._inner_criterion: Union[ + GrantaServerApiSearchDatumCriterion, Unset_Type + ] = Unset + self._type: str + + if _property is not Unset: self._property = _property - if inner_criterion is not None: + if inner_criterion is not Unset: self.inner_criterion = inner_criterion self.type = type @property - def _property(self) -> "Optional[GrantaServerApiSearchSearchableRecordProperty]": + def _property( + self, + ) -> "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]": """Gets the _property of this GrantaServerApiSearchRecordPropertyCriterion. Returns ------- - GrantaServerApiSearchSearchableRecordProperty + Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type] The _property of this GrantaServerApiSearchRecordPropertyCriterion. """ return self.__property @_property.setter def _property( - self, _property: "Optional[GrantaServerApiSearchSearchableRecordProperty]" + self, + _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]", ) -> None: """Sets the _property of this GrantaServerApiSearchRecordPropertyCriterion. Parameters ---------- - _property: GrantaServerApiSearchSearchableRecordProperty + _property: Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type] The _property of this GrantaServerApiSearchRecordPropertyCriterion. """ + # Field is not nullable + if _property is None: + raise ValueError("Invalid value for '_property', must not be 'None'") self.__property = _property @property - def inner_criterion(self) -> "Optional[GrantaServerApiSearchDatumCriterion]": + def inner_criterion( + self, + ) -> "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiSearchRecordPropertyCriterion. Returns ------- - GrantaServerApiSearchDatumCriterion + Union[GrantaServerApiSearchDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchRecordPropertyCriterion. """ return self._inner_criterion @inner_criterion.setter def inner_criterion( - self, inner_criterion: "Optional[GrantaServerApiSearchDatumCriterion]" + self, inner_criterion: "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchRecordPropertyCriterion. Parameters ---------- - inner_criterion: GrantaServerApiSearchDatumCriterion + inner_criterion: Union[GrantaServerApiSearchDatumCriterion, Unset_Type] The inner_criterion of this GrantaServerApiSearchRecordPropertyCriterion. """ + # Field is not nullable + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") self._inner_criterion = inner_criterion @property @@ -162,12 +177,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRecordPropertyCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -184,7 +203,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py index 230034bf..887b2930 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( GrantaServerApiSearchSortCriterion, ) # noqa: F401 @@ -75,75 +75,88 @@ class GrantaServerApiSearchRecordPropertySortCriterion( def __init__( self, *, - _property: "Optional[GrantaServerApiSearchSearchableRecordProperty]" = None, - sort_direction: "Optional[GrantaServerApiSearchSortDirection]" = None, - sort_type: "Optional[GrantaServerApiSearchSortType]" = None, + _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]" = Unset, + sort_direction: "Union[GrantaServerApiSearchSortDirection, Unset_Type]" = Unset, + sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]" = Unset, type: "str" = "recordProperty", ) -> None: """GrantaServerApiSearchRecordPropertySortCriterion - a model defined in Swagger Parameters ---------- - _property: GrantaServerApiSearchSearchableRecordProperty, optional - sort_direction: GrantaServerApiSearchSortDirection, optional - sort_type: GrantaServerApiSearchSortType, optional - type: str + _property: GrantaServerApiSearchSearchableRecordProperty, optional + sort_direction: GrantaServerApiSearchSortDirection, optional + sort_type: GrantaServerApiSearchSortType, optional + type: str """ super().__init__(sort_direction=sort_direction) - self.__property = None - self._sort_type = None - self._type: str = None # type: ignore[assignment] + self.__property: Union[ + GrantaServerApiSearchSearchableRecordProperty, Unset_Type + ] = Unset + self._sort_type: Union[GrantaServerApiSearchSortType, Unset_Type] = Unset + self._type: str - if _property is not None: + if _property is not Unset: self._property = _property - if sort_type is not None: + if sort_type is not Unset: self.sort_type = sort_type self.type = type @property - def _property(self) -> "Optional[GrantaServerApiSearchSearchableRecordProperty]": + def _property( + self, + ) -> "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]": """Gets the _property of this GrantaServerApiSearchRecordPropertySortCriterion. Returns ------- - GrantaServerApiSearchSearchableRecordProperty + Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type] The _property of this GrantaServerApiSearchRecordPropertySortCriterion. """ return self.__property @_property.setter def _property( - self, _property: "Optional[GrantaServerApiSearchSearchableRecordProperty]" + self, + _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]", ) -> None: """Sets the _property of this GrantaServerApiSearchRecordPropertySortCriterion. Parameters ---------- - _property: GrantaServerApiSearchSearchableRecordProperty + _property: Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type] The _property of this GrantaServerApiSearchRecordPropertySortCriterion. """ + # Field is not nullable + if _property is None: + raise ValueError("Invalid value for '_property', must not be 'None'") self.__property = _property @property - def sort_type(self) -> "Optional[GrantaServerApiSearchSortType]": + def sort_type(self) -> "Union[GrantaServerApiSearchSortType, Unset_Type]": """Gets the sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. Returns ------- - GrantaServerApiSearchSortType + Union[GrantaServerApiSearchSortType, Unset_Type] The sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. """ return self._sort_type @sort_type.setter - def sort_type(self, sort_type: "Optional[GrantaServerApiSearchSortType]") -> None: + def sort_type( + self, sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]" + ) -> None: """Sets the sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. Parameters ---------- - sort_type: GrantaServerApiSearchSortType + sort_type: Union[GrantaServerApiSearchSortType, Unset_Type] The sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. """ + # Field is not nullable + if sort_type is None: + raise ValueError("Invalid value for 'sort_type', must not be 'None'") self._sort_type = sort_type @property @@ -166,12 +179,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRecordPropertySortCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -188,7 +205,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py index bbc5ddf9..329fa11f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -74,150 +74,154 @@ class GrantaServerApiSearchRecordReferenceCriterion(GrantaServerApiSearchCriteri def __init__( self, *, - database_key: "Optional[str]" = None, - record_guid: "Optional[str]" = None, - record_history_guid: "Optional[str]" = None, - record_history_identity: "Optional[int]" = None, - record_identity: "Optional[int]" = None, + database_key: "Union[str, None, Unset_Type]" = Unset, + record_guid: "Union[str, None, Unset_Type]" = Unset, + record_history_guid: "Union[str, None, Unset_Type]" = Unset, + record_history_identity: "Union[int, None, Unset_Type]" = Unset, + record_identity: "Union[int, None, Unset_Type]" = Unset, type: "str" = "reference", ) -> None: """GrantaServerApiSearchRecordReferenceCriterion - a model defined in Swagger Parameters ---------- - database_key: str, optional - record_guid: str, optional - record_history_guid: str, optional - record_history_identity: int, optional - record_identity: int, optional - type: str + database_key: str, optional + record_guid: str, optional + record_history_guid: str, optional + record_history_identity: int, optional + record_identity: int, optional + type: str """ super().__init__() - self._database_key = None - self._record_identity = None - self._record_history_identity = None - self._record_history_guid = None - self._record_guid = None - self._type: str = None # type: ignore[assignment] - - if database_key is not None: + self._database_key: Union[str, None, Unset_Type] = Unset + self._record_identity: Union[int, None, Unset_Type] = Unset + self._record_history_identity: Union[int, None, Unset_Type] = Unset + self._record_history_guid: Union[str, None, Unset_Type] = Unset + self._record_guid: Union[str, None, Unset_Type] = Unset + self._type: str + + if database_key is not Unset: self.database_key = database_key - if record_identity is not None: + if record_identity is not Unset: self.record_identity = record_identity - if record_history_identity is not None: + if record_history_identity is not Unset: self.record_history_identity = record_history_identity - if record_history_guid is not None: + if record_history_guid is not Unset: self.record_history_guid = record_history_guid - if record_guid is not None: + if record_guid is not Unset: self.record_guid = record_guid self.type = type @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiSearchRecordReferenceCriterion. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiSearchRecordReferenceCriterion. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiSearchRecordReferenceCriterion. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiSearchRecordReferenceCriterion. """ self._database_key = database_key @property - def record_identity(self) -> "Optional[int]": + def record_identity(self) -> "Union[int, None, Unset_Type]": """Gets the record_identity of this GrantaServerApiSearchRecordReferenceCriterion. Returns ------- - int + Union[int, None, Unset_Type] The record_identity of this GrantaServerApiSearchRecordReferenceCriterion. """ return self._record_identity @record_identity.setter - def record_identity(self, record_identity: "Optional[int]") -> None: + def record_identity(self, record_identity: "Union[int, None, Unset_Type]") -> None: """Sets the record_identity of this GrantaServerApiSearchRecordReferenceCriterion. Parameters ---------- - record_identity: int + record_identity: Union[int, None, Unset_Type] The record_identity of this GrantaServerApiSearchRecordReferenceCriterion. """ self._record_identity = record_identity @property - def record_history_identity(self) -> "Optional[int]": + def record_history_identity(self) -> "Union[int, None, Unset_Type]": """Gets the record_history_identity of this GrantaServerApiSearchRecordReferenceCriterion. Returns ------- - int + Union[int, None, Unset_Type] The record_history_identity of this GrantaServerApiSearchRecordReferenceCriterion. """ return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "Optional[int]") -> None: + def record_history_identity( + self, record_history_identity: "Union[int, None, Unset_Type]" + ) -> None: """Sets the record_history_identity of this GrantaServerApiSearchRecordReferenceCriterion. Parameters ---------- - record_history_identity: int + record_history_identity: Union[int, None, Unset_Type] The record_history_identity of this GrantaServerApiSearchRecordReferenceCriterion. """ self._record_history_identity = record_history_identity @property - def record_history_guid(self) -> "Optional[str]": + def record_history_guid(self) -> "Union[str, None, Unset_Type]": """Gets the record_history_guid of this GrantaServerApiSearchRecordReferenceCriterion. Returns ------- - str + Union[str, None, Unset_Type] The record_history_guid of this GrantaServerApiSearchRecordReferenceCriterion. """ return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "Optional[str]") -> None: + def record_history_guid( + self, record_history_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the record_history_guid of this GrantaServerApiSearchRecordReferenceCriterion. Parameters ---------- - record_history_guid: str + record_history_guid: Union[str, None, Unset_Type] The record_history_guid of this GrantaServerApiSearchRecordReferenceCriterion. """ self._record_history_guid = record_history_guid @property - def record_guid(self) -> "Optional[str]": + def record_guid(self) -> "Union[str, None, Unset_Type]": """Gets the record_guid of this GrantaServerApiSearchRecordReferenceCriterion. Returns ------- - str + Union[str, None, Unset_Type] The record_guid of this GrantaServerApiSearchRecordReferenceCriterion. """ return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "Optional[str]") -> None: + def record_guid(self, record_guid: "Union[str, None, Unset_Type]") -> None: """Sets the record_guid of this GrantaServerApiSearchRecordReferenceCriterion. Parameters ---------- - record_guid: str + record_guid: Union[str, None, Unset_Type] The record_guid of this GrantaServerApiSearchRecordReferenceCriterion. """ self._record_guid = record_guid @@ -242,12 +246,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRecordReferenceCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -264,7 +272,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py index 8f3060f0..089fb3fe 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -68,69 +68,69 @@ class GrantaServerApiSearchRecordSubsetCriterion(GrantaServerApiSearchCriterion) def __init__( self, *, - subset_guid: "Optional[str]" = None, - subset_identity: "Optional[int]" = None, + subset_guid: "Union[str, None, Unset_Type]" = Unset, + subset_identity: "Union[int, None, Unset_Type]" = Unset, type: "str" = "subset", ) -> None: """GrantaServerApiSearchRecordSubsetCriterion - a model defined in Swagger Parameters ---------- - subset_guid: str, optional - subset_identity: int, optional - type: str + subset_guid: str, optional + subset_identity: int, optional + type: str """ super().__init__() - self._subset_identity = None - self._subset_guid = None - self._type: str = None # type: ignore[assignment] + self._subset_identity: Union[int, None, Unset_Type] = Unset + self._subset_guid: Union[str, None, Unset_Type] = Unset + self._type: str - if subset_identity is not None: + if subset_identity is not Unset: self.subset_identity = subset_identity - if subset_guid is not None: + if subset_guid is not Unset: self.subset_guid = subset_guid self.type = type @property - def subset_identity(self) -> "Optional[int]": + def subset_identity(self) -> "Union[int, None, Unset_Type]": """Gets the subset_identity of this GrantaServerApiSearchRecordSubsetCriterion. Returns ------- - int + Union[int, None, Unset_Type] The subset_identity of this GrantaServerApiSearchRecordSubsetCriterion. """ return self._subset_identity @subset_identity.setter - def subset_identity(self, subset_identity: "Optional[int]") -> None: + def subset_identity(self, subset_identity: "Union[int, None, Unset_Type]") -> None: """Sets the subset_identity of this GrantaServerApiSearchRecordSubsetCriterion. Parameters ---------- - subset_identity: int + subset_identity: Union[int, None, Unset_Type] The subset_identity of this GrantaServerApiSearchRecordSubsetCriterion. """ self._subset_identity = subset_identity @property - def subset_guid(self) -> "Optional[str]": + def subset_guid(self) -> "Union[str, None, Unset_Type]": """Gets the subset_guid of this GrantaServerApiSearchRecordSubsetCriterion. Returns ------- - str + Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSearchRecordSubsetCriterion. """ return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "Optional[str]") -> None: + def subset_guid(self, subset_guid: "Union[str, None, Unset_Type]") -> None: """Sets the subset_guid of this GrantaServerApiSearchRecordSubsetCriterion. Parameters ---------- - subset_guid: str + subset_guid: Union[str, None, Unset_Type] The subset_guid of this GrantaServerApiSearchRecordSubsetCriterion. """ self._subset_guid = subset_guid @@ -155,12 +155,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRecordSubsetCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -177,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py index 5e935ba0..89047078 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( GrantaServerApiSearchSortCriterion, ) # noqa: F401 @@ -66,18 +66,18 @@ class GrantaServerApiSearchRelevanceSortCriterion(GrantaServerApiSearchSortCrite def __init__( self, *, - sort_direction: "Optional[GrantaServerApiSearchSortDirection]" = None, + sort_direction: "Union[GrantaServerApiSearchSortDirection, Unset_Type]" = Unset, type: "str" = "relevance", ) -> None: """GrantaServerApiSearchRelevanceSortCriterion - a model defined in Swagger Parameters ---------- - sort_direction: GrantaServerApiSearchSortDirection, optional - type: str + sort_direction: GrantaServerApiSearchSortDirection, optional + type: str """ super().__init__(sort_direction=sort_direction) - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -101,12 +101,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchRelevanceSortCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -123,7 +127,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py index 8a023455..d2fa0232 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchSearchRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchSearchRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,103 +69,118 @@ class GrantaServerApiSearchSearchRequest(ModelBase): # type: ignore[misc] def __init__( self, *, - criterion: "Optional[GrantaServerApiSearchCriterion]" = None, - paging_options: "Optional[GrantaServerApiSearchPagingOptions]" = None, - sort_criteria: "Optional[List[GrantaServerApiSearchSortCriterion]]" = None, + criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, + paging_options: "Union[GrantaServerApiSearchPagingOptions, Unset_Type]" = Unset, + sort_criteria: "Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchSearchRequest - a model defined in Swagger Parameters ---------- - criterion: GrantaServerApiSearchCriterion, optional - paging_options: GrantaServerApiSearchPagingOptions, optional - sort_criteria: List[GrantaServerApiSearchSortCriterion], optional + criterion: GrantaServerApiSearchCriterion, optional + paging_options: GrantaServerApiSearchPagingOptions, optional + sort_criteria: List[GrantaServerApiSearchSortCriterion], optional """ - self._criterion = None - self._sort_criteria = None - self._paging_options = None - - if criterion is not None: + self._criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset + self._sort_criteria: Union[ + List[GrantaServerApiSearchSortCriterion], None, Unset_Type + ] = Unset + self._paging_options: Union[GrantaServerApiSearchPagingOptions, Unset_Type] = ( + Unset + ) + + if criterion is not Unset: self.criterion = criterion - if sort_criteria is not None: + if sort_criteria is not Unset: self.sort_criteria = sort_criteria - if paging_options is not None: + if paging_options is not Unset: self.paging_options = paging_options @property - def criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": + def criterion(self) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": """Gets the criterion of this GrantaServerApiSearchSearchRequest. Returns ------- - GrantaServerApiSearchCriterion + Union[GrantaServerApiSearchCriterion, Unset_Type] The criterion of this GrantaServerApiSearchSearchRequest. """ return self._criterion @criterion.setter - def criterion(self, criterion: "Optional[GrantaServerApiSearchCriterion]") -> None: + def criterion( + self, criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" + ) -> None: """Sets the criterion of this GrantaServerApiSearchSearchRequest. Parameters ---------- - criterion: GrantaServerApiSearchCriterion + criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] The criterion of this GrantaServerApiSearchSearchRequest. """ + # Field is not nullable + if criterion is None: + raise ValueError("Invalid value for 'criterion', must not be 'None'") self._criterion = criterion @property - def sort_criteria(self) -> "Optional[List[GrantaServerApiSearchSortCriterion]]": + def sort_criteria( + self, + ) -> "Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type]": """Gets the sort_criteria of this GrantaServerApiSearchSearchRequest. An optional set of attribute based sort criteria. If none are provided, the results will be sorted in descending relevance order. Returns ------- - list[GrantaServerApiSearchSortCriterion] + Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type] The sort_criteria of this GrantaServerApiSearchSearchRequest. """ return self._sort_criteria @sort_criteria.setter def sort_criteria( - self, sort_criteria: "Optional[List[GrantaServerApiSearchSortCriterion]]" + self, + sort_criteria: "Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type]", ) -> None: """Sets the sort_criteria of this GrantaServerApiSearchSearchRequest. An optional set of attribute based sort criteria. If none are provided, the results will be sorted in descending relevance order. Parameters ---------- - sort_criteria: List[GrantaServerApiSearchSortCriterion] + sort_criteria: Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type] The sort_criteria of this GrantaServerApiSearchSearchRequest. """ self._sort_criteria = sort_criteria @property - def paging_options(self) -> "Optional[GrantaServerApiSearchPagingOptions]": + def paging_options(self) -> "Union[GrantaServerApiSearchPagingOptions, Unset_Type]": """Gets the paging_options of this GrantaServerApiSearchSearchRequest. Returns ------- - GrantaServerApiSearchPagingOptions + Union[GrantaServerApiSearchPagingOptions, Unset_Type] The paging_options of this GrantaServerApiSearchSearchRequest. """ return self._paging_options @paging_options.setter def paging_options( - self, paging_options: "Optional[GrantaServerApiSearchPagingOptions]" + self, paging_options: "Union[GrantaServerApiSearchPagingOptions, Unset_Type]" ) -> None: """Sets the paging_options of this GrantaServerApiSearchSearchRequest. Parameters ---------- - paging_options: GrantaServerApiSearchPagingOptions + paging_options: Union[GrantaServerApiSearchPagingOptions, Unset_Type] The paging_options of this GrantaServerApiSearchSearchRequest. """ + # Field is not nullable + if paging_options is None: + raise ValueError("Invalid value for 'paging_options', must not be 'None'") self._paging_options = paging_options @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -182,7 +197,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py index 676e278c..2cff643c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchSearchResponse(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchSearchResponse(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,101 +67,113 @@ class GrantaServerApiSearchSearchResponse(ModelBase): # type: ignore[misc] def __init__( self, *, - results: "Optional[List[GrantaServerApiSearchSearchResult]]" = None, - search_identifier: "Optional[str]" = None, - total_result_count: "Optional[int]" = None, + results: "Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type]" = Unset, + search_identifier: "Union[str, None, Unset_Type]" = Unset, + total_result_count: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchSearchResponse - a model defined in Swagger Parameters ---------- - results: List[GrantaServerApiSearchSearchResult], optional - search_identifier: str, optional - total_result_count: int, optional + results: List[GrantaServerApiSearchSearchResult], optional + search_identifier: str, optional + total_result_count: int, optional """ - self._search_identifier = None - self._total_result_count = None - self._results = None + self._search_identifier: Union[str, None, Unset_Type] = Unset + self._total_result_count: Union[int, Unset_Type] = Unset + self._results: Union[ + List[GrantaServerApiSearchSearchResult], None, Unset_Type + ] = Unset - if search_identifier is not None: + if search_identifier is not Unset: self.search_identifier = search_identifier - if total_result_count is not None: + if total_result_count is not Unset: self.total_result_count = total_result_count - if results is not None: + if results is not Unset: self.results = results @property - def search_identifier(self) -> "Optional[str]": + def search_identifier(self) -> "Union[str, None, Unset_Type]": """Gets the search_identifier of this GrantaServerApiSearchSearchResponse. If the search request had paging options specified, this will return an identifier that can be used to get the rest of the results Returns ------- - str + Union[str, None, Unset_Type] The search_identifier of this GrantaServerApiSearchSearchResponse. """ return self._search_identifier @search_identifier.setter - def search_identifier(self, search_identifier: "Optional[str]") -> None: + def search_identifier( + self, search_identifier: "Union[str, None, Unset_Type]" + ) -> None: """Sets the search_identifier of this GrantaServerApiSearchSearchResponse. If the search request had paging options specified, this will return an identifier that can be used to get the rest of the results Parameters ---------- - search_identifier: str + search_identifier: Union[str, None, Unset_Type] The search_identifier of this GrantaServerApiSearchSearchResponse. """ self._search_identifier = search_identifier @property - def total_result_count(self) -> "Optional[int]": + def total_result_count(self) -> "Union[int, Unset_Type]": """Gets the total_result_count of this GrantaServerApiSearchSearchResponse. Returns ------- - int + Union[int, Unset_Type] The total_result_count of this GrantaServerApiSearchSearchResponse. """ return self._total_result_count @total_result_count.setter - def total_result_count(self, total_result_count: "Optional[int]") -> None: + def total_result_count(self, total_result_count: "Union[int, Unset_Type]") -> None: """Sets the total_result_count of this GrantaServerApiSearchSearchResponse. Parameters ---------- - total_result_count: int + total_result_count: Union[int, Unset_Type] The total_result_count of this GrantaServerApiSearchSearchResponse. """ + # Field is not nullable + if total_result_count is None: + raise ValueError( + "Invalid value for 'total_result_count', must not be 'None'" + ) self._total_result_count = total_result_count @property - def results(self) -> "Optional[List[GrantaServerApiSearchSearchResult]]": + def results( + self, + ) -> "Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type]": """Gets the results of this GrantaServerApiSearchSearchResponse. Returns ------- - list[GrantaServerApiSearchSearchResult] + Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type] The results of this GrantaServerApiSearchSearchResponse. """ return self._results @results.setter def results( - self, results: "Optional[List[GrantaServerApiSearchSearchResult]]" + self, + results: "Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type]", ) -> None: """Sets the results of this GrantaServerApiSearchSearchResponse. Parameters ---------- - results: List[GrantaServerApiSearchSearchResult] + results: Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type] The results of this GrantaServerApiSearchSearchResponse. """ self._results = results @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -178,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py index 15ba1c9e..0f74e027 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchSearchResult(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchSearchResult(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -96,477 +96,510 @@ class GrantaServerApiSearchSearchResult(ModelBase): # type: ignore[misc] def __init__( self, *, - cubic_spline_status: "Optional[str]" = None, - database_key: "Optional[str]" = None, - parent_identity: "Optional[int]" = None, - record_color: "Optional[str]" = None, - record_guid: "Optional[str]" = None, - record_history_guid: "Optional[str]" = None, - record_history_identity: "Optional[int]" = None, - record_identity: "Optional[int]" = None, - record_name: "Optional[str]" = None, - score: "Optional[float]" = None, - sorting_value: "Optional[GrantaServerApiSearchSortingValue]" = None, - table_guid: "Optional[str]" = None, - table_identity: "Optional[int]" = None, - tree_name: "Optional[str]" = None, - type: "Optional[GrantaServerApiRecordType]" = None, - version_control_state: "Optional[str]" = None, - version_number: "Optional[int]" = None, + cubic_spline_status: "Union[str, None, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + parent_identity: "Union[int, None, Unset_Type]" = Unset, + record_color: "Union[str, None, Unset_Type]" = Unset, + record_guid: "Union[str, None, Unset_Type]" = Unset, + record_history_guid: "Union[str, None, Unset_Type]" = Unset, + record_history_identity: "Union[int, Unset_Type]" = Unset, + record_identity: "Union[int, Unset_Type]" = Unset, + record_name: "Union[str, None, Unset_Type]" = Unset, + score: "Union[float, None, Unset_Type]" = Unset, + sorting_value: "Union[GrantaServerApiSearchSortingValue, Unset_Type]" = Unset, + table_guid: "Union[str, Unset_Type]" = Unset, + table_identity: "Union[int, Unset_Type]" = Unset, + tree_name: "Union[str, None, Unset_Type]" = Unset, + type: "Union[GrantaServerApiRecordType, Unset_Type]" = Unset, + version_control_state: "Union[str, None, Unset_Type]" = Unset, + version_number: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchSearchResult - a model defined in Swagger Parameters ---------- - cubic_spline_status: str, optional - database_key: str, optional - parent_identity: int, optional - record_color: str, optional - record_guid: str, optional - record_history_guid: str, optional - record_history_identity: int, optional - record_identity: int, optional - record_name: str, optional - score: float, optional - sorting_value: GrantaServerApiSearchSortingValue, optional - table_guid: str, optional - table_identity: int, optional - tree_name: str, optional - type: GrantaServerApiRecordType, optional - version_control_state: str, optional - version_number: int, optional - """ - self._database_key = None - self._record_history_identity = None - self._record_identity = None - self._record_history_guid = None - self._record_guid = None - self._record_name = None - self._tree_name = None - self._record_color = None - self._table_identity = None - self._table_guid = None - self._cubic_spline_status = None - self._version_control_state = None - self._version_number = None - self._parent_identity = None - self._type = None - self._score = None - self._sorting_value = None - - if database_key is not None: + cubic_spline_status: str, optional + database_key: str, optional + parent_identity: int, optional + record_color: str, optional + record_guid: str, optional + record_history_guid: str, optional + record_history_identity: int, optional + record_identity: int, optional + record_name: str, optional + score: float, optional + sorting_value: GrantaServerApiSearchSortingValue, optional + table_guid: str, optional + table_identity: int, optional + tree_name: str, optional + type: GrantaServerApiRecordType, optional + version_control_state: str, optional + version_number: int, optional + """ + self._database_key: Union[str, None, Unset_Type] = Unset + self._record_history_identity: Union[int, Unset_Type] = Unset + self._record_identity: Union[int, Unset_Type] = Unset + self._record_history_guid: Union[str, None, Unset_Type] = Unset + self._record_guid: Union[str, None, Unset_Type] = Unset + self._record_name: Union[str, None, Unset_Type] = Unset + self._tree_name: Union[str, None, Unset_Type] = Unset + self._record_color: Union[str, None, Unset_Type] = Unset + self._table_identity: Union[int, Unset_Type] = Unset + self._table_guid: Union[str, Unset_Type] = Unset + self._cubic_spline_status: Union[str, None, Unset_Type] = Unset + self._version_control_state: Union[str, None, Unset_Type] = Unset + self._version_number: Union[int, Unset_Type] = Unset + self._parent_identity: Union[int, None, Unset_Type] = Unset + self._type: Union[GrantaServerApiRecordType, Unset_Type] = Unset + self._score: Union[float, None, Unset_Type] = Unset + self._sorting_value: Union[GrantaServerApiSearchSortingValue, Unset_Type] = ( + Unset + ) + + if database_key is not Unset: self.database_key = database_key - if record_history_identity is not None: + if record_history_identity is not Unset: self.record_history_identity = record_history_identity - if record_identity is not None: + if record_identity is not Unset: self.record_identity = record_identity - if record_history_guid is not None: + if record_history_guid is not Unset: self.record_history_guid = record_history_guid - if record_guid is not None: + if record_guid is not Unset: self.record_guid = record_guid - if record_name is not None: + if record_name is not Unset: self.record_name = record_name - if tree_name is not None: + if tree_name is not Unset: self.tree_name = tree_name - if record_color is not None: + if record_color is not Unset: self.record_color = record_color - if table_identity is not None: + if table_identity is not Unset: self.table_identity = table_identity - if table_guid is not None: + if table_guid is not Unset: self.table_guid = table_guid - if cubic_spline_status is not None: + if cubic_spline_status is not Unset: self.cubic_spline_status = cubic_spline_status - if version_control_state is not None: + if version_control_state is not Unset: self.version_control_state = version_control_state - if version_number is not None: + if version_number is not Unset: self.version_number = version_number - if parent_identity is not None: + if parent_identity is not Unset: self.parent_identity = parent_identity - if type is not None: + if type is not Unset: self.type = type - if score is not None: + if score is not Unset: self.score = score - if sorting_value is not None: + if sorting_value is not Unset: self.sorting_value = sorting_value @property - def database_key(self) -> "Optional[str]": + def database_key(self) -> "Union[str, None, Unset_Type]": """Gets the database_key of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The database_key of this GrantaServerApiSearchSearchResult. """ return self._database_key @database_key.setter - def database_key(self, database_key: "Optional[str]") -> None: + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: """Sets the database_key of this GrantaServerApiSearchSearchResult. Parameters ---------- - database_key: str + database_key: Union[str, None, Unset_Type] The database_key of this GrantaServerApiSearchSearchResult. """ self._database_key = database_key @property - def record_history_identity(self) -> "Optional[int]": + def record_history_identity(self) -> "Union[int, Unset_Type]": """Gets the record_history_identity of this GrantaServerApiSearchSearchResult. Returns ------- - int + Union[int, Unset_Type] The record_history_identity of this GrantaServerApiSearchSearchResult. """ return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "Optional[int]") -> None: + def record_history_identity( + self, record_history_identity: "Union[int, Unset_Type]" + ) -> None: """Sets the record_history_identity of this GrantaServerApiSearchSearchResult. Parameters ---------- - record_history_identity: int + record_history_identity: Union[int, Unset_Type] The record_history_identity of this GrantaServerApiSearchSearchResult. """ + # 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 @property - def record_identity(self) -> "Optional[int]": + def record_identity(self) -> "Union[int, Unset_Type]": """Gets the record_identity of this GrantaServerApiSearchSearchResult. Returns ------- - int + Union[int, Unset_Type] The record_identity of this GrantaServerApiSearchSearchResult. """ return self._record_identity @record_identity.setter - def record_identity(self, record_identity: "Optional[int]") -> None: + def record_identity(self, record_identity: "Union[int, Unset_Type]") -> None: """Sets the record_identity of this GrantaServerApiSearchSearchResult. Parameters ---------- - record_identity: int + record_identity: Union[int, Unset_Type] The record_identity of this GrantaServerApiSearchSearchResult. """ + # Field is not nullable + if record_identity is None: + raise ValueError("Invalid value for 'record_identity', must not be 'None'") self._record_identity = record_identity @property - def record_history_guid(self) -> "Optional[str]": + def record_history_guid(self) -> "Union[str, None, Unset_Type]": """Gets the record_history_guid of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The record_history_guid of this GrantaServerApiSearchSearchResult. """ return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "Optional[str]") -> None: + def record_history_guid( + self, record_history_guid: "Union[str, None, Unset_Type]" + ) -> None: """Sets the record_history_guid of this GrantaServerApiSearchSearchResult. Parameters ---------- - record_history_guid: str + record_history_guid: Union[str, None, Unset_Type] The record_history_guid of this GrantaServerApiSearchSearchResult. """ self._record_history_guid = record_history_guid @property - def record_guid(self) -> "Optional[str]": + def record_guid(self) -> "Union[str, None, Unset_Type]": """Gets the record_guid of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The record_guid of this GrantaServerApiSearchSearchResult. """ return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "Optional[str]") -> None: + def record_guid(self, record_guid: "Union[str, None, Unset_Type]") -> None: """Sets the record_guid of this GrantaServerApiSearchSearchResult. Parameters ---------- - record_guid: str + record_guid: Union[str, None, Unset_Type] The record_guid of this GrantaServerApiSearchSearchResult. """ self._record_guid = record_guid @property - def record_name(self) -> "Optional[str]": + def record_name(self) -> "Union[str, None, Unset_Type]": """Gets the record_name of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The record_name of this GrantaServerApiSearchSearchResult. """ return self._record_name @record_name.setter - def record_name(self, record_name: "Optional[str]") -> None: + def record_name(self, record_name: "Union[str, None, Unset_Type]") -> None: """Sets the record_name of this GrantaServerApiSearchSearchResult. Parameters ---------- - record_name: str + record_name: Union[str, None, Unset_Type] The record_name of this GrantaServerApiSearchSearchResult. """ self._record_name = record_name @property - def tree_name(self) -> "Optional[str]": + def tree_name(self) -> "Union[str, None, Unset_Type]": """Gets the tree_name of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The tree_name of this GrantaServerApiSearchSearchResult. """ return self._tree_name @tree_name.setter - def tree_name(self, tree_name: "Optional[str]") -> None: + def tree_name(self, tree_name: "Union[str, None, Unset_Type]") -> None: """Sets the tree_name of this GrantaServerApiSearchSearchResult. Parameters ---------- - tree_name: str + tree_name: Union[str, None, Unset_Type] The tree_name of this GrantaServerApiSearchSearchResult. """ self._tree_name = tree_name @property - def record_color(self) -> "Optional[str]": + def record_color(self) -> "Union[str, None, Unset_Type]": """Gets the record_color of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The record_color of this GrantaServerApiSearchSearchResult. """ return self._record_color @record_color.setter - def record_color(self, record_color: "Optional[str]") -> None: + def record_color(self, record_color: "Union[str, None, Unset_Type]") -> None: """Sets the record_color of this GrantaServerApiSearchSearchResult. Parameters ---------- - record_color: str + record_color: Union[str, None, Unset_Type] The record_color of this GrantaServerApiSearchSearchResult. """ self._record_color = record_color @property - def table_identity(self) -> "Optional[int]": + def table_identity(self) -> "Union[int, Unset_Type]": """Gets the table_identity of this GrantaServerApiSearchSearchResult. Returns ------- - int + Union[int, Unset_Type] The table_identity of this GrantaServerApiSearchSearchResult. """ return self._table_identity @table_identity.setter - def table_identity(self, table_identity: "Optional[int]") -> None: + def table_identity(self, table_identity: "Union[int, Unset_Type]") -> None: """Sets the table_identity of this GrantaServerApiSearchSearchResult. Parameters ---------- - table_identity: int + table_identity: Union[int, Unset_Type] The table_identity of this GrantaServerApiSearchSearchResult. """ + # Field is not nullable + if table_identity is None: + raise ValueError("Invalid value for 'table_identity', must not be 'None'") self._table_identity = table_identity @property - def table_guid(self) -> "Optional[str]": + def table_guid(self) -> "Union[str, Unset_Type]": """Gets the table_guid of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, Unset_Type] The table_guid of this GrantaServerApiSearchSearchResult. """ return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "Optional[str]") -> None: + def table_guid(self, table_guid: "Union[str, Unset_Type]") -> None: """Sets the table_guid of this GrantaServerApiSearchSearchResult. Parameters ---------- - table_guid: str + table_guid: Union[str, Unset_Type] The table_guid of this GrantaServerApiSearchSearchResult. """ + # 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 cubic_spline_status(self) -> "Optional[str]": + def cubic_spline_status(self) -> "Union[str, None, Unset_Type]": """Gets the cubic_spline_status of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The cubic_spline_status of this GrantaServerApiSearchSearchResult. """ return self._cubic_spline_status @cubic_spline_status.setter - def cubic_spline_status(self, cubic_spline_status: "Optional[str]") -> None: + def cubic_spline_status( + self, cubic_spline_status: "Union[str, None, Unset_Type]" + ) -> None: """Sets the cubic_spline_status of this GrantaServerApiSearchSearchResult. Parameters ---------- - cubic_spline_status: str + cubic_spline_status: Union[str, None, Unset_Type] The cubic_spline_status of this GrantaServerApiSearchSearchResult. """ self._cubic_spline_status = cubic_spline_status @property - def version_control_state(self) -> "Optional[str]": + def version_control_state(self) -> "Union[str, None, Unset_Type]": """Gets the version_control_state of this GrantaServerApiSearchSearchResult. Returns ------- - str + Union[str, None, Unset_Type] The version_control_state of this GrantaServerApiSearchSearchResult. """ return self._version_control_state @version_control_state.setter - def version_control_state(self, version_control_state: "Optional[str]") -> None: + def version_control_state( + self, version_control_state: "Union[str, None, Unset_Type]" + ) -> None: """Sets the version_control_state of this GrantaServerApiSearchSearchResult. Parameters ---------- - version_control_state: str + version_control_state: Union[str, None, Unset_Type] The version_control_state of this GrantaServerApiSearchSearchResult. """ self._version_control_state = version_control_state @property - def version_number(self) -> "Optional[int]": + def version_number(self) -> "Union[int, Unset_Type]": """Gets the version_number of this GrantaServerApiSearchSearchResult. Returns ------- - int + Union[int, Unset_Type] The version_number of this GrantaServerApiSearchSearchResult. """ return self._version_number @version_number.setter - def version_number(self, version_number: "Optional[int]") -> None: + def version_number(self, version_number: "Union[int, Unset_Type]") -> None: """Sets the version_number of this GrantaServerApiSearchSearchResult. Parameters ---------- - version_number: int + version_number: Union[int, Unset_Type] The version_number of this GrantaServerApiSearchSearchResult. """ + # Field is not nullable + if version_number is None: + raise ValueError("Invalid value for 'version_number', must not be 'None'") self._version_number = version_number @property - def parent_identity(self) -> "Optional[int]": + def parent_identity(self) -> "Union[int, None, Unset_Type]": """Gets the parent_identity of this GrantaServerApiSearchSearchResult. Returns ------- - int + Union[int, None, Unset_Type] The parent_identity of this GrantaServerApiSearchSearchResult. """ return self._parent_identity @parent_identity.setter - def parent_identity(self, parent_identity: "Optional[int]") -> None: + def parent_identity(self, parent_identity: "Union[int, None, Unset_Type]") -> None: """Sets the parent_identity of this GrantaServerApiSearchSearchResult. Parameters ---------- - parent_identity: int + parent_identity: Union[int, None, Unset_Type] The parent_identity of this GrantaServerApiSearchSearchResult. """ self._parent_identity = parent_identity @property - def type(self) -> "Optional[GrantaServerApiRecordType]": + def type(self) -> "Union[GrantaServerApiRecordType, Unset_Type]": """Gets the type of this GrantaServerApiSearchSearchResult. Returns ------- - GrantaServerApiRecordType + Union[GrantaServerApiRecordType, Unset_Type] The type of this GrantaServerApiSearchSearchResult. """ return self._type @type.setter - def type(self, type: "Optional[GrantaServerApiRecordType]") -> None: + def type(self, type: "Union[GrantaServerApiRecordType, Unset_Type]") -> None: """Sets the type of this GrantaServerApiSearchSearchResult. Parameters ---------- - type: GrantaServerApiRecordType + type: Union[GrantaServerApiRecordType, Unset_Type] The type of this GrantaServerApiSearchSearchResult. """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") self._type = type @property - def score(self) -> "Optional[float]": + def score(self) -> "Union[float, None, Unset_Type]": """Gets the score of this GrantaServerApiSearchSearchResult. Returns ------- - float + Union[float, None, Unset_Type] The score of this GrantaServerApiSearchSearchResult. """ return self._score @score.setter - def score(self, score: "Optional[float]") -> None: + def score(self, score: "Union[float, None, Unset_Type]") -> None: """Sets the score of this GrantaServerApiSearchSearchResult. Parameters ---------- - score: float + score: Union[float, None, Unset_Type] The score of this GrantaServerApiSearchSearchResult. """ self._score = score @property - def sorting_value(self) -> "Optional[GrantaServerApiSearchSortingValue]": + def sorting_value(self) -> "Union[GrantaServerApiSearchSortingValue, Unset_Type]": """Gets the sorting_value of this GrantaServerApiSearchSearchResult. Returns ------- - GrantaServerApiSearchSortingValue + Union[GrantaServerApiSearchSortingValue, Unset_Type] The sorting_value of this GrantaServerApiSearchSearchResult. """ return self._sorting_value @sorting_value.setter def sorting_value( - self, sorting_value: "Optional[GrantaServerApiSearchSortingValue]" + self, sorting_value: "Union[GrantaServerApiSearchSortingValue, Unset_Type]" ) -> None: """Sets the sorting_value of this GrantaServerApiSearchSearchResult. Parameters ---------- - sorting_value: GrantaServerApiSearchSortingValue + sorting_value: Union[GrantaServerApiSearchSortingValue, Unset_Type] The sorting_value of this GrantaServerApiSearchSearchResult. """ + # Field is not nullable + if sorting_value is None: + raise ValueError("Invalid value for 'sorting_value', must not be 'None'") self._sorting_value = sorting_value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -583,7 +616,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py index 1d9678c3..f25e334b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchSearchResultsRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchSearchResultsRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,45 +61,48 @@ class GrantaServerApiSearchSearchResultsRequest(ModelBase): # type: ignore[misc def __init__( self, *, - page_number: "Optional[int]" = None, + page_number: "Union[int, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchSearchResultsRequest - a model defined in Swagger Parameters ---------- - page_number: int, optional + page_number: int, optional """ - self._page_number = None + self._page_number: Union[int, Unset_Type] = Unset - if page_number is not None: + if page_number is not Unset: self.page_number = page_number @property - def page_number(self) -> "Optional[int]": + def page_number(self) -> "Union[int, Unset_Type]": """Gets the page_number of this GrantaServerApiSearchSearchResultsRequest. The (1-indexed) number of the page to return from a search The size of the page was determined by the original query Returns ------- - int + Union[int, Unset_Type] The page_number of this GrantaServerApiSearchSearchResultsRequest. """ return self._page_number @page_number.setter - def page_number(self, page_number: "Optional[int]") -> None: + def page_number(self, page_number: "Union[int, Unset_Type]") -> None: """Sets the page_number of this GrantaServerApiSearchSearchResultsRequest. The (1-indexed) number of the page to return from a search The size of the page was determined by the original query Parameters ---------- - page_number: int + page_number: Union[int, Unset_Type] The page_number of this GrantaServerApiSearchSearchResultsRequest. """ + # Field is not nullable + if page_number is None: + raise ValueError("Invalid value for 'page_number', must not be 'None'") self._page_number = page_number @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -116,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py index 1798e732..d191ee32 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( GrantaServerApiSearchDatumCriterion, ) # noqa: F401 @@ -70,47 +70,49 @@ class GrantaServerApiSearchShortTextDatumCriterion(GrantaServerApiSearchDatumCri def __init__( self, *, - text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" = None, + text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]" = Unset, type: "str" = "shortText", - value: "Optional[str]" = None, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchShortTextDatumCriterion - a model defined in Swagger Parameters ---------- - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional - type: str - value: str, optional + text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._text_match_behaviour = None - self._type: str = None # type: ignore[assignment] + self._value: Union[str, None, Unset_Type] = Unset + self._text_match_behaviour: Union[ + GrantaServerApiSearchTextMatchBehaviour, Unset_Type + ] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value - if text_match_behaviour is not None: + if text_match_behaviour is not Unset: self.text_match_behaviour = text_match_behaviour self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSearchShortTextDatumCriterion. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSearchShortTextDatumCriterion. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchShortTextDatumCriterion. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSearchShortTextDatumCriterion. """ self._value = value @@ -118,27 +120,33 @@ def value(self, value: "Optional[str]") -> None: @property def text_match_behaviour( self, - ) -> "Optional[GrantaServerApiSearchTextMatchBehaviour]": + ) -> "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]": """Gets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. Returns ------- - GrantaServerApiSearchTextMatchBehaviour + Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] The text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. """ return self._text_match_behaviour @text_match_behaviour.setter def text_match_behaviour( - self, text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" + self, + text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]", ) -> None: """Sets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. Parameters ---------- - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour + text_match_behaviour: Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] The text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. """ + # Field is not nullable + if text_match_behaviour is None: + raise ValueError( + "Invalid value for 'text_match_behaviour', must not be 'None'" + ) self._text_match_behaviour = text_match_behaviour @property @@ -161,12 +169,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchShortTextDatumCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -183,7 +195,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py index 6aad4e4e..bf379b28 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( GrantaServerApiSearchDatumExistsCriterion, ) # noqa: F401 @@ -72,10 +72,10 @@ def __init__( Parameters ---------- - type: str + type: str """ super().__init__() - self._type: str = None # type: ignore[assignment] + self._type: str self.type = type @@ -99,12 +99,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchSimpleDatumExistsCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -121,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py index 6d563dc0..ff9e0586 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchSortCriterion(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchSortCriterion(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -71,45 +71,50 @@ class GrantaServerApiSearchSortCriterion(ModelBase): # type: ignore[misc] def __init__( self, *, - sort_direction: "Optional[GrantaServerApiSearchSortDirection]" = None, + sort_direction: "Union[GrantaServerApiSearchSortDirection, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchSortCriterion - a model defined in Swagger Parameters ---------- - sort_direction: GrantaServerApiSearchSortDirection, optional + sort_direction: GrantaServerApiSearchSortDirection, optional """ - self._sort_direction = None + self._sort_direction: Union[GrantaServerApiSearchSortDirection, Unset_Type] = ( + Unset + ) - if sort_direction is not None: + if sort_direction is not Unset: self.sort_direction = sort_direction @property - def sort_direction(self) -> "Optional[GrantaServerApiSearchSortDirection]": + def sort_direction(self) -> "Union[GrantaServerApiSearchSortDirection, Unset_Type]": """Gets the sort_direction of this GrantaServerApiSearchSortCriterion. Returns ------- - GrantaServerApiSearchSortDirection + Union[GrantaServerApiSearchSortDirection, Unset_Type] The sort_direction of this GrantaServerApiSearchSortCriterion. """ return self._sort_direction @sort_direction.setter def sort_direction( - self, sort_direction: "Optional[GrantaServerApiSearchSortDirection]" + self, sort_direction: "Union[GrantaServerApiSearchSortDirection, Unset_Type]" ) -> None: """Sets the sort_direction of this GrantaServerApiSearchSortCriterion. Parameters ---------- - sort_direction: GrantaServerApiSearchSortDirection + sort_direction: Union[GrantaServerApiSearchSortDirection, Unset_Type] The sort_direction of this GrantaServerApiSearchSortCriterion. """ + # Field is not nullable + if sort_direction is None: + raise ValueError("Invalid value for 'sort_direction', must not be 'None'") self._sort_direction = sort_direction @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -131,7 +136,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py index 6ada3e7f..abf6b136 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSearchSortingValue(ModelBase): # type: ignore[misc] +class GrantaServerApiSearchSortingValue(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,7 +68,7 @@ def __init__( """GrantaServerApiSearchSortingValue - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -90,7 +90,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py index b0e20ccc..a1c4493b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( GrantaServerApiSearchSortingValue, ) # noqa: F401 @@ -67,41 +67,41 @@ def __init__( self, *, type: "str" = "text", - value: "Optional[str]" = None, + value: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchStringSortingValue - a model defined in Swagger Parameters ---------- - type: str - value: str, optional + type: str + value: str, optional """ super().__init__() - self._value = None - self._type: str = None # type: ignore[assignment] + self._value: Union[str, None, Unset_Type] = Unset + self._type: str - if value is not None: + if value is not Unset: self.value = value self.type = type @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, None, Unset_Type]": """Gets the value of this GrantaServerApiSearchStringSortingValue. Returns ------- - str + Union[str, None, Unset_Type] The value of this GrantaServerApiSearchStringSortingValue. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, None, Unset_Type]") -> None: """Sets the value of this GrantaServerApiSearchStringSortingValue. Parameters ---------- - value: str + value: Union[str, None, Unset_Type] The value of this GrantaServerApiSearchStringSortingValue. """ self._value = value @@ -126,12 +126,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchStringSortingValue. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -148,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py index f5cbdf36..c76e2d5c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( GrantaServerApiSearchCriterion, ) # noqa: F401 @@ -70,47 +70,49 @@ class GrantaServerApiSearchTabularLinkingValueCriterion(GrantaServerApiSearchCri def __init__( self, *, - linking_value_match_behaviour: "Optional[GrantaServerApiSearchLinkingValueMatchBehaviour]" = None, + linking_value_match_behaviour: "Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type]" = Unset, type: "str" = "tabularLinkingValue", - values: "Optional[List[str]]" = None, + values: "Union[List[str], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSearchTabularLinkingValueCriterion - a model defined in Swagger Parameters ---------- - linking_value_match_behaviour: GrantaServerApiSearchLinkingValueMatchBehaviour, optional - type: str - values: List[str], optional + linking_value_match_behaviour: GrantaServerApiSearchLinkingValueMatchBehaviour, optional + type: str + values: List[str], optional """ super().__init__() - self._values = None - self._linking_value_match_behaviour = None - self._type: str = None # type: ignore[assignment] + self._values: Union[List[str], None, Unset_Type] = Unset + self._linking_value_match_behaviour: Union[ + GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type + ] = Unset + self._type: str - if values is not None: + if values is not Unset: self.values = values - if linking_value_match_behaviour is not None: + if linking_value_match_behaviour is not Unset: self.linking_value_match_behaviour = linking_value_match_behaviour self.type = type @property - def values(self) -> "Optional[List[str]]": + def values(self) -> "Union[List[str], None, Unset_Type]": """Gets the values of this GrantaServerApiSearchTabularLinkingValueCriterion. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The values of this GrantaServerApiSearchTabularLinkingValueCriterion. """ return self._values @values.setter - def values(self, values: "Optional[List[str]]") -> None: + def values(self, values: "Union[List[str], None, Unset_Type]") -> None: """Sets the values of this GrantaServerApiSearchTabularLinkingValueCriterion. Parameters ---------- - values: List[str] + values: Union[List[str], None, Unset_Type] The values of this GrantaServerApiSearchTabularLinkingValueCriterion. """ self._values = values @@ -118,12 +120,12 @@ def values(self, values: "Optional[List[str]]") -> None: @property def linking_value_match_behaviour( self, - ) -> "Optional[GrantaServerApiSearchLinkingValueMatchBehaviour]": + ) -> "Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type]": """Gets the linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. Returns ------- - GrantaServerApiSearchLinkingValueMatchBehaviour + Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type] The linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. """ return self._linking_value_match_behaviour @@ -131,15 +133,20 @@ def linking_value_match_behaviour( @linking_value_match_behaviour.setter def linking_value_match_behaviour( self, - linking_value_match_behaviour: "Optional[GrantaServerApiSearchLinkingValueMatchBehaviour]", + linking_value_match_behaviour: "Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type]", ) -> None: """Sets the linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. Parameters ---------- - linking_value_match_behaviour: GrantaServerApiSearchLinkingValueMatchBehaviour + linking_value_match_behaviour: Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type] The linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. """ + # Field is not nullable + if linking_value_match_behaviour is None: + raise ValueError( + "Invalid value for 'linking_value_match_behaviour', must not be 'None'" + ) self._linking_value_match_behaviour = linking_value_match_behaviour @property @@ -162,12 +169,16 @@ def type(self, type: "str") -> None: type: str The type of this GrantaServerApiSearchTabularLinkingValueCriterion. """ + # Field is not nullable if type is None: raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") self._type = type @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -184,7 +195,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py index 4e0d5544..c654c0b4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSelectionSearchesCreateSearchRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiSelectionSearchesCreateSearchRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,72 +65,79 @@ class GrantaServerApiSelectionSearchesCreateSearchRequest(ModelBase): # type: i def __init__( self, *, - detail: "Optional[GrantaServerApiSelectionSearchesSearchDetail]" = None, - search_config: "Optional[str]" = None, + detail: "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]" = Unset, + search_config: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSelectionSearchesCreateSearchRequest - a model defined in Swagger Parameters ---------- - detail: GrantaServerApiSelectionSearchesSearchDetail, optional - search_config: str, optional + detail: GrantaServerApiSelectionSearchesSearchDetail, optional + search_config: str, optional """ - self._search_config = None - self._detail = None + self._search_config: Union[str, None, Unset_Type] = Unset + self._detail: Union[ + GrantaServerApiSelectionSearchesSearchDetail, Unset_Type + ] = Unset - if search_config is not None: + if search_config is not Unset: self.search_config = search_config - if detail is not None: + if detail is not Unset: self.detail = detail @property - def search_config(self) -> "Optional[str]": + def search_config(self) -> "Union[str, None, Unset_Type]": """Gets the search_config of this GrantaServerApiSelectionSearchesCreateSearchRequest. Returns ------- - str + Union[str, None, Unset_Type] The search_config of this GrantaServerApiSelectionSearchesCreateSearchRequest. """ return self._search_config @search_config.setter - def search_config(self, search_config: "Optional[str]") -> None: + def search_config(self, search_config: "Union[str, None, Unset_Type]") -> None: """Sets the search_config of this GrantaServerApiSelectionSearchesCreateSearchRequest. Parameters ---------- - search_config: str + search_config: Union[str, None, Unset_Type] The search_config of this GrantaServerApiSelectionSearchesCreateSearchRequest. """ self._search_config = search_config @property - def detail(self) -> "Optional[GrantaServerApiSelectionSearchesSearchDetail]": + def detail( + self, + ) -> "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]": """Gets the detail of this GrantaServerApiSelectionSearchesCreateSearchRequest. Returns ------- - GrantaServerApiSelectionSearchesSearchDetail + Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type] The detail of this GrantaServerApiSelectionSearchesCreateSearchRequest. """ return self._detail @detail.setter def detail( - self, detail: "Optional[GrantaServerApiSelectionSearchesSearchDetail]" + self, detail: "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]" ) -> None: """Sets the detail of this GrantaServerApiSelectionSearchesCreateSearchRequest. Parameters ---------- - detail: GrantaServerApiSelectionSearchesSearchDetail + detail: Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type] The detail of this GrantaServerApiSelectionSearchesCreateSearchRequest. """ + # Field is not nullable + if detail is None: + raise ValueError("Invalid value for 'detail', must not be 'None'") self._detail = detail @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py index 32f90cce..8db66747 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSelectionSearchesFindSearchRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiSelectionSearchesFindSearchRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,43 +61,43 @@ class GrantaServerApiSelectionSearchesFindSearchRequest(ModelBase): # type: ign def __init__( self, *, - name_contains: "Optional[str]" = None, + name_contains: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSelectionSearchesFindSearchRequest - a model defined in Swagger Parameters ---------- - name_contains: str, optional + name_contains: str, optional """ - self._name_contains = None + self._name_contains: Union[str, None, Unset_Type] = Unset - if name_contains is not None: + if name_contains is not Unset: self.name_contains = name_contains @property - def name_contains(self) -> "Optional[str]": + def name_contains(self) -> "Union[str, None, Unset_Type]": """Gets the name_contains of this GrantaServerApiSelectionSearchesFindSearchRequest. Returns ------- - str + Union[str, None, Unset_Type] The name_contains of this GrantaServerApiSelectionSearchesFindSearchRequest. """ return self._name_contains @name_contains.setter - def name_contains(self, name_contains: "Optional[str]") -> None: + def name_contains(self, name_contains: "Union[str, None, Unset_Type]") -> None: """Sets the name_contains of this GrantaServerApiSelectionSearchesFindSearchRequest. Parameters ---------- - name_contains: str + name_contains: Union[str, None, Unset_Type] The name_contains of this GrantaServerApiSelectionSearchesFindSearchRequest. """ self._name_contains = name_contains @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -114,7 +114,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py index d22cce81..593fcc7c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSelectionSearchesSaveSearchRequest(ModelBase): # type: ignore[misc] +class GrantaServerApiSelectionSearchesSaveSearchRequest(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,72 +65,79 @@ class GrantaServerApiSelectionSearchesSaveSearchRequest(ModelBase): # type: ign def __init__( self, *, - detail: "Optional[GrantaServerApiSelectionSearchesSearchDetail]" = None, - search_config: "Optional[str]" = None, + detail: "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]" = Unset, + search_config: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSelectionSearchesSaveSearchRequest - a model defined in Swagger Parameters ---------- - detail: GrantaServerApiSelectionSearchesSearchDetail, optional - search_config: str, optional + detail: GrantaServerApiSelectionSearchesSearchDetail, optional + search_config: str, optional """ - self._search_config = None - self._detail = None + self._search_config: Union[str, None, Unset_Type] = Unset + self._detail: Union[ + GrantaServerApiSelectionSearchesSearchDetail, Unset_Type + ] = Unset - if search_config is not None: + if search_config is not Unset: self.search_config = search_config - if detail is not None: + if detail is not Unset: self.detail = detail @property - def search_config(self) -> "Optional[str]": + def search_config(self) -> "Union[str, None, Unset_Type]": """Gets the search_config of this GrantaServerApiSelectionSearchesSaveSearchRequest. Returns ------- - str + Union[str, None, Unset_Type] The search_config of this GrantaServerApiSelectionSearchesSaveSearchRequest. """ return self._search_config @search_config.setter - def search_config(self, search_config: "Optional[str]") -> None: + def search_config(self, search_config: "Union[str, None, Unset_Type]") -> None: """Sets the search_config of this GrantaServerApiSelectionSearchesSaveSearchRequest. Parameters ---------- - search_config: str + search_config: Union[str, None, Unset_Type] The search_config of this GrantaServerApiSelectionSearchesSaveSearchRequest. """ self._search_config = search_config @property - def detail(self) -> "Optional[GrantaServerApiSelectionSearchesSearchDetail]": + def detail( + self, + ) -> "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]": """Gets the detail of this GrantaServerApiSelectionSearchesSaveSearchRequest. Returns ------- - GrantaServerApiSelectionSearchesSearchDetail + Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type] The detail of this GrantaServerApiSelectionSearchesSaveSearchRequest. """ return self._detail @detail.setter def detail( - self, detail: "Optional[GrantaServerApiSelectionSearchesSearchDetail]" + self, detail: "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]" ) -> None: """Sets the detail of this GrantaServerApiSelectionSearchesSaveSearchRequest. Parameters ---------- - detail: GrantaServerApiSelectionSearchesSearchDetail + detail: Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type] The detail of this GrantaServerApiSelectionSearchesSaveSearchRequest. """ + # Field is not nullable + if detail is None: + raise ValueError("Invalid value for 'detail', must not be 'None'") self._detail = detail @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -147,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py index 0e8e5ef4..6effe4e9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSelectionSearchesSearchDetail(ModelBase): # type: ignore[misc] +class GrantaServerApiSelectionSearchesSearchDetail(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -67,124 +67,124 @@ class GrantaServerApiSelectionSearchesSearchDetail(ModelBase): # type: ignore[m def __init__( self, *, - criteria: "Optional[str]" = None, - description: "Optional[str]" = None, - name: "Optional[str]" = None, - notes: "Optional[str]" = None, + criteria: "Union[str, None, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + notes: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSelectionSearchesSearchDetail - a model defined in Swagger Parameters ---------- - criteria: str, optional - description: str, optional - name: str, optional - notes: str, optional + criteria: str, optional + description: str, optional + name: str, optional + notes: str, optional """ - self._name = None - self._description = None - self._notes = None - self._criteria = None + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._notes: Union[str, None, Unset_Type] = Unset + self._criteria: Union[str, None, Unset_Type] = Unset - if name is not None: + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if notes is not None: + if notes is not Unset: self.notes = notes - if criteria is not None: + if criteria is not Unset: self.criteria = criteria @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiSelectionSearchesSearchDetail. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiSelectionSearchesSearchDetail. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSelectionSearchesSearchDetail. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiSelectionSearchesSearchDetail. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSelectionSearchesSearchDetail. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSelectionSearchesSearchDetail. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSelectionSearchesSearchDetail. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSelectionSearchesSearchDetail. """ self._description = description @property - def notes(self) -> "Optional[str]": + def notes(self) -> "Union[str, None, Unset_Type]": """Gets the notes of this GrantaServerApiSelectionSearchesSearchDetail. Returns ------- - str + Union[str, None, Unset_Type] The notes of this GrantaServerApiSelectionSearchesSearchDetail. """ return self._notes @notes.setter - def notes(self, notes: "Optional[str]") -> None: + def notes(self, notes: "Union[str, None, Unset_Type]") -> None: """Sets the notes of this GrantaServerApiSelectionSearchesSearchDetail. Parameters ---------- - notes: str + notes: Union[str, None, Unset_Type] The notes of this GrantaServerApiSelectionSearchesSearchDetail. """ self._notes = notes @property - def criteria(self) -> "Optional[str]": + def criteria(self) -> "Union[str, None, Unset_Type]": """Gets the criteria of this GrantaServerApiSelectionSearchesSearchDetail. Returns ------- - str + Union[str, None, Unset_Type] The criteria of this GrantaServerApiSelectionSearchesSearchDetail. """ return self._criteria @criteria.setter - def criteria(self, criteria: "Optional[str]") -> None: + def criteria(self, criteria: "Union[str, None, Unset_Type]") -> None: """Sets the criteria of this GrantaServerApiSelectionSearchesSearchDetail. Parameters ---------- - criteria: str + criteria: Union[str, None, Unset_Type] The criteria of this GrantaServerApiSelectionSearchesSearchDetail. """ self._criteria = criteria @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -201,7 +201,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py index ab2a9a4f..0eb402a2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): # type: ignore[misc] +class GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -84,256 +84,277 @@ class GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): # type: ignor def __init__( self, *, - created_timestamp: "Optional[datetime]" = None, - created_user_or_group: "Optional[GrantaServerApiSelectionSearchesUserOrGroup]" = None, - criteria: "Optional[str]" = None, - current_user_access_info: "Optional[Dict[str, Dict[str, bool]]]" = None, - description: "Optional[str]" = None, - explore_config: "Optional[str]" = None, - last_modified_timestamp: "Optional[datetime]" = None, - last_modified_user_or_group: "Optional[GrantaServerApiSelectionSearchesUserOrGroup]" = None, - name: "Optional[str]" = None, - notes: "Optional[str]" = None, - search_identifier: "Optional[str]" = None, + created_timestamp: "Union[datetime, Unset_Type]" = Unset, + created_user_or_group: "Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type]" = Unset, + criteria: "Union[str, None, Unset_Type]" = Unset, + current_user_access_info: "Union[Dict[str, Dict[str, bool]], None, Unset_Type]" = Unset, + description: "Union[str, None, Unset_Type]" = Unset, + explore_config: "Union[str, None, Unset_Type]" = Unset, + last_modified_timestamp: "Union[datetime, Unset_Type]" = Unset, + last_modified_user_or_group: "Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + notes: "Union[str, None, Unset_Type]" = Unset, + search_identifier: "Union[str, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSelectionSearchesSelectionSearch - a model defined in Swagger Parameters ---------- - created_timestamp: datetime, optional - created_user_or_group: GrantaServerApiSelectionSearchesUserOrGroup, optional - criteria: str, optional - current_user_access_info: Dict[str, Dict[str, bool]], optional - description: str, optional - explore_config: str, optional - last_modified_timestamp: datetime, optional - last_modified_user_or_group: GrantaServerApiSelectionSearchesUserOrGroup, optional - name: str, optional - notes: str, optional - search_identifier: str, optional + created_timestamp: datetime, optional + created_user_or_group: GrantaServerApiSelectionSearchesUserOrGroup, optional + criteria: str, optional + current_user_access_info: Dict[str, Dict[str, bool]], optional + description: str, optional + explore_config: str, optional + last_modified_timestamp: datetime, optional + last_modified_user_or_group: GrantaServerApiSelectionSearchesUserOrGroup, optional + name: str, optional + notes: str, optional + search_identifier: str, optional """ - self._search_identifier = None - self._name = None - self._description = None - self._notes = None - self._current_user_access_info = None - self._criteria = None - self._explore_config = None - self._created_timestamp = None - self._created_user_or_group = None - self._last_modified_timestamp = None - self._last_modified_user_or_group = None - - if search_identifier is not None: + self._search_identifier: Union[str, Unset_Type] = Unset + self._name: Union[str, None, Unset_Type] = Unset + self._description: Union[str, None, Unset_Type] = Unset + self._notes: Union[str, None, Unset_Type] = Unset + self._current_user_access_info: Union[ + Dict[str, Dict[str, bool]], None, Unset_Type + ] = Unset + self._criteria: Union[str, None, Unset_Type] = Unset + self._explore_config: Union[str, None, Unset_Type] = Unset + self._created_timestamp: Union[datetime, Unset_Type] = Unset + self._created_user_or_group: Union[ + GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type + ] = Unset + self._last_modified_timestamp: Union[datetime, Unset_Type] = Unset + self._last_modified_user_or_group: Union[ + GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type + ] = Unset + + if search_identifier is not Unset: self.search_identifier = search_identifier - if name is not None: + if name is not Unset: self.name = name - if description is not None: + if description is not Unset: self.description = description - if notes is not None: + if notes is not Unset: self.notes = notes - if current_user_access_info is not None: + if current_user_access_info is not Unset: self.current_user_access_info = current_user_access_info - if criteria is not None: + if criteria is not Unset: self.criteria = criteria - if explore_config is not None: + if explore_config is not Unset: self.explore_config = explore_config - if created_timestamp is not None: + if created_timestamp is not Unset: self.created_timestamp = created_timestamp - if created_user_or_group is not None: + if created_user_or_group is not Unset: self.created_user_or_group = created_user_or_group - if last_modified_timestamp is not None: + if last_modified_timestamp is not Unset: self.last_modified_timestamp = last_modified_timestamp - if last_modified_user_or_group is not None: + if last_modified_user_or_group is not Unset: self.last_modified_user_or_group = last_modified_user_or_group @property - def search_identifier(self) -> "Optional[str]": + def search_identifier(self) -> "Union[str, Unset_Type]": """Gets the search_identifier of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - str + Union[str, Unset_Type] The search_identifier of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._search_identifier @search_identifier.setter - def search_identifier(self, search_identifier: "Optional[str]") -> None: + def search_identifier(self, search_identifier: "Union[str, Unset_Type]") -> None: """Sets the search_identifier of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - search_identifier: str + search_identifier: Union[str, Unset_Type] The search_identifier of this GrantaServerApiSelectionSearchesSelectionSearch. """ + # Field is not nullable + if search_identifier is None: + raise ValueError( + "Invalid value for 'search_identifier', must not be 'None'" + ) self._search_identifier = search_identifier @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiSelectionSearchesSelectionSearch. """ self._name = name @property - def description(self) -> "Optional[str]": + def description(self) -> "Union[str, None, Unset_Type]": """Gets the description of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - str + Union[str, None, Unset_Type] The description of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._description @description.setter - def description(self, description: "Optional[str]") -> None: + def description(self, description: "Union[str, None, Unset_Type]") -> None: """Sets the description of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - description: str + description: Union[str, None, Unset_Type] The description of this GrantaServerApiSelectionSearchesSelectionSearch. """ self._description = description @property - def notes(self) -> "Optional[str]": + def notes(self) -> "Union[str, None, Unset_Type]": """Gets the notes of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - str + Union[str, None, Unset_Type] The notes of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._notes @notes.setter - def notes(self, notes: "Optional[str]") -> None: + def notes(self, notes: "Union[str, None, Unset_Type]") -> None: """Sets the notes of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - notes: str + notes: Union[str, None, Unset_Type] The notes of this GrantaServerApiSelectionSearchesSelectionSearch. """ self._notes = notes @property - def current_user_access_info(self) -> "Optional[Dict[str, Dict[str, bool]]]": + def current_user_access_info( + self, + ) -> "Union[Dict[str, Dict[str, bool]], None, Unset_Type]": """Gets the current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - dict(str, dict(str, bool)) + Union[Dict[str, Dict[str, bool]], None, Unset_Type] The current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._current_user_access_info @current_user_access_info.setter def current_user_access_info( - self, current_user_access_info: "Optional[Dict[str, Dict[str, bool]]]" + self, + current_user_access_info: "Union[Dict[str, Dict[str, bool]], None, Unset_Type]", ) -> None: """Sets the current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - current_user_access_info: Dict[str, Dict[str, bool]] + current_user_access_info: Union[Dict[str, Dict[str, bool]], None, Unset_Type] The current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. """ self._current_user_access_info = current_user_access_info @property - def criteria(self) -> "Optional[str]": + def criteria(self) -> "Union[str, None, Unset_Type]": """Gets the criteria of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - str + Union[str, None, Unset_Type] The criteria of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._criteria @criteria.setter - def criteria(self, criteria: "Optional[str]") -> None: + def criteria(self, criteria: "Union[str, None, Unset_Type]") -> None: """Sets the criteria of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - criteria: str + criteria: Union[str, None, Unset_Type] The criteria of this GrantaServerApiSelectionSearchesSelectionSearch. """ self._criteria = criteria @property - def explore_config(self) -> "Optional[str]": + def explore_config(self) -> "Union[str, None, Unset_Type]": """Gets the explore_config of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - str + Union[str, None, Unset_Type] The explore_config of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._explore_config @explore_config.setter - def explore_config(self, explore_config: "Optional[str]") -> None: + def explore_config(self, explore_config: "Union[str, None, Unset_Type]") -> None: """Sets the explore_config of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - explore_config: str + explore_config: Union[str, None, Unset_Type] The explore_config of this GrantaServerApiSelectionSearchesSelectionSearch. """ self._explore_config = explore_config @property - def created_timestamp(self) -> "Optional[datetime]": + def created_timestamp(self) -> "Union[datetime, Unset_Type]": """Gets the created_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - datetime + Union[datetime, Unset_Type] The created_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._created_timestamp @created_timestamp.setter - def created_timestamp(self, created_timestamp: "Optional[datetime]") -> None: + def created_timestamp( + self, created_timestamp: "Union[datetime, Unset_Type]" + ) -> None: """Sets the created_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - created_timestamp: datetime + created_timestamp: Union[datetime, Unset_Type] The created_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. """ + # Field is not nullable + if created_timestamp is None: + raise ValueError( + "Invalid value for 'created_timestamp', must not be 'None'" + ) self._created_timestamp = created_timestamp @property def created_user_or_group( self, - ) -> "Optional[GrantaServerApiSelectionSearchesUserOrGroup]": + ) -> "Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type]": """Gets the created_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - GrantaServerApiSelectionSearchesUserOrGroup + Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type] The created_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._created_user_or_group @@ -341,50 +362,60 @@ def created_user_or_group( @created_user_or_group.setter def created_user_or_group( self, - created_user_or_group: "Optional[GrantaServerApiSelectionSearchesUserOrGroup]", + created_user_or_group: "Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type]", ) -> None: """Sets the created_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - created_user_or_group: GrantaServerApiSelectionSearchesUserOrGroup + created_user_or_group: Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type] The created_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. """ + # Field is not nullable + if created_user_or_group is None: + raise ValueError( + "Invalid value for 'created_user_or_group', must not be 'None'" + ) self._created_user_or_group = created_user_or_group @property - def last_modified_timestamp(self) -> "Optional[datetime]": + def last_modified_timestamp(self) -> "Union[datetime, Unset_Type]": """Gets the last_modified_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - datetime + Union[datetime, Unset_Type] The last_modified_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._last_modified_timestamp @last_modified_timestamp.setter def last_modified_timestamp( - self, last_modified_timestamp: "Optional[datetime]" + self, last_modified_timestamp: "Union[datetime, Unset_Type]" ) -> None: """Sets the last_modified_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - last_modified_timestamp: datetime + last_modified_timestamp: Union[datetime, Unset_Type] The last_modified_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. """ + # Field is not nullable + if last_modified_timestamp is None: + raise ValueError( + "Invalid value for 'last_modified_timestamp', must not be 'None'" + ) self._last_modified_timestamp = last_modified_timestamp @property def last_modified_user_or_group( self, - ) -> "Optional[GrantaServerApiSelectionSearchesUserOrGroup]": + ) -> "Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type]": """Gets the last_modified_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. Returns ------- - GrantaServerApiSelectionSearchesUserOrGroup + Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type] The last_modified_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. """ return self._last_modified_user_or_group @@ -392,19 +423,24 @@ def last_modified_user_or_group( @last_modified_user_or_group.setter def last_modified_user_or_group( self, - last_modified_user_or_group: "Optional[GrantaServerApiSelectionSearchesUserOrGroup]", + last_modified_user_or_group: "Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type]", ) -> None: """Sets the last_modified_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - last_modified_user_or_group: GrantaServerApiSelectionSearchesUserOrGroup + last_modified_user_or_group: Union[GrantaServerApiSelectionSearchesUserOrGroup, Unset_Type] The last_modified_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. """ + # Field is not nullable + if last_modified_user_or_group is None: + raise ValueError( + "Invalid value for 'last_modified_user_or_group', must not be 'None'" + ) self._last_modified_user_or_group = last_modified_user_or_group @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -421,7 +457,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py index d6986765..113ea779 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiSelectionSearchesUserOrGroup(ModelBase): # type: ignore[misc] +class GrantaServerApiSelectionSearchesUserOrGroup(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,100 @@ class GrantaServerApiSelectionSearchesUserOrGroup(ModelBase): # type: ignore[mi def __init__( self, *, - display_name: "Optional[str]" = None, - identifier: "Optional[str]" = None, - name: "Optional[str]" = None, + display_name: "Union[str, None, Unset_Type]" = Unset, + identifier: "Union[str, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSelectionSearchesUserOrGroup - a model defined in Swagger Parameters ---------- - display_name: str, optional - identifier: str, optional - name: str, optional + display_name: str, optional + identifier: str, optional + name: str, optional """ - self._identifier = None - self._display_name = None - self._name = None + self._identifier: Union[str, Unset_Type] = Unset + self._display_name: Union[str, None, Unset_Type] = Unset + self._name: Union[str, None, Unset_Type] = Unset - if identifier is not None: + if identifier is not Unset: self.identifier = identifier - if display_name is not None: + if display_name is not Unset: self.display_name = display_name - if name is not None: + if name is not Unset: self.name = name @property - def identifier(self) -> "Optional[str]": + def identifier(self) -> "Union[str, Unset_Type]": """Gets the identifier of this GrantaServerApiSelectionSearchesUserOrGroup. Returns ------- - str + Union[str, Unset_Type] The identifier of this GrantaServerApiSelectionSearchesUserOrGroup. """ return self._identifier @identifier.setter - def identifier(self, identifier: "Optional[str]") -> None: + def identifier(self, identifier: "Union[str, Unset_Type]") -> None: """Sets the identifier of this GrantaServerApiSelectionSearchesUserOrGroup. Parameters ---------- - identifier: str + identifier: Union[str, Unset_Type] The identifier of this GrantaServerApiSelectionSearchesUserOrGroup. """ + # Field is not nullable + if identifier is None: + raise ValueError("Invalid value for 'identifier', must not be 'None'") self._identifier = identifier @property - def display_name(self) -> "Optional[str]": + def display_name(self) -> "Union[str, None, Unset_Type]": """Gets the display_name of this GrantaServerApiSelectionSearchesUserOrGroup. Returns ------- - str + Union[str, None, Unset_Type] The display_name of this GrantaServerApiSelectionSearchesUserOrGroup. """ return self._display_name @display_name.setter - def display_name(self, display_name: "Optional[str]") -> None: + def display_name(self, display_name: "Union[str, None, Unset_Type]") -> None: """Sets the display_name of this GrantaServerApiSelectionSearchesUserOrGroup. Parameters ---------- - display_name: str + display_name: Union[str, None, Unset_Type] The display_name of this GrantaServerApiSelectionSearchesUserOrGroup. """ self._display_name = display_name @property - def name(self) -> "Optional[str]": + def name(self) -> "Union[str, None, Unset_Type]": """Gets the name of this GrantaServerApiSelectionSearchesUserOrGroup. Returns ------- - str + Union[str, None, Unset_Type] The name of this GrantaServerApiSelectionSearchesUserOrGroup. """ return self._name @name.setter - def name(self, name: "Optional[str]") -> None: + def name(self, name: "Union[str, None, Unset_Type]") -> None: """Sets the name of this GrantaServerApiSelectionSearchesUserOrGroup. Parameters ---------- - name: str + name: Union[str, None, Unset_Type] The name of this GrantaServerApiSelectionSearchesUserOrGroup. """ self._name = name @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py index e0d53225..906258d7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( GrantaServerApiValueSpecifier, ) # noqa: F401 @@ -69,68 +69,68 @@ def __init__( self, *, filter_on: "str" = "specific", - guids: "Optional[List[str]]" = None, - identities: "Optional[List[int]]" = None, + guids: "Union[List[str], None, Unset_Type]" = Unset, + identities: "Union[List[int], None, Unset_Type]" = Unset, ) -> None: """GrantaServerApiSpecificValuesSpecifier - a model defined in Swagger Parameters ---------- - filter_on: str - guids: List[str], optional - identities: List[int], optional + filter_on: str + guids: List[str], optional + identities: List[int], optional """ super().__init__() - self._identities = None - self._guids = None - self._filter_on: str = None # type: ignore[assignment] + self._identities: Union[List[int], None, Unset_Type] = Unset + self._guids: Union[List[str], None, Unset_Type] = Unset + self._filter_on: str - if identities is not None: + if identities is not Unset: self.identities = identities - if guids is not None: + if guids is not Unset: self.guids = guids self.filter_on = filter_on @property - def identities(self) -> "Optional[List[int]]": + def identities(self) -> "Union[List[int], None, Unset_Type]": """Gets the identities of this GrantaServerApiSpecificValuesSpecifier. Returns ------- - list[int] + Union[List[int], None, Unset_Type] The identities of this GrantaServerApiSpecificValuesSpecifier. """ return self._identities @identities.setter - def identities(self, identities: "Optional[List[int]]") -> None: + def identities(self, identities: "Union[List[int], None, Unset_Type]") -> None: """Sets the identities of this GrantaServerApiSpecificValuesSpecifier. Parameters ---------- - identities: List[int] + identities: Union[List[int], None, Unset_Type] The identities of this GrantaServerApiSpecificValuesSpecifier. """ self._identities = identities @property - def guids(self) -> "Optional[List[str]]": + def guids(self) -> "Union[List[str], None, Unset_Type]": """Gets the guids of this GrantaServerApiSpecificValuesSpecifier. Returns ------- - list[str] + Union[List[str], None, Unset_Type] The guids of this GrantaServerApiSpecificValuesSpecifier. """ return self._guids @guids.setter - def guids(self, guids: "Optional[List[str]]") -> None: + def guids(self, guids: "Union[List[str], None, Unset_Type]") -> None: """Sets the guids of this GrantaServerApiSpecificValuesSpecifier. Parameters ---------- - guids: List[str] + guids: Union[List[str], None, Unset_Type] The guids of this GrantaServerApiSpecificValuesSpecifier. """ self._guids = guids @@ -155,12 +155,16 @@ def filter_on(self, filter_on: "str") -> None: filter_on: str The filter_on of this GrantaServerApiSpecificValuesSpecifier. """ + # Field is not nullable if filter_on is None: raise ValueError("Invalid value for 'filter_on', must not be 'None'") + # Field is required + if filter_on is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'filter_on', must not be 'Unset'") self._filter_on = filter_on @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -177,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py index ac5c21a4..656b175d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class GrantaServerApiValueSpecifier(ModelBase): # type: ignore[misc] +class GrantaServerApiValueSpecifier(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -69,7 +69,7 @@ def __init__( """GrantaServerApiValueSpecifier - a model defined in Swagger""" @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator Parameters @@ -91,7 +91,7 @@ def _get_discriminator_field_name(cls) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py index 34653808..16df2d99 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class JobqueueFilesBody(ModelBase): # type: ignore[misc] +class JobqueueFilesBody(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -61,43 +61,46 @@ class JobqueueFilesBody(ModelBase): # type: ignore[misc] def __init__( self, *, - file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, + file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]" = Unset, ) -> None: """JobqueueFilesBody - a model defined in Swagger Parameters ---------- - file: Union[BinaryIO, pathlib.Path], optional + file: Union[BinaryIO, pathlib.Path], optional """ - self._file = None + self._file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] = Unset - if file is not None: + if file is not Unset: self.file = file @property - def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": + def file(self) -> "Union[Union[BinaryIO, pathlib.Path], Unset_Type]": """Gets the file of this JobqueueFilesBody. Returns ------- - str + Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this JobqueueFilesBody. """ return self._file @file.setter - def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: + def file(self, file: "Union[Union[BinaryIO, pathlib.Path], Unset_Type]") -> None: """Sets the file of this JobqueueFilesBody. Parameters ---------- - file: Union[BinaryIO, pathlib.Path] + file: Union[Union[BinaryIO, pathlib.Path], Unset_Type] The file of this JobqueueFilesBody. """ + # Field is not nullable + if file is None: + raise ValueError("Invalid value for 'file', must not be 'None'") self._file = file @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -114,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py index c3366744..8a26d548 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py @@ -12,14 +12,14 @@ from typing import ( TYPE_CHECKING, Any, + BinaryIO, Dict, List, - BinaryIO, Optional, Union, ) # noqa: F401 -from . import ModelBase +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: @@ -28,7 +28,7 @@ from . import * -class JsonPatchDocument(ModelBase): # type: ignore[misc] +class JsonPatchDocument(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -65,97 +65,106 @@ class JsonPatchDocument(ModelBase): # type: ignore[misc] def __init__( self, *, - op: "Optional[str]" = None, - path: "Optional[str]" = None, - value: "Optional[str]" = None, + op: "Union[str, Unset_Type]" = Unset, + path: "Union[str, Unset_Type]" = Unset, + value: "Union[str, Unset_Type]" = Unset, ) -> None: """JsonPatchDocument - a model defined in Swagger Parameters ---------- - op: str, optional - path: str, optional - value: str, optional + op: str, optional + path: str, optional + value: str, optional """ - self._op = None - self._path = None - self._value = None + self._op: Union[str, Unset_Type] = Unset + self._path: Union[str, Unset_Type] = Unset + self._value: Union[str, Unset_Type] = Unset - if op is not None: + if op is not Unset: self.op = op - if path is not None: + if path is not Unset: self.path = path - if value is not None: + if value is not Unset: self.value = value @property - def op(self) -> "Optional[str]": + def op(self) -> "Union[str, Unset_Type]": """Gets the op of this JsonPatchDocument. Returns ------- - str + Union[str, Unset_Type] The op of this JsonPatchDocument. """ return self._op @op.setter - def op(self, op: "Optional[str]") -> None: + def op(self, op: "Union[str, Unset_Type]") -> None: """Sets the op of this JsonPatchDocument. Parameters ---------- - op: str + op: Union[str, Unset_Type] The op of this JsonPatchDocument. """ + # Field is not nullable + if op is None: + raise ValueError("Invalid value for 'op', must not be 'None'") self._op = op @property - def path(self) -> "Optional[str]": + def path(self) -> "Union[str, Unset_Type]": """Gets the path of this JsonPatchDocument. Returns ------- - str + Union[str, Unset_Type] The path of this JsonPatchDocument. """ return self._path @path.setter - def path(self, path: "Optional[str]") -> None: + def path(self, path: "Union[str, Unset_Type]") -> None: """Sets the path of this JsonPatchDocument. Parameters ---------- - path: str + path: Union[str, Unset_Type] The path of this JsonPatchDocument. """ + # Field is not nullable + if path is None: + raise ValueError("Invalid value for 'path', must not be 'None'") self._path = path @property - def value(self) -> "Optional[str]": + def value(self) -> "Union[str, Unset_Type]": """Gets the value of this JsonPatchDocument. Returns ------- - str + Union[str, Unset_Type] The value of this JsonPatchDocument. """ return self._value @value.setter - def value(self, value: "Optional[str]") -> None: + def value(self, value: "Union[str, Unset_Type]") -> None: """Sets the value of this JsonPatchDocument. Parameters ---------- - value: str + value: Union[str, Unset_Type] The value of this JsonPatchDocument. """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") self._value = value @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: + def get_real_child_model(cls, data: Dict[str, str]) -> str: """Raises a NotImplementedError for a type without a discriminator defined. Parameters @@ -172,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() # type: ignore[no-any-return] + return self.to_str() def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/tests/test_discriminators.py b/ansys-grantami-serverapi-openapi/tests/test_discriminators.py index ee714025..88a96d63 100644 --- a/ansys-grantami-serverapi-openapi/tests/test_discriminators.py +++ b/ansys-grantami-serverapi-openapi/tests/test_discriminators.py @@ -7,7 +7,9 @@ ALL_MODELS = { k: v for k, v in models.__dict__.items() - if isinstance(v, type) and k != "ModelBase" and not issubclass(v, Enum) + if isinstance(v, type) + and k not in ("ModelBase", "Unset_Type") + and not issubclass(v, Enum) } POLYMORPHIC_MODELS = { k: v for k, v in ALL_MODELS.items() if "discriminator_value_class_map" in v.__dict__ diff --git a/pom.xml b/pom.xml index 488f50de..3e710056 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ 1.0.0 0.1.0 server-api.json - 2.0.9-SNAPSHOT + 2.0.11-SNAPSHOT ansys-grantami-serverapi-openapi ansys.grantami.serverapi_openapi Autogenerated client library for the Granta MI Server API. From 337a85fd00b3a676eaa5fce64cfa018a7db3c59b Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Mon, 4 Mar 2024 09:25:24 -0500 Subject: [PATCH 09/31] Fix proxy path for MI 2024 R2 (#149) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 61d91a98..50a0cdcb 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ from ansys.openapi.common import ( ) from ansys.grantami.serverapi_openapi import models -SERVICE_PATH = "/proxy/v1.svc" +SERVICE_PATH = "/proxy/v1.svc/mi" # "/proxy/v1.svc" for Granta MI 2024 R1 and older MI_AUTH_PATH = "/v1alpha/schema/mi-version" GRANTA_APPLICATION_NAME_HEADER = "PyGranta ServerAPI" From 108a3ae4ad470141bd90c91252b34b6b859d214b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:37:30 +0000 Subject: [PATCH 10/31] Bump python-dateutil from 2.8.2 to 2.9.0.post0 in /ansys-grantami-serverapi-openapi (#151) --- ansys-grantami-serverapi-openapi/poetry.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 2820e873..41813cd5 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.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "ansys-openapi-common" @@ -463,13 +463,13 @@ testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "no [[package]] name = "python-dateutil" -version = "2.8.2" +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" files = [ - {file = "python-dateutil-2.8.2.tar.gz", hash = "sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"}, - {file = "python_dateutil-2.8.2-py2.py3-none-any.whl", hash = "sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9"}, + {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"}, ] [package.dependencies] From 62be39665307c559691f06e2cf41badabd35e3bd Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Tue, 5 Mar 2024 08:52:45 -0500 Subject: [PATCH 11/31] Update template to 3.0.0 (#152) Co-authored-by: Andy-Grigg --- ansys-grantami-serverapi-openapi/poetry.lock | 10 +++++----- ansys-grantami-serverapi-openapi/pyproject.toml | 4 ++-- pom.xml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 41813cd5..ce8f3588 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -1,14 +1,14 @@ -# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "ansys-openapi-common" -version = "1.5.0" +version = "2.0.0" description = "Provides a helper to create sessions for use with Ansys OpenAPI clients." optional = false python-versions = ">=3.9,<4.0" files = [ - {file = "ansys_openapi_common-1.5.0-py3-none-any.whl", hash = "sha256:374de180ce7d26454fe8726032e834390d4af1961a737acc006651b7f8cc3f53"}, - {file = "ansys_openapi_common-1.5.0.tar.gz", hash = "sha256:1b4ffa0a7d87331cc053ab3e80d25e62426561783925e8bf7fb26d8300dd3ae9"}, + {file = "ansys_openapi_common-2.0.0-py3-none-any.whl", hash = "sha256:88def777b8d394051e6674c8a16ab47c0081d70897d64aec30faecf3848a4680"}, + {file = "ansys_openapi_common-2.0.0.tar.gz", hash = "sha256:780c22e8715d63a259eac51011f9f353f43f41fd7da16f74872b17d4d9341fb5"}, ] [package.dependencies] @@ -663,4 +663,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" python-versions = "^3.9.0" -content-hash = "25403994c35e9eeb61829e9a8a7608b5ce430185f6842ecad191645923423a9a" +content-hash = "003acf6d8e39dd24d743d3dc43bd43583efd71c1e9a9470e3fa16aa6dd2536b1" diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 6596b69e..debb60d2 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 = "3.0.0.dev212" +version = "3.0.0.dev215" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] @@ -32,7 +32,7 @@ packages = [ [tool.poetry.dependencies] python = "^3.9.0" -ansys-openapi-common = "^1.5.0" +ansys-openapi-common = "^2.0.0" requests = "^2.26.0" python-dateutil = "^2.8.2" diff --git a/pom.xml b/pom.xml index 3e710056..b6a44301 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ 1.0.0 0.1.0 server-api.json - 2.0.11-SNAPSHOT + 3.0.0-SNAPSHOT ansys-grantami-serverapi-openapi ansys.grantami.serverapi_openapi Autogenerated client library for the Granta MI Server API. From 8f5930a7dcb2a140d2d48e45c96885896b057aa2 Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Tue, 5 Mar 2024 09:06:14 -0500 Subject: [PATCH 12/31] Bump cryptography (#153) --- ansys-grantami-serverapi-openapi/poetry.lock | 68 ++++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index ce8f3588..add89a8c 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.2 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. [[package]] name = "ansys-openapi-common" @@ -209,43 +209,43 @@ files = [ [[package]] name = "cryptography" -version = "42.0.0" +version = "42.0.5" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." optional = false python-versions = ">=3.7" files = [ - {file = "cryptography-42.0.0-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:c640b0ef54138fde761ec99a6c7dc4ce05e80420262c20fa239e694ca371d434"}, - {file = "cryptography-42.0.0-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:678cfa0d1e72ef41d48993a7be75a76b0725d29b820ff3cfd606a5b2b33fda01"}, - {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:146e971e92a6dd042214b537a726c9750496128453146ab0ee8971a0299dc9bd"}, - {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87086eae86a700307b544625e3ba11cc600c3c0ef8ab97b0fda0705d6db3d4e3"}, - {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:0a68bfcf57a6887818307600c3c0ebc3f62fbb6ccad2240aa21887cda1f8df1b"}, - {file = "cryptography-42.0.0-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:5a217bca51f3b91971400890905a9323ad805838ca3fa1e202a01844f485ee87"}, - {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:ca20550bb590db16223eb9ccc5852335b48b8f597e2f6f0878bbfd9e7314eb17"}, - {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:33588310b5c886dfb87dba5f013b8d27df7ffd31dc753775342a1e5ab139e59d"}, - {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9515ea7f596c8092fdc9902627e51b23a75daa2c7815ed5aa8cf4f07469212ec"}, - {file = "cryptography-42.0.0-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:35cf6ed4c38f054478a9df14f03c1169bb14bd98f0b1705751079b25e1cb58bc"}, - {file = "cryptography-42.0.0-cp37-abi3-win32.whl", hash = "sha256:8814722cffcfd1fbd91edd9f3451b88a8f26a5fd41b28c1c9193949d1c689dc4"}, - {file = "cryptography-42.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:a2a8d873667e4fd2f34aedab02ba500b824692c6542e017075a2efc38f60a4c0"}, - {file = "cryptography-42.0.0-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:8fedec73d590fd30c4e3f0d0f4bc961aeca8390c72f3eaa1a0874d180e868ddf"}, - {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:be41b0c7366e5549265adf2145135dca107718fa44b6e418dc7499cfff6b4689"}, - {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ca482ea80626048975360c8e62be3ceb0f11803180b73163acd24bf014133a0"}, - {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:c58115384bdcfe9c7f644c72f10f6f42bed7cf59f7b52fe1bf7ae0a622b3a139"}, - {file = "cryptography-42.0.0-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:56ce0c106d5c3fec1038c3cca3d55ac320a5be1b44bf15116732d0bc716979a2"}, - {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:324721d93b998cb7367f1e6897370644751e5580ff9b370c0a50dc60a2003513"}, - {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:d97aae66b7de41cdf5b12087b5509e4e9805ed6f562406dfcf60e8481a9a28f8"}, - {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:85f759ed59ffd1d0baad296e72780aa62ff8a71f94dc1ab340386a1207d0ea81"}, - {file = "cryptography-42.0.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:206aaf42e031b93f86ad60f9f5d9da1b09164f25488238ac1dc488334eb5e221"}, - {file = "cryptography-42.0.0-cp39-abi3-win32.whl", hash = "sha256:74f18a4c8ca04134d2052a140322002fef535c99cdbc2a6afc18a8024d5c9d5b"}, - {file = "cryptography-42.0.0-cp39-abi3-win_amd64.whl", hash = "sha256:14e4b909373bc5bf1095311fa0f7fcabf2d1a160ca13f1e9e467be1ac4cbdf94"}, - {file = "cryptography-42.0.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3005166a39b70c8b94455fdbe78d87a444da31ff70de3331cdec2c568cf25b7e"}, - {file = "cryptography-42.0.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:be14b31eb3a293fc6e6aa2807c8a3224c71426f7c4e3639ccf1a2f3ffd6df8c3"}, - {file = "cryptography-42.0.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:bd7cf7a8d9f34cc67220f1195884151426ce616fdc8285df9054bfa10135925f"}, - {file = "cryptography-42.0.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:c310767268d88803b653fffe6d6f2f17bb9d49ffceb8d70aed50ad45ea49ab08"}, - {file = "cryptography-42.0.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:bdce70e562c69bb089523e75ef1d9625b7417c6297a76ac27b1b8b1eb51b7d0f"}, - {file = "cryptography-42.0.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:e9326ca78111e4c645f7e49cbce4ed2f3f85e17b61a563328c85a5208cf34440"}, - {file = "cryptography-42.0.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:69fd009a325cad6fbfd5b04c711a4da563c6c4854fc4c9544bff3088387c77c0"}, - {file = "cryptography-42.0.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:988b738f56c665366b1e4bfd9045c3efae89ee366ca3839cd5af53eaa1401bce"}, - {file = "cryptography-42.0.0.tar.gz", hash = "sha256:6cf9b76d6e93c62114bd19485e5cb003115c134cf9ce91f8ac924c44f8c8c3f4"}, + {file = "cryptography-42.0.5-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:a30596bae9403a342c978fb47d9b0ee277699fa53bbafad14706af51fe543d16"}, + {file = "cryptography-42.0.5-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:b7ffe927ee6531c78f81aa17e684e2ff617daeba7f189f911065b2ea2d526dec"}, + {file = "cryptography-42.0.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2424ff4c4ac7f6b8177b53c17ed5d8fa74ae5955656867f5a8affaca36a27abb"}, + {file = "cryptography-42.0.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:329906dcc7b20ff3cad13c069a78124ed8247adcac44b10bea1130e36caae0b4"}, + {file = "cryptography-42.0.5-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:b03c2ae5d2f0fc05f9a2c0c997e1bc18c8229f392234e8a0194f202169ccd278"}, + {file = "cryptography-42.0.5-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:f8837fe1d6ac4a8052a9a8ddab256bc006242696f03368a4009be7ee3075cdb7"}, + {file = "cryptography-42.0.5-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:0270572b8bd2c833c3981724b8ee9747b3ec96f699a9665470018594301439ee"}, + {file = "cryptography-42.0.5-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:b8cac287fafc4ad485b8a9b67d0ee80c66bf3574f655d3b97ef2e1082360faf1"}, + {file = "cryptography-42.0.5-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:16a48c23a62a2f4a285699dba2e4ff2d1cff3115b9df052cdd976a18856d8e3d"}, + {file = "cryptography-42.0.5-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:2bce03af1ce5a5567ab89bd90d11e7bbdff56b8af3acbbec1faded8f44cb06da"}, + {file = "cryptography-42.0.5-cp37-abi3-win32.whl", hash = "sha256:b6cd2203306b63e41acdf39aa93b86fb566049aeb6dc489b70e34bcd07adca74"}, + {file = "cryptography-42.0.5-cp37-abi3-win_amd64.whl", hash = "sha256:98d8dc6d012b82287f2c3d26ce1d2dd130ec200c8679b6213b3c73c08b2b7940"}, + {file = "cryptography-42.0.5-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:5e6275c09d2badf57aea3afa80d975444f4be8d3bc58f7f80d2a484c6f9485c8"}, + {file = "cryptography-42.0.5-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e4985a790f921508f36f81831817cbc03b102d643b5fcb81cd33df3fa291a1a1"}, + {file = "cryptography-42.0.5-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7cde5f38e614f55e28d831754e8a3bacf9ace5d1566235e39d91b35502d6936e"}, + {file = "cryptography-42.0.5-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:7367d7b2eca6513681127ebad53b2582911d1736dc2ffc19f2c3ae49997496bc"}, + {file = "cryptography-42.0.5-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:cd2030f6650c089aeb304cf093f3244d34745ce0cfcc39f20c6fbfe030102e2a"}, + {file = "cryptography-42.0.5-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:a2913c5375154b6ef2e91c10b5720ea6e21007412f6437504ffea2109b5a33d7"}, + {file = "cryptography-42.0.5-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:c41fb5e6a5fe9ebcd58ca3abfeb51dffb5d83d6775405305bfa8715b76521922"}, + {file = "cryptography-42.0.5-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:3eaafe47ec0d0ffcc9349e1708be2aaea4c6dd4978d76bf6eb0cb2c13636c6fc"}, + {file = "cryptography-42.0.5-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:1b95b98b0d2af784078fa69f637135e3c317091b615cd0905f8b8a087e86fa30"}, + {file = "cryptography-42.0.5-cp39-abi3-win32.whl", hash = "sha256:1f71c10d1e88467126f0efd484bd44bca5e14c664ec2ede64c32f20875c0d413"}, + {file = "cryptography-42.0.5-cp39-abi3-win_amd64.whl", hash = "sha256:a011a644f6d7d03736214d38832e030d8268bcff4a41f728e6030325fea3e400"}, + {file = "cryptography-42.0.5-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:9481ffe3cf013b71b2428b905c4f7a9a4f76ec03065b05ff499bb5682a8d9ad8"}, + {file = "cryptography-42.0.5-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:ba334e6e4b1d92442b75ddacc615c5476d4ad55cc29b15d590cc6b86efa487e2"}, + {file = "cryptography-42.0.5-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:ba3e4a42397c25b7ff88cdec6e2a16c2be18720f317506ee25210f6d31925f9c"}, + {file = "cryptography-42.0.5-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:111a0d8553afcf8eb02a4fea6ca4f59d48ddb34497aa8706a6cf536f1a5ec576"}, + {file = "cryptography-42.0.5-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:cd65d75953847815962c84a4654a84850b2bb4aed3f26fadcc1c13892e1e29f6"}, + {file = "cryptography-42.0.5-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:e807b3188f9eb0eaa7bbb579b462c5ace579f1cedb28107ce8b48a9f7ad3679e"}, + {file = "cryptography-42.0.5-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:f12764b8fffc7a123f641d7d049d382b73f96a34117e0b637b80643169cec8ac"}, + {file = "cryptography-42.0.5-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:37dd623507659e08be98eec89323469e8c7b4c1407c85112634ae3dbdb926fdd"}, + {file = "cryptography-42.0.5.tar.gz", hash = "sha256:6fe07eec95dfd477eb9530aef5bead34fec819b3aaf6c5bd6d20565da607bfe1"}, ] [package.dependencies] From 8bb5ab0b7119e05b74992e52a5f2bba99ed71654 Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Wed, 6 Mar 2024 07:59:39 -0500 Subject: [PATCH 13/31] Update swagger to 24.2.841 (#156) Co-authored-by: Andy-Grigg --- .../pyproject.toml | 2 +- .../grantami/serverapi_openapi/__init__.py | 4 + .../serverapi_openapi/api/data_api.py | 624 +++ .../serverapi_openapi/models/__init__.py | 4 + ...granta_server_api_data_applicable_datum.py | 2 + .../granta_server_api_data_datum_type.py | 2 + .../granta_server_api_data_file_datum.py | 315 ++ .../granta_server_api_data_picture_datum.py | 141 + yaml/server-api.json | 4262 +++++++++-------- 9 files changed, 3481 insertions(+), 1875 deletions(-) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_picture_datum.py diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index debb60d2..3aa5e468 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 = "3.0.0.dev215" +version = "3.0.0.dev218" 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 a268f349..d8431960 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 @@ -543,6 +543,7 @@ from .models.granta_server_api_data_export_tabular_row_export_behaviour import ( GrantaServerApiDataExportTabularRowExportBehaviour, ) +from .models.granta_server_api_data_file_datum import GrantaServerApiDataFileDatum from .models.granta_server_api_data_hyperlink_datum import ( GrantaServerApiDataHyperlinkDatum, ) @@ -563,6 +564,7 @@ from .models.granta_server_api_data_parameter_with_value import ( GrantaServerApiDataParameterWithValue, ) +from .models.granta_server_api_data_picture_datum import GrantaServerApiDataPictureDatum from .models.granta_server_api_data_point_data_value import ( GrantaServerApiDataPointDataValue, ) @@ -2125,6 +2127,7 @@ "GrantaServerApiDataExportRecordWithData", "GrantaServerApiDataExportSimpleAttributeToExport", "GrantaServerApiDataExportTabularRowExportBehaviour", + "GrantaServerApiDataFileDatum", "GrantaServerApiDataHyperlinkDatum", "GrantaServerApiDataHyperlinkTarget", "GrantaServerApiDataIntegerDatum", @@ -2133,6 +2136,7 @@ "GrantaServerApiDataNotApplicableDatum", "GrantaServerApiDataNumericParameterWithValue", "GrantaServerApiDataParameterWithValue", + "GrantaServerApiDataPictureDatum", "GrantaServerApiDataPointDataValue", "GrantaServerApiDataPointDatum", "GrantaServerApiDataRangeDatum", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py index efaeebf9..3d13d78d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py @@ -33,6 +33,630 @@ class DataApi(ApiBase): Ref: https://github.com/swagger-api/swagger-codegen """ + def export_binary_data_for_latest( + self, + *, + database_key: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + ) -> "Union[None, str]": + """Get the binary data for a given attribute and the latest version of a record history in given database. Must be a file or picture 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. + max_width: int + max_height: int + + Returns + ------- + Union[None, str] + """ + data = self._export_binary_data_for_latest_with_http_info( + database_key, + record_history_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + max_width, + max_height, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _export_binary_data_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, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "record_history_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "max_width", + "max_height", + "_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 export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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"])) + if "max_width" in params and max_width is not None: + query_params.append(("maxWidth", params["max_width"])) + if "max_height" in params and max_height is not None: + query_params.append(("maxHeight", params["max_height"])) + + 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/octet-stream", "application/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: "file", + 404: None, + 400: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}:export", + "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 export_binary_data_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, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + ) -> "Union[None, str]": + """Get the binary data for a given attribute and the latest version of a record history in given database and table. Must be a file or picture 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. + max_width: int + max_height: int + + Returns + ------- + Union[None, str] + """ + data = self._export_binary_data_for_latest_from_table_with_http_info( + database_key, + table_guid, + record_history_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + max_width, + max_height, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _export_binary_data_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, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "max_width", + "max_height", + "_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 export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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"])) + if "max_width" in params and max_width is not None: + query_params.append(("maxWidth", params["max_width"])) + if "max_height" in params and max_height is not None: + query_params.append(("maxHeight", params["max_height"])) + + 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/octet-stream", "application/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: "file", + 404: None, + 400: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}:export", + "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 export_binary_data_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, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + ) -> "Union[None, str]": + """Get the binary data for a given database, record history, record version and attribute. Must be a file or picture 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. + max_width: int + max_height: int + + Returns + ------- + Union[None, str] + """ + data = self._export_binary_data_for_version_with_http_info( + database_key, + record_history_guid, + record_version_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + max_width, + max_height, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _export_binary_data_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, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "max_width", + "max_height", + "_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 export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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"])) + if "max_width" in params and max_width is not None: + query_params.append(("maxWidth", params["max_width"])) + if "max_height" in params and max_height is not None: + query_params.append(("maxHeight", params["max_height"])) + + 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/octet-stream", "application/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: "file", + 404: None, + 400: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}:export", + "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 export_binary_data_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, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + ) -> "Union[None, str]": + """Get the binary data for a given database, table, record history, record version and attribute. Must be a file or picture 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. + max_width: int + max_height: int + + Returns + ------- + Union[None, str] + """ + data = self._export_binary_data_for_version_from_table_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + max_width, + max_height, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _export_binary_data_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, + max_width: "Optional[int]" = None, + max_height: "Optional[int]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "max_width", + "max_height", + "_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 export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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 'export_binary_data_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"])) + if "max_width" in params and max_width is not None: + query_params.append(("maxWidth", params["max_width"])) + if "max_height" in params and max_height is not None: + query_params.append(("maxHeight", params["max_height"])) + + 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/octet-stream", "application/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: "file", + 404: None, + 400: 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}:export", + "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_datum_for_latest( self, *, 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 13600f9f..dc5d15f6 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 @@ -495,6 +495,7 @@ from .granta_server_api_data_export_tabular_row_export_behaviour import ( GrantaServerApiDataExportTabularRowExportBehaviour, ) +from .granta_server_api_data_file_datum import GrantaServerApiDataFileDatum from .granta_server_api_data_hyperlink_datum import GrantaServerApiDataHyperlinkDatum from .granta_server_api_data_hyperlink_target import GrantaServerApiDataHyperlinkTarget from .granta_server_api_data_integer_datum import GrantaServerApiDataIntegerDatum @@ -509,6 +510,7 @@ from .granta_server_api_data_parameter_with_value import ( GrantaServerApiDataParameterWithValue, ) +from .granta_server_api_data_picture_datum import GrantaServerApiDataPictureDatum from .granta_server_api_data_point_data_value import GrantaServerApiDataPointDataValue from .granta_server_api_data_point_datum import GrantaServerApiDataPointDatum from .granta_server_api_data_range_datum import GrantaServerApiDataRangeDatum @@ -1990,6 +1992,7 @@ "GrantaServerApiDataExportRecordWithData", "GrantaServerApiDataExportSimpleAttributeToExport", "GrantaServerApiDataExportTabularRowExportBehaviour", + "GrantaServerApiDataFileDatum", "GrantaServerApiDataHyperlinkDatum", "GrantaServerApiDataHyperlinkTarget", "GrantaServerApiDataIntegerDatum", @@ -1998,6 +2001,7 @@ "GrantaServerApiDataNotApplicableDatum", "GrantaServerApiDataNumericParameterWithValue", "GrantaServerApiDataParameterWithValue", + "GrantaServerApiDataPictureDatum", "GrantaServerApiDataPointDataValue", "GrantaServerApiDataPointDatum", "GrantaServerApiDataRangeDatum", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py index 49ca74ec..e5bd569c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py @@ -71,6 +71,8 @@ class GrantaServerApiDataApplicableDatum(GrantaServerApiDataDatum): "discrete".lower(): "#/components/schemas/GrantaServerApiDataDiscreteDatum", "range".lower(): "#/components/schemas/GrantaServerApiDataRangeDatum", "point".lower(): "#/components/schemas/GrantaServerApiDataPointDatum", + "picture".lower(): "#/components/schemas/GrantaServerApiDataPictureDatum", + "file".lower(): "#/components/schemas/GrantaServerApiDataFileDatum", } discriminator: Optional[str] = "datum_type" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py index bad3f287..241fc11b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py @@ -29,3 +29,5 @@ class GrantaServerApiDataDatumType(Enum): DISCRETE = "discrete" RANGE = "range" POINT = "point" + PICTURE = "picture" + FILE = "file" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py new file mode 100644 index 00000000..b45269f9 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py @@ -0,0 +1,315 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDataFileDatum(GrantaServerApiDataApplicableDatum): + """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] = { + "content_is_in_search_index": "bool", + "content_type": "str", + "description": "str", + "file_name": "str", + "target": "str", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map: Dict[str, str] = { + "content_is_in_search_index": "contentIsInSearchIndex", + "content_type": "contentType", + "description": "description", + "file_name": "fileName", + "target": "target", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + content_is_in_search_index: "bool", + content_type: "str", + description: "str", + file_name: "str", + target: "str", + datum_type: "str" = "file", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataFileDatum - a model defined in Swagger + + Parameters + ---------- + content_is_in_search_index: bool + content_type: str + description: str + file_name: str + target: str + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type: str + self._file_name: str + self._description: str + self._content_type: str + self._target: str + self._content_is_in_search_index: bool + + self.datum_type = datum_type + self.file_name = file_name + self.description = description + self.content_type = content_type + self.target = target + self.content_is_in_search_index = content_is_in_search_index + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataFileDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataFileDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataFileDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataFileDatum. + """ + # Field is not nullable + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") + self._datum_type = datum_type + + @property + def file_name(self) -> "str": + """Gets the file_name of this GrantaServerApiDataFileDatum. + + Returns + ------- + str + The file_name of this GrantaServerApiDataFileDatum. + """ + return self._file_name + + @file_name.setter + def file_name(self, file_name: "str") -> None: + """Sets the file_name of this GrantaServerApiDataFileDatum. + + Parameters + ---------- + file_name: str + The file_name of this GrantaServerApiDataFileDatum. + """ + # Field is not nullable + if file_name is None: + raise ValueError("Invalid value for 'file_name', must not be 'None'") + # Field is required + if file_name is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'file_name', must not be 'Unset'") + self._file_name = file_name + + @property + def description(self) -> "str": + """Gets the description of this GrantaServerApiDataFileDatum. + + Returns + ------- + str + The description of this GrantaServerApiDataFileDatum. + """ + return self._description + + @description.setter + def description(self, description: "str") -> None: + """Sets the description of this GrantaServerApiDataFileDatum. + + Parameters + ---------- + description: str + The description of this GrantaServerApiDataFileDatum. + """ + # Field is not nullable + if description is None: + raise ValueError("Invalid value for 'description', must not be 'None'") + # Field is required + if description is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'description', must not be 'Unset'") + self._description = description + + @property + def content_type(self) -> "str": + """Gets the content_type of this GrantaServerApiDataFileDatum. + + Returns + ------- + str + The content_type of this GrantaServerApiDataFileDatum. + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type: "str") -> None: + """Sets the content_type of this GrantaServerApiDataFileDatum. + + Parameters + ---------- + content_type: str + The content_type of this GrantaServerApiDataFileDatum. + """ + # Field is not nullable + if content_type is None: + raise ValueError("Invalid value for 'content_type', must not be 'None'") + # Field is required + if content_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'content_type', must not be 'Unset'") + self._content_type = content_type + + @property + def target(self) -> "str": + """Gets the target of this GrantaServerApiDataFileDatum. + + Returns + ------- + str + The target of this GrantaServerApiDataFileDatum. + """ + return self._target + + @target.setter + def target(self, target: "str") -> None: + """Sets the target of this GrantaServerApiDataFileDatum. + + Parameters + ---------- + target: str + The target of this GrantaServerApiDataFileDatum. + """ + # Field is not nullable + if target is None: + raise ValueError("Invalid value for 'target', must not be 'None'") + # Field is required + if target is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'target', must not be 'Unset'") + self._target = target + + @property + def content_is_in_search_index(self) -> "bool": + """Gets the content_is_in_search_index of this GrantaServerApiDataFileDatum. + + Returns + ------- + bool + The content_is_in_search_index of this GrantaServerApiDataFileDatum. + """ + return self._content_is_in_search_index + + @content_is_in_search_index.setter + def content_is_in_search_index(self, content_is_in_search_index: "bool") -> None: + """Sets the content_is_in_search_index of this GrantaServerApiDataFileDatum. + + Parameters + ---------- + content_is_in_search_index: bool + The content_is_in_search_index of this GrantaServerApiDataFileDatum. + """ + # Field is not nullable + if content_is_in_search_index is None: + raise ValueError( + "Invalid value for 'content_is_in_search_index', must not be 'None'" + ) + # Field is required + if content_is_in_search_index is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError( + "Invalid value for 'content_is_in_search_index', must not be 'Unset'" + ) + self._content_is_in_search_index = content_is_in_search_index + + @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, GrantaServerApiDataFileDatum): + 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/granta_server_api_data_picture_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_picture_datum.py new file mode 100644 index 00000000..378c9ba2 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_picture_datum.py @@ -0,0 +1,141 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDataPictureDatum(GrantaServerApiDataApplicableDatum): + """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] = { + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map: Dict[str, str] = { + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + datum_type: "str" = "picture", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataPictureDatum - a model defined in Swagger + + Parameters + ---------- + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type: str + + self.datum_type = datum_type + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataPictureDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataPictureDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataPictureDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataPictureDatum. + """ + # Field is not nullable + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + # Field is required + if datum_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'datum_type', must not be 'Unset'") + self._datum_type = datum_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, GrantaServerApiDataPictureDatum): + 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/yaml/server-api.json b/yaml/server-api.json index d96ad206..f957217c 100644 --- a/yaml/server-api.json +++ b/yaml/server-api.json @@ -62,42 +62,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 129": { + "Example 65": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 130": { + "Example 66": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 131": { + "Example 67": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 132": { + "Example 68": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 133": { + "Example 69": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 134": { + "Example 70": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 135": { + "Example 71": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 136": { + "Example 72": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -109,42 +109,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 129": { + "Example 65": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 130": { + "Example 66": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 131": { + "Example 67": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 132": { + "Example 68": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 133": { + "Example 69": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 134": { + "Example 70": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 135": { + "Example 71": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 136": { + "Example 72": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -156,42 +156,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 129": { + "Example 65": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 130": { + "Example 66": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 131": { + "Example 67": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 132": { + "Example 68": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 133": { + "Example 69": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 134": { + "Example 70": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 135": { + "Example 71": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 136": { + "Example 72": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -203,42 +203,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 129": { + "Example 65": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 130": { + "Example 66": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 131": { + "Example 67": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 132": { + "Example 68": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 133": { + "Example 69": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"249bd77e-e312-4da8-95d8-f859c07b542e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 134": { + "Example 70": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ce28acd-2062-4d6f-ad95-ff172e0b5b50","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 135": { + "Example 71": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7179e1ed-17c6-4c9a-91c6-b4e145f5b264","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 136": { + "Example 72": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -331,42 +331,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 137": { + "Example 73": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 138": { + "Example 74": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 139": { + "Example 75": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 140": { + "Example 76": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 141": { + "Example 77": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 142": { + "Example 78": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 143": { + "Example 79": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 144": { + "Example 80": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -378,42 +378,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 137": { + "Example 73": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 138": { + "Example 74": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 139": { + "Example 75": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 140": { + "Example 76": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 141": { + "Example 77": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 142": { + "Example 78": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 143": { + "Example 79": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 144": { + "Example 80": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -425,42 +425,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 137": { + "Example 73": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 138": { + "Example 74": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 139": { + "Example 75": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 140": { + "Example 76": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 141": { + "Example 77": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 142": { + "Example 78": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 143": { + "Example 79": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 144": { + "Example 80": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -472,42 +472,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 137": { + "Example 73": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 138": { + "Example 74": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 139": { + "Example 75": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 140": { + "Example 76": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 141": { + "Example 77": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f107ca73-0452-4b70-9c10-fd320759a349","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 142": { + "Example 78": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"107a5bf9-cc44-4e52-865c-b9f15a473470","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 143": { + "Example 79": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ebbb35c6-ca49-4f8a-96e4-8fcac4e7d4c4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 144": { + "Example 80": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -591,42 +591,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 145": { + "Example 81": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 146": { + "Example 82": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 147": { + "Example 83": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 148": { + "Example 84": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 149": { + "Example 85": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 150": { + "Example 86": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 151": { + "Example 87": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 152": { + "Example 88": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -638,42 +638,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 145": { + "Example 81": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 146": { + "Example 82": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 147": { + "Example 83": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 148": { + "Example 84": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 149": { + "Example 85": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 150": { + "Example 86": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 151": { + "Example 87": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 152": { + "Example 88": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -685,42 +685,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 145": { + "Example 81": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 146": { + "Example 82": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 147": { + "Example 83": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 148": { + "Example 84": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 149": { + "Example 85": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 150": { + "Example 86": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 151": { + "Example 87": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 152": { + "Example 88": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -732,42 +732,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 145": { + "Example 81": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 146": { + "Example 82": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 147": { + "Example 83": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 148": { + "Example 84": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 149": { + "Example 85": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"72e06596-ae22-49dd-9271-ce70bba0cae2","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 150": { + "Example 86": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f053809c-8ac1-4645-b4aa-52ef079b7e2b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 151": { + "Example 87": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ed59789-d8b7-4e4a-bf7f-ef90b0ae4796","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 152": { + "Example 88": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -827,42 +827,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 153": { + "Example 89": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 154": { + "Example 90": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 155": { + "Example 91": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 156": { + "Example 92": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 157": { + "Example 93": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 158": { + "Example 94": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 159": { + "Example 95": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 160": { + "Example 96": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -874,42 +874,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 153": { + "Example 89": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 154": { + "Example 90": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 155": { + "Example 91": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 156": { + "Example 92": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 157": { + "Example 93": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 158": { + "Example 94": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 159": { + "Example 95": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 160": { + "Example 96": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -921,42 +921,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 153": { + "Example 89": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 154": { + "Example 90": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 155": { + "Example 91": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 156": { + "Example 92": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 157": { + "Example 93": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 158": { + "Example 94": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 159": { + "Example 95": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 160": { + "Example 96": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -968,42 +968,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 153": { + "Example 89": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 154": { + "Example 90": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 155": { + "Example 91": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 156": { + "Example 92": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 157": { + "Example 93": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f0cf22c0-4dfe-47db-b567-aa15f34bf29a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 158": { + "Example 94": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2c00d882-b027-4227-841c-682b356a38b0","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 159": { + "Example 95": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7ac14f9c-aba2-47d2-a7e1-8c6619c20251","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 160": { + "Example 96": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -1125,12 +1125,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 33": { + "Example 17": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 34": { + "Example 18": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1222,12 +1222,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 35": { + "Example 19": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 36": { + "Example 20": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1316,36 +1316,466 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiDataDatum" - }, - "examples": { - "Example 37": { - "summary": "Integer datum.", - "description": "Example response for an integer datum with a value of 7.", - "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} - }, - "Example 38": { - "summary": "Logical datum.", - "description": "Example response for a logical datum with a value of 'true'", - "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} - } + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + }, + "examples": { + "Example 21": { + "summary": "Integer datum.", + "description": "Example response for an integer datum with a value of 7.", + "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} + }, + "Example 22": { + "summary": "Logical datum.", + "description": "Example response for a logical datum with a value of 'true'", + "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} + } + } + } + } + }, + "404": { + "description": "Database, record history, record version, attribute or datum not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get a datum for a given attribute and the latest version of a record history in given database.", + "operationId": "GetDatumForLatest", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + }, + "examples": { + "Example 23": { + "summary": "Integer datum.", + "description": "Example response for an integer datum with a value of 7.", + "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} + }, + "Example 24": { + "summary": "Logical datum.", + "description": "Example response for a logical datum with a value of 'true'", + "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} + } + } + } + } + }, + "404": { + "description": "Database, record history, attribute or datum not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}:export": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get the binary data for a given database, table, record history, record version and attribute. Must be a file or picture attribute.", + "operationId": "ExportBinaryDataForVersionFromTable", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "maxWidth", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "maxHeight", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + }, + "application/json": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Database, table, record history, record version, attribute or datum not found" + }, + "400": { + "description": "Attribute is not an exportable type" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}:export": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get the binary data for a given attribute and the latest version of a record history in given database and table. Must be a file or picture attribute.", + "operationId": "ExportBinaryDataForLatestFromTable", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "maxWidth", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "maxHeight", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + }, + "application/json": { + "schema": { + "type": "string", + "format": "binary" + } + } + } + }, + "404": { + "description": "Database, table, record history, attribute or datum not found" + }, + "400": { + "description": "Attribute is not an exportable type" + } + } + } + }, + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}:export": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get the binary data for a given database, record history, record version and attribute. Must be a file or picture attribute.", + "operationId": "ExportBinaryDataForVersion", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "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.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "maxWidth", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "maxHeight", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + }, + "application/json": { + "schema": { + "type": "string", + "format": "binary" } } } }, "404": { "description": "Database, record history, record version, attribute or datum not found" + }, + "400": { + "description": "Attribute is not an exportable type" } } } }, - "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}": { + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}:export": { "get": { "tags": [ "Data" ], - "summary": "Get a datum for a given attribute and the latest version of a record history in given database.", - "operationId": "GetDatumForLatest", + "summary": "Get the binary data for a given attribute and the latest version of a record history in given database. Must be a file or picture attribute.", + "operationId": "ExportBinaryDataForLatest", "parameters": [ { "name": "database-key", @@ -1396,33 +1826,47 @@ ], "type": "string" } + }, + { + "name": "maxWidth", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "maxHeight", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } } ], "responses": { "200": { "description": "Ok", "content": { + "application/octet-stream": { + "schema": { + "type": "string", + "format": "binary" + } + }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiDataDatum" - }, - "examples": { - "Example 39": { - "summary": "Integer datum.", - "description": "Example response for an integer datum with a value of 7.", - "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} - }, - "Example 40": { - "summary": "Logical datum.", - "description": "Example response for a logical datum with a value of 'true'", - "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} - } + "type": "string", + "format": "binary" } } } }, "404": { "description": "Database, record history, attribute or datum not found" + }, + "400": { + "description": "Attribute is not an exportable type" } } } @@ -2073,67 +2517,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 53": { + "Example 27": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 54": { + "Example 28": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 55": { + "Example 29": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 56": { + "Example 30": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 57": { + "Example 31": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 58": { + "Example 32": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 59": { + "Example 33": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 60": { + "Example 34": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 61": { + "Example 35": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 62": { + "Example 36": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 63": { + "Example 37": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 64": { + "Example 38": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 65": { + "Example 39": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2145,67 +2589,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 53": { + "Example 27": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 54": { + "Example 28": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 55": { + "Example 29": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 56": { + "Example 30": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 57": { + "Example 31": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 58": { + "Example 32": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 59": { + "Example 33": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 60": { + "Example 34": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 61": { + "Example 35": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 62": { + "Example 36": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 63": { + "Example 37": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 64": { + "Example 38": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 65": { + "Example 39": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2217,67 +2661,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 53": { + "Example 27": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 54": { + "Example 28": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 55": { + "Example 29": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 56": { + "Example 30": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 57": { + "Example 31": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 58": { + "Example 32": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 59": { + "Example 33": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 60": { + "Example 34": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 61": { + "Example 35": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 62": { + "Example 36": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 63": { + "Example 37": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 64": { + "Example 38": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 65": { + "Example 39": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2289,67 +2733,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 53": { + "Example 27": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 54": { + "Example 28": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 55": { + "Example 29": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 56": { + "Example 30": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 57": { + "Example 31": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 58": { + "Example 32": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 59": { + "Example 33": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 60": { + "Example 34": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 61": { + "Example 35": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 62": { + "Example 36": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 63": { + "Example 37": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 64": { + "Example 38": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 65": { + "Example 39": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -3667,12 +4111,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 9": { + "Example 5": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 10": { + "Example 6": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -3684,12 +4128,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 9": { + "Example 5": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 10": { + "Example 6": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -3701,12 +4145,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 9": { + "Example 5": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 10": { + "Example 6": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -3718,12 +4162,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 9": { + "Example 5": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 10": { + "Example 6": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4230,12 +4674,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 10": { + "Example 6": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4247,12 +4691,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 10": { + "Example 6": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4264,12 +4708,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 10": { + "Example 6": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4281,12 +4725,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 10": { + "Example 6": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -5200,27 +5644,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 22": { + "Example 12": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 23": { + "Example 13": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} }, - "Example 24": { + "Example 14": { "summary": "Record History with specified colour", "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 25": { + "Example 15": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5232,27 +5676,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 22": { + "Example 12": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 23": { + "Example 13": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} }, - "Example 24": { + "Example 14": { "summary": "Record History with specified colour", "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 25": { + "Example 15": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5264,27 +5708,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 22": { + "Example 12": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 23": { + "Example 13": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} }, - "Example 24": { + "Example 14": { "summary": "Record History with specified colour", "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 25": { + "Example 15": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5296,27 +5740,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 22": { + "Example 12": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 23": { + "Example 13": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"3507fecd-5704-4388-8e87-a72fde2e1b2c"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} }, - "Example 24": { + "Example 14": { "summary": "Record History with specified colour", "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 25": { + "Example 15": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5333,7 +5777,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"0dddda27-dc24-4b20-869c-7ee63702b65c"}],"subsets":[],"guid":"23040748-770f-4eca-8053-d9d4bfe7cb9e"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"82140c49-d9a6-45d3-a1bd-bb90ef706034"}],"subsets":[],"guid":"b9013ea8-cb16-47e1-8337-1aa6d95ed3f0"} } } }, @@ -5391,12 +5835,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 18": { + "Example 10": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5408,12 +5852,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 18": { + "Example 10": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5425,12 +5869,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 18": { + "Example 10": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5442,12 +5886,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 18": { + "Example 10": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5476,23 +5920,23 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 41": { + "Example 21": { "summary": "New parent is not a folder.", "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 42": { + "Example 22": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 43": { + "Example 23": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 44": { + "Example 24": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 45": { + "Example 25": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } @@ -5542,12 +5986,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 19": { + "Example 11": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 20": { + "Example 12": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5559,12 +6003,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 19": { + "Example 11": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 20": { + "Example 12": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5576,12 +6020,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 19": { + "Example 11": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 20": { + "Example 12": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5593,12 +6037,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 19": { + "Example 11": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 20": { + "Example 12": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5627,23 +6071,23 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 46": { + "Example 26": { "summary": "New parent is not a folder.", "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 47": { + "Example 27": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 48": { + "Example 28": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 49": { + "Example 29": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 50": { + "Example 30": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } @@ -5702,17 +6146,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 26": { + "Example 14": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 27": { + "Example 15": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5724,17 +6168,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 26": { + "Example 14": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 27": { + "Example 15": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5746,17 +6190,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 26": { + "Example 14": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 27": { + "Example 15": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5768,17 +6212,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 26": { + "Example 14": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 27": { + "Example 15": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5795,7 +6239,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"1583a185-f713-4c9e-8b3a-b1bfc4765a5f"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"a8f8ee4a-0914-4499-a5c7-384e2f3a7813"} } } }, @@ -5807,19 +6251,19 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 33": { + "Example 17": { "summary": "New parent is not a folder.", "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 34": { + "Example 18": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 35": { + "Example 19": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 36": { + "Example 20": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } @@ -5869,17 +6313,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 28": { + "Example 16": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 29": { + "Example 17": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 30": { + "Example 18": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5891,17 +6335,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 28": { + "Example 16": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 29": { + "Example 17": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 30": { + "Example 18": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5913,17 +6357,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 28": { + "Example 16": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 29": { + "Example 17": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 30": { + "Example 18": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5935,17 +6379,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 28": { + "Example 16": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 29": { + "Example 17": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 30": { + "Example 18": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -5962,7 +6406,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"4d4383a5-cea5-4270-8f2b-386da20f594e"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"84ec82ef-6bab-4bf6-bed9-3e7e1e565cb5"} } } }, @@ -5974,19 +6418,19 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 37": { + "Example 21": { "summary": "New parent is not a folder.", "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 38": { + "Example 22": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 39": { + "Example 23": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 40": { + "Example 24": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } @@ -6353,18 +6797,18 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Invalid version state.", "description": "Only unreleased record versions can be released.", "value": {"message":"Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 14": { + "Example 8": { "summary": "Table is not version controlled.", "value": {"message":"Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 15": { + "Example 9": { "summary": "Parent is not released.", - "value": {"message":"Cannot release record version '8139bb2e-944a-4958-a006-87582f32f892'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} + "value": {"message":"Cannot release record version '0c624a2a-5ca1-43ec-92be-0203825e407a'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} } } } @@ -6443,18 +6887,18 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Invalid version state.", "description": "A new version can only be created from the latest released or withdrawn record version.", "value": {"message":"Cannot create a new version from the record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Superseded'.","reason":"invalidVersionState","versionState":"superseded"}]} }, - "Example 14": { + "Example 8": { "summary": "Table is not version controlled.", "value": {"message":"Cannot create a new version from the record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 15": { + "Example 9": { "summary": "Record version is not the latest version.", - "value": {"message":"Cannot create a new version from the record version 'cd36dd60-1086-481a-ad16-a38429aa1968'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"ed3cbf89-c06f-495e-9a6c-cdce140891fc"}}]} + "value": {"message":"Cannot create a new version from the record version 'd073ccfb-2f86-4b65-97bd-da286cff3fbc'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"5ec3a46a-9a0e-4840-af74-ddcb5b7045bf"}}]} } } } @@ -6533,12 +6977,12 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Invalid version state.", "description": "Only released record versions can be withdrawn.", "value": {"message":"Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Unreleased'.","reason":"invalidVersionState","versionState":"unreleased"}]} }, - "Example 10": { + "Example 6": { "summary": "Table is not version controlled.", "value": {"message":"Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } @@ -6671,122 +7115,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 97": { + "Example 49": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 98": { + "Example 50": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} }, - "Example 99": { + "Example 51": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 100": { + "Example 52": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 101": { + "Example 53": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 102": { + "Example 54": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 103": { + "Example 55": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 104": { + "Example 56": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 105": { + "Example 57": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 106": { + "Example 58": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 107": { + "Example 59": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 108": { + "Example 60": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 109": { + "Example 61": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 110": { + "Example 62": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 111": { + "Example 63": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 112": { + "Example 64": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 113": { + "Example 65": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 114": { + "Example 66": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 115": { + "Example 67": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 116": { + "Example 68": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 117": { + "Example 69": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 118": { + "Example 70": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 119": { + "Example 71": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 120": { + "Example 72": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -6798,122 +7242,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 97": { + "Example 49": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 98": { + "Example 50": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} }, - "Example 99": { + "Example 51": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 100": { + "Example 52": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 101": { + "Example 53": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 102": { + "Example 54": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 103": { + "Example 55": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 104": { + "Example 56": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 105": { + "Example 57": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 106": { + "Example 58": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 107": { + "Example 59": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 108": { + "Example 60": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 109": { + "Example 61": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 110": { + "Example 62": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 111": { + "Example 63": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 112": { + "Example 64": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 113": { + "Example 65": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 114": { + "Example 66": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 115": { + "Example 67": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 116": { + "Example 68": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 117": { + "Example 69": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 118": { + "Example 70": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 119": { + "Example 71": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 120": { + "Example 72": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -6925,122 +7369,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 97": { + "Example 49": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 98": { + "Example 50": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} }, - "Example 99": { + "Example 51": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 100": { + "Example 52": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 101": { + "Example 53": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 102": { + "Example 54": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 103": { + "Example 55": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 104": { + "Example 56": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 105": { + "Example 57": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 106": { + "Example 58": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 107": { + "Example 59": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 108": { + "Example 60": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 109": { + "Example 61": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 110": { + "Example 62": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 111": { + "Example 63": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 112": { + "Example 64": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 113": { + "Example 65": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 114": { + "Example 66": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 115": { + "Example 67": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 116": { + "Example 68": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 117": { + "Example 69": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 118": { + "Example 70": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 119": { + "Example 71": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 120": { + "Example 72": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7052,122 +7496,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 97": { + "Example 49": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 98": { + "Example 50": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"d1931919-24c2-4739-97cc-094d44bd93e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} }, - "Example 99": { + "Example 51": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 100": { + "Example 52": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 101": { + "Example 53": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 102": { + "Example 54": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 103": { + "Example 55": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 104": { + "Example 56": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 105": { + "Example 57": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 106": { + "Example 58": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 107": { + "Example 59": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 108": { + "Example 60": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 109": { + "Example 61": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 110": { + "Example 62": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 111": { + "Example 63": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 112": { + "Example 64": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 113": { + "Example 65": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 114": { + "Example 66": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 115": { + "Example 67": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 116": { + "Example 68": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 117": { + "Example 69": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 118": { + "Example 70": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 119": { + "Example 71": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 120": { + "Example 72": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7185,22 +7629,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 85": { + "Example 45": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 86": { + "Example 46": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 87": { + "Example 47": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"77fcd4f4-986c-48cc-b989-a9afcc15a2d5"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"6c023783-8bca-4279-b6fd-125e78f399d9"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 88": { + "Example 48": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7289,22 +7733,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 18": { + "Example 10": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 11": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"e804ceaf-9521-4afd-bdbb-a8dab3c11be5"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"7fe24619-8721-4ddc-becd-54b07a352af2"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 20": { + "Example 12": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7359,72 +7803,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 57": { + "Example 29": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 58": { + "Example 30": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 59": { + "Example 31": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 60": { + "Example 32": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 61": { + "Example 33": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 62": { + "Example 34": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 63": { + "Example 35": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 64": { + "Example 36": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 65": { + "Example 37": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 66": { + "Example 38": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 67": { + "Example 39": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 68": { + "Example 40": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 69": { + "Example 41": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 70": { + "Example 42": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -7436,72 +7880,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 57": { + "Example 29": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 58": { + "Example 30": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 59": { + "Example 31": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 60": { + "Example 32": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 61": { + "Example 33": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 62": { + "Example 34": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 63": { + "Example 35": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 64": { + "Example 36": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 65": { + "Example 37": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 66": { + "Example 38": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 67": { + "Example 39": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 68": { + "Example 40": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 69": { + "Example 41": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 70": { + "Example 42": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -7513,72 +7957,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 57": { + "Example 29": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 58": { + "Example 30": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 59": { + "Example 31": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 60": { + "Example 32": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 61": { + "Example 33": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 62": { + "Example 34": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 63": { + "Example 35": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 64": { + "Example 36": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 65": { + "Example 37": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 66": { + "Example 38": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 67": { + "Example 39": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 68": { + "Example 40": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 69": { + "Example 41": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 70": { + "Example 42": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -7590,72 +8034,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 57": { + "Example 29": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 58": { + "Example 30": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 59": { + "Example 31": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 60": { + "Example 32": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 61": { + "Example 33": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 62": { + "Example 34": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 63": { + "Example 35": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 64": { + "Example 36": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 65": { + "Example 37": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 66": { + "Example 38": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 67": { + "Example 39": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 68": { + "Example 40": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 69": { + "Example 41": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 70": { + "Example 42": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -7673,22 +8117,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 89": { + "Example 49": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 90": { + "Example 50": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 91": { + "Example 51": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"e8e14fe8-8a90-43e6-9d5a-7d6a1f2dfed4"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"4497bb73-a369-44b7-8493-8c8627b3bcc5"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 92": { + "Example 52": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7901,22 +8345,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 93": { + "Example 53": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 94": { + "Example 54": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 95": { + "Example 55": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"78ace905-784d-4ceb-b983-486285a043dd"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"58de4b9f-103a-455b-b064-9e3914a0d0cd"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 96": { + "Example 56": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7971,22 +8415,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 19": { + "Example 11": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 20": { + "Example 12": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -7998,22 +8442,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 19": { + "Example 11": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 20": { + "Example 12": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8025,22 +8469,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 19": { + "Example 11": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 20": { + "Example 12": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8052,22 +8496,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 19": { + "Example 11": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 20": { + "Example 12": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8085,22 +8529,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 97": { + "Example 57": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 98": { + "Example 58": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 99": { + "Example 59": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"27fc12bc-be6c-4cc4-9a01-32a143f24f0a"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"5071c1a3-ec0e-4520-a6aa-806dce485b61"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 100": { + "Example 60": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -8162,7 +8606,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, - "example": {"message":"Cannot delete attribute 'Notes' (GUID = '675ab551-6444-4fdf-88fc-0417f11e3d78').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"e13cb392-4e68-4079-bcb5-42ccd903ed32"}]}]} + "example": {"message":"Cannot delete attribute 'Notes' (GUID = '394326b3-13c1-4f26-9128-e16180d3ac1c').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"e8b160af-64ec-4230-a40a-88cbae8f6817"}]}]} } } }, @@ -8503,15 +8947,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 10": { + "Example 6": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} } } }, @@ -8520,15 +8964,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 10": { + "Example 6": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} } } }, @@ -8537,15 +8981,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 10": { + "Example 6": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} } } }, @@ -8554,15 +8998,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 10": { + "Example 6": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"08248993-57a7-4a49-a921-a3cb25cb42e1"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} } } } @@ -8695,12 +9139,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} }, - "Example 10": { + "Example 6": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -8712,12 +9156,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} }, - "Example 10": { + "Example 6": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -8729,12 +9173,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} }, - "Example 10": { + "Example 6": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -8746,12 +9190,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"e3e6e5e5-fc29-4afc-b10f-cd6a46dc3f9d"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} }, - "Example 10": { + "Example 6": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -8944,17 +9388,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 14": { + "Example 8": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} }, - "Example 15": { + "Example 9": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -8966,17 +9410,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 14": { + "Example 8": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} }, - "Example 15": { + "Example 9": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -8988,17 +9432,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 14": { + "Example 8": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} }, - "Example 15": { + "Example 9": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9010,17 +9454,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 14": { + "Example 8": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"093f6757-f548-4200-a5d9-595f6a698176"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} }, - "Example 15": { + "Example 9": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9133,20 +9577,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 15": { + "Example 9": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} } } }, @@ -9155,20 +9599,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 15": { + "Example 9": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} } } }, @@ -9177,20 +9621,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 15": { + "Example 9": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} } } }, @@ -9199,20 +9643,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ac10746d-8d84-4b2b-b7b9-0554266f7626"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 15": { + "Example 9": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"2a1ea7b9-ff16-49cc-9835-bd25a408c01e"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} } } } @@ -9348,7 +9792,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9360,7 +9804,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9372,7 +9816,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9384,7 +9828,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9648,10 +10092,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -9664,10 +10108,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -9680,10 +10124,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -9696,10 +10140,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d32fbb65-3239-4a94-9793-0744cd3d6477","name":"MI Training (Updated)","guid":"69a2f75a-b78a-457e-8bfa-a9110d12c24b"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -9873,12 +10317,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 10": { + "Example 6": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -9890,12 +10334,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 10": { + "Example 6": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -9907,12 +10351,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 10": { + "Example 6": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -9924,12 +10368,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 10": { + "Example 6": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10243,15 +10687,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 10": { + "Example 6": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} + "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} } } }, @@ -10260,15 +10704,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 10": { + "Example 6": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} + "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} } } }, @@ -10277,15 +10721,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 10": { + "Example 6": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} + "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} } } }, @@ -10294,15 +10738,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 10": { + "Example 6": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"bb36d560-7150-4651-8b78-dc23df56ed4b"} + "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} } } } @@ -10706,7 +11150,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -10718,7 +11162,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -10730,7 +11174,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -10742,7 +11186,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -10921,15 +11365,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} + "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} } } }, @@ -10938,15 +11382,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} + "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} } } }, @@ -10955,15 +11399,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} + "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} } } }, @@ -10972,15 +11416,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"5fd8efad-31ad-4c0c-a983-fa98732664d7"} + "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} } } } @@ -11198,7 +11642,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11210,7 +11654,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11222,7 +11666,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11234,7 +11678,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11313,19 +11757,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"c4efe5a4-ca4f-40ef-a153-3992a2a1d9af"},{"name":"no-transform.xslt","guid":"4f02e67c-8ccf-4e96-af96-54e43f4f9ecd"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"44a1b86e-f477-4f83-963e-7054aa6cf00f"},{"name":"no-transform.xslt","guid":"8c5e0c2a-735e-4e90-b6fe-b1836adb731d"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"c4efe5a4-ca4f-40ef-a153-3992a2a1d9af"},{"name":"no-transform.xslt","guid":"4f02e67c-8ccf-4e96-af96-54e43f4f9ecd"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"44a1b86e-f477-4f83-963e-7054aa6cf00f"},{"name":"no-transform.xslt","guid":"8c5e0c2a-735e-4e90-b6fe-b1836adb731d"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"c4efe5a4-ca4f-40ef-a153-3992a2a1d9af"},{"name":"no-transform.xslt","guid":"4f02e67c-8ccf-4e96-af96-54e43f4f9ecd"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"44a1b86e-f477-4f83-963e-7054aa6cf00f"},{"name":"no-transform.xslt","guid":"8c5e0c2a-735e-4e90-b6fe-b1836adb731d"}]} } } }, @@ -11393,19 +11837,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c17d19bf-926d-4be1-bb33-41c1f95d61d1"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"4be6a265-23e6-4795-a2ee-e2cf40ff5530"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c17d19bf-926d-4be1-bb33-41c1f95d61d1"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"4be6a265-23e6-4795-a2ee-e2cf40ff5530"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c17d19bf-926d-4be1-bb33-41c1f95d61d1"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"4be6a265-23e6-4795-a2ee-e2cf40ff5530"} } } }, @@ -11464,19 +11908,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"0713fe68-87c7-429d-b82d-64b591eff5ff"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"82959737-fc57-4e60-8a3a-8f82f8aa9723"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"0713fe68-87c7-429d-b82d-64b591eff5ff"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"82959737-fc57-4e60-8a3a-8f82f8aa9723"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"0713fe68-87c7-429d-b82d-64b591eff5ff"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"82959737-fc57-4e60-8a3a-8f82f8aa9723"} } } }, @@ -11526,20 +11970,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} + "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} } } }, @@ -11548,20 +11992,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} + "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} } } }, @@ -11570,20 +12014,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} + "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} } } }, @@ -11592,20 +12036,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"8ca1706e-d1de-4f2f-8d3b-8dafdad4250d"} + "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} } } } @@ -11619,19 +12063,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"804ce9bc-1d1b-49b0-9898-0187acb456c0"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"7aa6812b-5f2a-4f0f-9c4c-e35fd5ec83ee"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"804ce9bc-1d1b-49b0-9898-0187acb456c0"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"7aa6812b-5f2a-4f0f-9c4c-e35fd5ec83ee"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"804ce9bc-1d1b-49b0-9898-0187acb456c0"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"7aa6812b-5f2a-4f0f-9c4c-e35fd5ec83ee"} } } }, @@ -11780,7 +12224,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11792,7 +12236,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11804,7 +12248,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11816,7 +12260,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11833,19 +12277,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"223d1551-e64b-41d0-a846-ec977a8c1a78"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"db36ecf3-b4d3-444d-837e-8ebcdf756d48"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"223d1551-e64b-41d0-a846-ec977a8c1a78"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"db36ecf3-b4d3-444d-837e-8ebcdf756d48"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"223d1551-e64b-41d0-a846-ec977a8c1a78"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"db36ecf3-b4d3-444d-837e-8ebcdf756d48"} } } }, @@ -11920,7 +12364,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpressionsInfo" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Get all expressions", "description": "This example demonstrates the response to getting all expressions from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"expressions":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]} @@ -11966,17 +12410,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 14": { + "Example 8": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} }, - "Example 15": { + "Example 9": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -11988,17 +12432,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 14": { + "Example 8": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} }, - "Example 15": { + "Example 9": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12010,17 +12454,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 14": { + "Example 8": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} }, - "Example 15": { + "Example 9": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12032,17 +12476,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 14": { + "Example 8": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"5e42cd80-0fd3-4409-b5b8-99dfb485461c"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} }, - "Example 15": { + "Example 9": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12060,7 +12504,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 14": { + "Example 8": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12149,7 +12593,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12204,12 +12648,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} }, - "Example 10": { + "Example 6": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12221,12 +12665,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} }, - "Example 10": { + "Example 6": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12238,12 +12682,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} }, - "Example 10": { + "Example 6": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12255,12 +12699,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"4c20a8d8-ad7f-477c-9857-d12e27aab278"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} }, - "Example 10": { + "Example 6": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12278,7 +12722,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 15": { + "Example 9": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12417,7 +12861,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -12429,7 +12873,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -12441,7 +12885,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -12453,7 +12897,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -12632,15 +13076,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} + "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} } } }, @@ -12649,15 +13093,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} + "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} } } }, @@ -12666,15 +13110,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} + "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} } } }, @@ -12683,15 +13127,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"96456c96-fb50-4338-9ba7-c4a90bdc7c30"} + "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} } } } @@ -12859,7 +13303,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -12871,7 +13315,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -12883,7 +13327,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -12895,7 +13339,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13054,19 +13498,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5675f659-05c8-45e9-a073-f4a655461912"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"539de9fb-4e23-4b20-b256-c8c6fee70f14"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5675f659-05c8-45e9-a073-f4a655461912"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"539de9fb-4e23-4b20-b256-c8c6fee70f14"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5675f659-05c8-45e9-a073-f4a655461912"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"539de9fb-4e23-4b20-b256-c8c6fee70f14"} } } }, @@ -13187,20 +13631,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} + "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} } } }, @@ -13209,20 +13653,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} + "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} } } }, @@ -13231,20 +13675,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} + "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} } } }, @@ -13253,20 +13697,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"bcc31c68-fef8-4f53-ba1f-98148b3e4840"} + "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} } } } @@ -13280,19 +13724,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"2bba026c-4c42-4739-a40f-e5ff4bfb25c8"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"543a8a1b-f169-46a0-886d-89ce8a686113"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"2bba026c-4c42-4739-a40f-e5ff4bfb25c8"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"543a8a1b-f169-46a0-886d-89ce8a686113"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"2bba026c-4c42-4739-a40f-e5ff4bfb25c8"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"543a8a1b-f169-46a0-886d-89ce8a686113"} } } }, @@ -13441,7 +13885,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13453,7 +13897,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13465,7 +13909,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13477,7 +13921,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13494,19 +13938,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"6b874204-822d-468d-98d4-66d9d8c58322"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b6c8d0f8-9bbc-49da-8eb9-0d88c8f86189"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"6b874204-822d-468d-98d4-66d9d8c58322"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b6c8d0f8-9bbc-49da-8eb9-0d88c8f86189"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"6b874204-822d-468d-98d4-66d9d8c58322"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b6c8d0f8-9bbc-49da-8eb9-0d88c8f86189"} } } }, @@ -13547,19 +13991,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"37580c2e-d4d3-4dab-90b6-581aa74cb328"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"bf2fecc7-0e41-4a09-878d-4578676ae3dc"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"37580c2e-d4d3-4dab-90b6-581aa74cb328"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"bf2fecc7-0e41-4a09-878d-4578676ae3dc"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"37580c2e-d4d3-4dab-90b6-581aa74cb328"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"bf2fecc7-0e41-4a09-878d-4578676ae3dc"}]} } } }, @@ -13591,7 +14035,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -13603,7 +14047,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -13615,7 +14059,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -13627,7 +14071,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -13753,19 +14197,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"4e9bd820-81bd-4473-ab2c-0814875b7e46"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"fecdaa25-2e7e-47a0-8c7d-10b6d7889525"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"4e9bd820-81bd-4473-ab2c-0814875b7e46"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"fecdaa25-2e7e-47a0-8c7d-10b6d7889525"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"4e9bd820-81bd-4473-ab2c-0814875b7e46"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"fecdaa25-2e7e-47a0-8c7d-10b6d7889525"} } } }, @@ -13806,15 +14250,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} + "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} } } }, @@ -13823,15 +14267,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} + "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} } } }, @@ -13840,15 +14284,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} + "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} } } }, @@ -13857,15 +14301,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 10": { + "Example 6": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"45ee8ee3-4b57-496e-9d8b-07c9db03b2c1"} + "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} } } } @@ -13978,19 +14422,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"de97a742-7dac-436c-a7e8-946e12c10916"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0b0be17c-c9a5-446d-a707-805e86d6787d"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"de97a742-7dac-436c-a7e8-946e12c10916"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0b0be17c-c9a5-446d-a707-805e86d6787d"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"de97a742-7dac-436c-a7e8-946e12c10916"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0b0be17c-c9a5-446d-a707-805e86d6787d"}]} } } }, @@ -14033,7 +14477,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14045,7 +14489,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14057,7 +14501,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14069,7 +14513,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14148,19 +14592,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"24fb574f-2ff3-4df5-9322-4ba4407220f0"},{"name":"home-page-2.html","guid":"6a4f2040-7514-45dd-8353-be532e879de8"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"0b42b341-cbf4-41bf-b923-e80cef96662b"},{"name":"home-page-2.html","guid":"011b5293-d576-4c0d-aeef-62e3e98364d1"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"24fb574f-2ff3-4df5-9322-4ba4407220f0"},{"name":"home-page-2.html","guid":"6a4f2040-7514-45dd-8353-be532e879de8"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"0b42b341-cbf4-41bf-b923-e80cef96662b"},{"name":"home-page-2.html","guid":"011b5293-d576-4c0d-aeef-62e3e98364d1"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"24fb574f-2ff3-4df5-9322-4ba4407220f0"},{"name":"home-page-2.html","guid":"6a4f2040-7514-45dd-8353-be532e879de8"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"0b42b341-cbf4-41bf-b923-e80cef96662b"},{"name":"home-page-2.html","guid":"011b5293-d576-4c0d-aeef-62e3e98364d1"}]} } } }, @@ -14228,19 +14672,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"71a112e9-9005-42bd-9b1e-6a1510981b10"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"979fd503-d915-496b-9589-3f5c425515b9"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"71a112e9-9005-42bd-9b1e-6a1510981b10"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"979fd503-d915-496b-9589-3f5c425515b9"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"71a112e9-9005-42bd-9b1e-6a1510981b10"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"979fd503-d915-496b-9589-3f5c425515b9"} } } }, @@ -14299,19 +14743,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"28af5fdd-e84c-48f4-a267-e6975ae0bb43"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"6db7c963-85cd-46d9-95ce-2f2434bbcbb1"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"28af5fdd-e84c-48f4-a267-e6975ae0bb43"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"6db7c963-85cd-46d9-95ce-2f2434bbcbb1"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"28af5fdd-e84c-48f4-a267-e6975ae0bb43"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"6db7c963-85cd-46d9-95ce-2f2434bbcbb1"} } } }, @@ -14361,20 +14805,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} + "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} } } }, @@ -14383,20 +14827,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} + "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} } } }, @@ -14405,20 +14849,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} + "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} } } }, @@ -14427,20 +14871,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 14": { + "Example 8": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 15": { + "Example 9": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5b8158f3-9363-47a6-99d2-7e63dd6c1088"} + "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} } } } @@ -14454,19 +14898,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"568fea36-b97a-47d9-aeae-8be894c90125"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"df63a4d8-cb8f-45fb-8486-8f8b89205c46"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"568fea36-b97a-47d9-aeae-8be894c90125"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"df63a4d8-cb8f-45fb-8486-8f8b89205c46"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"568fea36-b97a-47d9-aeae-8be894c90125"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"df63a4d8-cb8f-45fb-8486-8f8b89205c46"} } } }, @@ -14615,7 +15059,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14627,7 +15071,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14639,7 +15083,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14651,7 +15095,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14668,19 +15112,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"a275b38d-ab34-41a8-8e00-0b70f4532b18"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"52d1255d-4d79-47ad-a2ae-29cbd9364562"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"a275b38d-ab34-41a8-8e00-0b70f4532b18"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"52d1255d-4d79-47ad-a2ae-29cbd9364562"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"a275b38d-ab34-41a8-8e00-0b70f4532b18"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"52d1255d-4d79-47ad-a2ae-29cbd9364562"} } } }, @@ -14771,15 +15215,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSectionsInfo" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Get 'slim' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to false, which is the default value.", "value": {"layoutSections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} }, - "Example 10": { + "Example 6": { "summary": "Get 'full' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to true.", - "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"7b179074-eb3f-4eda-b6bb-45d215f82b00","name":"Price","guid":"1b9e3647-54c8-4918-af99-b13bf22e6a17"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"9511c40a-b168-416a-943f-52e862dc4391","name":"Density","guid":"5bb33885-9831-4f00-8687-70900376cd2e"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"a7647c92-dafb-4521-8cd5-d3289f4836d6","name":"Young's modulus","guid":"291f1064-7efb-412d-99c7-69dab8845292"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"85a40955-be66-476f-b00e-4eb3b59add25","name":"Tensile strength","guid":"21de3dc3-70a7-4e51-903a-c6520d311042"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"7622a6fa-416e-45e1-9637-a30828347edf","name":"Shape factor","guid":"efee385f-1611-4014-aed4-830875a5a878"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} + "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"12ba97c3-5e0a-4355-99e5-c2e5218f34e2","name":"Price","guid":"918988c9-e7eb-4fd4-8702-08daea41c019"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e14d47ed-e36d-425f-abef-48e1cba38bd5","name":"Density","guid":"87e62d77-05d0-4e32-bcb7-5aaeaaf518e6"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"7647f04c-c602-47b8-97bf-d41206d13eda","name":"Young's modulus","guid":"12c4c4cb-0e8f-4be9-a3aa-4bf84c9f64d2"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e9e65125-61d8-4ae9-87dc-f8ea795b5ce9","name":"Tensile strength","guid":"c9d727cc-ee63-4855-9bd4-6ed2a98cb50d"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e381e34e-80a4-4e8d-a4df-bc93f239b9fa","name":"Shape factor","guid":"d26a7db4-4cbd-472d-bf62-fd1a3ee4befc"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} } } } @@ -14831,15 +15275,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 10": { + "Example 6": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} + "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} } } }, @@ -14848,15 +15292,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 10": { + "Example 6": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} + "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} } } }, @@ -14865,15 +15309,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 10": { + "Example 6": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} + "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} } } }, @@ -14882,15 +15326,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 10": { + "Example 6": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"b0b74c65-ddc2-4693-893c-dc657e1bcd32"} + "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} } } } @@ -14904,7 +15348,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayoutSection" }, - "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"be23361d-8dbe-482b-bfad-f5fcce77d73d"} + "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"14befdf1-fed1-4fe7-8007-324795c7d267"} } } }, @@ -14960,7 +15404,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -14972,7 +15416,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -14984,7 +15428,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -14996,7 +15440,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15113,15 +15557,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSection" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Get 'slim' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to false, which is the default value.", - "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"e122faa0-3cf9-44ce-8166-156378a9b578"} + "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"fe89feb9-cbac-4e10-8ac3-4a34a5da3887"} }, - "Example 10": { + "Example 6": { "summary": "Get 'full' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to true.", - "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"fb748dad-7fdb-40db-98da-b1fb3bded2d5","name":"Form","guid":"f3f43f5e-c1e1-403f-aba8-4e32e1d3d105"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"06769012-6bc8-47f9-aebc-7cd2a3e0c566","name":"Sources","guid":"f5a6f0f7-98dc-450e-a167-c74207057728"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"203c6c22-dcf7-4341-829d-01286a66d4d5","name":"Notes","guid":"547784a4-1cd4-4335-8f07-5a16c6fa8300"}],"underlyingEntityGuid":"1a6e1574-7569-4f61-a726-6a9631988911","name":"Chemical resistance","guid":"74cc8867-34e2-486d-ad1c-915698df00ac"},{"itemType":"link","linkType":"recordLink","targetDatabase":"6998cb1a-db05-4164-9b6f-d4edc8eba186","targetDatabaseVersion":"5c6af642-5842-4023-a6e6-d87d38bc3e8c","targetTable":"2c003557-914d-44ae-b221-e71f98fe1a69","forwards":true,"underlyingEntityGuid":"252b417e-de7c-4ba3-918f-d3f4ea0005b9","name":"Material Pedigree","guid":"454874fc-043b-4116-a784-5402dc059414"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"b0cfff33-aff8-48b8-ba14-8b16db7b0bb8","name":"Offset Yield Stress","guid":"f64b0e36-2140-4efb-b029-c829594ec602"},{"columnType":"localShortText","tabularColumnGuid":"fe3e6c62-2347-49b2-b031-88ce9a1ac570","name":"Young's Modulus Notes","guid":"2af8da28-8cd4-4086-8b4f-00222a3cbfca"}],"underlyingEntityGuid":"6070c95d-c98a-4123-8b48-7914967cd1ae","name":"Reference Characteristics","guid":"29e31a1b-c6bf-4739-af2b-c890459a62a1"},{"itemType":"link","linkType":"associationChain","targetDatabase":"6998cb1a-db05-4164-9b6f-d4edc8eba186","targetDatabaseVersion":"5c6af642-5842-4023-a6e6-d87d38bc3e8c","targetTable":"a0ed4cf2-2bf2-4a2e-b15d-819d24147ffd","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"6998cb1a-db05-4164-9b6f-d4edc8eba186","targetDatabaseVersion":"5c6af642-5842-4023-a6e6-d87d38bc3e8c","targetTable":"333655a4-2879-4bbc-ad79-a1b0df14fdc6","forwards":false,"underlyingEntityGuid":"83f0cccf-1bf2-430b-8b49-c0ec64a86d05","name":"Pedigree information","guid":"debabef7-c281-49e3-9c59-ae3d1c8f5d7c"},"underlyingEntityGuid":"58b6d28c-bd45-45be-a105-0396111380a9","name":"To Pedigree from Producers","guid":"e1204912-8949-4cd5-a5be-242919110627"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"2ea0dbd0-7558-452b-9341-b1cabacfe86a"} + "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"64499856-9aad-4516-9d66-74a1d0f5d716","name":"Form","guid":"78796409-290b-4c57-8f73-00899c79e04c"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"eb02ed6b-09b5-4c56-a4de-ff6cc1b96c9b","name":"Sources","guid":"1a6e43dc-2a03-469d-b194-754e20061199"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"02f34670-b7ee-4d22-b2e3-85a803c69aca","name":"Notes","guid":"7d14a0c8-1302-4aa6-a8a2-8ae12eb85925"}],"underlyingEntityGuid":"5e219ee5-2135-4ec3-ad8f-8dffd49f52e6","name":"Chemical resistance","guid":"88eda0d9-4fe3-45b7-a6f1-a2961278ab96"},{"itemType":"link","linkType":"recordLink","targetDatabase":"dcec6aae-784a-449e-9dd4-b744755b0472","targetDatabaseVersion":"9119ad8b-316f-409d-8c7d-3074a99bfdb6","targetTable":"aab070ea-7d4b-4816-9f9e-2daa35ff9cf1","forwards":true,"underlyingEntityGuid":"4fb67798-6eff-4a71-b6a6-7972533e5f5c","name":"Material Pedigree","guid":"7a50f2d8-5676-4493-bb12-ede630e4f7ce"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"2d3ac30e-be50-44f7-b61d-f5f9bb1b310c","name":"Offset Yield Stress","guid":"7aa08faf-1b26-4f2a-8681-b3699f6cf0e4"},{"columnType":"localShortText","tabularColumnGuid":"a53c2fc3-08da-4a15-9cb7-27705677104c","name":"Young's Modulus Notes","guid":"c0209c3f-ccc6-431d-92c7-5fe50b4aa520"}],"underlyingEntityGuid":"db501628-841c-4cf4-989b-b8e564b73546","name":"Reference Characteristics","guid":"c2d56275-7257-4d89-a266-3b1c22fa914c"},{"itemType":"link","linkType":"associationChain","targetDatabase":"dcec6aae-784a-449e-9dd4-b744755b0472","targetDatabaseVersion":"9119ad8b-316f-409d-8c7d-3074a99bfdb6","targetTable":"97249c4b-95fe-4f71-9d31-d32020d49c35","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"dcec6aae-784a-449e-9dd4-b744755b0472","targetDatabaseVersion":"9119ad8b-316f-409d-8c7d-3074a99bfdb6","targetTable":"e631bcd9-87b9-4b14-bbb7-3439d7154617","forwards":false,"underlyingEntityGuid":"4a1ea402-8a09-48f2-8cce-645bb139d0f7","name":"Pedigree information","guid":"c2bbecd9-2089-4f3c-8546-b1d4a79be802"},"underlyingEntityGuid":"6bc9c9da-a05c-4353-aa3d-bbd1fdff1c21","name":"To Pedigree from Producers","guid":"baf2bbe9-e496-466d-94d0-82b2e2947e44"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"45354466-48f5-4656-94af-d2165977cd96"} } } } @@ -15242,45 +15686,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 33": { + "Example 17": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 34": { + "Example 18": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 35": { + "Example 19": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 36": { + "Example 20": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 37": { + "Example 21": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 38": { + "Example 22": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 39": { + "Example 23": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} }, - "Example 40": { + "Example 24": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} } } }, @@ -15289,45 +15733,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 33": { + "Example 17": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 34": { + "Example 18": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 35": { + "Example 19": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 36": { + "Example 20": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 37": { + "Example 21": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 38": { + "Example 22": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 39": { + "Example 23": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} }, - "Example 40": { + "Example 24": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} } } }, @@ -15336,45 +15780,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 33": { + "Example 17": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 34": { + "Example 18": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 35": { + "Example 19": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 36": { + "Example 20": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 37": { + "Example 21": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 38": { + "Example 22": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 39": { + "Example 23": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} }, - "Example 40": { + "Example 24": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} } } }, @@ -15383,45 +15827,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 33": { + "Example 17": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 34": { + "Example 18": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 35": { + "Example 19": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 36": { + "Example 20": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 37": { + "Example 21": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 38": { + "Example 22": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 39": { + "Example 23": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"2d7f8309-2c1f-4b17-afbe-b3606efe8214","sourceTableGuid":"dae55a9b-3eb5-4870-b3c4-6d76463d62db","linkGroupGuid":"cdfd689f-7105-4bad-becb-84b73192dd94"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} }, - "Example 40": { + "Example 24": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"2264fec4-f5f0-42b5-8f7f-ff4140a50527","tabularAttributeGuid":"88d592da-026f-4f89-a250-1c5073f38484"},{"forwards":false,"sourceDatabaseVersionGuid":"7e6b5967-dcd2-4b32-9d3d-beb4a802a066","tabularAttributeGuid":"6f11fb83-9321-443d-b547-e65bacd5b77e"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} } } } @@ -15436,40 +15880,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Layout Attribute Item", "description": "This example demonstrates the response to creating a new attribute layout item. It was created by adding the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"2ecad111-6928-40b1-ba17-4cf2a7d8fbe0"} + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"687d8587-f156-4350-adb7-b17e6a6f13bd"} }, - "Example 30": { + "Example 16": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates the response to creating a new attribute layout item with a meta-attribute. It was created by adding the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"abd7c2ff-007a-4fef-bcee-9b6f3a91c1e1"} + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"a31c7ddb-d913-478c-87df-5559f79944e8"} }, - "Example 31": { + "Example 17": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates the response to creating a new tabular attribute layout item with specified tabular columns to include. It was created by adding the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include. ", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","required":false,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"],"guid":null} }, - "Example 32": { + "Example 18": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates the response to creating a new link group layout item. It was created by adding the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949","guid":null} }, - "Example 33": { + "Example 19": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates the response to creating a new smart link group layout item. It was created by adding the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66","guid":null} }, - "Example 34": { + "Example 20": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates the response to creating a new cross database link group layout item. It was created by adding a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"1411dba9-c7be-4cdb-b88f-94ce9cdc2eaa","sourceTableGuid":"7c06acfa-3ffe-4e88-baaf-d0ae836228ed","linkGroupGuid":"5da2bc75-6b2b-402f-bb60-6d1348e7e64d","guid":null} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"c659d2ca-e5fe-4609-afcc-8a7d43265f1b","sourceTableGuid":"a41b622b-57f7-477a-a41e-198bad0b35be","linkGroupGuid":"5e215642-b17c-4cf8-afa4-53e628c03ed5","guid":null} }, - "Example 35": { + "Example 21": { "summary": "Layout Association Chain Item", "description": "This example demonstrates the response to creating a new association chain layout item. It was created by adding a association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"84082a51-04dc-45b3-9614-5196149cfa3d"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"665a2587-08cd-44e3-970a-2d50de8d2e83"}],"guid":null} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"ef07983b-2e1b-4469-bbcf-2ef67a14d467"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"127e4bd3-1429-47a0-954d-d0cecb156537"}],"guid":null} } } } @@ -15655,15 +16099,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 10": { + "Example 6": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} + "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} } } }, @@ -15672,15 +16116,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 10": { + "Example 6": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} + "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} } } }, @@ -15689,15 +16133,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 10": { + "Example 6": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} + "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} } } }, @@ -15706,15 +16150,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 10": { + "Example 6": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"4ee06e57-21f0-48b2-b46a-926e227a9524"} + "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} } } } @@ -15728,7 +16172,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayout" }, - "example": {"displayNames":{},"name":"Ceramics","guid":"ec2defc2-55b6-4747-b4ab-c677c726c477"} + "example": {"displayNames":{},"name":"Ceramics","guid":"e219a2af-c0c1-4388-b0d7-9f4d18b56579"} } } }, @@ -15819,15 +16263,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Layout with 'slim' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to false, which is the default value.", "value": {"sections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 10": { + "Example 6": { "summary": "Layout with 'full' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to true.", - "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"48d851cf-d126-4bfc-9797-c9ea51e2948e","name":"Price","guid":"6275c39d-b43b-4bb6-aac6-4ca617c4e5ae"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"30cbfe21-3222-4882-87cb-1f086d8c95bb","name":"Density","guid":"97a90135-022f-416f-bbea-98e95253ebd6"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3ad274e1-c58a-48bd-8b6f-73686755586b","name":"Young's modulus","guid":"b882ee01-87c7-45fc-bb9e-90f097b5daa9"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"d6488def-b251-4aef-b0ac-fe38c4725811","name":"Tensile strength","guid":"6e77de66-0e3f-4b1b-a009-f6df0b16d8d5"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"5cf2a816-7e72-455c-83b5-a50904fcb019","name":"Shape factor","guid":"9f21c129-b350-4f23-8608-f9fd944a6708"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"409c69fb-d671-4dfa-a8fa-0da6264ac456","name":"Price","guid":"f11f0869-17f2-47c4-9983-bf9f2e99ce02"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"16dd7044-7a65-46d5-8adf-1d1d76bf37e1","name":"Density","guid":"a2b13264-2991-42a9-99ea-1364e2110d21"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3352294f-73e0-40c0-b01d-dc44389f19fa","name":"Young's modulus","guid":"3a8ee5a1-c9ee-4c56-b42e-23d6ab370cd2"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"dee609d8-f0c6-43ac-b571-1e42976e6d52","name":"Tensile strength","guid":"3f1a2e75-dddc-4359-b36e-db83f5da0654"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3aedbc41-e90a-4fa7-b2f3-c9c3035977ee","name":"Shape factor","guid":"21d92e00-3464-4ed0-ac8b-e6239c1b6761"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} } } } @@ -15879,12 +16323,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} + "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} }, - "Example 10": { + "Example 6": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -15896,12 +16340,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} + "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} }, - "Example 10": { + "Example 6": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -15913,12 +16357,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} + "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} }, - "Example 10": { + "Example 6": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -15930,12 +16374,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"999054c1-e95c-4c38-bc76-f42bfdc017a5"} + "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} }, - "Example 10": { + "Example 6": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16042,7 +16486,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParametersInfo" }, "examples": { - "Example 5": { + "Example 3": { "summary": "A mix of parameters", "description": "This example contains a mix of numeric and discrete parameters from the MI_Training database.", "value": {"parameters":[{"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"},{"type":"numeric","isRestricted":false,"values":[{"type":"numeric","value":-1.0,"guid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94"},{"type":"numeric","value":0.0,"guid":"00000022-000b-4fff-8fff-0022ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain-ratio.html","defaultParameterValueGuid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94","displayNames":{"en":"Strain Ratio","fr":"Rapport de contrainte"},"name":"Strain Ratio","guid":"00000022-000a-4fff-8fff-0000ffff0000"},{"type":"discrete","values":[{"type":"discrete","name":"Mean","guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"type":"discrete","name":"A-basis","guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"},{"type":"discrete","name":"B-basis","guid":"9ba94816-6784-4848-bfa6-d24b12597a5b"}],"helpPath":"/help/basis.html","defaultParameterValueGuid":"21a27377-12eb-413c-bac4-d4ffceda39d1","displayNames":{"en":"Basis","fr":"Base"},"name":"Basis","guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}]} @@ -16079,27 +16523,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 22": { + "Example 12": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} }, - "Example 23": { + "Example 13": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 24": { + "Example 14": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 25": { + "Example 15": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16111,27 +16555,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 22": { + "Example 12": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} }, - "Example 23": { + "Example 13": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 24": { + "Example 14": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 25": { + "Example 15": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16143,27 +16587,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 22": { + "Example 12": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} }, - "Example 23": { + "Example 13": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 24": { + "Example 14": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 25": { + "Example 15": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16175,27 +16619,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} }, - "Example 22": { + "Example 12": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"76ce528c-73d6-49fd-bed2-9dea2d6772e1"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"e4321cf5-aef9-48ea-8c2d-2c7eff44b801"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} }, - "Example 23": { + "Example 13": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 24": { + "Example 14": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 25": { + "Example 15": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16303,37 +16747,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} }, - "Example 30": { + "Example 16": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} }, - "Example 31": { + "Example 17": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} + "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} }, - "Example 32": { + "Example 18": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 33": { + "Example 19": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} }, - "Example 34": { + "Example 20": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 35": { + "Example 21": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16345,37 +16789,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} }, - "Example 30": { + "Example 16": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} }, - "Example 31": { + "Example 17": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} + "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} }, - "Example 32": { + "Example 18": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 33": { + "Example 19": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} }, - "Example 34": { + "Example 20": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 35": { + "Example 21": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16387,37 +16831,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} }, - "Example 30": { + "Example 16": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} }, - "Example 31": { + "Example 17": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} + "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} }, - "Example 32": { + "Example 18": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 33": { + "Example 19": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} }, - "Example 34": { + "Example 20": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 35": { + "Example 21": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16429,37 +16873,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"ebfa1910-9ef0-4641-b246-f51b0cd0ad31"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} }, - "Example 30": { + "Example 16": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"7c2bc6a7-2763-4a62-8adc-e4142de1dd80"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} }, - "Example 31": { + "Example 17": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"8473caf7-1fc3-417a-ba0f-a3ca84d6cbb6"} + "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} }, - "Example 32": { + "Example 18": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 33": { + "Example 19": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"1de0d986-ee84-41f4-9ca6-2d92bf0cedd0"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} }, - "Example 34": { + "Example 20": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 35": { + "Example 21": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16676,20 +17120,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} }, - "Example 14": { + "Example 8": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} }, - "Example 15": { + "Example 9": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} + "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} } } }, @@ -16698,20 +17142,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} }, - "Example 14": { + "Example 8": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} }, - "Example 15": { + "Example 9": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} + "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} } } }, @@ -16720,20 +17164,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} }, - "Example 14": { + "Example 8": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} }, - "Example 15": { + "Example 9": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} + "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} } } }, @@ -16742,20 +17186,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"5df74f18-a913-4417-885b-ea58a17e24b9"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} }, - "Example 14": { + "Example 8": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"d3bcf667-3c10-4d7b-a8e6-8ef48a2192d9"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} }, - "Example 15": { + "Example 9": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"122001c3-7372-438b-a3f9-09141b2c4467"} + "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} } } } @@ -16875,12 +17319,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 10": { + "Example 6": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -16892,12 +17336,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 10": { + "Example 6": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -16909,12 +17353,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 10": { + "Example 6": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -16926,12 +17370,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 10": { + "Example 6": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17001,22 +17445,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 18": { + "Example 10": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 19": { + "Example 11": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 20": { + "Example 12": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17028,22 +17472,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 18": { + "Example 10": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 19": { + "Example 11": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 20": { + "Example 12": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17055,22 +17499,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 18": { + "Example 10": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 19": { + "Example 11": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 20": { + "Example 12": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17082,22 +17526,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 18": { + "Example 10": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 19": { + "Example 11": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 20": { + "Example 12": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17142,20 +17586,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 14": { + "Example 8": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} + "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} }, - "Example 15": { + "Example 9": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} } } }, @@ -17164,20 +17608,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 14": { + "Example 8": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} + "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} }, - "Example 15": { + "Example 9": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} } } }, @@ -17186,20 +17630,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 14": { + "Example 8": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} + "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} }, - "Example 15": { + "Example 9": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} } } }, @@ -17208,20 +17652,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 14": { + "Example 8": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"1966ae64-b227-4fdf-bcbd-18680470c6df"} + "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} }, - "Example 15": { + "Example 9": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"277ff7ad-c186-4d88-9391-6f94f1e729a2"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} } } } @@ -17310,20 +17754,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} + "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} }, - "Example 14": { + "Example 8": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17332,20 +17776,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} + "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} }, - "Example 14": { + "Example 8": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17354,20 +17798,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} + "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} }, - "Example 14": { + "Example 8": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17376,20 +17820,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"9b46e426-1ead-4277-900c-2f2a973dec4b"} + "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} }, - "Example 14": { + "Example 8": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"8acebc75-bc40-4bab-bfb8-ccaf434aae4b","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } } @@ -17513,20 +17957,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 14": { + "Example 8": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} }, - "Example 15": { + "Example 9": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} } } }, @@ -17535,20 +17979,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 14": { + "Example 8": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} }, - "Example 15": { + "Example 9": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} } } }, @@ -17557,20 +18001,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 14": { + "Example 8": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} }, - "Example 15": { + "Example 9": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} } } }, @@ -17579,20 +18023,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 14": { + "Example 8": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"7e5249ac-ffa6-4db9-8401-240e5008d32e"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} }, - "Example 15": { + "Example 9": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"0c06c1ac-2b0b-4766-9129-5bb3a7090c30"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} } } } @@ -17702,20 +18146,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} }, - "Example 14": { + "Example 8": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 15": { + "Example 9": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} + "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} } } }, @@ -17724,20 +18168,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} }, - "Example 14": { + "Example 8": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 15": { + "Example 9": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} + "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} } } }, @@ -17746,20 +18190,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} }, - "Example 14": { + "Example 8": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 15": { + "Example 9": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} + "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} } } }, @@ -17768,20 +18212,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"4ee413c5-a369-4c58-b830-6d5d1fbc4ea6"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} }, - "Example 14": { + "Example 8": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 15": { + "Example 9": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"dec605f9-5b33-4492-b693-c9a5f46f961b"} + "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} } } } @@ -17907,7 +18351,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"226bdde3-9c36-45fc-9878-676968ab4a23"}]} + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"d52e841d-612a-4206-b4c1-5f4f48ab4ad2"}]} } } }, @@ -17948,35 +18392,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 26": { + "Example 14": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} }, - "Example 27": { + "Example 15": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 28": { + "Example 16": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} }, - "Example 29": { + "Example 17": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 30": { + "Example 18": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} } } }, @@ -17985,35 +18429,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 26": { + "Example 14": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} }, - "Example 27": { + "Example 15": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 28": { + "Example 16": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} }, - "Example 29": { + "Example 17": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 30": { + "Example 18": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} } } }, @@ -18022,35 +18466,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 26": { + "Example 14": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} }, - "Example 27": { + "Example 15": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 28": { + "Example 16": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} }, - "Example 29": { + "Example 17": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 30": { + "Example 18": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} } } }, @@ -18059,35 +18503,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 25": { + "Example 13": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 26": { + "Example 14": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"51595744-0458-4863-a8fd-6e067a7f09a1"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} }, - "Example 27": { + "Example 15": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"20d95a42-b229-40ea-97d0-583cd19e8c3f"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 28": { + "Example 16": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"6165ccf4-faff-47b4-94c3-2cda26421b43","tableGuid":"8fc4cffc-2568-445a-bb6f-e6f53d308af5"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ea14081c-7f5f-4711-805f-66c3b02aa508"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} }, - "Example 29": { + "Example 17": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 30": { + "Example 18": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9f4157ae-5f34-4101-921f-6f604956d834"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} } } } @@ -18102,17 +18546,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 40": { + "Example 22": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 41": { + "Example 23": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"738875fd-1fc8-4ffe-9e58-648eaa59aaba","tableGuid":"5d2afa87-8fac-445f-9974-c246731b3fba"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"3cd46297-1dd7-4e51-923d-3609590d3947"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"8ba93975-605e-48b1-9c71-aaf49e8751cd","tableGuid":"695657cd-fa14-492e-ba39-e82c258cda3a"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"26152fe8-a41c-416b-b637-52b12c166f77"} }, - "Example 42": { + "Example 24": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -18191,7 +18635,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"bcb05b81-5a08-48ec-8595-92f20604d683"}]} + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"78b6841b-0e34-42f1-92b8-640a18f0884d"}]} } } }, @@ -18283,17 +18727,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 14": { + "Example 8": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"59934f91-fe1d-4afa-b7a2-21e8ce560e3c","tableGuid":"bafb92e9-8ec3-40b0-933f-bcf1bdc91246"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"78305a23-d420-4bb3-a0d0-ff4a99d6da58"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"4e3c8b52-c88a-4649-9951-ae090d577e43","tableGuid":"1e628daf-778a-4c92-993f-dad6be8248e4"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"d8a6f933-af5c-48a4-a147-9e743f8678ea"} }, - "Example 15": { + "Example 9": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -18410,30 +18854,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} + "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} }, - "Example 22": { + "Example 12": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 23": { + "Example 13": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} }, - "Example 24": { + "Example 14": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} }, - "Example 25": { + "Example 15": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} } } }, @@ -18442,30 +18886,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} + "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} }, - "Example 22": { + "Example 12": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 23": { + "Example 13": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} }, - "Example 24": { + "Example 14": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} }, - "Example 25": { + "Example 15": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} } } }, @@ -18474,30 +18918,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} + "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} }, - "Example 22": { + "Example 12": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 23": { + "Example 13": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} }, - "Example 24": { + "Example 14": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} }, - "Example 25": { + "Example 15": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} } } }, @@ -18506,30 +18950,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"391e58d0-2b57-4f49-9f5b-77cc17002a3f"} + "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} }, - "Example 22": { + "Example 12": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 23": { + "Example 13": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"8aaf3438-b664-49f2-a443-4cd097e2292f"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} }, - "Example 24": { + "Example 14": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1c7a9b7f-c63e-4be7-a025-d2a59665ad15"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} }, - "Example 25": { + "Example 15": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"c18d7933-d736-4f4d-8c6c-cf8b23aadf59"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} } } } @@ -18544,17 +18988,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 43": { + "Example 25": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 44": { + "Example 26": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"f13a8114-36c1-4e89-842e-8dbb999fb5c6","tableGuid":"8f95decb-20e8-4fa9-bbad-ad620440bd05"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"e7d2d5bb-6af1-414d-bce4-6b08fa682a77"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"072eee23-a36a-4c91-b3c8-8d7cd953f7f7","tableGuid":"c75df491-a0a9-462a-b8a4-8eb76366de02"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"ea89fb96-edfe-4938-9438-250f9a74b0fa"} }, - "Example 45": { + "Example 27": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -18631,27 +19075,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 22": { + "Example 12": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 23": { + "Example 13": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 24": { + "Example 14": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} }, - "Example 25": { + "Example 15": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -18663,27 +19107,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 22": { + "Example 12": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 23": { + "Example 13": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 24": { + "Example 14": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} }, - "Example 25": { + "Example 15": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -18695,27 +19139,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 22": { + "Example 12": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 23": { + "Example 13": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 24": { + "Example 14": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} }, - "Example 25": { + "Example 15": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -18727,27 +19171,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 21": { + "Example 11": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 22": { + "Example 12": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 23": { + "Example 13": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 24": { + "Example 14": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"c13d87fd-5fcb-47b2-9710-31617e5e5317"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} }, - "Example 25": { + "Example 15": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -18853,22 +19297,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} + "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} }, - "Example 19": { + "Example 11": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 20": { + "Example 12": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -18880,22 +19324,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} + "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} }, - "Example 19": { + "Example 11": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 20": { + "Example 12": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -18907,22 +19351,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} + "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} }, - "Example 19": { + "Example 11": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 20": { + "Example 12": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -18934,22 +19378,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 18": { + "Example 10": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"c1528c9f-365b-4e58-bf29-c38c6b18b9c7"} + "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} }, - "Example 19": { + "Example 11": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 20": { + "Example 12": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19120,17 +19564,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 14": { + "Example 8": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} + "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} }, - "Example 15": { + "Example 9": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19142,17 +19586,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 14": { + "Example 8": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} + "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} }, - "Example 15": { + "Example 9": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19164,17 +19608,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 14": { + "Example 8": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} + "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} }, - "Example 15": { + "Example 9": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19186,17 +19630,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 14": { + "Example 8": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"b79210a1-92c2-46f7-ae36-fe21693a9fce"} + "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} }, - "Example 15": { + "Example 9": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19346,22 +19790,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} }, - "Example 18": { + "Example 10": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 19": { + "Example 11": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 20": { + "Example 12": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19373,22 +19817,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} }, - "Example 18": { + "Example 10": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 19": { + "Example 11": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 20": { + "Example 12": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19400,22 +19844,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} }, - "Example 18": { + "Example 10": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 19": { + "Example 11": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 20": { + "Example 12": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19427,22 +19871,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 17": { + "Example 9": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"6b0ef99a-de5d-4fb8-ad5a-06b25458afc3"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} }, - "Example 18": { + "Example 10": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 19": { + "Example 11": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 20": { + "Example 12": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19566,12 +20010,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 10": { + "Example 6": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -19583,12 +20027,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 10": { + "Example 6": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -19600,12 +20044,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 10": { + "Example 6": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -19617,12 +20061,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 10": { + "Example 6": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -19689,7 +20133,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -19701,7 +20145,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -19713,7 +20157,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -19725,7 +20169,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -19831,17 +20275,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 14": { + "Example 8": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} }, - "Example 15": { + "Example 9": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -19853,17 +20297,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 14": { + "Example 8": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} }, - "Example 15": { + "Example 9": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -19875,17 +20319,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 14": { + "Example 8": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} }, - "Example 15": { + "Example 9": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -19897,17 +20341,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 14": { + "Example 8": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"f64e7c6e-1e58-4776-bd5c-be57fa3cdeeb"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} }, - "Example 15": { + "Example 9": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20039,37 +20483,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} }, - "Example 30": { + "Example 16": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 31": { + "Example 17": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 32": { + "Example 18": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 33": { + "Example 19": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 34": { + "Example 20": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 35": { + "Example 21": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20081,37 +20525,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} }, - "Example 30": { + "Example 16": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 31": { + "Example 17": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 32": { + "Example 18": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 33": { + "Example 19": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 34": { + "Example 20": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 35": { + "Example 21": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20123,37 +20567,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} }, - "Example 30": { + "Example 16": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 31": { + "Example 17": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 32": { + "Example 18": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 33": { + "Example 19": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 34": { + "Example 20": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 35": { + "Example 21": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20165,37 +20609,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 29": { + "Example 15": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"104b7a8d-106c-4ae7-873b-383d52a464de"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} }, - "Example 30": { + "Example 16": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 31": { + "Example 17": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 32": { + "Example 18": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 33": { + "Example 19": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 34": { + "Example 20": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 35": { + "Example 21": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20322,12 +20766,12 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException" }, "examples": { - "Example 9": { + "Example 5": { "summary": "Invalid version state.", "description": "A table can only be released if it is currently unreleased.", "value": {"message":"Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 10": { + "Example 6": { "summary": "Table is not version controlled.", "value": {"message":"Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } @@ -20883,10 +21327,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} + "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} } } }, @@ -20895,10 +21339,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} + "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} } } }, @@ -20907,10 +21351,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} + "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} } } }, @@ -20919,10 +21363,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 5": { + "Example 3": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"addd0753-de07-4542-bb33-04c5f7717831"} + "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} } } } @@ -21025,20 +21469,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} + "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} + "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} } } }, @@ -21047,20 +21491,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} + "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} + "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} } } }, @@ -21069,20 +21513,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} + "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} + "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} } } }, @@ -21091,20 +21535,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 13": { + "Example 7": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"efec5cd0-e8e2-462e-98a4-de677304c3b5"} + "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} }, - "Example 14": { + "Example 8": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 15": { + "Example 9": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"aee9c427-44ed-4a9e-867d-01f769135f25"} + "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} } } } @@ -21229,137 +21673,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -21371,137 +21815,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -21513,137 +21957,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -21655,137 +22099,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["8aaf4e55-3692-45c2-9abc-71a57638b314","a3742e3f-aeca-4794-a058-c90ba6063a3c"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -21874,137 +22318,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22016,137 +22460,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22158,137 +22602,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22300,137 +22744,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["27cb3f6a-df00-40dc-9bcd-90e9030787b2","cfcb15bd-3135-4ac5-89f4-b2ccb6cc52f3"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22510,137 +22954,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22652,137 +23096,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22794,137 +23238,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22936,137 +23380,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 217": { + "Example 109": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 218": { + "Example 110": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 219": { + "Example 111": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 220": { + "Example 112": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 221": { + "Example 113": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 222": { + "Example 114": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 223": { + "Example 115": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 224": { + "Example 116": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 225": { + "Example 117": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 226": { + "Example 118": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["95d42f6b-2cbb-4821-a85a-fd5a910ae000","2ecc6375-2e9f-46fe-a12f-fd3252c4de24"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 227": { + "Example 119": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 228": { + "Example 120": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 229": { + "Example 121": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 230": { + "Example 122": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 231": { + "Example 123": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 232": { + "Example 124": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 233": { + "Example 125": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 234": { + "Example 126": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 235": { + "Example 127": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 236": { + "Example 128": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 237": { + "Example 129": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 238": { + "Example 130": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 239": { + "Example 131": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 240": { + "Example 132": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 241": { + "Example 133": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 242": { + "Example 134": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 243": { + "Example 135": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23123,137 +23567,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23265,137 +23709,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23407,137 +23851,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23549,137 +23993,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 244": { + "Example 136": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 245": { + "Example 137": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 246": { + "Example 138": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 247": { + "Example 139": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 248": { + "Example 140": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 249": { + "Example 141": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 250": { + "Example 142": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 251": { + "Example 143": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 252": { + "Example 144": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 253": { + "Example 145": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["70a47d1f-9e34-433e-89d4-b22d24f58984","f4a0a192-57d3-4b86-9a62-522578b5b27f"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 254": { + "Example 146": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 255": { + "Example 147": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 256": { + "Example 148": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 257": { + "Example 149": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 258": { + "Example 150": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 259": { + "Example 151": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 260": { + "Example 152": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 261": { + "Example 153": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 262": { + "Example 154": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 263": { + "Example 155": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 264": { + "Example 156": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 265": { + "Example 157": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 266": { + "Example 158": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 267": { + "Example 159": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 268": { + "Example 160": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 269": { + "Example 161": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 270": { + "Example 162": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -26176,7 +26620,7 @@ } }, "additionalProperties": false, - "description": "\r\n\r\nThis extends: GrantaServerApiDataDatum\r\n\r\nThis is one of: \r\n * GrantaServerApiDataIntegerDatum\r\n * GrantaServerApiDataLogicalDatum\r\n * GrantaServerApiDataShortTextDatum\r\n * GrantaServerApiDataLongTextDatum\r\n * GrantaServerApiDataHyperlinkDatum\r\n * GrantaServerApiDataDateTimeDatum\r\n * GrantaServerApiDataDiscreteDatum\r\n * GrantaServerApiDataRangeDatum\r\n * GrantaServerApiDataPointDatum", + "description": "\r\n\r\nThis extends: GrantaServerApiDataDatum\r\n\r\nThis is one of: \r\n * GrantaServerApiDataIntegerDatum\r\n * GrantaServerApiDataLogicalDatum\r\n * GrantaServerApiDataShortTextDatum\r\n * GrantaServerApiDataLongTextDatum\r\n * GrantaServerApiDataHyperlinkDatum\r\n * GrantaServerApiDataDateTimeDatum\r\n * GrantaServerApiDataDiscreteDatum\r\n * GrantaServerApiDataRangeDatum\r\n * GrantaServerApiDataPointDatum\r\n * GrantaServerApiDataPictureDatum\r\n * GrantaServerApiDataFileDatum", "discriminator": { "propertyName": "datumType", "mapping": { @@ -26188,7 +26632,9 @@ "dateTime": "#/components/schemas/GrantaServerApiDataDateTimeDatum", "discrete": "#/components/schemas/GrantaServerApiDataDiscreteDatum", "range": "#/components/schemas/GrantaServerApiDataRangeDatum", - "point": "#/components/schemas/GrantaServerApiDataPointDatum" + "point": "#/components/schemas/GrantaServerApiDataPointDatum", + "picture": "#/components/schemas/GrantaServerApiDataPictureDatum", + "file": "#/components/schemas/GrantaServerApiDataFileDatum" } }, "x-discriminator-value": "applicable" @@ -26243,10 +26689,12 @@ "dateTime", "discrete", "range", - "point" + "point", + "picture", + "file" ], "type": "string", - "description": "The types of datum that are supported by the API.

Possible values:

\r\n
    \r\n
  • Integer: Integer
  • \r\n
  • Logical: Logical
  • \r\n
  • ShortText: Short Text
  • \r\n
  • LongText: Integer
  • \r\n
  • Hyperlink: Integer
  • \r\n
  • DateTime: Date and Time
  • \r\n
  • Discrete: Discrete
  • \r\n
  • Range: Range
  • \r\n
  • Point: Range
  • \r\n
\r\n" + "description": "The types of datum that are supported by the API.

Possible values:

\r\n
    \r\n
  • Integer: Integer
  • \r\n
  • Logical: Logical
  • \r\n
  • ShortText: Short Text
  • \r\n
  • LongText: Integer
  • \r\n
  • Hyperlink: Integer
  • \r\n
  • DateTime: Date and Time
  • \r\n
  • Discrete: Discrete
  • \r\n
  • Range: Range
  • \r\n
  • Point: Point
  • \r\n
  • Picture: Picture
  • \r\n
  • File: File
  • \r\n
\r\n" }, "GrantaServerApiDataDiscreteDatum": { "required": [ @@ -28588,6 +29036,49 @@ "type": "string", "description": "

Possible values:

\r\n
    \r\n
  • AllRows: Export all rows - including rows with no visible linked records
  • \r\n
  • OnlyRowsWithVisibleLinkedRecords: Export only rows with visible linked records
  • \r\n
\r\n" }, + "GrantaServerApiDataFileDatum": { + "required": [ + "contentIsInSearchIndex", + "contentType", + "datumType", + "description", + "fileName", + "target" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "file" + }, + "fileName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "contentType": { + "type": "string" + }, + "target": { + "type": "string" + }, + "contentIsInSearchIndex": { + "type": "boolean" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "file" + }, "GrantaServerApiDataHyperlinkDatum": { "required": [ "address", @@ -28793,6 +29284,29 @@ } } }, + "GrantaServerApiDataPictureDatum": { + "required": [ + "datumType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "picture" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "picture" + }, "GrantaServerApiDataPointDataValue": { "required": [ "parameterAndValues", From d06696631d608410f5ce858a55fa2bd76967d92b Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Wed, 3 Apr 2024 14:16:24 +0200 Subject: [PATCH 14/31] Update API definition to 2024.2.948.2 (#165) Co-authored-by: ludovicsteinbach --- .../pyproject.toml | 2 +- .../grantami/serverapi_openapi/__init__.py | 68 +- .../serverapi_openapi/api/__init__.py | 4 + .../serverapi_openapi/api/database_api.py | 58 +- .../api/help_location_api.py | 187 + .../serverapi_openapi/api/license_api.py | 66 + .../serverapi_openapi/api/metrics_api.py | 110 + .../serverapi_openapi/api/status_api.py | 144 + .../serverapi_openapi/models/__init__.py | 62 +- ...ord_property_fake_attribute_identities.py} | 2 +- ...ta_export_linked_record_export_behavior.py | 18 +- ...ata_export_tabular_row_export_behavior.py} | 2 +- ...y => granta_server_api_database_status.py} | 4 +- ..._server_api_database_status_information.py | 305 ++ ..._of_granta_server_api_object_identifier.py | 187 + ...egration_schema_generation_error_detail.py | 170 + ...r_api_metrics_get_jobs_summary_response.py | 137 + ..._server_api_metrics_job_type_and_status.py | 157 + .../granta_server_api_schema_database.py | 18 +- ..._api_schema_slim_entities_slim_database.py | 18 +- ...ver_api_schema_slim_entities_slim_table.py | 34 + .../granta_server_api_schema_tables_table.py | 34 + ...pi_search_discrete_text_datum_criterion.py | 48 +- ...ch_discrete_text_values_datum_criterion.py | 48 +- ..._server_api_search_link_datum_criterion.py | 48 +- ..._api_search_link_exists_datum_criterion.py | 48 +- ...pi_search_linking_value_match_behavior.py} | 2 +- ..._server_api_search_local_rows_behavior.py} | 2 +- ...r_api_search_searchable_record_property.py | 2 +- ...r_api_search_short_text_datum_criterion.py | 48 +- ..._search_tabular_linking_value_criterion.py | 48 +- ..._server_api_search_text_match_behavior.py} | 2 +- ..._core_mvc_formatters_i_output_formatter.py | 91 + ...icrosoft_asp_net_core_mvc_object_result.py | 255 + yaml/server-api.json | 4492 +++++++++-------- 35 files changed, 4602 insertions(+), 2319 deletions(-) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/metrics_api.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_mi_search_record_property_fake_attribute_numbers.py => granta_mi_record_property_fake_attribute_identities.py} (96%) rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_data_export_tabular_row_export_behaviour.py => granta_server_api_data_export_tabular_row_export_behavior.py} (89%) rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_schema_database_status.py => granta_server_api_database_status.py} (90%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_generation_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_get_jobs_summary_response.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_job_type_and_status.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_search_linking_value_match_behaviour.py => granta_server_api_search_linking_value_match_behavior.py} (90%) rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_search_local_rows_behaviour.py => granta_server_api_search_local_rows_behavior.py} (91%) rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_search_text_match_behaviour.py => granta_server_api_search_text_match_behavior.py} (91%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_object_result.py diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 3aa5e468..77563037 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 = "3.0.0.dev218" +version = "3.0.0.dev228" 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 d8431960..68daa954 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 @@ -15,12 +15,14 @@ from .api.data_api import DataApi from .api.data_export_api import DataExportApi from .api.database_api import DatabaseApi +from .api.help_location_api import HelpLocationApi from .api.integration_api import IntegrationApi from .api.job_queue_api import JobQueueApi from .api.license_api import LicenseApi from .api.list_item_api import ListItemApi from .api.list_management_api import ListManagementApi from .api.list_permissions_api import ListPermissionsApi +from .api.metrics_api import MetricsApi from .api.records___record_histories_api import RecordsRecordHistoriesApi from .api.records___record_versions_api import RecordsRecordVersionsApi from .api.schema_api import SchemaApi @@ -55,8 +57,8 @@ from .models.folderguid_files_body import FolderguidFilesBody from .models.folderguid_files_body1 import FolderguidFilesBody1 from .models.folderguid_files_body2 import FolderguidFilesBody2 -from .models.granta_mi_search_record_property_fake_attribute_numbers import ( - GrantaMISearchRecordPropertyFakeAttributeNumbers, +from .models.granta_mi_record_property_fake_attribute_identities import ( + GrantaMIRecordPropertyFakeAttributeIdentities, ) from .models.granta_server_api_admin_mi_version import GrantaServerApiAdminMiVersion from .models.granta_server_api_aggregations_aggregation import ( @@ -540,8 +542,8 @@ from .models.granta_server_api_data_export_simple_attribute_to_export import ( GrantaServerApiDataExportSimpleAttributeToExport, ) -from .models.granta_server_api_data_export_tabular_row_export_behaviour import ( - GrantaServerApiDataExportTabularRowExportBehaviour, +from .models.granta_server_api_data_export_tabular_row_export_behavior import ( + GrantaServerApiDataExportTabularRowExportBehavior, ) from .models.granta_server_api_data_file_datum import GrantaServerApiDataFileDatum from .models.granta_server_api_data_hyperlink_datum import ( @@ -582,6 +584,10 @@ from .models.granta_server_api_data_significant_figures_info import ( GrantaServerApiDataSignificantFiguresInfo, ) +from .models.granta_server_api_database_status import GrantaServerApiDatabaseStatus +from .models.granta_server_api_database_status_information import ( + GrantaServerApiDatabaseStatusInformation, +) from .models.granta_server_api_discrete_value import GrantaServerApiDiscreteValue from .models.granta_server_api_disk_status import GrantaServerApiDiskStatus from .models.granta_server_api_exceptions_data_modification_data_modification_error_detail import ( @@ -675,6 +681,9 @@ from .models.granta_server_api_integration_schema_discrete_type import ( GrantaServerApiIntegrationSchemaDiscreteType, ) +from .models.granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier import ( + GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, +) from .models.granta_server_api_integration_schema_guid_only_schema_guid_only_attribute import ( GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute, ) @@ -699,6 +708,9 @@ from .models.granta_server_api_integration_schema_integration_parameter_info import ( GrantaServerApiIntegrationSchemaIntegrationParameterInfo, ) +from .models.granta_server_api_integration_schema_integration_schema_generation_error_detail import ( + GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail, +) from .models.granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier import ( GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, ) @@ -801,6 +813,12 @@ from .models.granta_server_api_lists_dto_user_role import ( GrantaServerApiListsDtoUserRole, ) +from .models.granta_server_api_metrics_get_jobs_summary_response import ( + GrantaServerApiMetricsGetJobsSummaryResponse, +) +from .models.granta_server_api_metrics_job_type_and_status import ( + GrantaServerApiMetricsJobTypeAndStatus, +) from .models.granta_server_api_no_values_specifier import ( GrantaServerApiNoValuesSpecifier, ) @@ -1071,9 +1089,6 @@ GrantaServerApiSchemaDataRulesUpdateDataRule, ) from .models.granta_server_api_schema_database import GrantaServerApiSchemaDatabase -from .models.granta_server_api_schema_database_status import ( - GrantaServerApiSchemaDatabaseStatus, -) from .models.granta_server_api_schema_databases_info import ( GrantaServerApiSchemaDatabasesInfo, ) @@ -1778,8 +1793,8 @@ from .models.granta_server_api_search_link_exists_datum_criterion import ( GrantaServerApiSearchLinkExistsDatumCriterion, ) -from .models.granta_server_api_search_linking_value_match_behaviour import ( - GrantaServerApiSearchLinkingValueMatchBehaviour, +from .models.granta_server_api_search_linking_value_match_behavior import ( + GrantaServerApiSearchLinkingValueMatchBehavior, ) from .models.granta_server_api_search_local_column_criterion import ( GrantaServerApiSearchLocalColumnCriterion, @@ -1793,8 +1808,8 @@ from .models.granta_server_api_search_local_column_not_applicable_criterion import ( GrantaServerApiSearchLocalColumnNotApplicableCriterion, ) -from .models.granta_server_api_search_local_rows_behaviour import ( - GrantaServerApiSearchLocalRowsBehaviour, +from .models.granta_server_api_search_local_rows_behavior import ( + GrantaServerApiSearchLocalRowsBehavior, ) from .models.granta_server_api_search_logical_datum_criterion import ( GrantaServerApiSearchLogicalDatumCriterion, @@ -1887,8 +1902,8 @@ from .models.granta_server_api_search_tabular_linking_value_criterion import ( GrantaServerApiSearchTabularLinkingValueCriterion, ) -from .models.granta_server_api_search_text_match_behaviour import ( - GrantaServerApiSearchTextMatchBehaviour, +from .models.granta_server_api_search_text_match_behavior import ( + GrantaServerApiSearchTextMatchBehavior, ) from .models.granta_server_api_selection_searches_create_search_request import ( GrantaServerApiSelectionSearchesCreateSearchRequest, @@ -1918,6 +1933,12 @@ from .models.granta_server_api_version_state import GrantaServerApiVersionState from .models.jobqueue_files_body import JobqueueFilesBody from .models.json_patch_document import JsonPatchDocument +from .models.microsoft_asp_net_core_mvc_formatters_i_output_formatter import ( + MicrosoftAspNetCoreMvcFormattersIOutputFormatter, +) +from .models.microsoft_asp_net_core_mvc_object_result import ( + MicrosoftAspNetCoreMvcObjectResult, +) from .models.system_net_http_status_code import SystemNetHttpStatusCode __all__ = [ @@ -1925,12 +1946,14 @@ "DataApi", "DataExportApi", "DatabaseApi", + "HelpLocationApi", "IntegrationApi", "JobQueueApi", "LicenseApi", "ListItemApi", "ListManagementApi", "ListPermissionsApi", + "MetricsApi", "RecordsRecordHistoriesApi", "RecordsRecordVersionsApi", "SchemaApi", @@ -1961,7 +1984,7 @@ "FolderguidFilesBody", "FolderguidFilesBody1", "FolderguidFilesBody2", - "GrantaMISearchRecordPropertyFakeAttributeNumbers", + "GrantaMIRecordPropertyFakeAttributeIdentities", "GrantaServerApiAdminMiVersion", "GrantaServerApiAggregationsAggregation", "GrantaServerApiAggregationsAggregationCriterion", @@ -2126,7 +2149,7 @@ "GrantaServerApiDataExportPropertiesVersionStateProperty", "GrantaServerApiDataExportRecordWithData", "GrantaServerApiDataExportSimpleAttributeToExport", - "GrantaServerApiDataExportTabularRowExportBehaviour", + "GrantaServerApiDataExportTabularRowExportBehavior", "GrantaServerApiDataFileDatum", "GrantaServerApiDataHyperlinkDatum", "GrantaServerApiDataHyperlinkTarget", @@ -2144,6 +2167,8 @@ "GrantaServerApiDataRichTextValue", "GrantaServerApiDataShortTextDatum", "GrantaServerApiDataSignificantFiguresInfo", + "GrantaServerApiDatabaseStatus", + "GrantaServerApiDatabaseStatusInformation", "GrantaServerApiDiscreteValue", "GrantaServerApiDiskStatus", "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", @@ -2177,6 +2202,7 @@ "GrantaServerApiIntegrationIntegrationSchemaStatus", "GrantaServerApiIntegrationSchemaAttribute", "GrantaServerApiIntegrationSchemaDiscreteType", + "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo", @@ -2185,6 +2211,7 @@ "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaIntegrationParameterInfo", + "GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail", "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaLayout", "GrantaServerApiIntegrationSchemaLinkSourceType", @@ -2219,6 +2246,8 @@ "GrantaServerApiListsDtoUserPermission", "GrantaServerApiListsDtoUserPermissionsInfo", "GrantaServerApiListsDtoUserRole", + "GrantaServerApiMetricsGetJobsSummaryResponse", + "GrantaServerApiMetricsJobTypeAndStatus", "GrantaServerApiNoValuesSpecifier", "GrantaServerApiObjectIdentifier", "GrantaServerApiParameterInfo", @@ -2313,7 +2342,6 @@ "GrantaServerApiSchemaDataRulesDataRulesInfo", "GrantaServerApiSchemaDataRulesUpdateDataRule", "GrantaServerApiSchemaDatabase", - "GrantaServerApiSchemaDatabaseStatus", "GrantaServerApiSchemaDatabasesInfo", "GrantaServerApiSchemaDiscreteTypesCreateDiscreteType", "GrantaServerApiSchemaDiscreteTypesDiscreteType", @@ -2550,12 +2578,12 @@ "GrantaServerApiSearchIntegerDatumCriterion", "GrantaServerApiSearchLinkDatumCriterion", "GrantaServerApiSearchLinkExistsDatumCriterion", - "GrantaServerApiSearchLinkingValueMatchBehaviour", + "GrantaServerApiSearchLinkingValueMatchBehavior", "GrantaServerApiSearchLocalColumnCriterion", "GrantaServerApiSearchLocalColumnExistsCriterion", "GrantaServerApiSearchLocalColumnMatchesCriterion", "GrantaServerApiSearchLocalColumnNotApplicableCriterion", - "GrantaServerApiSearchLocalRowsBehaviour", + "GrantaServerApiSearchLocalRowsBehavior", "GrantaServerApiSearchLogicalDatumCriterion", "GrantaServerApiSearchLongSortingValue", "GrantaServerApiSearchLongTextDatumCriterion", @@ -2587,7 +2615,7 @@ "GrantaServerApiSearchSortingValue", "GrantaServerApiSearchStringSortingValue", "GrantaServerApiSearchTabularLinkingValueCriterion", - "GrantaServerApiSearchTextMatchBehaviour", + "GrantaServerApiSearchTextMatchBehavior", "GrantaServerApiSelectionSearchesCreateSearchRequest", "GrantaServerApiSelectionSearchesFindSearchRequest", "GrantaServerApiSelectionSearchesSaveSearchRequest", @@ -2600,5 +2628,7 @@ "GrantaServerApiVersionState", "JobqueueFilesBody", "JsonPatchDocument", + "MicrosoftAspNetCoreMvcFormattersIOutputFormatter", + "MicrosoftAspNetCoreMvcObjectResult", "SystemNetHttpStatusCode", ] 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 7b2e831f..099fbcfd 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 @@ -8,12 +8,14 @@ from .data_api import DataApi from .data_export_api import DataExportApi from .database_api import DatabaseApi +from .help_location_api import HelpLocationApi from .integration_api import IntegrationApi from .job_queue_api import JobQueueApi from .license_api import LicenseApi from .list_item_api import ListItemApi from .list_management_api import ListManagementApi from .list_permissions_api import ListPermissionsApi +from .metrics_api import MetricsApi from .records___record_histories_api import RecordsRecordHistoriesApi from .records___record_versions_api import RecordsRecordVersionsApi from .schema_api import SchemaApi @@ -50,12 +52,14 @@ "DataApi", "DataExportApi", "DatabaseApi", + "HelpLocationApi", "IntegrationApi", "JobQueueApi", "LicenseApi", "ListItemApi", "ListManagementApi", "ListPermissionsApi", + "MetricsApi", "RecordsRecordHistoriesApi", "RecordsRecordVersionsApi", "SchemaApi", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py index bccefa29..13fb2ada 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py @@ -35,7 +35,7 @@ class DatabaseApi(ApiBase): def generate_schema_from_layout( self, *, database_key: "str", table_identity: "int", layout_identity: "int" - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. This method makes a synchronous HTTP request. @@ -48,7 +48,7 @@ def generate_schema_from_layout( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_layout_with_http_info( database_key, table_identity, layout_identity, _return_http_data_only=True @@ -119,7 +119,7 @@ def _generate_schema_from_layout_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -142,7 +142,7 @@ def _generate_schema_from_layout_with_http_info( def generate_schema_from_layout_name( self, *, database_key: "str", table_identity: "int", layout_name: "str" - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. This method makes a synchronous HTTP request. @@ -155,7 +155,7 @@ def generate_schema_from_layout_name( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_layout_name_with_http_info( database_key, table_identity, layout_name, _return_http_data_only=True @@ -226,7 +226,7 @@ def _generate_schema_from_layout_name_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -249,7 +249,7 @@ def _generate_schema_from_layout_name_with_http_info( def generate_schema_from_layout_name_with_table_name( self, *, database_key: "str", table_name: "str", layout_name: "str" - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. This method makes a synchronous HTTP request. @@ -262,7 +262,7 @@ def generate_schema_from_layout_name_with_table_name( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_layout_name_with_table_name_with_http_info( database_key, table_name, layout_name, _return_http_data_only=True @@ -329,7 +329,7 @@ def _generate_schema_from_layout_name_with_table_name_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -352,7 +352,7 @@ def _generate_schema_from_layout_name_with_table_name_with_http_info( def generate_schema_from_layout_with_table_name( self, *, database_key: "str", table_name: "str", layout_identity: "int" - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given layout. The user must be an Admin user for the database. This method makes a synchronous HTTP request. @@ -365,7 +365,7 @@ def generate_schema_from_layout_with_table_name( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_layout_with_table_name_with_http_info( database_key, table_name, layout_identity, _return_http_data_only=True @@ -436,7 +436,7 @@ def _generate_schema_from_layout_with_table_name_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -459,7 +459,7 @@ def _generate_schema_from_layout_with_table_name_with_http_info( def generate_schema_from_standard_names( self, *, database_key: "str", body: "Optional[List[str]]" = None - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema with attributes for each provided standard name in the given database. The user must be an Admin user for the database. This method makes a synchronous HTTP request. @@ -471,7 +471,7 @@ def generate_schema_from_standard_names( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_standard_names_with_http_info( database_key, body, _return_http_data_only=True @@ -535,7 +535,7 @@ def _generate_schema_from_standard_names_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -558,7 +558,7 @@ def _generate_schema_from_standard_names_with_http_info( def generate_schema_from_standard_names_all_databases( self, *, body: "Optional[List[str]]" = None - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema with attributes for each provided standard name. This will include attribute from all loaded databases for which the user is an Admin. This method makes a synchronous HTTP request. @@ -569,7 +569,7 @@ def generate_schema_from_standard_names_all_databases( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_standard_names_all_databases_with_http_info( body, _return_http_data_only=True @@ -625,7 +625,7 @@ def _generate_schema_from_standard_names_all_databases_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -648,7 +648,7 @@ def _generate_schema_from_standard_names_all_databases_with_http_info( def generate_schema_from_table( self, *, database_key: "str", table_identity: "int" - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given table. The user must be an Admin user for the database. This method makes a synchronous HTTP request. @@ -660,7 +660,7 @@ def generate_schema_from_table( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_table_with_http_info( database_key, table_identity, _return_http_data_only=True @@ -719,7 +719,7 @@ def _generate_schema_from_table_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -742,7 +742,7 @@ def _generate_schema_from_table_with_http_info( def generate_schema_from_table_name( self, *, database_key: "str", table_name: "str" - ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": + ) -> "Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": """Generate an integration schema from the attributes in the given table. The user must be an Admin user for the database. This method makes a synchronous HTTP request. @@ -754,7 +754,7 @@ def generate_schema_from_table_name( Returns ------- - Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] + Union[GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ data = self._generate_schema_from_table_name_with_http_info( database_key, table_name, _return_http_data_only=True @@ -813,7 +813,7 @@ def _generate_schema_from_table_name_with_http_info( ) response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + 200: "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", 403: None, 404: None, } @@ -834,7 +834,7 @@ def _generate_schema_from_table_name_with_http_info( response_type_map=response_type_map, ) - def get_status( + def get_search_index_status( self, *, database_key: "str", include_diagnostics: "Optional[bool]" = None ) -> "Union[GrantaServerApiSearchIndexStatus, None]": """Get Search Index Status for a given database @@ -850,12 +850,12 @@ def get_status( ------- Union[GrantaServerApiSearchIndexStatus, None] """ - data = self._get_status_with_http_info( + data = self._get_search_index_status_with_http_info( database_key, include_diagnostics, _return_http_data_only=True ) return data # type: ignore[no-any-return] - def _get_status_with_http_info( + def _get_search_index_status_with_http_info( self, database_key: "str", include_diagnostics: "Optional[bool]" = None, @@ -873,14 +873,14 @@ def _get_status_with_http_info( 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_status" + f"Got an unexpected keyword argument '{key}' to method get_search_index_status" ) 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_status'" + "Missing the required parameter 'database_key' when calling 'get_search_index_status'" ) collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py new file mode 100644 index 00000000..ac5625ba --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py @@ -0,0 +1,187 @@ +""" + 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, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 +from . import ApiBase + + +if TYPE_CHECKING: + import pathlib + from ..models import * + + +class HelpLocationApi(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 get_help_url(self, *, help_key: "str") -> "None": + """Returns the URL that the given helpKey maps to. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + help_key: str + The help key. + + Returns + ------- + None + """ + data = self._get_help_url_with_http_info(help_key, _return_http_data_only=True) + return data # type: ignore[no-any-return] + + def _get_help_url_with_http_info(self, help_key: "str", **kwargs: Any) -> Any: + all_params = [ + "help_key", + "_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_help_url" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "help_key" is set + if "help_key" not in params or params["help_key"] is None: + raise ValueError( + "Missing the required parameter 'help_key' when calling 'get_help_url'" + ) + + collection_formats: Dict[str, Any] = {} + + path_params: Dict[str, Any] = {} + if "help_key" in params and help_key is not None: + path_params["help-key"] = params["help_key"] + + query_params: List[Any] = [] + + header_params: Dict[str, Any] = {} + + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} + + body_params = None + + response_type_map: Dict[int, Optional[str]] = { + 200: None, + } + + return self.api_client.call_api( + "/v1alpha/help-location/url/{help-key}", + "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_help_url_redirect(self, *, help_key: "str") -> "None": + """Redirects client to the URL that the given helpKey maps to. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + help_key: str + The help key. + + Returns + ------- + None + """ + data = self._get_help_url_redirect_with_http_info( + help_key, _return_http_data_only=True + ) + return data # type: ignore[no-any-return] + + def _get_help_url_redirect_with_http_info( + self, help_key: "str", **kwargs: Any + ) -> Any: + all_params = [ + "help_key", + "_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_help_url_redirect" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "help_key" is set + if "help_key" not in params or params["help_key"] is None: + raise ValueError( + "Missing the required parameter 'help_key' when calling 'get_help_url_redirect'" + ) + + collection_formats: Dict[str, Any] = {} + + path_params: Dict[str, Any] = {} + if "help_key" in params and help_key is not None: + path_params["help-key"] = params["help_key"] + + query_params: List[Any] = [] + + header_params: Dict[str, Any] = {} + + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} + + body_params = None + + response_type_map: Dict[int, Optional[str]] = { + 200: None, + 302: None, + } + + return self.api_client.call_api( + "/v1alpha/help-location/redirect/{help-key}", + "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/license_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py index c6717592..5972b520 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py @@ -122,3 +122,69 @@ def _checkout_app_license_with_http_info( collection_formats=collection_formats, response_type_map=response_type_map, ) + + def ensure_user_license_available( + self, + ) -> "Union[MicrosoftAspNetCoreMvcObjectResult, None]": + """Either checks out a user license for the requesting user, or returns an error response if no such license is available. This method is a no-op because it relies on license check to happen within Granta.Server.Api.Auth.UserContextFilter + + This method makes a synchronous HTTP request. + + Returns + ------- + Union[MicrosoftAspNetCoreMvcObjectResult, None] + """ + data = self._ensure_user_license_available_with_http_info( + _return_http_data_only=True + ) + return data # type: ignore[no-any-return] + + def _ensure_user_license_available_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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 ensure_user_license_available" + ) + params[key] = val + del params["kwargs"] + + collection_formats: Dict[str, Any] = {} + + path_params: Dict[str, Any] = {} + + query_params: List[Any] = [] + + header_params: Dict[str, Any] = {} + + 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( + ["text/plain", "application/json", "text/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: None, + 403: "MicrosoftAspNetCoreMvcObjectResult", + } + + return self.api_client.call_api( + "/v1alpha/license/user-license:ensure-checked-out", + "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/metrics_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/metrics_api.py new file mode 100644 index 00000000..1bef6b3f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/metrics_api.py @@ -0,0 +1,110 @@ +""" + 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, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 +from . import ApiBase + + +if TYPE_CHECKING: + import pathlib + from ..models import * + + +class MetricsApi(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 get_jobs_summary( + self, *, start: "Optional[str]" = None + ) -> "GrantaServerApiMetricsGetJobsSummaryResponse": + """Get a summary of jobs currently running or completed since the start time. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + start: str + + Returns + ------- + GrantaServerApiMetricsGetJobsSummaryResponse + """ + data = self._get_jobs_summary_with_http_info(start, _return_http_data_only=True) + return data # type: ignore[no-any-return] + + def _get_jobs_summary_with_http_info( + self, start: "Optional[str]" = None, **kwargs: Any + ) -> Any: + all_params = [ + "start", + "_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_jobs_summary" + ) + params[key] = val + del params["kwargs"] + + collection_formats: Dict[str, Any] = {} + + path_params: Dict[str, Any] = {} + + query_params: List[Any] = [] + if "start" in params and start is not None: + query_params.append(("start", params["start"])) + + header_params: Dict[str, Any] = {} + + 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( + ["text/plain", "application/json", "text/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: "GrantaServerApiMetricsGetJobsSummaryResponse", + } + + return self.api_client.call_api( + "/v1alpha/metrics/jobs", + "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/status_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py index b3a18aec..a32f7472 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py @@ -89,3 +89,147 @@ def _get_with_http_info(self, **kwargs: Any) -> Any: collection_formats=collection_formats, response_type_map=response_type_map, ) + + def get_database_status( + self, *, database_key: "str" + ) -> "GrantaServerApiDatabaseStatusInformation": + """get_database_status + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + + Returns + ------- + GrantaServerApiDatabaseStatusInformation + """ + data = self._get_database_status_with_http_info( + database_key, _return_http_data_only=True + ) + return data # type: ignore[no-any-return] + + def _get_database_status_with_http_info( + self, database_key: "str", **kwargs: Any + ) -> Any: + all_params = [ + "database_key", + "_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_database_status" + ) + 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_database_status'" + ) + + 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"] + + query_params: List[Any] = [] + + header_params: Dict[str, Any] = {} + + 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( + ["text/plain", "application/json", "text/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: "GrantaServerApiDatabaseStatusInformation", + } + + return self.api_client.call_api( + "/v1alpha/status/databases/{database-key}", + "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_status(self) -> "List[GrantaServerApiDatabaseStatusInformation]": + """get_status + + This method makes a synchronous HTTP request. + + Returns + ------- + List[GrantaServerApiDatabaseStatusInformation] + """ + data = self._get_status_with_http_info(_return_http_data_only=True) + return data # type: ignore[no-any-return] + + def _get_status_with_http_info(self, **kwargs: Any) -> Any: + all_params = ["_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_status" + ) + params[key] = val + del params["kwargs"] + + collection_formats: Dict[str, Any] = {} + + path_params: Dict[str, Any] = {} + + query_params: List[Any] = [] + + header_params: Dict[str, Any] = {} + + 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( + ["text/plain", "application/json", "text/json"] + ) + + response_type_map: Dict[int, Optional[str]] = { + 200: "list[GrantaServerApiDatabaseStatusInformation]", + } + + return self.api_client.call_api( + "/v1alpha/status/databases", + "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/models/__init__.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/__init__.py index dc5d15f6..1c093c71 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 @@ -17,8 +17,8 @@ from .folderguid_files_body import FolderguidFilesBody from .folderguid_files_body1 import FolderguidFilesBody1 from .folderguid_files_body2 import FolderguidFilesBody2 -from .granta_mi_search_record_property_fake_attribute_numbers import ( - GrantaMISearchRecordPropertyFakeAttributeNumbers, +from .granta_mi_record_property_fake_attribute_identities import ( + GrantaMIRecordPropertyFakeAttributeIdentities, ) from .granta_server_api_admin_mi_version import GrantaServerApiAdminMiVersion from .granta_server_api_aggregations_aggregation import ( @@ -492,8 +492,8 @@ from .granta_server_api_data_export_simple_attribute_to_export import ( GrantaServerApiDataExportSimpleAttributeToExport, ) -from .granta_server_api_data_export_tabular_row_export_behaviour import ( - GrantaServerApiDataExportTabularRowExportBehaviour, +from .granta_server_api_data_export_tabular_row_export_behavior import ( + GrantaServerApiDataExportTabularRowExportBehavior, ) from .granta_server_api_data_file_datum import GrantaServerApiDataFileDatum from .granta_server_api_data_hyperlink_datum import GrantaServerApiDataHyperlinkDatum @@ -520,6 +520,10 @@ from .granta_server_api_data_significant_figures_info import ( GrantaServerApiDataSignificantFiguresInfo, ) +from .granta_server_api_database_status import GrantaServerApiDatabaseStatus +from .granta_server_api_database_status_information import ( + GrantaServerApiDatabaseStatusInformation, +) from .granta_server_api_discrete_value import GrantaServerApiDiscreteValue from .granta_server_api_disk_status import GrantaServerApiDiskStatus from .granta_server_api_exceptions_data_modification_data_modification_error_detail import ( @@ -611,6 +615,9 @@ from .granta_server_api_integration_schema_discrete_type import ( GrantaServerApiIntegrationSchemaDiscreteType, ) +from .granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier import ( + GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, +) from .granta_server_api_integration_schema_guid_only_schema_guid_only_attribute import ( GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute, ) @@ -635,6 +642,9 @@ from .granta_server_api_integration_schema_integration_parameter_info import ( GrantaServerApiIntegrationSchemaIntegrationParameterInfo, ) +from .granta_server_api_integration_schema_integration_schema_generation_error_detail import ( + GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail, +) from .granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier import ( GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, ) @@ -731,6 +741,12 @@ GrantaServerApiListsDtoUserPermissionsInfo, ) from .granta_server_api_lists_dto_user_role import GrantaServerApiListsDtoUserRole +from .granta_server_api_metrics_get_jobs_summary_response import ( + GrantaServerApiMetricsGetJobsSummaryResponse, +) +from .granta_server_api_metrics_job_type_and_status import ( + GrantaServerApiMetricsJobTypeAndStatus, +) from .granta_server_api_no_values_specifier import GrantaServerApiNoValuesSpecifier from .granta_server_api_object_identifier import GrantaServerApiObjectIdentifier from .granta_server_api_parameter_info import GrantaServerApiParameterInfo @@ -999,9 +1015,6 @@ GrantaServerApiSchemaDataRulesUpdateDataRule, ) from .granta_server_api_schema_database import GrantaServerApiSchemaDatabase -from .granta_server_api_schema_database_status import ( - GrantaServerApiSchemaDatabaseStatus, -) from .granta_server_api_schema_databases_info import GrantaServerApiSchemaDatabasesInfo from .granta_server_api_schema_discrete_types_create_discrete_type import ( GrantaServerApiSchemaDiscreteTypesCreateDiscreteType, @@ -1690,8 +1703,8 @@ from .granta_server_api_search_link_exists_datum_criterion import ( GrantaServerApiSearchLinkExistsDatumCriterion, ) -from .granta_server_api_search_linking_value_match_behaviour import ( - GrantaServerApiSearchLinkingValueMatchBehaviour, +from .granta_server_api_search_linking_value_match_behavior import ( + GrantaServerApiSearchLinkingValueMatchBehavior, ) from .granta_server_api_search_local_column_criterion import ( GrantaServerApiSearchLocalColumnCriterion, @@ -1705,8 +1718,8 @@ from .granta_server_api_search_local_column_not_applicable_criterion import ( GrantaServerApiSearchLocalColumnNotApplicableCriterion, ) -from .granta_server_api_search_local_rows_behaviour import ( - GrantaServerApiSearchLocalRowsBehaviour, +from .granta_server_api_search_local_rows_behavior import ( + GrantaServerApiSearchLocalRowsBehavior, ) from .granta_server_api_search_logical_datum_criterion import ( GrantaServerApiSearchLogicalDatumCriterion, @@ -1787,8 +1800,8 @@ from .granta_server_api_search_tabular_linking_value_criterion import ( GrantaServerApiSearchTabularLinkingValueCriterion, ) -from .granta_server_api_search_text_match_behaviour import ( - GrantaServerApiSearchTextMatchBehaviour, +from .granta_server_api_search_text_match_behavior import ( + GrantaServerApiSearchTextMatchBehavior, ) from .granta_server_api_selection_searches_create_search_request import ( GrantaServerApiSelectionSearchesCreateSearchRequest, @@ -1816,6 +1829,10 @@ from .granta_server_api_version_state import GrantaServerApiVersionState from .jobqueue_files_body import JobqueueFilesBody from .json_patch_document import JsonPatchDocument +from .microsoft_asp_net_core_mvc_formatters_i_output_formatter import ( + MicrosoftAspNetCoreMvcFormattersIOutputFormatter, +) +from .microsoft_asp_net_core_mvc_object_result import MicrosoftAspNetCoreMvcObjectResult from .system_net_http_status_code import SystemNetHttpStatusCode @@ -1826,7 +1843,7 @@ "FolderguidFilesBody", "FolderguidFilesBody1", "FolderguidFilesBody2", - "GrantaMISearchRecordPropertyFakeAttributeNumbers", + "GrantaMIRecordPropertyFakeAttributeIdentities", "GrantaServerApiAdminMiVersion", "GrantaServerApiAggregationsAggregation", "GrantaServerApiAggregationsAggregationCriterion", @@ -1991,7 +2008,7 @@ "GrantaServerApiDataExportPropertiesVersionStateProperty", "GrantaServerApiDataExportRecordWithData", "GrantaServerApiDataExportSimpleAttributeToExport", - "GrantaServerApiDataExportTabularRowExportBehaviour", + "GrantaServerApiDataExportTabularRowExportBehavior", "GrantaServerApiDataFileDatum", "GrantaServerApiDataHyperlinkDatum", "GrantaServerApiDataHyperlinkTarget", @@ -2009,6 +2026,8 @@ "GrantaServerApiDataRichTextValue", "GrantaServerApiDataShortTextDatum", "GrantaServerApiDataSignificantFiguresInfo", + "GrantaServerApiDatabaseStatus", + "GrantaServerApiDatabaseStatusInformation", "GrantaServerApiDiscreteValue", "GrantaServerApiDiskStatus", "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", @@ -2042,6 +2061,7 @@ "GrantaServerApiIntegrationIntegrationSchemaStatus", "GrantaServerApiIntegrationSchemaAttribute", "GrantaServerApiIntegrationSchemaDiscreteType", + "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo", @@ -2050,6 +2070,7 @@ "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaIntegrationParameterInfo", + "GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail", "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", "GrantaServerApiIntegrationSchemaLayout", "GrantaServerApiIntegrationSchemaLinkSourceType", @@ -2084,6 +2105,8 @@ "GrantaServerApiListsDtoUserPermission", "GrantaServerApiListsDtoUserPermissionsInfo", "GrantaServerApiListsDtoUserRole", + "GrantaServerApiMetricsGetJobsSummaryResponse", + "GrantaServerApiMetricsJobTypeAndStatus", "GrantaServerApiNoValuesSpecifier", "GrantaServerApiObjectIdentifier", "GrantaServerApiParameterInfo", @@ -2178,7 +2201,6 @@ "GrantaServerApiSchemaDataRulesDataRulesInfo", "GrantaServerApiSchemaDataRulesUpdateDataRule", "GrantaServerApiSchemaDatabase", - "GrantaServerApiSchemaDatabaseStatus", "GrantaServerApiSchemaDatabasesInfo", "GrantaServerApiSchemaDiscreteTypesCreateDiscreteType", "GrantaServerApiSchemaDiscreteTypesDiscreteType", @@ -2415,12 +2437,12 @@ "GrantaServerApiSearchIntegerDatumCriterion", "GrantaServerApiSearchLinkDatumCriterion", "GrantaServerApiSearchLinkExistsDatumCriterion", - "GrantaServerApiSearchLinkingValueMatchBehaviour", + "GrantaServerApiSearchLinkingValueMatchBehavior", "GrantaServerApiSearchLocalColumnCriterion", "GrantaServerApiSearchLocalColumnExistsCriterion", "GrantaServerApiSearchLocalColumnMatchesCriterion", "GrantaServerApiSearchLocalColumnNotApplicableCriterion", - "GrantaServerApiSearchLocalRowsBehaviour", + "GrantaServerApiSearchLocalRowsBehavior", "GrantaServerApiSearchLogicalDatumCriterion", "GrantaServerApiSearchLongSortingValue", "GrantaServerApiSearchLongTextDatumCriterion", @@ -2452,7 +2474,7 @@ "GrantaServerApiSearchSortingValue", "GrantaServerApiSearchStringSortingValue", "GrantaServerApiSearchTabularLinkingValueCriterion", - "GrantaServerApiSearchTextMatchBehaviour", + "GrantaServerApiSearchTextMatchBehavior", "GrantaServerApiSelectionSearchesCreateSearchRequest", "GrantaServerApiSelectionSearchesFindSearchRequest", "GrantaServerApiSelectionSearchesSaveSearchRequest", @@ -2465,5 +2487,7 @@ "GrantaServerApiVersionState", "JobqueueFilesBody", "JsonPatchDocument", + "MicrosoftAspNetCoreMvcFormattersIOutputFormatter", + "MicrosoftAspNetCoreMvcObjectResult", "SystemNetHttpStatusCode", ] diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_search_record_property_fake_attribute_numbers.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_record_property_fake_attribute_identities.py similarity index 96% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_search_record_property_fake_attribute_numbers.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_record_property_fake_attribute_identities.py index 1b6d4320..c9b16113 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_search_record_property_fake_attribute_numbers.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_record_property_fake_attribute_identities.py @@ -11,7 +11,7 @@ from enum import Enum -class GrantaMISearchRecordPropertyFakeAttributeNumbers(Enum): +class GrantaMIRecordPropertyFakeAttributeIdentities(Enum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py index 003d231b..6b771a93 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py @@ -49,7 +49,7 @@ class GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): swagger_types: Dict[str, str] = { "linked_records_criterion": "GrantaServerApiSearchCriterion", "summary_roll_up_type": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", - "tabular_row_behavior": "GrantaServerApiDataExportTabularRowExportBehaviour", + "tabular_row_behavior": "GrantaServerApiDataExportTabularRowExportBehavior", } attribute_map: Dict[str, str] = { @@ -59,7 +59,7 @@ class GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): } subtype_mapping: Dict[str, str] = { - "tabularRowBehavior": "GrantaServerApiDataExportTabularRowExportBehaviour", + "tabularRowBehavior": "GrantaServerApiDataExportTabularRowExportBehavior", "summaryRollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "linkedRecordsCriterion": "GrantaServerApiSearchCriterion", } @@ -71,7 +71,7 @@ def __init__( *, linked_records_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, summary_roll_up_type: "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" = Unset, - tabular_row_behavior: "Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type]" = Unset, + tabular_row_behavior: "Union[GrantaServerApiDataExportTabularRowExportBehavior, Unset_Type]" = Unset, ) -> None: """GrantaServerApiDataExportLinkedRecordExportBehavior - a model defined in Swagger @@ -79,10 +79,10 @@ def __init__( ---------- linked_records_criterion: GrantaServerApiSearchCriterion, optional summary_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, optional - tabular_row_behavior: GrantaServerApiDataExportTabularRowExportBehaviour, optional + tabular_row_behavior: GrantaServerApiDataExportTabularRowExportBehavior, optional """ self._tabular_row_behavior: Union[ - GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type + GrantaServerApiDataExportTabularRowExportBehavior, Unset_Type ] = Unset self._summary_roll_up_type: Union[ GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type @@ -101,12 +101,12 @@ def __init__( @property def tabular_row_behavior( self, - ) -> "Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type]": + ) -> "Union[GrantaServerApiDataExportTabularRowExportBehavior, Unset_Type]": """Gets the tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns ------- - Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type] + Union[GrantaServerApiDataExportTabularRowExportBehavior, Unset_Type] The tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ return self._tabular_row_behavior @@ -114,13 +114,13 @@ def tabular_row_behavior( @tabular_row_behavior.setter def tabular_row_behavior( self, - tabular_row_behavior: "Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type]", + tabular_row_behavior: "Union[GrantaServerApiDataExportTabularRowExportBehavior, Unset_Type]", ) -> None: """Sets the tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. Parameters ---------- - tabular_row_behavior: Union[GrantaServerApiDataExportTabularRowExportBehaviour, Unset_Type] + tabular_row_behavior: Union[GrantaServerApiDataExportTabularRowExportBehavior, Unset_Type] The tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. """ # Field is not nullable diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behaviour.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behavior.py similarity index 89% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behaviour.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behavior.py index b9ada044..9c1be503 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behaviour.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behavior.py @@ -11,7 +11,7 @@ from enum import Enum -class GrantaServerApiDataExportTabularRowExportBehaviour(Enum): +class GrantaServerApiDataExportTabularRowExportBehavior(Enum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status.py similarity index 90% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database_status.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status.py index b02dc50f..4ae8a25d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status.py @@ -11,7 +11,7 @@ from enum import Enum -class GrantaServerApiSchemaDatabaseStatus(Enum): +class GrantaServerApiDatabaseStatus(Enum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -21,7 +21,7 @@ class GrantaServerApiSchemaDatabaseStatus(Enum): Allowed Enum values """ UNKNOWN = "Unknown" - OK = "OK" + OK = "Ok" UNLOADED = "Unloaded" LOADING = "Loading" UNLOADING = "Unloading" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py new file mode 100644 index 00000000..c067acff --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py @@ -0,0 +1,305 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiDatabaseStatusInformation(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] = { + "database_is_read_only": "bool", + "database_key": "str", + "is_locked": "bool", + "schema_version": "str", + "search_index_in_sync": "bool", + "state": "GrantaServerApiDatabaseStatus", + } + + attribute_map: Dict[str, str] = { + "database_is_read_only": "databaseIsReadOnly", + "database_key": "databaseKey", + "is_locked": "isLocked", + "schema_version": "schemaVersion", + "search_index_in_sync": "searchIndexInSync", + "state": "state", + } + + subtype_mapping: Dict[str, str] = { + "state": "GrantaServerApiDatabaseStatus", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + database_is_read_only: "Union[bool, Unset_Type]" = Unset, + database_key: "Union[str, None, Unset_Type]" = Unset, + is_locked: "Union[bool, Unset_Type]" = Unset, + schema_version: "Union[str, None, Unset_Type]" = Unset, + search_index_in_sync: "Union[bool, Unset_Type]" = Unset, + state: "Union[GrantaServerApiDatabaseStatus, Unset_Type]" = Unset, + ) -> None: + """GrantaServerApiDatabaseStatusInformation - a model defined in Swagger + + Parameters + ---------- + database_is_read_only: bool, optional + database_key: str, optional + is_locked: bool, optional + schema_version: str, optional + search_index_in_sync: bool, optional + state: GrantaServerApiDatabaseStatus, optional + """ + self._database_key: Union[str, None, Unset_Type] = Unset + self._database_is_read_only: Union[bool, Unset_Type] = Unset + self._is_locked: Union[bool, Unset_Type] = Unset + self._state: Union[GrantaServerApiDatabaseStatus, Unset_Type] = Unset + self._schema_version: Union[str, None, Unset_Type] = Unset + self._search_index_in_sync: Union[bool, Unset_Type] = Unset + + if database_key is not Unset: + self.database_key = database_key + if database_is_read_only is not Unset: + self.database_is_read_only = database_is_read_only + if is_locked is not Unset: + self.is_locked = is_locked + if state is not Unset: + self.state = state + if schema_version is not Unset: + self.schema_version = schema_version + if search_index_in_sync is not Unset: + self.search_index_in_sync = search_index_in_sync + + @property + def database_key(self) -> "Union[str, None, Unset_Type]": + """Gets the database_key of this GrantaServerApiDatabaseStatusInformation. + Gets the database key for this database. + + Returns + ------- + Union[str, None, Unset_Type] + The database_key of this GrantaServerApiDatabaseStatusInformation. + """ + 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 GrantaServerApiDatabaseStatusInformation. + Gets the database key for this database. + + Parameters + ---------- + database_key: Union[str, None, Unset_Type] + The database_key of this GrantaServerApiDatabaseStatusInformation. + """ + self._database_key = database_key + + @property + def database_is_read_only(self) -> "Union[bool, Unset_Type]": + """Gets the database_is_read_only of this GrantaServerApiDatabaseStatusInformation. + Gets a value indicating whether the database is read only. + + Returns + ------- + Union[bool, Unset_Type] + The database_is_read_only of this GrantaServerApiDatabaseStatusInformation. + """ + return self._database_is_read_only + + @database_is_read_only.setter + def database_is_read_only( + self, database_is_read_only: "Union[bool, Unset_Type]" + ) -> None: + """Sets the database_is_read_only of this GrantaServerApiDatabaseStatusInformation. + Gets a value indicating whether the database is read only. + + Parameters + ---------- + database_is_read_only: Union[bool, Unset_Type] + The database_is_read_only of this GrantaServerApiDatabaseStatusInformation. + """ + # Field is not nullable + if database_is_read_only is None: + raise ValueError( + "Invalid value for 'database_is_read_only', must not be 'None'" + ) + self._database_is_read_only = database_is_read_only + + @property + def is_locked(self) -> "Union[bool, Unset_Type]": + """Gets the is_locked of this GrantaServerApiDatabaseStatusInformation. + Gets a value indicating whether the database is locked for non-admin users. + + Returns + ------- + Union[bool, Unset_Type] + The is_locked of this GrantaServerApiDatabaseStatusInformation. + """ + return self._is_locked + + @is_locked.setter + def is_locked(self, is_locked: "Union[bool, Unset_Type]") -> None: + """Sets the is_locked of this GrantaServerApiDatabaseStatusInformation. + Gets a value indicating whether the database is locked for non-admin users. + + Parameters + ---------- + is_locked: Union[bool, Unset_Type] + The is_locked of this GrantaServerApiDatabaseStatusInformation. + """ + # Field is not nullable + if is_locked is None: + raise ValueError("Invalid value for 'is_locked', must not be 'None'") + self._is_locked = is_locked + + @property + def state(self) -> "Union[GrantaServerApiDatabaseStatus, Unset_Type]": + """Gets the state of this GrantaServerApiDatabaseStatusInformation. + + Returns + ------- + Union[GrantaServerApiDatabaseStatus, Unset_Type] + The state of this GrantaServerApiDatabaseStatusInformation. + """ + return self._state + + @state.setter + def state(self, state: "Union[GrantaServerApiDatabaseStatus, Unset_Type]") -> None: + """Sets the state of this GrantaServerApiDatabaseStatusInformation. + + Parameters + ---------- + state: Union[GrantaServerApiDatabaseStatus, Unset_Type] + The state of this GrantaServerApiDatabaseStatusInformation. + """ + # Field is not nullable + if state is None: + raise ValueError("Invalid value for 'state', must not be 'None'") + self._state = state + + @property + def schema_version(self) -> "Union[str, None, Unset_Type]": + """Gets the schema_version of this GrantaServerApiDatabaseStatusInformation. + Gets the schema version of the database. + + Returns + ------- + Union[str, None, Unset_Type] + The schema_version of this GrantaServerApiDatabaseStatusInformation. + """ + return self._schema_version + + @schema_version.setter + def schema_version(self, schema_version: "Union[str, None, Unset_Type]") -> None: + """Sets the schema_version of this GrantaServerApiDatabaseStatusInformation. + Gets the schema version of the database. + + Parameters + ---------- + schema_version: Union[str, None, Unset_Type] + The schema_version of this GrantaServerApiDatabaseStatusInformation. + """ + self._schema_version = schema_version + + @property + def search_index_in_sync(self) -> "Union[bool, Unset_Type]": + """Gets the search_index_in_sync of this GrantaServerApiDatabaseStatusInformation. + Whether the search indexes for this database are in sync with the database changes + + Returns + ------- + Union[bool, Unset_Type] + The search_index_in_sync of this GrantaServerApiDatabaseStatusInformation. + """ + return self._search_index_in_sync + + @search_index_in_sync.setter + def search_index_in_sync( + self, search_index_in_sync: "Union[bool, Unset_Type]" + ) -> None: + """Sets the search_index_in_sync of this GrantaServerApiDatabaseStatusInformation. + Whether the search indexes for this database are in sync with the database changes + + Parameters + ---------- + search_index_in_sync: Union[bool, Unset_Type] + The search_index_in_sync of this GrantaServerApiDatabaseStatusInformation. + """ + # Field is not nullable + if search_index_in_sync is None: + raise ValueError( + "Invalid value for 'search_index_in_sync', must not be 'None'" + ) + self._search_index_in_sync = search_index_in_sync + + @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, GrantaServerApiDatabaseStatusInformation): + 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/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py new file mode 100644 index 00000000..3342ea2b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py @@ -0,0 +1,187 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier( + 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] = { + "schema": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + "warnings": "list[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail]", + } + + attribute_map: Dict[str, str] = { + "schema": "schema", + "warnings": "warnings", + } + + subtype_mapping: Dict[str, str] = { + "warnings": "GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail", + "schema": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + schema: "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, Unset_Type]" = Unset, + warnings: "Union[List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], None, Unset_Type]" = Unset, + ) -> None: + """GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier - a model defined in Swagger + + Parameters + ---------- + schema: GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, optional + warnings: List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], optional + """ + self._warnings: Union[ + List[ + GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail + ], + None, + Unset_Type, + ] = Unset + self._schema: Union[ + GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, + Unset_Type, + ] = Unset + + if warnings is not Unset: + self.warnings = warnings + if schema is not Unset: + self.schema = schema + + @property + def warnings( + self, + ) -> "Union[List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], None, Unset_Type]": + """Gets the warnings of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + Returns + ------- + Union[List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], None, Unset_Type] + The warnings of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + """ + return self._warnings + + @warnings.setter + def warnings( + self, + warnings: "Union[List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], None, Unset_Type]", + ) -> None: + """Sets the warnings of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + Parameters + ---------- + warnings: Union[List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], None, Unset_Type] + The warnings of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + """ + self._warnings = warnings + + @property + def schema( + self, + ) -> "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, Unset_Type]": + """Gets the schema of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + Returns + ------- + Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, Unset_Type] + The schema of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + """ + return self._schema + + @schema.setter + def schema( + self, + schema: "Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, Unset_Type]", + ) -> None: + """Sets the schema of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + Parameters + ---------- + schema: Union[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier, Unset_Type] + The schema of this GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier. + """ + # Field is not nullable + if schema is None: + raise ValueError("Invalid value for 'schema', must not be 'None'") + self._schema = schema + + @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, + GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier, + ): + 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/granta_server_api_integration_schema_integration_schema_generation_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_generation_error_detail.py new file mode 100644 index 00000000..d8f35a52 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_generation_error_detail.py @@ -0,0 +1,170 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail(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": "str", + } + + attribute_map: Dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "str", + ) -> None: + """GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: str + """ + self._message: str + self._reason: str + + self.message = message + self.reason = reason + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + + Returns + ------- + str + The message of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + + Parameters + ---------- + message: str + The message of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + """ + # 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) -> "str": + """Gets the reason of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + + Returns + ------- + str + The reason of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "str") -> None: + """Sets the reason of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + + Parameters + ---------- + reason: str + The reason of this GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail. + """ + # 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: + """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, + GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail, + ): + 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/granta_server_api_metrics_get_jobs_summary_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_get_jobs_summary_response.py new file mode 100644 index 00000000..7159d439 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_get_jobs_summary_response.py @@ -0,0 +1,137 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiMetricsGetJobsSummaryResponse(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] = { + "jobs": "list[GrantaServerApiMetricsJobTypeAndStatus]", + } + + attribute_map: Dict[str, str] = { + "jobs": "jobs", + } + + subtype_mapping: Dict[str, str] = { + "jobs": "GrantaServerApiMetricsJobTypeAndStatus", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + jobs: "Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type]" = Unset, + ) -> None: + """GrantaServerApiMetricsGetJobsSummaryResponse - a model defined in Swagger + + Parameters + ---------- + jobs: List[GrantaServerApiMetricsJobTypeAndStatus], optional + """ + self._jobs: Union[ + List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type + ] = Unset + + if jobs is not Unset: + self.jobs = jobs + + @property + def jobs( + self, + ) -> "Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type]": + """Gets the jobs of this GrantaServerApiMetricsGetJobsSummaryResponse. + + Returns + ------- + Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type] + The jobs of this GrantaServerApiMetricsGetJobsSummaryResponse. + """ + return self._jobs + + @jobs.setter + def jobs( + self, + jobs: "Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type]", + ) -> None: + """Sets the jobs of this GrantaServerApiMetricsGetJobsSummaryResponse. + + Parameters + ---------- + jobs: Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type] + The jobs of this GrantaServerApiMetricsGetJobsSummaryResponse. + """ + self._jobs = jobs + + @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, GrantaServerApiMetricsGetJobsSummaryResponse): + 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/granta_server_api_metrics_job_type_and_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_job_type_and_status.py new file mode 100644 index 00000000..58fe57c7 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_job_type_and_status.py @@ -0,0 +1,157 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class GrantaServerApiMetricsJobTypeAndStatus(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] = { + "job_type": "str", + "status": "str", + } + + attribute_map: Dict[str, str] = { + "job_type": "jobType", + "status": "status", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + job_type: "Union[str, None, Unset_Type]" = Unset, + status: "Union[str, None, Unset_Type]" = Unset, + ) -> None: + """GrantaServerApiMetricsJobTypeAndStatus - a model defined in Swagger + + Parameters + ---------- + job_type: str, optional + status: str, optional + """ + self._job_type: Union[str, None, Unset_Type] = Unset + self._status: Union[str, None, Unset_Type] = Unset + + if job_type is not Unset: + self.job_type = job_type + if status is not Unset: + self.status = status + + @property + def job_type(self) -> "Union[str, None, Unset_Type]": + """Gets the job_type of this GrantaServerApiMetricsJobTypeAndStatus. + + Returns + ------- + Union[str, None, Unset_Type] + The job_type of this GrantaServerApiMetricsJobTypeAndStatus. + """ + return self._job_type + + @job_type.setter + def job_type(self, job_type: "Union[str, None, Unset_Type]") -> None: + """Sets the job_type of this GrantaServerApiMetricsJobTypeAndStatus. + + Parameters + ---------- + job_type: Union[str, None, Unset_Type] + The job_type of this GrantaServerApiMetricsJobTypeAndStatus. + """ + self._job_type = job_type + + @property + def status(self) -> "Union[str, None, Unset_Type]": + """Gets the status of this GrantaServerApiMetricsJobTypeAndStatus. + + Returns + ------- + Union[str, None, Unset_Type] + The status of this GrantaServerApiMetricsJobTypeAndStatus. + """ + return self._status + + @status.setter + def status(self, status: "Union[str, None, Unset_Type]") -> None: + """Sets the status of this GrantaServerApiMetricsJobTypeAndStatus. + + Parameters + ---------- + status: Union[str, None, Unset_Type] + The status of this GrantaServerApiMetricsJobTypeAndStatus. + """ + self._status = status + + @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, GrantaServerApiMetricsJobTypeAndStatus): + 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/granta_server_api_schema_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py index b99de2dd..2c2c3837 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py @@ -52,7 +52,7 @@ class GrantaServerApiSchemaDatabase(ModelBase): "is_read_only": "bool", "key": "str", "name": "str", - "status": "GrantaServerApiSchemaDatabaseStatus", + "status": "GrantaServerApiDatabaseStatus", "author": "str", "company": "str", "currency_code": "str", @@ -85,7 +85,7 @@ class GrantaServerApiSchemaDatabase(ModelBase): } subtype_mapping: Dict[str, str] = { - "status": "GrantaServerApiSchemaDatabaseStatus", + "status": "GrantaServerApiDatabaseStatus", } discriminator: Optional[str] = None @@ -98,7 +98,7 @@ def __init__( is_read_only: "bool", key: "str", name: "str", - status: "GrantaServerApiSchemaDatabaseStatus", + status: "GrantaServerApiDatabaseStatus", author: "Union[str, None, Unset_Type]" = Unset, company: "Union[str, None, Unset_Type]" = Unset, currency_code: "Union[str, None, Unset_Type]" = Unset, @@ -119,7 +119,7 @@ def __init__( is_read_only: bool key: str name: str - status: GrantaServerApiSchemaDatabaseStatus + status: GrantaServerApiDatabaseStatus author: str, optional company: str, optional currency_code: str, optional @@ -138,7 +138,7 @@ def __init__( self._is_access_controlled: Union[bool, None, Unset_Type] = Unset self._key: str self._version_guid: Union[str, None, Unset_Type] = Unset - self._status: GrantaServerApiSchemaDatabaseStatus + self._status: GrantaServerApiDatabaseStatus self._is_read_only: bool self._is_locked: bool self._index_in_sync: Union[bool, None, Unset_Type] = Unset @@ -338,23 +338,23 @@ def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: self._version_guid = version_guid @property - def status(self) -> "GrantaServerApiSchemaDatabaseStatus": + def status(self) -> "GrantaServerApiDatabaseStatus": """Gets the status of this GrantaServerApiSchemaDatabase. Returns ------- - GrantaServerApiSchemaDatabaseStatus + GrantaServerApiDatabaseStatus The status of this GrantaServerApiSchemaDatabase. """ return self._status @status.setter - def status(self, status: "GrantaServerApiSchemaDatabaseStatus") -> None: + def status(self, status: "GrantaServerApiDatabaseStatus") -> None: """Sets the status of this GrantaServerApiSchemaDatabase. Parameters ---------- - status: GrantaServerApiSchemaDatabaseStatus + status: GrantaServerApiDatabaseStatus The status of this GrantaServerApiSchemaDatabase. """ # Field is not nullable diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py index eff31eb6..d1d28258 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py @@ -52,7 +52,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): "is_read_only": "bool", "key": "str", "name": "str", - "status": "GrantaServerApiSchemaDatabaseStatus", + "status": "GrantaServerApiDatabaseStatus", "index_in_sync": "bool", "index_out_of_date_duration": "str", "index_up_to_date": "bool", @@ -75,7 +75,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): } subtype_mapping: Dict[str, str] = { - "status": "GrantaServerApiSchemaDatabaseStatus", + "status": "GrantaServerApiDatabaseStatus", } discriminator: Optional[str] = None @@ -88,7 +88,7 @@ def __init__( is_read_only: "bool", key: "str", name: "str", - status: "GrantaServerApiSchemaDatabaseStatus", + status: "GrantaServerApiDatabaseStatus", index_in_sync: "Union[bool, None, Unset_Type]" = Unset, index_out_of_date_duration: "Union[str, None, Unset_Type]" = Unset, index_up_to_date: "Union[bool, None, Unset_Type]" = Unset, @@ -104,7 +104,7 @@ def __init__( is_read_only: bool key: str name: str - status: GrantaServerApiSchemaDatabaseStatus + status: GrantaServerApiDatabaseStatus index_in_sync: bool, optional index_out_of_date_duration: str, optional index_up_to_date: bool, optional @@ -113,7 +113,7 @@ def __init__( """ self._key: str self._version_guid: Union[str, None, Unset_Type] = Unset - self._status: GrantaServerApiSchemaDatabaseStatus + self._status: GrantaServerApiDatabaseStatus self._is_read_only: bool self._is_locked: bool self._index_in_sync: Union[bool, None, Unset_Type] = Unset @@ -191,23 +191,23 @@ def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: self._version_guid = version_guid @property - def status(self) -> "GrantaServerApiSchemaDatabaseStatus": + def status(self) -> "GrantaServerApiDatabaseStatus": """Gets the status of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns ------- - GrantaServerApiSchemaDatabaseStatus + GrantaServerApiDatabaseStatus The status of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ return self._status @status.setter - def status(self, status: "GrantaServerApiSchemaDatabaseStatus") -> None: + def status(self, status: "GrantaServerApiDatabaseStatus") -> None: """Sets the status of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters ---------- - status: GrantaServerApiSchemaDatabaseStatus + status: GrantaServerApiDatabaseStatus The status of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. """ # Field is not nullable diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py index 399a111d..2f9e87a0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py @@ -53,6 +53,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): "is_hidden_from_search": "bool", "is_versioned": "bool", "name": "str", + "table_types": "list[str]", } attribute_map: Dict[str, str] = { @@ -62,6 +63,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): "is_hidden_from_search": "isHiddenFromSearch", "is_versioned": "isVersioned", "name": "name", + "table_types": "tableTypes", } subtype_mapping: Dict[str, str] = {} @@ -77,6 +79,7 @@ def __init__( is_hidden_from_search: "bool", is_versioned: "bool", name: "str", + table_types: "List[str]", ) -> None: """GrantaServerApiSchemaSlimEntitiesSlimTable - a model defined in Swagger @@ -88,10 +91,12 @@ def __init__( is_hidden_from_search: bool is_versioned: bool name: str + table_types: List[str] """ self._is_hidden_from_browse: bool self._is_hidden_from_search: bool self._is_versioned: bool + self._table_types: List[str] self._display_names: Dict[str, str] self._name: str self._guid: str @@ -99,6 +104,7 @@ def __init__( self.is_hidden_from_browse = is_hidden_from_browse self.is_hidden_from_search = is_hidden_from_search self.is_versioned = is_versioned + self.table_types = table_types self.display_names = display_names self.name = name self.guid = guid @@ -195,6 +201,34 @@ def is_versioned(self, is_versioned: "bool") -> None: raise ValueError("Invalid value for 'is_versioned', must not be 'Unset'") self._is_versioned = is_versioned + @property + def table_types(self) -> "List[str]": + """Gets the table_types of this GrantaServerApiSchemaSlimEntitiesSlimTable. + + Returns + ------- + List[str] + The table_types of this GrantaServerApiSchemaSlimEntitiesSlimTable. + """ + return self._table_types + + @table_types.setter + def table_types(self, table_types: "List[str]") -> None: + """Sets the table_types of this GrantaServerApiSchemaSlimEntitiesSlimTable. + + Parameters + ---------- + table_types: List[str] + The table_types of this GrantaServerApiSchemaSlimEntitiesSlimTable. + """ + # Field is not nullable + if table_types is None: + raise ValueError("Invalid value for 'table_types', must not be 'None'") + # Field is required + if table_types is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table_types', must not be 'Unset'") + self._table_types = table_types + @property def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimTable. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py index 5af5f552..3214ef4e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py @@ -55,6 +55,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "layouts": "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]", "name": "str", "subsets": "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]", + "table_types": "list[str]", "version_state": "GrantaServerApiVersionState", "default_layout": "GrantaServerApiSchemaSlimEntitiesSlimLayout", "default_subset": "GrantaServerApiSchemaSlimEntitiesSlimSubset", @@ -69,6 +70,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "layouts": "layouts", "name": "name", "subsets": "subsets", + "table_types": "tableTypes", "version_state": "versionState", "default_layout": "defaultLayout", "default_subset": "defaultSubset", @@ -95,6 +97,7 @@ def __init__( layouts: "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]", name: "str", subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]", + table_types: "List[str]", version_state: "GrantaServerApiVersionState", default_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]" = Unset, default_subset: "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]" = Unset, @@ -111,6 +114,7 @@ def __init__( layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] name: str subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] + table_types: List[str] version_state: GrantaServerApiVersionState default_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional default_subset: GrantaServerApiSchemaSlimEntitiesSlimSubset, optional @@ -127,6 +131,7 @@ def __init__( self._is_hidden_from_browse: bool self._is_hidden_from_search: bool self._is_versioned: bool + self._table_types: List[str] self._display_names: Dict[str, str] self._name: str self._guid: str @@ -141,6 +146,7 @@ def __init__( self.is_hidden_from_browse = is_hidden_from_browse self.is_hidden_from_search = is_hidden_from_search self.is_versioned = is_versioned + self.table_types = table_types self.display_names = display_names self.name = name self.guid = guid @@ -385,6 +391,34 @@ def is_versioned(self, is_versioned: "bool") -> None: raise ValueError("Invalid value for 'is_versioned', must not be 'Unset'") self._is_versioned = is_versioned + @property + def table_types(self) -> "List[str]": + """Gets the table_types of this GrantaServerApiSchemaTablesTable. + + Returns + ------- + List[str] + The table_types of this GrantaServerApiSchemaTablesTable. + """ + return self._table_types + + @table_types.setter + def table_types(self, table_types: "List[str]") -> None: + """Sets the table_types of this GrantaServerApiSchemaTablesTable. + + Parameters + ---------- + table_types: List[str] + The table_types of this GrantaServerApiSchemaTablesTable. + """ + # Field is not nullable + if table_types is None: + raise ValueError("Invalid value for 'table_types', must not be 'None'") + # Field is required + if table_types is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'table_types', must not be 'Unset'") + self._table_types = table_types + @property def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaTablesTable. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py index 40b7e2db..a257c6cd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py @@ -52,19 +52,19 @@ class GrantaServerApiSearchDiscreteTextDatumCriterion( Name of the property used as discriminator for subtypes. """ swagger_types: Dict[str, str] = { - "text_match_behaviour": "GrantaServerApiSearchTextMatchBehaviour", + "text_match_behavior": "GrantaServerApiSearchTextMatchBehavior", "type": "str", "value": "str", } attribute_map: Dict[str, str] = { - "text_match_behaviour": "textMatchBehaviour", + "text_match_behavior": "textMatchBehavior", "type": "type", "value": "value", } subtype_mapping: Dict[str, str] = { - "textMatchBehaviour": "GrantaServerApiSearchTextMatchBehaviour", + "textMatchBehavior": "GrantaServerApiSearchTextMatchBehavior", } discriminator: Optional[str] = None @@ -72,7 +72,7 @@ class GrantaServerApiSearchDiscreteTextDatumCriterion( def __init__( self, *, - text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]" = Unset, + text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]" = Unset, type: "str" = "discreteText", value: "Union[str, None, Unset_Type]" = Unset, ) -> None: @@ -80,21 +80,21 @@ def __init__( Parameters ---------- - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional + text_match_behavior: GrantaServerApiSearchTextMatchBehavior, optional type: str value: str, optional """ super().__init__() self._value: Union[str, None, Unset_Type] = Unset - self._text_match_behaviour: Union[ - GrantaServerApiSearchTextMatchBehaviour, Unset_Type + self._text_match_behavior: Union[ + GrantaServerApiSearchTextMatchBehavior, Unset_Type ] = Unset self._type: str if value is not Unset: self.value = value - if text_match_behaviour is not Unset: - self.text_match_behaviour = text_match_behaviour + if text_match_behavior is not Unset: + self.text_match_behavior = text_match_behavior self.type = type @property @@ -120,36 +120,36 @@ def value(self, value: "Union[str, None, Unset_Type]") -> None: self._value = value @property - def text_match_behaviour( + def text_match_behavior( self, - ) -> "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]": - """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. + ) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": + """Gets the text_match_behavior of this GrantaServerApiSearchDiscreteTextDatumCriterion. Returns ------- - Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] - The text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. + Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] + The text_match_behavior of this GrantaServerApiSearchDiscreteTextDatumCriterion. """ - return self._text_match_behaviour + return self._text_match_behavior - @text_match_behaviour.setter - def text_match_behaviour( + @text_match_behavior.setter + def text_match_behavior( self, - text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]", + text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]", ) -> None: - """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. + """Sets the text_match_behavior of this GrantaServerApiSearchDiscreteTextDatumCriterion. Parameters ---------- - text_match_behaviour: Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] - The text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. + text_match_behavior: Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] + The text_match_behavior of this GrantaServerApiSearchDiscreteTextDatumCriterion. """ # Field is not nullable - if text_match_behaviour is None: + if text_match_behavior is None: raise ValueError( - "Invalid value for 'text_match_behaviour', must not be 'None'" + "Invalid value for 'text_match_behavior', must not be 'None'" ) - self._text_match_behaviour = text_match_behaviour + self._text_match_behavior = text_match_behavior @property def type(self) -> "str": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py index 166c5e45..85a644c4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py @@ -55,7 +55,7 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion( "_none": "list[str]", "all": "list[str]", "any": "list[str]", - "text_match_behaviour": "GrantaServerApiSearchTextMatchBehaviour", + "text_match_behavior": "GrantaServerApiSearchTextMatchBehavior", "type": "str", } @@ -63,12 +63,12 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion( "_none": "none", "all": "all", "any": "any", - "text_match_behaviour": "textMatchBehaviour", + "text_match_behavior": "textMatchBehavior", "type": "type", } subtype_mapping: Dict[str, str] = { - "textMatchBehaviour": "GrantaServerApiSearchTextMatchBehaviour", + "textMatchBehavior": "GrantaServerApiSearchTextMatchBehavior", } discriminator: Optional[str] = None @@ -79,7 +79,7 @@ def __init__( _none: "Union[List[str], None, Unset_Type]" = Unset, all: "Union[List[str], None, Unset_Type]" = Unset, any: "Union[List[str], None, Unset_Type]" = Unset, - text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]" = Unset, + text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]" = Unset, type: "str" = "discreteTextValues", ) -> None: """GrantaServerApiSearchDiscreteTextValuesDatumCriterion - a model defined in Swagger @@ -89,15 +89,15 @@ def __init__( _none: List[str], optional all: List[str], optional any: List[str], optional - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional + text_match_behavior: GrantaServerApiSearchTextMatchBehavior, optional type: str """ super().__init__() self._all: Union[List[str], None, Unset_Type] = Unset self._any: Union[List[str], None, Unset_Type] = Unset self.__none: Union[List[str], None, Unset_Type] = Unset - self._text_match_behaviour: Union[ - GrantaServerApiSearchTextMatchBehaviour, Unset_Type + self._text_match_behavior: Union[ + GrantaServerApiSearchTextMatchBehavior, Unset_Type ] = Unset self._type: str @@ -107,8 +107,8 @@ def __init__( self.any = any if _none is not Unset: self._none = _none - if text_match_behaviour is not Unset: - self.text_match_behaviour = text_match_behaviour + if text_match_behavior is not Unset: + self.text_match_behavior = text_match_behavior self.type = type @property @@ -178,36 +178,36 @@ def _none(self, _none: "Union[List[str], None, Unset_Type]") -> None: self.__none = _none @property - def text_match_behaviour( + def text_match_behavior( self, - ) -> "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]": - """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. + ) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": + """Gets the text_match_behavior of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns ------- - Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] - The text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. + Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] + The text_match_behavior of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ - return self._text_match_behaviour + return self._text_match_behavior - @text_match_behaviour.setter - def text_match_behaviour( + @text_match_behavior.setter + def text_match_behavior( self, - text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]", + text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]", ) -> None: - """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. + """Sets the text_match_behavior of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - text_match_behaviour: Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] - The text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. + text_match_behavior: Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] + The text_match_behavior of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ # Field is not nullable - if text_match_behaviour is None: + if text_match_behavior is None: raise ValueError( - "Invalid value for 'text_match_behaviour', must not be 'None'" + "Invalid value for 'text_match_behavior', must not be 'None'" ) - self._text_match_behaviour = text_match_behaviour + self._text_match_behavior = text_match_behavior @property def type(self) -> "str": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py index 2c8ee630..cfc58fd7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py @@ -54,7 +54,7 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio "inner_criterion": "GrantaServerApiSearchCriterion", "link_datum_type": "GrantaServerApiLinkAttributeType", "local_criterion": "GrantaServerApiSearchCriterion", - "local_rows_behaviour": "GrantaServerApiSearchLocalRowsBehaviour", + "local_rows_behavior": "GrantaServerApiSearchLocalRowsBehavior", "search_in_reversed_direction": "bool", "target_attribute_guid": "str", "target_attribute_identity": "int", @@ -69,7 +69,7 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio "inner_criterion": "innerCriterion", "link_datum_type": "linkDatumType", "local_criterion": "localCriterion", - "local_rows_behaviour": "localRowsBehaviour", + "local_rows_behavior": "localRowsBehavior", "search_in_reversed_direction": "searchInReversedDirection", "target_attribute_guid": "targetAttributeGuid", "target_attribute_identity": "targetAttributeIdentity", @@ -84,7 +84,7 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio "linkDatumType": "GrantaServerApiLinkAttributeType", "indirectLinks": "GrantaServerApiIndirectLinks", "innerCriterion": "GrantaServerApiSearchCriterion", - "localRowsBehaviour": "GrantaServerApiSearchLocalRowsBehaviour", + "localRowsBehavior": "GrantaServerApiSearchLocalRowsBehavior", } discriminator: Optional[str] = None @@ -96,7 +96,7 @@ def __init__( inner_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, link_datum_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" = Unset, local_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" = Unset, - local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]" = Unset, + local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]" = Unset, search_in_reversed_direction: "Union[bool, Unset_Type]" = Unset, target_attribute_guid: "Union[str, None, Unset_Type]" = Unset, target_attribute_identity: "Union[int, None, Unset_Type]" = Unset, @@ -113,7 +113,7 @@ def __init__( inner_criterion: GrantaServerApiSearchCriterion, optional link_datum_type: GrantaServerApiLinkAttributeType, optional local_criterion: GrantaServerApiSearchCriterion, optional - local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour, optional + local_rows_behavior: GrantaServerApiSearchLocalRowsBehavior, optional search_in_reversed_direction: bool, optional target_attribute_guid: str, optional target_attribute_identity: int, optional @@ -136,8 +136,8 @@ def __init__( self._target_attribute_guid: Union[str, None, Unset_Type] = Unset self._inner_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset self._type: str - self._local_rows_behaviour: Union[ - GrantaServerApiSearchLocalRowsBehaviour, Unset_Type + self._local_rows_behavior: Union[ + GrantaServerApiSearchLocalRowsBehavior, Unset_Type ] = Unset if target_table_identity is not Unset: @@ -161,8 +161,8 @@ def __init__( if inner_criterion is not Unset: self.inner_criterion = inner_criterion self.type = type - if local_rows_behaviour is not Unset: - self.local_rows_behaviour = local_rows_behaviour + if local_rows_behavior is not Unset: + self.local_rows_behavior = local_rows_behavior @property def target_table_identity(self) -> "Union[int, None, Unset_Type]": @@ -460,36 +460,36 @@ def type(self, type: "str") -> None: self._type = type @property - def local_rows_behaviour( + def local_rows_behavior( self, - ) -> "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]": - """Gets the local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. + ) -> "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]": + """Gets the local_rows_behavior of this GrantaServerApiSearchLinkDatumCriterion. Returns ------- - Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] - The local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. + Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type] + The local_rows_behavior of this GrantaServerApiSearchLinkDatumCriterion. """ - return self._local_rows_behaviour + return self._local_rows_behavior - @local_rows_behaviour.setter - def local_rows_behaviour( + @local_rows_behavior.setter + def local_rows_behavior( self, - local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]", + local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]", ) -> None: - """Sets the local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. + """Sets the local_rows_behavior of this GrantaServerApiSearchLinkDatumCriterion. Parameters ---------- - local_rows_behaviour: Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] - The local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. + local_rows_behavior: Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type] + The local_rows_behavior of this GrantaServerApiSearchLinkDatumCriterion. """ # Field is not nullable - if local_rows_behaviour is None: + if local_rows_behavior is None: raise ValueError( - "Invalid value for 'local_rows_behaviour', must not be 'None'" + "Invalid value for 'local_rows_behavior', must not be 'None'" ) - self._local_rows_behaviour = local_rows_behaviour + self._local_rows_behavior = local_rows_behavior @classmethod def get_real_child_model(cls, data: Dict[str, str]) -> str: diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py index 4efdd948..77855c5f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py @@ -54,7 +54,7 @@ class GrantaServerApiSearchLinkExistsDatumCriterion( swagger_types: Dict[str, str] = { "indirect_links": "GrantaServerApiIndirectLinks", "link_datum_type": "GrantaServerApiLinkAttributeType", - "local_rows_behaviour": "GrantaServerApiSearchLocalRowsBehaviour", + "local_rows_behavior": "GrantaServerApiSearchLocalRowsBehavior", "search_in_reversed_direction": "bool", "target_attribute_guid": "str", "target_attribute_identity": "int", @@ -67,7 +67,7 @@ class GrantaServerApiSearchLinkExistsDatumCriterion( attribute_map: Dict[str, str] = { "indirect_links": "indirectLinks", "link_datum_type": "linkDatumType", - "local_rows_behaviour": "localRowsBehaviour", + "local_rows_behavior": "localRowsBehavior", "search_in_reversed_direction": "searchInReversedDirection", "target_attribute_guid": "targetAttributeGuid", "target_attribute_identity": "targetAttributeIdentity", @@ -80,7 +80,7 @@ class GrantaServerApiSearchLinkExistsDatumCriterion( subtype_mapping: Dict[str, str] = { "linkDatumType": "GrantaServerApiLinkAttributeType", "indirectLinks": "GrantaServerApiIndirectLinks", - "localRowsBehaviour": "GrantaServerApiSearchLocalRowsBehaviour", + "localRowsBehavior": "GrantaServerApiSearchLocalRowsBehavior", } discriminator: Optional[str] = None @@ -90,7 +90,7 @@ def __init__( *, indirect_links: "Union[GrantaServerApiIndirectLinks, Unset_Type]" = Unset, link_datum_type: "Union[GrantaServerApiLinkAttributeType, Unset_Type]" = Unset, - local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]" = Unset, + local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]" = Unset, search_in_reversed_direction: "Union[bool, Unset_Type]" = Unset, target_attribute_guid: "Union[str, None, Unset_Type]" = Unset, target_attribute_identity: "Union[int, None, Unset_Type]" = Unset, @@ -105,7 +105,7 @@ def __init__( ---------- indirect_links: GrantaServerApiIndirectLinks, optional link_datum_type: GrantaServerApiLinkAttributeType, optional - local_rows_behaviour: GrantaServerApiSearchLocalRowsBehaviour, optional + local_rows_behavior: GrantaServerApiSearchLocalRowsBehavior, optional search_in_reversed_direction: bool, optional target_attribute_guid: str, optional target_attribute_identity: int, optional @@ -123,8 +123,8 @@ def __init__( ) self._indirect_links: Union[GrantaServerApiIndirectLinks, Unset_Type] = Unset self._search_in_reversed_direction: Union[bool, Unset_Type] = Unset - self._local_rows_behaviour: Union[ - GrantaServerApiSearchLocalRowsBehaviour, Unset_Type + self._local_rows_behavior: Union[ + GrantaServerApiSearchLocalRowsBehavior, Unset_Type ] = Unset self._target_attribute_identity: Union[int, None, Unset_Type] = Unset self._target_attribute_guid: Union[str, None, Unset_Type] = Unset @@ -142,8 +142,8 @@ def __init__( self.indirect_links = indirect_links if search_in_reversed_direction is not Unset: self.search_in_reversed_direction = search_in_reversed_direction - if local_rows_behaviour is not Unset: - self.local_rows_behaviour = local_rows_behaviour + if local_rows_behavior is not Unset: + self.local_rows_behavior = local_rows_behavior if target_attribute_identity is not Unset: self.target_attribute_identity = target_attribute_identity if target_attribute_guid is not Unset: @@ -312,36 +312,36 @@ def search_in_reversed_direction( self._search_in_reversed_direction = search_in_reversed_direction @property - def local_rows_behaviour( + def local_rows_behavior( self, - ) -> "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]": - """Gets the local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. + ) -> "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]": + """Gets the local_rows_behavior of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns ------- - Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] - The local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. + Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type] + The local_rows_behavior of this GrantaServerApiSearchLinkExistsDatumCriterion. """ - return self._local_rows_behaviour + return self._local_rows_behavior - @local_rows_behaviour.setter - def local_rows_behaviour( + @local_rows_behavior.setter + def local_rows_behavior( self, - local_rows_behaviour: "Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type]", + local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]", ) -> None: - """Sets the local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. + """Sets the local_rows_behavior of this GrantaServerApiSearchLinkExistsDatumCriterion. Parameters ---------- - local_rows_behaviour: Union[GrantaServerApiSearchLocalRowsBehaviour, Unset_Type] - The local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. + local_rows_behavior: Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type] + The local_rows_behavior of this GrantaServerApiSearchLinkExistsDatumCriterion. """ # Field is not nullable - if local_rows_behaviour is None: + if local_rows_behavior is None: raise ValueError( - "Invalid value for 'local_rows_behaviour', must not be 'None'" + "Invalid value for 'local_rows_behavior', must not be 'None'" ) - self._local_rows_behaviour = local_rows_behaviour + self._local_rows_behavior = local_rows_behavior @property def target_attribute_identity(self) -> "Union[int, None, Unset_Type]": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behaviour.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behavior.py similarity index 90% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behaviour.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behavior.py index d459bea6..6e5e514e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behaviour.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behavior.py @@ -11,7 +11,7 @@ from enum import Enum -class GrantaServerApiSearchLinkingValueMatchBehaviour(Enum): +class GrantaServerApiSearchLinkingValueMatchBehavior(Enum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behaviour.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behavior.py similarity index 91% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behaviour.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behavior.py index d549b4b2..5547930b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behaviour.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behavior.py @@ -11,7 +11,7 @@ from enum import Enum -class GrantaServerApiSearchLocalRowsBehaviour(Enum): +class GrantaServerApiSearchLocalRowsBehavior(Enum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py index 69db9670..c5e7dd47 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py @@ -25,7 +25,7 @@ class GrantaServerApiSearchSearchableRecordProperty(Enum): LASTMODIFIEDDATE = "lastModifiedDate" LASTMODIFIER = "lastModifier" RECORDTYPE = "recordType" - COLOUR = "colour" + COLOR = "color" VERSIONSTATE = "versionState" VERSIONNUMBER = "versionNumber" RECORDNAME = "recordName" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py index d191ee32..a7f8598c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py @@ -50,19 +50,19 @@ class GrantaServerApiSearchShortTextDatumCriterion(GrantaServerApiSearchDatumCri Name of the property used as discriminator for subtypes. """ swagger_types: Dict[str, str] = { - "text_match_behaviour": "GrantaServerApiSearchTextMatchBehaviour", + "text_match_behavior": "GrantaServerApiSearchTextMatchBehavior", "type": "str", "value": "str", } attribute_map: Dict[str, str] = { - "text_match_behaviour": "textMatchBehaviour", + "text_match_behavior": "textMatchBehavior", "type": "type", "value": "value", } subtype_mapping: Dict[str, str] = { - "textMatchBehaviour": "GrantaServerApiSearchTextMatchBehaviour", + "textMatchBehavior": "GrantaServerApiSearchTextMatchBehavior", } discriminator: Optional[str] = None @@ -70,7 +70,7 @@ class GrantaServerApiSearchShortTextDatumCriterion(GrantaServerApiSearchDatumCri def __init__( self, *, - text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]" = Unset, + text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]" = Unset, type: "str" = "shortText", value: "Union[str, None, Unset_Type]" = Unset, ) -> None: @@ -78,21 +78,21 @@ def __init__( Parameters ---------- - text_match_behaviour: GrantaServerApiSearchTextMatchBehaviour, optional + text_match_behavior: GrantaServerApiSearchTextMatchBehavior, optional type: str value: str, optional """ super().__init__() self._value: Union[str, None, Unset_Type] = Unset - self._text_match_behaviour: Union[ - GrantaServerApiSearchTextMatchBehaviour, Unset_Type + self._text_match_behavior: Union[ + GrantaServerApiSearchTextMatchBehavior, Unset_Type ] = Unset self._type: str if value is not Unset: self.value = value - if text_match_behaviour is not Unset: - self.text_match_behaviour = text_match_behaviour + if text_match_behavior is not Unset: + self.text_match_behavior = text_match_behavior self.type = type @property @@ -118,36 +118,36 @@ def value(self, value: "Union[str, None, Unset_Type]") -> None: self._value = value @property - def text_match_behaviour( + def text_match_behavior( self, - ) -> "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]": - """Gets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. + ) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": + """Gets the text_match_behavior of this GrantaServerApiSearchShortTextDatumCriterion. Returns ------- - Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] - The text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. + Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] + The text_match_behavior of this GrantaServerApiSearchShortTextDatumCriterion. """ - return self._text_match_behaviour + return self._text_match_behavior - @text_match_behaviour.setter - def text_match_behaviour( + @text_match_behavior.setter + def text_match_behavior( self, - text_match_behaviour: "Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type]", + text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]", ) -> None: - """Sets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. + """Sets the text_match_behavior of this GrantaServerApiSearchShortTextDatumCriterion. Parameters ---------- - text_match_behaviour: Union[GrantaServerApiSearchTextMatchBehaviour, Unset_Type] - The text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. + text_match_behavior: Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] + The text_match_behavior of this GrantaServerApiSearchShortTextDatumCriterion. """ # Field is not nullable - if text_match_behaviour is None: + if text_match_behavior is None: raise ValueError( - "Invalid value for 'text_match_behaviour', must not be 'None'" + "Invalid value for 'text_match_behavior', must not be 'None'" ) - self._text_match_behaviour = text_match_behaviour + self._text_match_behavior = text_match_behavior @property def type(self) -> "str": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py index c76e2d5c..6a98e8dd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py @@ -50,19 +50,19 @@ class GrantaServerApiSearchTabularLinkingValueCriterion(GrantaServerApiSearchCri Name of the property used as discriminator for subtypes. """ swagger_types: Dict[str, str] = { - "linking_value_match_behaviour": "GrantaServerApiSearchLinkingValueMatchBehaviour", + "linking_value_match_behavior": "GrantaServerApiSearchLinkingValueMatchBehavior", "type": "str", "values": "list[str]", } attribute_map: Dict[str, str] = { - "linking_value_match_behaviour": "linkingValueMatchBehaviour", + "linking_value_match_behavior": "linkingValueMatchBehavior", "type": "type", "values": "values", } subtype_mapping: Dict[str, str] = { - "linkingValueMatchBehaviour": "GrantaServerApiSearchLinkingValueMatchBehaviour", + "linkingValueMatchBehavior": "GrantaServerApiSearchLinkingValueMatchBehavior", } discriminator: Optional[str] = None @@ -70,7 +70,7 @@ class GrantaServerApiSearchTabularLinkingValueCriterion(GrantaServerApiSearchCri def __init__( self, *, - linking_value_match_behaviour: "Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type]" = Unset, + linking_value_match_behavior: "Union[GrantaServerApiSearchLinkingValueMatchBehavior, Unset_Type]" = Unset, type: "str" = "tabularLinkingValue", values: "Union[List[str], None, Unset_Type]" = Unset, ) -> None: @@ -78,21 +78,21 @@ def __init__( Parameters ---------- - linking_value_match_behaviour: GrantaServerApiSearchLinkingValueMatchBehaviour, optional + linking_value_match_behavior: GrantaServerApiSearchLinkingValueMatchBehavior, optional type: str values: List[str], optional """ super().__init__() self._values: Union[List[str], None, Unset_Type] = Unset - self._linking_value_match_behaviour: Union[ - GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type + self._linking_value_match_behavior: Union[ + GrantaServerApiSearchLinkingValueMatchBehavior, Unset_Type ] = Unset self._type: str if values is not Unset: self.values = values - if linking_value_match_behaviour is not Unset: - self.linking_value_match_behaviour = linking_value_match_behaviour + if linking_value_match_behavior is not Unset: + self.linking_value_match_behavior = linking_value_match_behavior self.type = type @property @@ -118,36 +118,36 @@ def values(self, values: "Union[List[str], None, Unset_Type]") -> None: self._values = values @property - def linking_value_match_behaviour( + def linking_value_match_behavior( self, - ) -> "Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type]": - """Gets the linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. + ) -> "Union[GrantaServerApiSearchLinkingValueMatchBehavior, Unset_Type]": + """Gets the linking_value_match_behavior of this GrantaServerApiSearchTabularLinkingValueCriterion. Returns ------- - Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type] - The linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. + Union[GrantaServerApiSearchLinkingValueMatchBehavior, Unset_Type] + The linking_value_match_behavior of this GrantaServerApiSearchTabularLinkingValueCriterion. """ - return self._linking_value_match_behaviour + return self._linking_value_match_behavior - @linking_value_match_behaviour.setter - def linking_value_match_behaviour( + @linking_value_match_behavior.setter + def linking_value_match_behavior( self, - linking_value_match_behaviour: "Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type]", + linking_value_match_behavior: "Union[GrantaServerApiSearchLinkingValueMatchBehavior, Unset_Type]", ) -> None: - """Sets the linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. + """Sets the linking_value_match_behavior of this GrantaServerApiSearchTabularLinkingValueCriterion. Parameters ---------- - linking_value_match_behaviour: Union[GrantaServerApiSearchLinkingValueMatchBehaviour, Unset_Type] - The linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. + linking_value_match_behavior: Union[GrantaServerApiSearchLinkingValueMatchBehavior, Unset_Type] + The linking_value_match_behavior of this GrantaServerApiSearchTabularLinkingValueCriterion. """ # Field is not nullable - if linking_value_match_behaviour is None: + if linking_value_match_behavior is None: raise ValueError( - "Invalid value for 'linking_value_match_behaviour', must not be 'None'" + "Invalid value for 'linking_value_match_behavior', must not be 'None'" ) - self._linking_value_match_behaviour = linking_value_match_behaviour + self._linking_value_match_behavior = linking_value_match_behavior @property def type(self) -> "str": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behaviour.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behavior.py similarity index 91% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behaviour.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behavior.py index d3dbecae..747ee815 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behaviour.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behavior.py @@ -11,7 +11,7 @@ from enum import Enum -class GrantaServerApiSearchTextMatchBehaviour(Enum): +class GrantaServerApiSearchTextMatchBehavior(Enum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py new file mode 100644 index 00000000..b6a6a91d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py @@ -0,0 +1,91 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class MicrosoftAspNetCoreMvcFormattersIOutputFormatter(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] = {} + + attribute_map: Dict[str, str] = {} + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + ) -> None: + """MicrosoftAspNetCoreMvcFormattersIOutputFormatter - a model defined in Swagger""" + + @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, MicrosoftAspNetCoreMvcFormattersIOutputFormatter): + 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/microsoft_asp_net_core_mvc_object_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_object_result.py new file mode 100644 index 00000000..888eded4 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_object_result.py @@ -0,0 +1,255 @@ +""" + 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, + Dict, + List, + Optional, + Union, +) # noqa: F401 + +from . import ModelBase, Unset, Unset_Type + + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + from . import * + + +class MicrosoftAspNetCoreMvcObjectResult(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] = { + "content_types": "list[str]", + "declared_type": "str", + "formatters": "list[MicrosoftAspNetCoreMvcFormattersIOutputFormatter]", + "status_code": "int", + "value": "object", + } + + attribute_map: Dict[str, str] = { + "content_types": "contentTypes", + "declared_type": "declaredType", + "formatters": "formatters", + "status_code": "statusCode", + "value": "value", + } + + subtype_mapping: Dict[str, str] = { + "formatters": "MicrosoftAspNetCoreMvcFormattersIOutputFormatter", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + content_types: "Union[List[str], None, Unset_Type]" = Unset, + declared_type: "Union[str, None, Unset_Type]" = Unset, + formatters: "Union[List[MicrosoftAspNetCoreMvcFormattersIOutputFormatter], None, Unset_Type]" = Unset, + status_code: "Union[int, None, Unset_Type]" = Unset, + value: "Union[object, None, Unset_Type]" = Unset, + ) -> None: + """MicrosoftAspNetCoreMvcObjectResult - a model defined in Swagger + + Parameters + ---------- + content_types: List[str], optional + declared_type: str, optional + formatters: List[MicrosoftAspNetCoreMvcFormattersIOutputFormatter], optional + status_code: int, optional + value: object, optional + """ + self._value: Union[object, None, Unset_Type] = Unset + self._formatters: Union[ + List[MicrosoftAspNetCoreMvcFormattersIOutputFormatter], None, Unset_Type + ] = Unset + self._content_types: Union[List[str], None, Unset_Type] = Unset + self._declared_type: Union[str, None, Unset_Type] = Unset + self._status_code: Union[int, None, Unset_Type] = Unset + + if value is not Unset: + self.value = value + if formatters is not Unset: + self.formatters = formatters + if content_types is not Unset: + self.content_types = content_types + if declared_type is not Unset: + self.declared_type = declared_type + if status_code is not Unset: + self.status_code = status_code + + @property + def value(self) -> "Union[object, None, Unset_Type]": + """Gets the value of this MicrosoftAspNetCoreMvcObjectResult. + + Returns + ------- + Union[object, None, Unset_Type] + The value of this MicrosoftAspNetCoreMvcObjectResult. + """ + return self._value + + @value.setter + def value(self, value: "Union[object, None, Unset_Type]") -> None: + """Sets the value of this MicrosoftAspNetCoreMvcObjectResult. + + Parameters + ---------- + value: Union[object, None, Unset_Type] + The value of this MicrosoftAspNetCoreMvcObjectResult. + """ + self._value = value + + @property + def formatters( + self, + ) -> "Union[List[MicrosoftAspNetCoreMvcFormattersIOutputFormatter], None, Unset_Type]": + """Gets the formatters of this MicrosoftAspNetCoreMvcObjectResult. + + Returns + ------- + Union[List[MicrosoftAspNetCoreMvcFormattersIOutputFormatter], None, Unset_Type] + The formatters of this MicrosoftAspNetCoreMvcObjectResult. + """ + return self._formatters + + @formatters.setter + def formatters( + self, + formatters: "Union[List[MicrosoftAspNetCoreMvcFormattersIOutputFormatter], None, Unset_Type]", + ) -> None: + """Sets the formatters of this MicrosoftAspNetCoreMvcObjectResult. + + Parameters + ---------- + formatters: Union[List[MicrosoftAspNetCoreMvcFormattersIOutputFormatter], None, Unset_Type] + The formatters of this MicrosoftAspNetCoreMvcObjectResult. + """ + self._formatters = formatters + + @property + def content_types(self) -> "Union[List[str], None, Unset_Type]": + """Gets the content_types of this MicrosoftAspNetCoreMvcObjectResult. + + Returns + ------- + Union[List[str], None, Unset_Type] + The content_types of this MicrosoftAspNetCoreMvcObjectResult. + """ + return self._content_types + + @content_types.setter + def content_types( + self, content_types: "Union[List[str], None, Unset_Type]" + ) -> None: + """Sets the content_types of this MicrosoftAspNetCoreMvcObjectResult. + + Parameters + ---------- + content_types: Union[List[str], None, Unset_Type] + The content_types of this MicrosoftAspNetCoreMvcObjectResult. + """ + self._content_types = content_types + + @property + def declared_type(self) -> "Union[str, None, Unset_Type]": + """Gets the declared_type of this MicrosoftAspNetCoreMvcObjectResult. + + Returns + ------- + Union[str, None, Unset_Type] + The declared_type of this MicrosoftAspNetCoreMvcObjectResult. + """ + return self._declared_type + + @declared_type.setter + def declared_type(self, declared_type: "Union[str, None, Unset_Type]") -> None: + """Sets the declared_type of this MicrosoftAspNetCoreMvcObjectResult. + + Parameters + ---------- + declared_type: Union[str, None, Unset_Type] + The declared_type of this MicrosoftAspNetCoreMvcObjectResult. + """ + self._declared_type = declared_type + + @property + def status_code(self) -> "Union[int, None, Unset_Type]": + """Gets the status_code of this MicrosoftAspNetCoreMvcObjectResult. + + Returns + ------- + Union[int, None, Unset_Type] + The status_code of this MicrosoftAspNetCoreMvcObjectResult. + """ + return self._status_code + + @status_code.setter + def status_code(self, status_code: "Union[int, None, Unset_Type]") -> None: + """Sets the status_code of this MicrosoftAspNetCoreMvcObjectResult. + + Parameters + ---------- + status_code: Union[int, None, Unset_Type] + The status_code of this MicrosoftAspNetCoreMvcObjectResult. + """ + self._status_code = status_code + + @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, MicrosoftAspNetCoreMvcObjectResult): + 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/yaml/server-api.json b/yaml/server-api.json index f957217c..c7b13608 100644 --- a/yaml/server-api.json +++ b/yaml/server-api.json @@ -62,42 +62,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 481": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 482": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 483": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 484": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 485": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 486": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 487": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 488": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -109,42 +109,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 481": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 482": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 483": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 484": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 485": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 486": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 487": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 488": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -156,42 +156,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 481": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 482": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 483": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 484": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 485": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 486": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 487": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 488": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -203,42 +203,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 65": { + "Example 481": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 66": { + "Example 482": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 67": { + "Example 483": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 68": { + "Example 484": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 69": { + "Example 485": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"848948c6-7fe6-48b8-b96e-9a4d4fcaaa57","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 70": { + "Example 486": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"97df7a93-85cf-4c28-a009-795bd647907b","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 71": { + "Example 487": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"182771cd-0ca9-41c5-9b43-cb22e980c2db","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 72": { + "Example 488": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -331,42 +331,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 489": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 490": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 491": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 492": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 493": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 494": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 495": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 496": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -378,42 +378,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 489": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 490": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 491": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 492": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 493": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 494": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 495": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 496": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -425,42 +425,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 489": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 490": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 491": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 492": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 493": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 494": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 495": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 496": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -472,42 +472,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 73": { + "Example 489": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 74": { + "Example 490": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 75": { + "Example 491": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 76": { + "Example 492": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 77": { + "Example 493": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"da82533a-661f-4554-9c0a-248968a348f5","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 78": { + "Example 494": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"93c1d795-67a6-4e21-982b-c365723a5ea2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 79": { + "Example 495": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"281bd117-e148-4a4e-9705-0e52f9552a22","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 80": { + "Example 496": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -591,42 +591,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 497": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 498": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 499": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 500": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 501": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 502": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 503": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 504": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -638,42 +638,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 497": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 498": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 499": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 500": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 501": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 502": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 503": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 504": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -685,42 +685,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 497": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 498": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 499": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 500": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 501": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 502": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 503": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 504": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -732,42 +732,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 81": { + "Example 497": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 82": { + "Example 498": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 83": { + "Example 499": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 84": { + "Example 500": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 85": { + "Example 501": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ae78501e-47d6-4f0a-b2b7-a7ba373b97ac","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 86": { + "Example 502": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"30ef4b38-c584-4e60-adc7-96220e7584b5","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 87": { + "Example 503": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3f7c626b-1199-43dc-ad02-b3117797f83a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 88": { + "Example 504": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -827,42 +827,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 505": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 506": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 507": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 508": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 509": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 510": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 511": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 512": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -874,42 +874,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 505": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 506": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 507": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 508": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 509": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 510": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 511": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 512": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -921,42 +921,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 505": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 506": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 507": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 508": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 509": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 510": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 511": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 512": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -968,42 +968,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 89": { + "Example 505": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 90": { + "Example 506": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 91": { + "Example 507": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 92": { + "Example 508": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 93": { + "Example 509": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fa46fae3-f263-4dfe-bb62-54d5a179e546","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 94": { + "Example 510": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"998c5311-6814-4be3-b3e6-44062fd1bbb7","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 95": { + "Example 511": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"a22329bd-ab33-4af8-980b-34ed9b714f7b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 96": { + "Example 512": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -1125,12 +1125,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 17": { + "Example 121": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 18": { + "Example 122": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1222,12 +1222,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 19": { + "Example 123": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 20": { + "Example 124": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1319,12 +1319,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 21": { + "Example 125": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 22": { + "Example 126": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1407,12 +1407,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 23": { + "Example 127": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 24": { + "Example 128": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1877,7 +1877,7 @@ "Database" ], "summary": "Get Search Index Status for a given database", - "operationId": "GetStatus", + "operationId": "GetSearchIndexStatus", "parameters": [ { "name": "database-key", @@ -1961,17 +1961,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2018,17 +2018,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2086,17 +2086,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2153,17 +2153,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2220,17 +2220,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2286,17 +2286,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2371,17 +2371,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2445,17 +2445,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier" } } } @@ -2517,67 +2517,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 196": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 197": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 198": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 199": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 200": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 201": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 202": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 203": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 204": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 205": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 206": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 207": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 208": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2589,67 +2589,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 196": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 197": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 198": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 199": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 200": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 201": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 202": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 203": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 204": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 205": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 206": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 207": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 208": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2661,67 +2661,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 196": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 197": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 198": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 199": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 200": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 201": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 202": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 203": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 204": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 205": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 206": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 207": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 208": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2733,67 +2733,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 27": { + "Example 196": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 28": { + "Example 197": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 29": { + "Example 198": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 30": { + "Example 199": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 31": { + "Example 200": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 32": { + "Example 201": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 33": { + "Example 202": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 34": { + "Example 203": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 35": { + "Example 204": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 36": { + "Example 205": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 37": { + "Example 206": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 38": { + "Example 207": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 39": { + "Example 208": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2900,6 +2900,59 @@ } } }, + "/v1alpha/help-location/url/{help-key}": { + "get": { + "tags": [ + "HelpLocation" + ], + "summary": "Returns the URL that the given helpKey maps to.", + "operationId": "GetHelpUrl", + "parameters": [ + { + "name": "help-key", + "in": "path", + "description": "The help key.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok" + } + } + } + }, + "/v1alpha/help-location/redirect/{help-key}": { + "get": { + "tags": [ + "HelpLocation" + ], + "summary": "Redirects client to the URL that the given helpKey maps to.", + "operationId": "GetHelpUrlRedirect", + "parameters": [ + { + "name": "help-key", + "in": "path", + "description": "The help key.", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success" + }, + "302": { + "description": "Redirect to the help location." + } + } + } + }, "/v1alpha/integration-schemas": { "get": { "tags": [ @@ -4097,6 +4150,40 @@ } } }, + "/v1alpha/license/user-license:ensure-checked-out": { + "get": { + "tags": [ + "License" + ], + "summary": "Either checks out a user license for the requesting user, or returns an error response if no such license is available.\r\nThis method is a no-op because it relies on license check to happen within Granta.Server.Api.Auth.UserContextFilter", + "operationId": "EnsureUserLicenseAvailable", + "responses": { + "200": { + "description": "Ok" + }, + "403": { + "description": "Forbidden", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcObjectResult" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcObjectResult" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcObjectResult" + } + } + } + } + } + } + }, "/v1alpha/license/server-licenses:ensure-checked-out": { "post": { "tags": [ @@ -4111,12 +4198,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 31": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 32": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4128,12 +4215,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 31": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 32": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4145,12 +4232,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 31": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 32": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4162,12 +4249,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 5": { + "Example 31": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 6": { + "Example 32": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4674,12 +4761,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 32": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4691,12 +4778,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 32": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4708,12 +4795,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 32": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4725,12 +4812,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 6": { + "Example 32": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -5466,6 +5553,46 @@ } } }, + "/v1alpha/metrics/jobs": { + "get": { + "tags": [ + "Metrics" + ], + "summary": "Get a summary of jobs currently running or completed since the start time.", + "operationId": "GetJobsSummary", + "parameters": [ + { + "name": "start", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiMetricsGetJobsSummaryResponse" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiMetricsGetJobsSummaryResponse" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiMetricsGetJobsSummaryResponse" + } + } + } + } + } + } + }, "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}": { "get": { "tags": [ @@ -5644,27 +5771,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 12": { + "Example 77": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 13": { + "Example 78": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} }, - "Example 14": { - "summary": "Record History with specified colour", - "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "Example 79": { + "summary": "Record History with specified color", + "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 15": { + "Example 80": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5676,27 +5803,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 12": { + "Example 77": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 13": { + "Example 78": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} }, - "Example 14": { - "summary": "Record History with specified colour", - "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "Example 79": { + "summary": "Record History with specified color", + "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 15": { + "Example 80": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5708,27 +5835,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 12": { + "Example 77": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 13": { + "Example 78": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} }, - "Example 14": { - "summary": "Record History with specified colour", - "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "Example 79": { + "summary": "Record History with specified color", + "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 15": { + "Example 80": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5740,27 +5867,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 12": { + "Example 77": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 13": { + "Example 78": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"cef868ba-79af-4ff8-925f-71ddd7f859d1"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} }, - "Example 14": { - "summary": "Record History with specified colour", - "description": "This example demonstrates how to create a new 'folder' with a specified colour under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "Example 79": { + "summary": "Record History with specified color", + "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 15": { + "Example 80": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5777,7 +5904,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"82140c49-d9a6-45d3-a1bd-bb90ef706034"}],"subsets":[],"guid":"b9013ea8-cb16-47e1-8337-1aa6d95ed3f0"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"b4b8e129-21ec-4979-82c0-5f2b9be47d59"}],"subsets":[],"guid":"51c94dcb-04ca-4da7-ac0d-e4d610ea2809"} } } }, @@ -5835,12 +5962,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 62": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5852,12 +5979,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 62": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5869,12 +5996,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 62": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5886,12 +6013,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 10": { + "Example 62": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5920,23 +6047,23 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 21": { + "Example 151": { "summary": "New parent is not a folder.", "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 22": { + "Example 152": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 23": { + "Example 153": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 24": { + "Example 154": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 25": { + "Example 155": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } @@ -5986,12 +6113,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 63": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 64": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6003,12 +6130,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 63": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 64": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6020,12 +6147,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 63": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 64": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6037,12 +6164,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 11": { + "Example 63": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 12": { + "Example 64": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6071,23 +6198,23 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 26": { + "Example 156": { "summary": "New parent is not a folder.", "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 27": { + "Example 157": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 28": { + "Example 158": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 29": { + "Example 159": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 30": { + "Example 160": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } @@ -6146,17 +6273,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { + "Example 92": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { + "Example 93": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6168,17 +6295,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { + "Example 92": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { + "Example 93": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6190,17 +6317,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { + "Example 92": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { + "Example 93": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6212,17 +6339,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 14": { + "Example 92": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 15": { + "Example 93": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6239,7 +6366,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"a8f8ee4a-0914-4499-a5c7-384e2f3a7813"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"b3d22bb9-5791-437d-9265-44d78efbaeba"} } } }, @@ -6251,19 +6378,19 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 17": { + "Example 121": { "summary": "New parent is not a folder.", "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 18": { + "Example 122": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 19": { + "Example 123": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 20": { + "Example 124": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } @@ -6313,17 +6440,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { + "Example 94": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { + "Example 95": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { + "Example 96": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6335,17 +6462,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { + "Example 94": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { + "Example 95": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { + "Example 96": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6357,17 +6484,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { + "Example 94": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { + "Example 95": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { + "Example 96": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6379,17 +6506,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 16": { + "Example 94": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 17": { + "Example 95": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 18": { + "Example 96": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6406,7 +6533,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"84ec82ef-6bab-4bf6-bed9-3e7e1e565cb5"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"6780be07-1e0f-419b-9227-4edd2e2ecceb"} } } }, @@ -6418,19 +6545,19 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 21": { + "Example 125": { "summary": "New parent is not a folder.", "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 22": { + "Example 126": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 23": { + "Example 127": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 24": { + "Example 128": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } @@ -6514,7 +6641,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -6582,7 +6709,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -6668,7 +6795,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -6785,7 +6912,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"released","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"released","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -6797,18 +6924,18 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Invalid version state.", "description": "Only unreleased record versions can be released.", "value": {"message":"Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 8": { + "Example 47": { "summary": "Table is not version controlled.", "value": {"message":"Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 9": { + "Example 48": { "summary": "Parent is not released.", - "value": {"message":"Cannot release record version '0c624a2a-5ca1-43ec-92be-0203825e407a'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} + "value": {"message":"Cannot release record version 'f81881b2-5eb0-4841-a92f-6ac6910696e8'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} } } } @@ -6875,7 +7002,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -6887,18 +7014,18 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Invalid version state.", "description": "A new version can only be created from the latest released or withdrawn record version.", "value": {"message":"Cannot create a new version from the record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Superseded'.","reason":"invalidVersionState","versionState":"superseded"}]} }, - "Example 8": { + "Example 47": { "summary": "Table is not version controlled.", "value": {"message":"Cannot create a new version from the record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 9": { + "Example 48": { "summary": "Record version is not the latest version.", - "value": {"message":"Cannot create a new version from the record version 'd073ccfb-2f86-4b65-97bd-da286cff3fbc'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"5ec3a46a-9a0e-4840-af74-ddcb5b7045bf"}}]} + "value": {"message":"Cannot create a new version from the record version '3d28bc74-aa4a-4518-8f33-a0e4f1fe540d'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"ab169fd7-b4fe-42e8-8f75-7428c73365de"}}]} } } } @@ -6965,7 +7092,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"withdrawn","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"withdrawn","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -6977,12 +7104,12 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Invalid version state.", "description": "Only released record versions can be withdrawn.", "value": {"message":"Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Unreleased'.","reason":"invalidVersionState","versionState":"unreleased"}]} }, - "Example 6": { + "Example 32": { "summary": "Table is not version controlled.", "value": {"message":"Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } @@ -7115,122 +7242,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 361": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 362": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} }, - "Example 51": { + "Example 363": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 364": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 365": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 366": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 367": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 368": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 369": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 370": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 371": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 372": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 373": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 374": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 375": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 376": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 377": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 378": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 379": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 380": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 381": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 382": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 383": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 384": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7242,122 +7369,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 361": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 362": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} }, - "Example 51": { + "Example 363": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 364": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 365": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 366": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 367": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 368": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 369": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 370": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 371": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 372": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 373": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 374": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 375": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 376": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 377": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 378": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 379": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 380": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 381": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 382": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 383": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 384": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7369,122 +7496,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 361": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 362": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} }, - "Example 51": { + "Example 363": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 364": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 365": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 366": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 367": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 368": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 369": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 370": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 371": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 372": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 373": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 374": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 375": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 376": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 377": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 378": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 379": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 380": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 381": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 382": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 383": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 384": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7496,122 +7623,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 49": { + "Example 361": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 50": { + "Example 362": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"149e3217-9020-424a-812d-f757492cd0e4"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} }, - "Example 51": { + "Example 363": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 52": { + "Example 364": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 53": { + "Example 365": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 54": { + "Example 366": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 55": { + "Example 367": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 56": { + "Example 368": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 57": { + "Example 369": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 58": { + "Example 370": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 59": { + "Example 371": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 60": { + "Example 372": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 61": { + "Example 373": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 62": { + "Example 374": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 63": { + "Example 375": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 64": { + "Example 376": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 65": { + "Example 377": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 66": { + "Example 378": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 67": { + "Example 379": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 68": { + "Example 380": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 69": { + "Example 381": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 70": { + "Example 382": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 71": { + "Example 383": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 72": { + "Example 384": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7629,22 +7756,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 45": { + "Example 305": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 46": { + "Example 306": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 47": { + "Example 307": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"6c023783-8bca-4279-b6fd-125e78f399d9"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"b7acd73f-8851-4320-8f7a-5323d9389821"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 48": { + "Example 308": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7733,22 +7860,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 10": { + "Example 62": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 11": { + "Example 63": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"7fe24619-8721-4ddc-becd-54b07a352af2"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"acd5ddc9-27e1-4d85-bad2-d4cd3544ae93"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 12": { + "Example 64": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7803,72 +7930,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 211": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 212": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 213": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 214": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 215": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 216": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 217": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 218": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 219": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 220": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 221": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 222": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 223": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 224": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -7880,72 +8007,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 211": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 212": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 213": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 214": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 215": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 216": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 217": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 218": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 219": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 220": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 221": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 222": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 223": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 224": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -7957,72 +8084,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 211": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 212": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 213": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 214": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 215": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 216": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 217": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 218": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 219": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 220": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 221": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 222": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 223": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 224": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -8034,72 +8161,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 29": { + "Example 211": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 30": { + "Example 212": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 31": { + "Example 213": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 32": { + "Example 214": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 33": { + "Example 215": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 34": { + "Example 216": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 35": { + "Example 217": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 36": { + "Example 218": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 37": { + "Example 219": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 38": { + "Example 220": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 39": { + "Example 221": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 40": { + "Example 222": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 41": { + "Example 223": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 42": { + "Example 224": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -8117,22 +8244,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 49": { + "Example 309": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 50": { + "Example 310": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 51": { + "Example 311": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"4497bb73-a369-44b7-8493-8c8627b3bcc5"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"2f107d04-b5e4-469d-be0c-4b48d90fc8bf"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 52": { + "Example 312": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -8345,22 +8472,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 53": { + "Example 313": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 54": { + "Example 314": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 55": { + "Example 315": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"58de4b9f-103a-455b-b064-9e3914a0d0cd"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"f2c200d8-944d-45ca-bdd9-94d0c96019a7"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 56": { + "Example 316": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -8415,22 +8542,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 63": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 64": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8442,22 +8569,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 63": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 64": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8469,22 +8596,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 63": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 64": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8496,22 +8623,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 11": { + "Example 63": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 12": { + "Example 64": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8529,22 +8656,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 57": { + "Example 317": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 58": { + "Example 318": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 59": { + "Example 319": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"5071c1a3-ec0e-4520-a6aa-806dce485b61"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"bd3308f8-0960-472f-a11d-06b71726a7f4"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 60": { + "Example 320": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -8606,7 +8733,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, - "example": {"message":"Cannot delete attribute 'Notes' (GUID = '394326b3-13c1-4f26-9128-e16180d3ac1c').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"e8b160af-64ec-4230-a40a-88cbae8f6817"}]}]} + "example": {"message":"Cannot delete attribute 'Notes' (GUID = 'e13f9b7b-0d71-4935-a66c-44a64360a5b5').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"554fd7cf-061e-418d-8e57-5a4c5b31afaf"}]}]} } } }, @@ -8947,15 +9074,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 32": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} } } }, @@ -8964,15 +9091,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 32": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} } } }, @@ -8981,15 +9108,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 32": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} } } }, @@ -8998,15 +9125,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 6": { + "Example 32": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"75cf4854-0f94-4f03-93aa-9102d56f41cd"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} } } } @@ -9139,12 +9266,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} }, - "Example 6": { + "Example 32": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9156,12 +9283,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} }, - "Example 6": { + "Example 32": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9173,12 +9300,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} }, - "Example 6": { + "Example 32": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9190,12 +9317,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"624c08e2-c993-4fb7-96d3-cbd3adbf8720"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} }, - "Example 6": { + "Example 32": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9388,17 +9515,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 47": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} }, - "Example 9": { + "Example 48": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9410,17 +9537,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 47": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} }, - "Example 9": { + "Example 48": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9432,17 +9559,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 47": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} }, - "Example 9": { + "Example 48": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9454,17 +9581,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 8": { + "Example 47": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"3e09d746-e792-4f87-8a97-f8e8de0195a2"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} }, - "Example 9": { + "Example 48": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9577,20 +9704,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 48": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} } } }, @@ -9599,20 +9726,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 48": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} } } }, @@ -9621,20 +9748,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 48": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} } } }, @@ -9643,20 +9770,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"643d00e0-8a1f-488b-bdda-73bf689d77e8"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 9": { + "Example 48": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"f6c488a9-5521-4049-80c6-ea4388025f27"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} } } } @@ -9792,7 +9919,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9804,7 +9931,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9816,7 +9943,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9828,7 +9955,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -10029,7 +10156,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaDatabasesInfo" }, - "example": {"databases":[{"key":"MI_Training","versionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","status":"OK","isReadOnly":false,"isLocked":false,"indexInSync":true,"schemaVersion":"2022.08.18.01","name":"MI Training","guid":"43a43640-4919-428a-bac9-16efbc4ce6ed"}]} + "example": {"databases":[{"key":"MI_Training","versionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","status":"Ok","isReadOnly":false,"isLocked":false,"indexInSync":true,"schemaVersion":"2022.08.18.01","name":"MI Training","guid":"43a43640-4919-428a-bac9-16efbc4ce6ed"}]} } } } @@ -10092,10 +10219,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10108,10 +10235,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10124,10 +10251,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10140,10 +10267,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"d420069d-9809-47ec-a894-2d283a72005a","name":"MI Training (Updated)","guid":"9e9c723c-2d4e-4d5a-80f4-73245a07496f"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10317,12 +10444,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 32": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10334,12 +10461,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 32": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10351,12 +10478,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 32": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10368,12 +10495,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 6": { + "Example 32": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10687,15 +10814,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 32": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} + "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} } } }, @@ -10704,15 +10831,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 32": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} + "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} } } }, @@ -10721,15 +10848,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 32": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} + "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} } } }, @@ -10738,15 +10865,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 6": { + "Example 32": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"a3071775-5f18-4bd0-8534-f214df97f7d2"} + "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} } } } @@ -11150,7 +11277,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11162,7 +11289,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11174,7 +11301,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11186,7 +11313,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11365,15 +11492,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} + "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} } } }, @@ -11382,15 +11509,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} + "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} } } }, @@ -11399,15 +11526,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} + "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} } } }, @@ -11416,15 +11543,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"b9aa5289-4e8e-45a1-97a8-d8fb8a5f691f"} + "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} } } } @@ -11642,7 +11769,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11654,7 +11781,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11666,7 +11793,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11678,7 +11805,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11757,19 +11884,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"44a1b86e-f477-4f83-963e-7054aa6cf00f"},{"name":"no-transform.xslt","guid":"8c5e0c2a-735e-4e90-b6fe-b1836adb731d"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"f04c4d15-fc08-4c51-acb8-81df90b8d6c4"},{"name":"no-transform.xslt","guid":"cb2807eb-be1d-47b3-8559-1c372fd5b198"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"44a1b86e-f477-4f83-963e-7054aa6cf00f"},{"name":"no-transform.xslt","guid":"8c5e0c2a-735e-4e90-b6fe-b1836adb731d"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"f04c4d15-fc08-4c51-acb8-81df90b8d6c4"},{"name":"no-transform.xslt","guid":"cb2807eb-be1d-47b3-8559-1c372fd5b198"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"44a1b86e-f477-4f83-963e-7054aa6cf00f"},{"name":"no-transform.xslt","guid":"8c5e0c2a-735e-4e90-b6fe-b1836adb731d"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"f04c4d15-fc08-4c51-acb8-81df90b8d6c4"},{"name":"no-transform.xslt","guid":"cb2807eb-be1d-47b3-8559-1c372fd5b198"}]} } } }, @@ -11837,19 +11964,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"4be6a265-23e6-4795-a2ee-e2cf40ff5530"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1471aaf1-ad4d-4981-ac21-a6e3ffb5f0da"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"4be6a265-23e6-4795-a2ee-e2cf40ff5530"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1471aaf1-ad4d-4981-ac21-a6e3ffb5f0da"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"4be6a265-23e6-4795-a2ee-e2cf40ff5530"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1471aaf1-ad4d-4981-ac21-a6e3ffb5f0da"} } } }, @@ -11908,19 +12035,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"82959737-fc57-4e60-8a3a-8f82f8aa9723"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"42e4c0b6-cb88-4037-a5d6-b22f9a0acc84"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"82959737-fc57-4e60-8a3a-8f82f8aa9723"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"42e4c0b6-cb88-4037-a5d6-b22f9a0acc84"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"82959737-fc57-4e60-8a3a-8f82f8aa9723"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"42e4c0b6-cb88-4037-a5d6-b22f9a0acc84"} } } }, @@ -11970,20 +12097,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} + "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} } } }, @@ -11992,20 +12119,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} + "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} } } }, @@ -12014,20 +12141,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} + "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} } } }, @@ -12036,20 +12163,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"089f23d5-0a42-495e-85f3-c7f938bf71f1"} + "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} } } } @@ -12063,19 +12190,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"7aa6812b-5f2a-4f0f-9c4c-e35fd5ec83ee"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"97fa8c37-595c-4a16-b61c-62fa702ca0da"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"7aa6812b-5f2a-4f0f-9c4c-e35fd5ec83ee"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"97fa8c37-595c-4a16-b61c-62fa702ca0da"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"7aa6812b-5f2a-4f0f-9c4c-e35fd5ec83ee"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"97fa8c37-595c-4a16-b61c-62fa702ca0da"} } } }, @@ -12224,7 +12351,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12236,7 +12363,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12248,7 +12375,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12260,7 +12387,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12277,19 +12404,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"db36ecf3-b4d3-444d-837e-8ebcdf756d48"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c023d383-e87f-4e99-9158-3e521f838b13"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"db36ecf3-b4d3-444d-837e-8ebcdf756d48"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c023d383-e87f-4e99-9158-3e521f838b13"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"db36ecf3-b4d3-444d-837e-8ebcdf756d48"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c023d383-e87f-4e99-9158-3e521f838b13"} } } }, @@ -12364,7 +12491,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpressionsInfo" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Get all expressions", "description": "This example demonstrates the response to getting all expressions from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"expressions":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]} @@ -12410,17 +12537,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 47": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} }, - "Example 9": { + "Example 48": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12432,17 +12559,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 47": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} }, - "Example 9": { + "Example 48": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12454,17 +12581,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 47": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} }, - "Example 9": { + "Example 48": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12476,17 +12603,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 8": { + "Example 47": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"d43f5395-0e6c-4ed9-9ebb-35a8f1f04a64"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} }, - "Example 9": { + "Example 48": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12504,7 +12631,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 8": { + "Example 47": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12593,7 +12720,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12648,12 +12775,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} }, - "Example 6": { + "Example 32": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12665,12 +12792,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} }, - "Example 6": { + "Example 32": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12682,12 +12809,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} }, - "Example 6": { + "Example 32": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12699,12 +12826,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"81a1c422-1ddc-483b-b33c-36c976890e7e"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} }, - "Example 6": { + "Example 32": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12722,7 +12849,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 9": { + "Example 48": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12861,7 +12988,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -12873,7 +13000,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -12885,7 +13012,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -12897,7 +13024,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -13076,15 +13203,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} + "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} } } }, @@ -13093,15 +13220,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} + "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} } } }, @@ -13110,15 +13237,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} + "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} } } }, @@ -13127,15 +13254,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"c30d42b6-7c85-4ea6-af98-9c1affad4141"} + "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} } } } @@ -13303,7 +13430,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13315,7 +13442,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13327,7 +13454,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13339,7 +13466,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13498,19 +13625,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"539de9fb-4e23-4b20-b256-c8c6fee70f14"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"14046b01-6c9d-47f2-8923-ff94f3aefc1e"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"539de9fb-4e23-4b20-b256-c8c6fee70f14"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"14046b01-6c9d-47f2-8923-ff94f3aefc1e"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"539de9fb-4e23-4b20-b256-c8c6fee70f14"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"14046b01-6c9d-47f2-8923-ff94f3aefc1e"} } } }, @@ -13631,20 +13758,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} + "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} } } }, @@ -13653,20 +13780,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} + "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} } } }, @@ -13675,20 +13802,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} + "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} } } }, @@ -13697,20 +13824,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"1e371c68-2a20-46fa-a662-9ab2d446de42"} + "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} } } } @@ -13724,19 +13851,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"543a8a1b-f169-46a0-886d-89ce8a686113"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3f5da858-97c4-4dba-9fa4-a986347a4619"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"543a8a1b-f169-46a0-886d-89ce8a686113"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3f5da858-97c4-4dba-9fa4-a986347a4619"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"543a8a1b-f169-46a0-886d-89ce8a686113"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3f5da858-97c4-4dba-9fa4-a986347a4619"} } } }, @@ -13885,7 +14012,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13897,7 +14024,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13909,7 +14036,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13921,7 +14048,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13938,19 +14065,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b6c8d0f8-9bbc-49da-8eb9-0d88c8f86189"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"aaae592e-9fce-493c-8f9a-a0d033e32029"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b6c8d0f8-9bbc-49da-8eb9-0d88c8f86189"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"aaae592e-9fce-493c-8f9a-a0d033e32029"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b6c8d0f8-9bbc-49da-8eb9-0d88c8f86189"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"aaae592e-9fce-493c-8f9a-a0d033e32029"} } } }, @@ -13991,19 +14118,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"bf2fecc7-0e41-4a09-878d-4578676ae3dc"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"376eed7c-7edf-416b-a2ab-c1175e1bf7de"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"bf2fecc7-0e41-4a09-878d-4578676ae3dc"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"376eed7c-7edf-416b-a2ab-c1175e1bf7de"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"bf2fecc7-0e41-4a09-878d-4578676ae3dc"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"376eed7c-7edf-416b-a2ab-c1175e1bf7de"}]} } } }, @@ -14035,7 +14162,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14047,7 +14174,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14059,7 +14186,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14071,7 +14198,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14197,19 +14324,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"fecdaa25-2e7e-47a0-8c7d-10b6d7889525"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e84ee05e-7051-41f8-ac39-f0df796118aa"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"fecdaa25-2e7e-47a0-8c7d-10b6d7889525"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e84ee05e-7051-41f8-ac39-f0df796118aa"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"fecdaa25-2e7e-47a0-8c7d-10b6d7889525"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e84ee05e-7051-41f8-ac39-f0df796118aa"} } } }, @@ -14250,15 +14377,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} + "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} } } }, @@ -14267,15 +14394,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} + "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} } } }, @@ -14284,15 +14411,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} + "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} } } }, @@ -14301,15 +14428,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 6": { + "Example 32": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"880f073f-63a8-45b4-a108-cf23642c463c"} + "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} } } } @@ -14422,19 +14549,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0b0be17c-c9a5-446d-a707-805e86d6787d"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0adcce10-c8f9-464a-b3e3-7230f61f8e69"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0b0be17c-c9a5-446d-a707-805e86d6787d"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0adcce10-c8f9-464a-b3e3-7230f61f8e69"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0b0be17c-c9a5-446d-a707-805e86d6787d"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0adcce10-c8f9-464a-b3e3-7230f61f8e69"}]} } } }, @@ -14477,7 +14604,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14489,7 +14616,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14501,7 +14628,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14513,7 +14640,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14592,19 +14719,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"0b42b341-cbf4-41bf-b923-e80cef96662b"},{"name":"home-page-2.html","guid":"011b5293-d576-4c0d-aeef-62e3e98364d1"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"57090d9f-9dda-4c43-8685-c54b03a2c3eb"},{"name":"home-page-2.html","guid":"70474734-bf45-483f-ae44-af1c49a3fefb"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"0b42b341-cbf4-41bf-b923-e80cef96662b"},{"name":"home-page-2.html","guid":"011b5293-d576-4c0d-aeef-62e3e98364d1"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"57090d9f-9dda-4c43-8685-c54b03a2c3eb"},{"name":"home-page-2.html","guid":"70474734-bf45-483f-ae44-af1c49a3fefb"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"0b42b341-cbf4-41bf-b923-e80cef96662b"},{"name":"home-page-2.html","guid":"011b5293-d576-4c0d-aeef-62e3e98364d1"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"57090d9f-9dda-4c43-8685-c54b03a2c3eb"},{"name":"home-page-2.html","guid":"70474734-bf45-483f-ae44-af1c49a3fefb"}]} } } }, @@ -14672,19 +14799,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"979fd503-d915-496b-9589-3f5c425515b9"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b05b4590-45be-4fa1-951a-67177a91a83f"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"979fd503-d915-496b-9589-3f5c425515b9"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b05b4590-45be-4fa1-951a-67177a91a83f"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"979fd503-d915-496b-9589-3f5c425515b9"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b05b4590-45be-4fa1-951a-67177a91a83f"} } } }, @@ -14743,19 +14870,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"6db7c963-85cd-46d9-95ce-2f2434bbcbb1"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"f4787d06-95f7-4232-bb27-bed0c5cf7b42"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"6db7c963-85cd-46d9-95ce-2f2434bbcbb1"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"f4787d06-95f7-4232-bb27-bed0c5cf7b42"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"6db7c963-85cd-46d9-95ce-2f2434bbcbb1"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"f4787d06-95f7-4232-bb27-bed0c5cf7b42"} } } }, @@ -14805,20 +14932,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} + "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} } } }, @@ -14827,20 +14954,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} + "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} } } }, @@ -14849,20 +14976,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} + "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} } } }, @@ -14871,20 +14998,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 8": { + "Example 47": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 9": { + "Example 48": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"6461be6f-90a3-4cb8-84ad-9443d48e8145"} + "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} } } } @@ -14898,19 +15025,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"df63a4d8-cb8f-45fb-8486-8f8b89205c46"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"08d07a66-4ff4-4a51-81c3-d2f9f523f65c"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"df63a4d8-cb8f-45fb-8486-8f8b89205c46"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"08d07a66-4ff4-4a51-81c3-d2f9f523f65c"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"df63a4d8-cb8f-45fb-8486-8f8b89205c46"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"08d07a66-4ff4-4a51-81c3-d2f9f523f65c"} } } }, @@ -15059,7 +15186,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15071,7 +15198,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15083,7 +15210,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15095,7 +15222,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15112,19 +15239,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"52d1255d-4d79-47ad-a2ae-29cbd9364562"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"53ee807e-db95-4d97-8c40-c6d98971abd3"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"52d1255d-4d79-47ad-a2ae-29cbd9364562"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"53ee807e-db95-4d97-8c40-c6d98971abd3"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"52d1255d-4d79-47ad-a2ae-29cbd9364562"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"53ee807e-db95-4d97-8c40-c6d98971abd3"} } } }, @@ -15215,15 +15342,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSectionsInfo" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Get 'slim' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to false, which is the default value.", "value": {"layoutSections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} }, - "Example 6": { + "Example 32": { "summary": "Get 'full' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to true.", - "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"12ba97c3-5e0a-4355-99e5-c2e5218f34e2","name":"Price","guid":"918988c9-e7eb-4fd4-8702-08daea41c019"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e14d47ed-e36d-425f-abef-48e1cba38bd5","name":"Density","guid":"87e62d77-05d0-4e32-bcb7-5aaeaaf518e6"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"7647f04c-c602-47b8-97bf-d41206d13eda","name":"Young's modulus","guid":"12c4c4cb-0e8f-4be9-a3aa-4bf84c9f64d2"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e9e65125-61d8-4ae9-87dc-f8ea795b5ce9","name":"Tensile strength","guid":"c9d727cc-ee63-4855-9bd4-6ed2a98cb50d"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e381e34e-80a4-4e8d-a4df-bc93f239b9fa","name":"Shape factor","guid":"d26a7db4-4cbd-472d-bf62-fd1a3ee4befc"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} + "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"8de7939d-b788-493f-875a-e16cafa953c5","name":"Price","guid":"402fece9-eac7-4a1e-b82c-551193531d69"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"6eab3600-0502-4808-9739-9266912d9606","name":"Density","guid":"8dd20318-1d4e-4c11-a8bb-e289107e463b"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"8954bf07-b070-4842-bb9e-e0c180429219","name":"Young's modulus","guid":"acd474a8-ab0f-4d15-95e1-47fbd82d754c"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"1b052c88-71a2-449f-b867-a2f8402eaa7b","name":"Tensile strength","guid":"3994d4d6-fb1a-4734-af0a-6b5b1414240f"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"1c3eaee7-a47b-4edc-a22d-68fe3c5219c2","name":"Shape factor","guid":"459f802a-183e-46a7-bff0-7fa645286735"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} } } } @@ -15275,15 +15402,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 32": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} + "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} } } }, @@ -15292,15 +15419,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 32": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} + "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} } } }, @@ -15309,15 +15436,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 32": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} + "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} } } }, @@ -15326,15 +15453,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 6": { + "Example 32": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"2f241677-3e55-4a4e-87b4-f43dde51d01d"} + "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} } } } @@ -15348,7 +15475,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayoutSection" }, - "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"14befdf1-fed1-4fe7-8007-324795c7d267"} + "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"bb3b0731-b5f3-4b9c-aacc-923c27e6db1a"} } } }, @@ -15404,7 +15531,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15416,7 +15543,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15428,7 +15555,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15440,7 +15567,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15557,15 +15684,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSection" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Get 'slim' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to false, which is the default value.", - "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"fe89feb9-cbac-4e10-8ac3-4a34a5da3887"} + "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"82eefe18-5953-4999-a420-96f29c38e9d8"} }, - "Example 6": { + "Example 32": { "summary": "Get 'full' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to true.", - "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"64499856-9aad-4516-9d66-74a1d0f5d716","name":"Form","guid":"78796409-290b-4c57-8f73-00899c79e04c"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"eb02ed6b-09b5-4c56-a4de-ff6cc1b96c9b","name":"Sources","guid":"1a6e43dc-2a03-469d-b194-754e20061199"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"02f34670-b7ee-4d22-b2e3-85a803c69aca","name":"Notes","guid":"7d14a0c8-1302-4aa6-a8a2-8ae12eb85925"}],"underlyingEntityGuid":"5e219ee5-2135-4ec3-ad8f-8dffd49f52e6","name":"Chemical resistance","guid":"88eda0d9-4fe3-45b7-a6f1-a2961278ab96"},{"itemType":"link","linkType":"recordLink","targetDatabase":"dcec6aae-784a-449e-9dd4-b744755b0472","targetDatabaseVersion":"9119ad8b-316f-409d-8c7d-3074a99bfdb6","targetTable":"aab070ea-7d4b-4816-9f9e-2daa35ff9cf1","forwards":true,"underlyingEntityGuid":"4fb67798-6eff-4a71-b6a6-7972533e5f5c","name":"Material Pedigree","guid":"7a50f2d8-5676-4493-bb12-ede630e4f7ce"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"2d3ac30e-be50-44f7-b61d-f5f9bb1b310c","name":"Offset Yield Stress","guid":"7aa08faf-1b26-4f2a-8681-b3699f6cf0e4"},{"columnType":"localShortText","tabularColumnGuid":"a53c2fc3-08da-4a15-9cb7-27705677104c","name":"Young's Modulus Notes","guid":"c0209c3f-ccc6-431d-92c7-5fe50b4aa520"}],"underlyingEntityGuid":"db501628-841c-4cf4-989b-b8e564b73546","name":"Reference Characteristics","guid":"c2d56275-7257-4d89-a266-3b1c22fa914c"},{"itemType":"link","linkType":"associationChain","targetDatabase":"dcec6aae-784a-449e-9dd4-b744755b0472","targetDatabaseVersion":"9119ad8b-316f-409d-8c7d-3074a99bfdb6","targetTable":"97249c4b-95fe-4f71-9d31-d32020d49c35","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"dcec6aae-784a-449e-9dd4-b744755b0472","targetDatabaseVersion":"9119ad8b-316f-409d-8c7d-3074a99bfdb6","targetTable":"e631bcd9-87b9-4b14-bbb7-3439d7154617","forwards":false,"underlyingEntityGuid":"4a1ea402-8a09-48f2-8cce-645bb139d0f7","name":"Pedigree information","guid":"c2bbecd9-2089-4f3c-8546-b1d4a79be802"},"underlyingEntityGuid":"6bc9c9da-a05c-4353-aa3d-bbd1fdff1c21","name":"To Pedigree from Producers","guid":"baf2bbe9-e496-466d-94d0-82b2e2947e44"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"45354466-48f5-4656-94af-d2165977cd96"} + "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"ffafb3bc-7522-4ca6-b794-02ee24477148","name":"Form","guid":"323131f9-dfe2-4cc3-99dc-88bce93553f1"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"4659d37b-64b3-47c5-b801-7bd8f11eb215","name":"Sources","guid":"ab5c7230-202a-4115-8fc9-7af785d3edd1"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"39ae9a50-2917-4106-a042-f8ea35148c3a","name":"Notes","guid":"89fab23f-e4db-4461-8750-d4de8c214b21"}],"underlyingEntityGuid":"3e50a9e2-318e-4f20-a84c-1017663848a1","name":"Chemical resistance","guid":"56a34491-92ca-4a29-91e1-ebb673f44003"},{"itemType":"link","linkType":"recordLink","targetDatabase":"b6acf438-7cc9-4a49-bc43-f4d025bdcfac","targetDatabaseVersion":"f0192012-6201-4c64-a5eb-7d0a5ba2d1f7","targetTable":"1eb0496e-9f25-47ab-adec-7ff09a675d7e","forwards":true,"underlyingEntityGuid":"8c2671d5-330a-4a50-af90-d0f73677148b","name":"Material Pedigree","guid":"4880546d-375f-422a-b9ef-f8cf505ecb1d"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"9da04eee-ea0f-4b41-b11d-b1fd4c281643","name":"Offset Yield Stress","guid":"bcfd1828-aa6b-40c0-9046-5e22c3091add"},{"columnType":"localShortText","tabularColumnGuid":"ae5c866e-08be-4ed7-b02b-076d8e666dcf","name":"Young's Modulus Notes","guid":"e911b37a-7070-49f4-b45a-98d05dda2991"}],"underlyingEntityGuid":"1f568621-4c94-4ee0-ad2a-e1b90347092f","name":"Reference Characteristics","guid":"f5164aa8-bae7-4ec5-8962-c32d9116da3c"},{"itemType":"link","linkType":"associationChain","targetDatabase":"b6acf438-7cc9-4a49-bc43-f4d025bdcfac","targetDatabaseVersion":"f0192012-6201-4c64-a5eb-7d0a5ba2d1f7","targetTable":"02eebddf-dcd6-4f31-823b-de607dff30e4","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"b6acf438-7cc9-4a49-bc43-f4d025bdcfac","targetDatabaseVersion":"f0192012-6201-4c64-a5eb-7d0a5ba2d1f7","targetTable":"84dfab00-cfae-46c0-96e4-0721df167357","forwards":false,"underlyingEntityGuid":"2eab036e-4e8c-42a0-9e90-183edefa2e25","name":"Pedigree information","guid":"b9e9f971-739e-41e3-b29e-7c74f7987bed"},"underlyingEntityGuid":"f0d06297-4690-4105-897d-628eff3c0095","name":"To Pedigree from Producers","guid":"2052ec1f-0609-4b38-b15e-0e9425fdb1ef"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"65534299-434e-4738-b1ed-ccd1ec24c7f1"} } } } @@ -15686,45 +15813,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 121": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 122": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 123": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 124": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 125": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 126": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 127": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} }, - "Example 24": { + "Example 128": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} } } }, @@ -15733,45 +15860,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 121": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 122": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 123": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 124": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 125": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 126": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 127": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} }, - "Example 24": { + "Example 128": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} } } }, @@ -15780,45 +15907,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 121": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 122": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 123": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 124": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 125": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 126": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 127": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} }, - "Example 24": { + "Example 128": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} } } }, @@ -15827,45 +15954,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 17": { + "Example 121": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 18": { + "Example 122": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 19": { + "Example 123": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 20": { + "Example 124": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 21": { + "Example 125": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 22": { + "Example 126": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 23": { + "Example 127": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"13dea2f1-3294-47ca-9307-c845a80b15b8","sourceTableGuid":"135b8920-258b-43a0-83dc-95c0e5e81304","linkGroupGuid":"d240fb7f-c2f9-43c2-b9ff-14b82517a695"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} }, - "Example 24": { + "Example 128": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"ad168712-e562-4f63-a4c4-e0e587cf1f3e","tabularAttributeGuid":"2366fdcf-6545-4db2-8876-ffe1d94f805b"},{"forwards":false,"sourceDatabaseVersionGuid":"5ca278bc-166c-4ccd-b241-3ff2d0a9b443","tabularAttributeGuid":"0a2baf51-b214-4599-9288-6657f6a9c4e9"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} } } } @@ -15880,40 +16007,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Layout Attribute Item", "description": "This example demonstrates the response to creating a new attribute layout item. It was created by adding the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"687d8587-f156-4350-adb7-b17e6a6f13bd"} + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"f280219f-e410-4e08-854a-ab1600c03888"} }, - "Example 16": { + "Example 107": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates the response to creating a new attribute layout item with a meta-attribute. It was created by adding the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"a31c7ddb-d913-478c-87df-5559f79944e8"} + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"81fc2713-4fce-4e6d-872a-d165dd7d0c2d"} }, - "Example 17": { + "Example 108": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates the response to creating a new tabular attribute layout item with specified tabular columns to include. It was created by adding the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include. ", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","required":false,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"],"guid":null} }, - "Example 18": { + "Example 109": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates the response to creating a new link group layout item. It was created by adding the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949","guid":null} }, - "Example 19": { + "Example 110": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates the response to creating a new smart link group layout item. It was created by adding the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66","guid":null} }, - "Example 20": { + "Example 111": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates the response to creating a new cross database link group layout item. It was created by adding a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"c659d2ca-e5fe-4609-afcc-8a7d43265f1b","sourceTableGuid":"a41b622b-57f7-477a-a41e-198bad0b35be","linkGroupGuid":"5e215642-b17c-4cf8-afa4-53e628c03ed5","guid":null} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8cf9c208-fe30-47e0-a9b2-8071bc13aed5","sourceTableGuid":"ba223015-b641-4274-aeae-437f3b2c3504","linkGroupGuid":"7f3ad308-d12e-45e4-98aa-d2edae89d8d5","guid":null} }, - "Example 21": { + "Example 112": { "summary": "Layout Association Chain Item", "description": "This example demonstrates the response to creating a new association chain layout item. It was created by adding a association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"ef07983b-2e1b-4469-bbcf-2ef67a14d467"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"127e4bd3-1429-47a0-954d-d0cecb156537"}],"guid":null} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"22110405-6c37-45fa-b698-40aebe622938"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"fbe09b73-5cfb-4540-8599-3a73ebeb2a3e"}],"guid":null} } } } @@ -16099,15 +16226,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 32": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} + "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} } } }, @@ -16116,15 +16243,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 32": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} + "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} } } }, @@ -16133,15 +16260,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 32": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} + "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} } } }, @@ -16150,15 +16277,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 6": { + "Example 32": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"d11f7877-2c35-4b35-8bef-9108cf782455"} + "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} } } } @@ -16172,7 +16299,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayout" }, - "example": {"displayNames":{},"name":"Ceramics","guid":"e219a2af-c0c1-4388-b0d7-9f4d18b56579"} + "example": {"displayNames":{},"name":"Ceramics","guid":"1b2a7da3-bcc6-4354-9840-c4ca4d64c9e5"} } } }, @@ -16263,15 +16390,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Layout with 'slim' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to false, which is the default value.", "value": {"sections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 6": { + "Example 32": { "summary": "Layout with 'full' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to true.", - "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"409c69fb-d671-4dfa-a8fa-0da6264ac456","name":"Price","guid":"f11f0869-17f2-47c4-9983-bf9f2e99ce02"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"16dd7044-7a65-46d5-8adf-1d1d76bf37e1","name":"Density","guid":"a2b13264-2991-42a9-99ea-1364e2110d21"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3352294f-73e0-40c0-b01d-dc44389f19fa","name":"Young's modulus","guid":"3a8ee5a1-c9ee-4c56-b42e-23d6ab370cd2"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"dee609d8-f0c6-43ac-b571-1e42976e6d52","name":"Tensile strength","guid":"3f1a2e75-dddc-4359-b36e-db83f5da0654"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3aedbc41-e90a-4fa7-b2f3-c9c3035977ee","name":"Shape factor","guid":"21d92e00-3464-4ed0-ac8b-e6239c1b6761"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"366ac3b9-c87d-48dc-b11b-716f30732b62","name":"Price","guid":"e9e3ad07-40bd-4333-8953-ac8431324d71"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"f86e9666-c6df-4896-9ec2-957006f33e50","name":"Density","guid":"f8921d32-fbba-494a-81da-cfbec0ebe309"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3b29920a-17a7-4e5f-8a4f-43d112f5aa36","name":"Young's modulus","guid":"4e52177a-20b5-44f2-93a5-b1650e6d5c1c"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"cf0f9a10-7eed-42d2-97d1-a5965f3158aa","name":"Tensile strength","guid":"83f752d3-c2b7-4520-9165-6fe39e0e47c3"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3848a1db-811d-44b8-b590-d78e86bf374c","name":"Shape factor","guid":"b49fcc53-c223-4282-8c76-7e9c09e9399f"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} } } } @@ -16323,12 +16450,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} + "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} }, - "Example 6": { + "Example 32": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16340,12 +16467,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} + "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} }, - "Example 6": { + "Example 32": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16357,12 +16484,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} + "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} }, - "Example 6": { + "Example 32": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16374,12 +16501,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"682dc7c4-acea-4d13-87f5-7aa03f23d2fd"} + "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} }, - "Example 6": { + "Example 32": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16486,7 +16613,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParametersInfo" }, "examples": { - "Example 3": { + "Example 16": { "summary": "A mix of parameters", "description": "This example contains a mix of numeric and discrete parameters from the MI_Training database.", "value": {"parameters":[{"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"},{"type":"numeric","isRestricted":false,"values":[{"type":"numeric","value":-1.0,"guid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94"},{"type":"numeric","value":0.0,"guid":"00000022-000b-4fff-8fff-0022ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain-ratio.html","defaultParameterValueGuid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94","displayNames":{"en":"Strain Ratio","fr":"Rapport de contrainte"},"name":"Strain Ratio","guid":"00000022-000a-4fff-8fff-0000ffff0000"},{"type":"discrete","values":[{"type":"discrete","name":"Mean","guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"type":"discrete","name":"A-basis","guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"},{"type":"discrete","name":"B-basis","guid":"9ba94816-6784-4848-bfa6-d24b12597a5b"}],"helpPath":"/help/basis.html","defaultParameterValueGuid":"21a27377-12eb-413c-bac4-d4ffceda39d1","displayNames":{"en":"Basis","fr":"Base"},"name":"Basis","guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}]} @@ -16523,27 +16650,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 12": { + "Example 77": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} }, - "Example 13": { + "Example 78": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 79": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 80": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16555,27 +16682,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 12": { + "Example 77": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} }, - "Example 13": { + "Example 78": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 79": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 80": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16587,27 +16714,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 12": { + "Example 77": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} }, - "Example 13": { + "Example 78": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 79": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 80": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16619,27 +16746,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Colour"} + "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 12": { + "Example 77": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"358808b7-f324-4209-a140-e868a3d32635"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Colour (guid)","guid":"31c003ad-b849-4bad-b484-bf8ad88214d5"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} }, - "Example 13": { + "Example 78": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 14": { + "Example 79": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 15": { + "Example 80": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16747,37 +16874,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} }, - "Example 16": { + "Example 107": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} }, - "Example 17": { + "Example 108": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} + "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} }, - "Example 18": { + "Example 109": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 110": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} }, - "Example 20": { + "Example 111": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 112": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16789,37 +16916,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} }, - "Example 16": { + "Example 107": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} }, - "Example 17": { + "Example 108": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} + "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} }, - "Example 18": { + "Example 109": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 110": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} }, - "Example 20": { + "Example 111": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 112": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16831,37 +16958,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} }, - "Example 16": { + "Example 107": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} }, - "Example 17": { + "Example 108": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} + "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} }, - "Example 18": { + "Example 109": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 110": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} }, - "Example 20": { + "Example 111": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 112": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16873,37 +17000,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"83eb2876-aa15-4d8a-a94d-b2c1a58cf583"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} }, - "Example 16": { + "Example 107": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"ae755032-5a98-4bb1-adeb-052e69c2be0e"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} }, - "Example 17": { + "Example 108": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"5f74f408-b709-4fc5-9ac4-3b67ed4fdfa5"} + "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} }, - "Example 18": { + "Example 109": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 19": { + "Example 110": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"c30040b2-1518-40a2-95cc-3b4a7611ce05"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} }, - "Example 20": { + "Example 111": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 21": { + "Example 112": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -17120,20 +17247,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} }, - "Example 8": { + "Example 47": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} }, - "Example 9": { + "Example 48": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} + "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} } } }, @@ -17142,20 +17269,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} }, - "Example 8": { + "Example 47": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} }, - "Example 9": { + "Example 48": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} + "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} } } }, @@ -17164,20 +17291,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} }, - "Example 8": { + "Example 47": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} }, - "Example 9": { + "Example 48": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} + "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} } } }, @@ -17186,20 +17313,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"11db1247-9c59-4b61-a9c9-d1ceb4c041d2"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} }, - "Example 8": { + "Example 47": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"2b218d2a-3e92-4469-b495-00deb7255ab4"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} }, - "Example 9": { + "Example 48": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"de6a8f1b-3162-4025-9ea7-0a3ef23afb6e"} + "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} } } } @@ -17319,12 +17446,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 32": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17336,12 +17463,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 32": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17353,12 +17480,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 32": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17370,12 +17497,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 6": { + "Example 32": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17445,22 +17572,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 62": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 11": { + "Example 63": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 64": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17472,22 +17599,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 62": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 11": { + "Example 63": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 64": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17499,22 +17626,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 62": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 11": { + "Example 63": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 64": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17526,22 +17653,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 10": { + "Example 62": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 11": { + "Example 63": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 12": { + "Example 64": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17586,20 +17713,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 47": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} + "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} }, - "Example 9": { + "Example 48": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} } } }, @@ -17608,20 +17735,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 47": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} + "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} }, - "Example 9": { + "Example 48": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} } } }, @@ -17630,20 +17757,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 47": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} + "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} }, - "Example 9": { + "Example 48": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} } } }, @@ -17652,20 +17779,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 8": { + "Example 47": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"c58285e4-1af7-412b-93fa-9db9a48c4582"} + "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} }, - "Example 9": { + "Example 48": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"6fe078cb-e74b-4e78-8a00-42497ac1c096"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} } } } @@ -17754,20 +17881,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} + "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} }, - "Example 8": { + "Example 47": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17776,20 +17903,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} + "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} }, - "Example 8": { + "Example 47": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17798,20 +17925,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} + "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} }, - "Example 8": { + "Example 47": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17820,20 +17947,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"915e2ca5-22a5-47f8-bd43-c0fd44b8cba2"} + "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} }, - "Example 8": { + "Example 47": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"23d601ce-e638-467e-b76a-b95cbf04b4b8","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } } @@ -17957,20 +18084,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 47": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} }, - "Example 9": { + "Example 48": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} } } }, @@ -17979,20 +18106,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 47": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} }, - "Example 9": { + "Example 48": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} } } }, @@ -18001,20 +18128,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 47": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} }, - "Example 9": { + "Example 48": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} } } }, @@ -18023,20 +18150,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 8": { + "Example 47": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"0f5ec276-7fad-4851-baba-8aa4e5035d68"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} }, - "Example 9": { + "Example 48": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"3213f032-f8c6-4535-9fdf-d15906960a8d"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} } } } @@ -18146,20 +18273,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} }, - "Example 8": { + "Example 47": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 48": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} + "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} } } }, @@ -18168,20 +18295,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} }, - "Example 8": { + "Example 47": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 48": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} + "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} } } }, @@ -18190,20 +18317,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} }, - "Example 8": { + "Example 47": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 48": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} + "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} } } }, @@ -18212,20 +18339,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"30e86353-3879-463e-8619-34ca1314c0a7"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} }, - "Example 8": { + "Example 47": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 9": { + "Example 48": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"05f79750-2b18-48ce-9471-6b277c57f60b"} + "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} } } } @@ -18351,7 +18478,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"d52e841d-612a-4206-b4c1-5f4f48ab4ad2"}]} + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"ab25659b-3346-4938-b2c9-e0e4c5db690a"}]} } } }, @@ -18392,35 +18519,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 92": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} }, - "Example 15": { + "Example 93": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 94": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} }, - "Example 17": { + "Example 95": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 96": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} } } }, @@ -18429,35 +18556,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 92": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} }, - "Example 15": { + "Example 93": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 94": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} }, - "Example 17": { + "Example 95": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 96": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} } } }, @@ -18466,35 +18593,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 92": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} }, - "Example 15": { + "Example 93": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 94": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} }, - "Example 17": { + "Example 95": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 96": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} } } }, @@ -18503,35 +18630,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 13": { + "Example 91": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 14": { + "Example 92": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"9991b4da-24bb-415d-b355-3867c896066e"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} }, - "Example 15": { + "Example 93": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"cf2a07e2-a713-4f26-abe4-b268cb128649"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 16": { + "Example 94": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"182f4ba2-85e5-41f9-83ed-b4c639a3b7ca","tableGuid":"dce631ee-17be-4e38-a42c-7367cfe839a4"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"a4e8d3f3-7ce5-4eff-90fc-f75ef9d567d7"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} }, - "Example 17": { + "Example 95": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 18": { + "Example 96": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"7e78b623-c921-449e-aac1-d2d5dbf22424"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} } } } @@ -18546,17 +18673,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 22": { + "Example 139": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 23": { + "Example 140": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"8ba93975-605e-48b1-9c71-aaf49e8751cd","tableGuid":"695657cd-fa14-492e-ba39-e82c258cda3a"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"26152fe8-a41c-416b-b637-52b12c166f77"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"f693fc39-754d-49f3-b543-6824c8056ff1","tableGuid":"dd6d0ffc-1841-4fcb-93b1-c150df237176"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"7b857048-c009-4eb0-bc1e-e5c514e36900"} }, - "Example 24": { + "Example 141": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -18635,7 +18762,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"78b6841b-0e34-42f1-92b8-640a18f0884d"}]} + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"3d5724d6-eb0f-4440-b3f9-3d30cf539f8b"}]} } } }, @@ -18727,17 +18854,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 8": { + "Example 47": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"4e3c8b52-c88a-4649-9951-ae090d577e43","tableGuid":"1e628daf-778a-4c92-993f-dad6be8248e4"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"d8a6f933-af5c-48a4-a147-9e743f8678ea"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"31ec22cc-633f-48cd-afb8-5e0d6f5dcb3b","tableGuid":"b094687b-074f-472b-bded-d9363662d240"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"925f726b-328c-49cd-8927-4c4a3d09590a"} }, - "Example 9": { + "Example 48": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -18854,30 +18981,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} + "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} }, - "Example 12": { + "Example 77": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 78": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} }, - "Example 14": { + "Example 79": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} }, - "Example 15": { + "Example 80": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} } } }, @@ -18886,30 +19013,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} + "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} }, - "Example 12": { + "Example 77": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 78": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} }, - "Example 14": { + "Example 79": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} }, - "Example 15": { + "Example 80": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} } } }, @@ -18918,30 +19045,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} + "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} }, - "Example 12": { + "Example 77": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 78": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} }, - "Example 14": { + "Example 79": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} }, - "Example 15": { + "Example 80": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} } } }, @@ -18950,30 +19077,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"76b57b40-e54f-41c4-ac99-513e3fb4804e"} + "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} }, - "Example 12": { + "Example 77": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 13": { + "Example 78": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"b7704848-5d96-4b6e-99ff-d443ed7ae23a"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} }, - "Example 14": { + "Example 79": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"e0ac2b78-1499-4487-96fb-acd451fa7dc8"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} }, - "Example 15": { + "Example 80": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"f426d62a-c4b9-41fd-b25d-607fb72944fd"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} } } } @@ -18988,17 +19115,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 25": { + "Example 142": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 26": { + "Example 143": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"072eee23-a36a-4c91-b3c8-8d7cd953f7f7","tableGuid":"c75df491-a0a9-462a-b8a4-8eb76366de02"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"ea89fb96-edfe-4938-9438-250f9a74b0fa"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"e0029b55-b283-49db-ab2f-a08084634653","tableGuid":"070f4801-491c-41ad-b084-cf18bde6cc25"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"9ab986b4-d4d7-488d-9b52-f6837a558fae"} }, - "Example 27": { + "Example 144": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -19075,27 +19202,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 77": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 78": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 79": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} }, - "Example 15": { + "Example 80": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19107,27 +19234,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 77": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 78": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 79": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} }, - "Example 15": { + "Example 80": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19139,27 +19266,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 77": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 78": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 79": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} }, - "Example 15": { + "Example 80": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19171,27 +19298,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 11": { + "Example 76": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 12": { + "Example 77": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 13": { + "Example 78": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 14": { + "Example 79": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"7bc0a4f9-af2e-4e0d-ba34-ae8f1e79b71b"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} }, - "Example 15": { + "Example 80": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19297,22 +19424,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} + "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} }, - "Example 11": { + "Example 63": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 64": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19324,22 +19451,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} + "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} }, - "Example 11": { + "Example 63": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 64": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19351,22 +19478,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} + "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} }, - "Example 11": { + "Example 63": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 64": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19378,22 +19505,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 10": { + "Example 62": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"d48b24a3-969c-47c6-bf7b-34dadcada470"} + "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} }, - "Example 11": { + "Example 63": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 12": { + "Example 64": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19564,17 +19691,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 8": { + "Example 47": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} + "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} }, - "Example 9": { + "Example 48": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19586,17 +19713,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 8": { + "Example 47": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} + "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} }, - "Example 9": { + "Example 48": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19608,17 +19735,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 8": { + "Example 47": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} + "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} }, - "Example 9": { + "Example 48": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19630,17 +19757,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 8": { + "Example 47": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"a55ff5ed-6d89-437c-be57-0d6c7b06e997"} + "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} }, - "Example 9": { + "Example 48": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19790,22 +19917,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} }, - "Example 10": { + "Example 62": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 63": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 64": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19817,22 +19944,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} }, - "Example 10": { + "Example 62": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 63": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 64": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19844,22 +19971,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} }, - "Example 10": { + "Example 62": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 63": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 64": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19871,22 +19998,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 9": { + "Example 61": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"d6280e3b-7b62-4054-b6b7-d56465458d83"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} }, - "Example 10": { + "Example 62": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 11": { + "Example 63": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 12": { + "Example 64": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -20010,12 +20137,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 32": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20027,12 +20154,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 32": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20044,12 +20171,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 32": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20061,12 +20188,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 6": { + "Example 32": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20133,7 +20260,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20145,7 +20272,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20157,7 +20284,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20169,7 +20296,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20243,7 +20370,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTablesInfo" }, - "example": {"tables":[{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"displayNames":{"en":"MaterialUniverse English Display Name","fr":"MaterialUniverse French Display Name"},"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"displayNames":{},"name":"Design Data","guid":"0000b5e2-0011-4fff-8fff-0000ffff0000"}]} + "example": {"tables":[{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"tableTypes":["Universe","Material"],"displayNames":{"en":"MaterialUniverse English Display Name","fr":"MaterialUniverse French Display Name"},"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"tableTypes":["Design"],"displayNames":{},"name":"Design Data","guid":"0000b5e2-0011-4fff-8fff-0000ffff0000"}]} } } }, @@ -20275,17 +20402,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 47": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} }, - "Example 9": { + "Example 48": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20297,17 +20424,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 47": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} }, - "Example 9": { + "Example 48": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20319,17 +20446,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 47": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} }, - "Example 9": { + "Example 48": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20341,17 +20468,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 8": { + "Example 47": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"545479c8-420f-4cd2-b336-0d6771c18e75"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} }, - "Example 9": { + "Example 48": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20368,7 +20495,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": {"versionState":"unversioned","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"displayNames":{},"name":"Material Universe","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"} + "example": {"versionState":"unversioned","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"tableTypes":[],"displayNames":{},"name":"Material Universe","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"} } } }, @@ -20483,37 +20610,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} }, - "Example 16": { + "Example 107": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 108": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 109": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 110": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 111": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 112": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20525,37 +20652,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} }, - "Example 16": { + "Example 107": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 108": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 109": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 110": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 111": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 112": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20567,37 +20694,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} }, - "Example 16": { + "Example 107": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 108": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 109": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 110": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 111": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 112": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20609,37 +20736,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 15": { + "Example 106": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"6ec709ba-7bac-48d4-819b-05fcf29ab381"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} }, - "Example 16": { + "Example 107": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 17": { + "Example 108": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 18": { + "Example 109": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 19": { + "Example 110": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 20": { + "Example 111": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 21": { + "Example 112": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20766,12 +20893,12 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException" }, "examples": { - "Example 5": { + "Example 31": { "summary": "Invalid version state.", "description": "A table can only be released if it is currently unreleased.", "value": {"message":"Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 6": { + "Example 32": { "summary": "Table is not version controlled.", "value": {"message":"Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } @@ -21327,10 +21454,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} + "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} } } }, @@ -21339,10 +21466,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} + "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} } } }, @@ -21351,10 +21478,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} + "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} } } }, @@ -21363,10 +21490,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 3": { + "Example 16": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"d2723209-d439-4120-bd20-bd89c457ea4f"} + "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} } } } @@ -21469,20 +21596,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} + "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} + "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} } } }, @@ -21491,20 +21618,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} + "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} + "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} } } }, @@ -21513,20 +21640,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} + "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} + "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} } } }, @@ -21535,20 +21662,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 7": { + "Example 46": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"a20a2fd1-47a3-4ef7-8f8d-9797857921ab"} + "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} }, - "Example 8": { + "Example 47": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 9": { + "Example 48": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2add68fb-6f61-40d7-be0a-c2c16889db2d"} + "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} } } } @@ -21673,137 +21800,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -21815,137 +21942,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -21957,137 +22084,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22099,137 +22226,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["ddcac119-bbbd-46d9-8f6e-6e175dfc7fff","97178363-48e2-4d2d-8420-68f383aebd09"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22318,137 +22445,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22460,137 +22587,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22602,137 +22729,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22744,137 +22871,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["df7c571e-667b-464a-bf25-9cd687ca2e39","def32512-d76d-450d-8cab-28a9c6bbfc95"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22954,137 +23081,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23096,137 +23223,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23238,137 +23365,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23380,137 +23507,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 109": { + "Example 811": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 110": { + "Example 812": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 111": { + "Example 813": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 112": { + "Example 814": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 113": { + "Example 815": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 114": { + "Example 816": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 115": { + "Example 817": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 116": { + "Example 818": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 117": { + "Example 819": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 118": { + "Example 820": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["372a67e5-9176-4bce-901f-421a33af4002","314dba5b-554d-47b4-bcc8-9c35d7e72c5e"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 119": { + "Example 821": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 120": { + "Example 822": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 121": { + "Example 823": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 122": { + "Example 824": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 123": { + "Example 825": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 124": { + "Example 826": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 125": { + "Example 827": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 126": { + "Example 828": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 127": { + "Example 829": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 128": { + "Example 830": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 129": { + "Example 831": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 130": { + "Example 832": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 131": { + "Example 833": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 132": { + "Example 834": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 133": { + "Example 835": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 134": { + "Example 836": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 135": { + "Example 837": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23567,137 +23694,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23709,137 +23836,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23851,137 +23978,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23993,137 +24120,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 136": { + "Example 838": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 137": { + "Example 839": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 138": { + "Example 840": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 139": { + "Example 841": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 140": { + "Example 842": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 141": { + "Example 843": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 142": { + "Example 844": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 143": { + "Example 845": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 144": { + "Example 846": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehaviour":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 145": { + "Example 847": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["a3fae86a-61d7-4de7-9545-5792edb0f683","2024a6ba-ab1a-4122-8dde-1cafef69dbea"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 146": { + "Example 848": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 147": { + "Example 849": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 148": { + "Example 850": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 149": { + "Example 851": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 150": { + "Example 852": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 151": { + "Example 853": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 152": { + "Example 854": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehaviour":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 153": { + "Example 855": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehaviour":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 154": { + "Example 856": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehaviour":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 155": { + "Example 857": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 156": { + "Example 858": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 157": { + "Example 859": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctionalData"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 158": { + "Example 860": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehaviour":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 159": { + "Example 861": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 160": { + "Example 862": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 161": { + "Example 863": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 162": { + "Example 864": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -24566,11 +24693,90 @@ } } } + }, + "/v1alpha/status/databases": { + "get": { + "tags": [ + "Status" + ], + "operationId": "GetStatus", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatusInformation" + } + } + }, + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatusInformation" + } + } + }, + "text/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatusInformation" + } + } + } + } + } + } + } + }, + "/v1alpha/status/databases/{database-key}": { + "get": { + "tags": [ + "Status" + ], + "operationId": "GetDatabaseStatus", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatusInformation" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatusInformation" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatusInformation" + } + } + } + } + } + } } }, "components": { "schemas": { - "GrantaMISearchRecordPropertyFakeAttributeNumbers": { + "GrantaMIRecordPropertyFakeAttributeIdentities": { "enum": [ { "name": "Breadcrumbs", @@ -28410,7 +28616,7 @@ "type": "object", "properties": { "tabularRowBehavior": { - "$ref": "#/components/schemas/GrantaServerApiDataExportTabularRowExportBehaviour" + "$ref": "#/components/schemas/GrantaServerApiDataExportTabularRowExportBehavior" }, "summaryRollUpType": { "$ref": "#/components/schemas/GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType" @@ -29028,7 +29234,7 @@ "description": "\r\n\r\nThis extends: GrantaServerApiDataExportAttributeToExport", "x-discriminator-value": "simple" }, - "GrantaServerApiDataExportTabularRowExportBehaviour": { + "GrantaServerApiDataExportTabularRowExportBehavior": { "enum": [ "allRows", "onlyRowsWithVisibleLinkedRecords" @@ -29493,6 +29699,51 @@ }, "additionalProperties": false }, + "GrantaServerApiDatabaseStatus": { + "enum": [ + "Unknown", + "Ok", + "Unloaded", + "Loading", + "Unloading", + "FailedToLoad", + "FailedToUnload", + "Disabled" + ], + "type": "string", + "description": "

Possible values:

\r\n
    \r\n
  • Unknown: The current state is unknown.
  • \r\n
  • Ok: The database is working correctly.
  • \r\n
  • Unloaded: The database is not loaded.
  • \r\n
  • Loading: The database is currently being loaded.
  • \r\n
  • Unloading: The database is currently being unloaded.
  • \r\n
  • FailedToLoad: The database failed to be loaded.
  • \r\n
  • FailedToUnload: The database failed to be unloaded.
  • \r\n
  • Disabled: The database is currently disabled.
  • \r\n
\r\n" + }, + "GrantaServerApiDatabaseStatusInformation": { + "type": "object", + "properties": { + "databaseKey": { + "type": "string", + "description": "Gets the database key for this database.", + "nullable": true + }, + "databaseIsReadOnly": { + "type": "boolean", + "description": "Gets a value indicating whether the database is read only." + }, + "isLocked": { + "type": "boolean", + "description": "Gets a value indicating whether the database is locked for non-admin users." + }, + "state": { + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatus" + }, + "schemaVersion": { + "type": "string", + "description": "Gets the schema version of the database.", + "nullable": true + }, + "searchIndexInSync": { + "type": "boolean", + "description": "Whether the search indexes for this database are in sync with the database changes" + } + }, + "additionalProperties": false + }, "GrantaServerApiDiscreteValue": { "type": "object", "properties": { @@ -30330,6 +30581,22 @@ "additionalProperties": false, "description": "An integration schema discrete type defines the list of values that a discrete attribute can take." }, + "GrantaServerApiIntegrationSchemaGeneratedIntegrationSchemaOfGrantaServerApiObjectIdentifier": { + "type": "object", + "properties": { + "warnings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail" + }, + "nullable": true + }, + "schema": { + "$ref": "#/components/schemas/GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier" + } + }, + "additionalProperties": false + }, "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute": { "required": [ "type" @@ -30611,6 +30878,22 @@ }, "additionalProperties": false }, + "GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "additionalProperties": false + }, "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier": { "type": "object", "properties": { @@ -31481,6 +31764,33 @@ "type": "string", "description": "A set of flags that can be used to describe the role or roles that a user has on a particular record list" }, + "GrantaServerApiMetricsGetJobsSummaryResponse": { + "type": "object", + "properties": { + "jobs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiMetricsJobTypeAndStatus" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiMetricsJobTypeAndStatus": { + "type": "object", + "properties": { + "jobType": { + "type": "string", + "nullable": true + }, + "status": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, "GrantaServerApiNoValuesSpecifier": { "required": [ "filterOn" @@ -34139,7 +34449,7 @@ "nullable": true }, "status": { - "$ref": "#/components/schemas/GrantaServerApiSchemaDatabaseStatus" + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatus" }, "isReadOnly": { "type": "boolean" @@ -34174,19 +34484,6 @@ }, "additionalProperties": false }, - "GrantaServerApiSchemaDatabaseStatus": { - "enum": [ - "Unknown", - "OK", - "Unloaded", - "Loading", - "Unloading", - "FailedToLoad", - "FailedToUnload", - "Disabled" - ], - "type": "string" - }, "GrantaServerApiSchemaDatabasesInfo": { "type": "object", "properties": { @@ -36931,7 +37228,7 @@ "nullable": true }, "status": { - "$ref": "#/components/schemas/GrantaServerApiSchemaDatabaseStatus" + "$ref": "#/components/schemas/GrantaServerApiDatabaseStatus" }, "isReadOnly": { "type": "boolean" @@ -37232,7 +37529,8 @@ "isHiddenFromBrowse", "isHiddenFromSearch", "isVersioned", - "name" + "name", + "tableTypes" ], "type": "object", "properties": { @@ -37245,6 +37543,12 @@ "isVersioned": { "type": "boolean" }, + "tableTypes": { + "type": "array", + "items": { + "type": "string" + } + }, "displayNames": { "type": "object", "additionalProperties": { @@ -37582,6 +37886,7 @@ "layouts", "name", "subsets", + "tableTypes", "versionState" ], "type": "object", @@ -37616,6 +37921,12 @@ "isVersioned": { "type": "boolean" }, + "tableTypes": { + "type": "array", + "items": { + "type": "string" + } + }, "displayNames": { "type": "object", "additionalProperties": { @@ -40161,8 +40472,8 @@ "type": "string", "nullable": true }, - "textMatchBehaviour": { - "$ref": "#/components/schemas/GrantaServerApiSearchTextMatchBehaviour" + "textMatchBehavior": { + "$ref": "#/components/schemas/GrantaServerApiSearchTextMatchBehavior" }, "type": { "type": "string", @@ -40208,8 +40519,8 @@ }, "nullable": true }, - "textMatchBehaviour": { - "$ref": "#/components/schemas/GrantaServerApiSearchTextMatchBehaviour" + "textMatchBehavior": { + "$ref": "#/components/schemas/GrantaServerApiSearchTextMatchBehavior" }, "type": { "type": "string", @@ -40636,8 +40947,8 @@ "type": "string", "default": "link" }, - "localRowsBehaviour": { - "$ref": "#/components/schemas/GrantaServerApiSearchLocalRowsBehaviour" + "localRowsBehavior": { + "$ref": "#/components/schemas/GrantaServerApiSearchLocalRowsBehavior" } } } @@ -40684,8 +40995,8 @@ "searchInReversedDirection": { "type": "boolean" }, - "localRowsBehaviour": { - "$ref": "#/components/schemas/GrantaServerApiSearchLocalRowsBehaviour" + "localRowsBehavior": { + "$ref": "#/components/schemas/GrantaServerApiSearchLocalRowsBehavior" }, "targetAttributeIdentity": { "type": "integer", @@ -40710,7 +41021,7 @@ "description": "link: Criterion for matching records that are linked to records by the given link group. The target database and table specify the location of the linked records.\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", "x-discriminator-value": "link" }, - "GrantaServerApiSearchLinkingValueMatchBehaviour": { + "GrantaServerApiSearchLinkingValueMatchBehavior": { "enum": [ "AllRows", "VisibleRows", @@ -40835,7 +41146,7 @@ "description": "Criterion for matching record where there is not applicable data on the local column specified. Exactly one of the local column identity or GUID must be provided.\r\n\r\nThis extends: GrantaServerApiSearchLocalColumnCriterion", "x-discriminator-value": "notApplicable" }, - "GrantaServerApiSearchLocalRowsBehaviour": { + "GrantaServerApiSearchLocalRowsBehavior": { "enum": [ "AllRows", "VisibleRows", @@ -41552,7 +41863,7 @@ "lastModifiedDate", "lastModifier", "recordType", - "colour", + "color", "versionState", "versionNumber", "recordName", @@ -41562,7 +41873,7 @@ "tableIdentity" ], "type": "string", - "description": "Properties of a record that can be used to in searches

Possible values:

\r\n
    \r\n
  • CreatedDate: The date a record was created.
  • \r\n
  • Creator: The username of the person who created the record.
  • \r\n
  • LastModifiedDate: The date a record was last modified.
  • \r\n
  • LastModifier: The username of the person who last modified the record.
  • \r\n
  • RecordType: Whether we return records, generics or folders (or a mixture).
  • \r\n
  • Colour: The colour of the record. See
  • \r\n
  • VersionState: The version state of the records that will be returned. Only Released, Unreleased or Unversioned are supported.
  • \r\n
  • VersionNumber: The version number of the record.
  • \r\n
  • RecordName: The full name of the record.
  • \r\n
  • TreeName: The name of the record as it is displayed in the tree.
  • \r\n
  • DatabaseKey: The database key of the record.
  • \r\n
  • TableName: The name of the table that the record is in.
  • \r\n
  • TableIdentity: The identity of the table that the record is in.
  • \r\n
\r\n" + "description": "Properties of a record that can be used to in searches

Possible values:

\r\n
    \r\n
  • CreatedDate: The date a record was created.
  • \r\n
  • Creator: The username of the person who created the record.
  • \r\n
  • LastModifiedDate: The date a record was last modified.
  • \r\n
  • LastModifier: The username of the person who last modified the record.
  • \r\n
  • RecordType: Whether we return records, generics or folders (or a mixture).
  • \r\n
  • Color: The color of the record.
  • \r\n
  • VersionState: The version state of the records that will be returned. Only Released, Unreleased or Unversioned are supported.
  • \r\n
  • VersionNumber: The version number of the record.
  • \r\n
  • RecordName: The full name of the record.
  • \r\n
  • TreeName: The name of the record as it is displayed in the tree.
  • \r\n
  • DatabaseKey: The database key of the record.
  • \r\n
  • TableName: The name of the table that the record is in.
  • \r\n
  • TableIdentity: The identity of the table that the record is in.
  • \r\n
\r\n" }, "GrantaServerApiSearchShortTextDatumCriterion": { "required": [ @@ -41580,8 +41891,8 @@ "type": "string", "nullable": true }, - "textMatchBehaviour": { - "$ref": "#/components/schemas/GrantaServerApiSearchTextMatchBehaviour" + "textMatchBehavior": { + "$ref": "#/components/schemas/GrantaServerApiSearchTextMatchBehavior" }, "type": { "type": "string", @@ -41614,7 +41925,7 @@ } ], "additionalProperties": false, - "description": "Inner criterion of an attribute search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", "x-discriminator-value": "type" }, "GrantaServerApiSearchSortCriterion": { @@ -41709,8 +42020,8 @@ }, "nullable": true }, - "linkingValueMatchBehaviour": { - "$ref": "#/components/schemas/GrantaServerApiSearchLinkingValueMatchBehaviour" + "linkingValueMatchBehavior": { + "$ref": "#/components/schemas/GrantaServerApiSearchLinkingValueMatchBehavior" }, "type": { "type": "string", @@ -41723,7 +42034,7 @@ "description": "\r\n\r\nThis extends: GrantaServerApiSearchCriterion", "x-discriminator-value": "tabularLinkingValue" }, - "GrantaServerApiSearchTextMatchBehaviour": { + "GrantaServerApiSearchTextMatchBehavior": { "enum": [ "contains", "exactMatch", @@ -41949,6 +42260,43 @@ } } }, + "MicrosoftAspNetCoreMvcFormattersIOutputFormatter": { + "type": "object", + "additionalProperties": false + }, + "MicrosoftAspNetCoreMvcObjectResult": { + "type": "object", + "properties": { + "value": { + "type": "object", + "nullable": true + }, + "formatters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MicrosoftAspNetCoreMvcFormattersIOutputFormatter" + }, + "nullable": true + }, + "contentTypes": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "declaredType": { + "type": "string", + "nullable": true + }, + "statusCode": { + "type": "integer", + "format": "int32", + "nullable": true + } + }, + "additionalProperties": false + }, "SystemNetHttpStatusCode": { "enum": [ 100, From 230eff13e2d139882addcf211036918c2acfa00d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 12:04:02 +0100 Subject: [PATCH 15/31] Bump mypy from 1.8.0 to 1.9.0 in /ansys-grantami-serverapi-openapi (#161) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- ansys-grantami-serverapi-openapi/poetry.lock | 58 ++++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index add89a8c..8b4708e5 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.6.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "ansys-openapi-common" @@ -299,38 +299,38 @@ files = [ [[package]] name = "mypy" -version = "1.8.0" +version = "1.9.0" description = "Optional static typing for Python" optional = false python-versions = ">=3.8" files = [ - {file = "mypy-1.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:485a8942f671120f76afffff70f259e1cd0f0cfe08f81c05d8816d958d4577d3"}, - {file = "mypy-1.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:df9824ac11deaf007443e7ed2a4a26bebff98d2bc43c6da21b2b64185da011c4"}, - {file = "mypy-1.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2afecd6354bbfb6e0160f4e4ad9ba6e4e003b767dd80d85516e71f2e955ab50d"}, - {file = "mypy-1.8.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:8963b83d53ee733a6e4196954502b33567ad07dfd74851f32be18eb932fb1cb9"}, - {file = "mypy-1.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:e46f44b54ebddbeedbd3d5b289a893219065ef805d95094d16a0af6630f5d410"}, - {file = "mypy-1.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:855fe27b80375e5c5878492f0729540db47b186509c98dae341254c8f45f42ae"}, - {file = "mypy-1.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4c886c6cce2d070bd7df4ec4a05a13ee20c0aa60cb587e8d1265b6c03cf91da3"}, - {file = "mypy-1.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d19c413b3c07cbecf1f991e2221746b0d2a9410b59cb3f4fb9557f0365a1a817"}, - {file = "mypy-1.8.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:9261ed810972061388918c83c3f5cd46079d875026ba97380f3e3978a72f503d"}, - {file = "mypy-1.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:51720c776d148bad2372ca21ca29256ed483aa9a4cdefefcef49006dff2a6835"}, - {file = "mypy-1.8.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:52825b01f5c4c1c4eb0db253ec09c7aa17e1a7304d247c48b6f3599ef40db8bd"}, - {file = "mypy-1.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f5ac9a4eeb1ec0f1ccdc6f326bcdb464de5f80eb07fb38b5ddd7b0de6bc61e55"}, - {file = "mypy-1.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afe3fe972c645b4632c563d3f3eff1cdca2fa058f730df2b93a35e3b0c538218"}, - {file = "mypy-1.8.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:42c6680d256ab35637ef88891c6bd02514ccb7e1122133ac96055ff458f93fc3"}, - {file = "mypy-1.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:720a5ca70e136b675af3af63db533c1c8c9181314d207568bbe79051f122669e"}, - {file = "mypy-1.8.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:028cf9f2cae89e202d7b6593cd98db6759379f17a319b5faf4f9978d7084cdc6"}, - {file = "mypy-1.8.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4e6d97288757e1ddba10dd9549ac27982e3e74a49d8d0179fc14d4365c7add66"}, - {file = "mypy-1.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f1478736fcebb90f97e40aff11a5f253af890c845ee0c850fe80aa060a267c6"}, - {file = "mypy-1.8.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:42419861b43e6962a649068a61f4a4839205a3ef525b858377a960b9e2de6e0d"}, - {file = "mypy-1.8.0-cp38-cp38-win_amd64.whl", hash = "sha256:2b5b6c721bd4aabaadead3a5e6fa85c11c6c795e0c81a7215776ef8afc66de02"}, - {file = "mypy-1.8.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5c1538c38584029352878a0466f03a8ee7547d7bd9f641f57a0f3017a7c905b8"}, - {file = "mypy-1.8.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4ef4be7baf08a203170f29e89d79064463b7fc7a0908b9d0d5114e8009c3a259"}, - {file = "mypy-1.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7178def594014aa6c35a8ff411cf37d682f428b3b5617ca79029d8ae72f5402b"}, - {file = "mypy-1.8.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ab3c84fa13c04aeeeabb2a7f67a25ef5d77ac9d6486ff33ded762ef353aa5592"}, - {file = "mypy-1.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:99b00bc72855812a60d253420d8a2eae839b0afa4938f09f4d2aa9bb4654263a"}, - {file = "mypy-1.8.0-py3-none-any.whl", hash = "sha256:538fd81bb5e430cc1381a443971c0475582ff9f434c16cd46d2c66763ce85d9d"}, - {file = "mypy-1.8.0.tar.gz", hash = "sha256:6ff8b244d7085a0b425b56d327b480c3b29cafbd2eff27316a004f9a7391ae07"}, + {file = "mypy-1.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f8a67616990062232ee4c3952f41c779afac41405806042a8126fe96e098419f"}, + {file = "mypy-1.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d357423fa57a489e8c47b7c85dfb96698caba13d66e086b412298a1a0ea3b0ed"}, + {file = "mypy-1.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49c87c15aed320de9b438ae7b00c1ac91cd393c1b854c2ce538e2a72d55df150"}, + {file = "mypy-1.9.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:48533cdd345c3c2e5ef48ba3b0d3880b257b423e7995dada04248725c6f77374"}, + {file = "mypy-1.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:4d3dbd346cfec7cb98e6cbb6e0f3c23618af826316188d587d1c1bc34f0ede03"}, + {file = "mypy-1.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:653265f9a2784db65bfca694d1edd23093ce49740b2244cde583aeb134c008f3"}, + {file = "mypy-1.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3a3c007ff3ee90f69cf0a15cbcdf0995749569b86b6d2f327af01fd1b8aee9dc"}, + {file = "mypy-1.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2418488264eb41f69cc64a69a745fad4a8f86649af4b1041a4c64ee61fc61129"}, + {file = "mypy-1.9.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:68edad3dc7d70f2f17ae4c6c1b9471a56138ca22722487eebacfd1eb5321d612"}, + {file = "mypy-1.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:85ca5fcc24f0b4aeedc1d02f93707bccc04733f21d41c88334c5482219b1ccb3"}, + {file = "mypy-1.9.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:aceb1db093b04db5cd390821464504111b8ec3e351eb85afd1433490163d60cd"}, + {file = "mypy-1.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0235391f1c6f6ce487b23b9dbd1327b4ec33bb93934aa986efe8a9563d9349e6"}, + {file = "mypy-1.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d4d5ddc13421ba3e2e082a6c2d74c2ddb3979c39b582dacd53dd5d9431237185"}, + {file = "mypy-1.9.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:190da1ee69b427d7efa8aa0d5e5ccd67a4fb04038c380237a0d96829cb157913"}, + {file = "mypy-1.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:fe28657de3bfec596bbeef01cb219833ad9d38dd5393fc649f4b366840baefe6"}, + {file = "mypy-1.9.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:e54396d70be04b34f31d2edf3362c1edd023246c82f1730bbf8768c28db5361b"}, + {file = "mypy-1.9.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:5e6061f44f2313b94f920e91b204ec600982961e07a17e0f6cd83371cb23f5c2"}, + {file = "mypy-1.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81a10926e5473c5fc3da8abb04119a1f5811a236dc3a38d92015cb1e6ba4cb9e"}, + {file = "mypy-1.9.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:b685154e22e4e9199fc95f298661deea28aaede5ae16ccc8cbb1045e716b3e04"}, + {file = "mypy-1.9.0-cp38-cp38-win_amd64.whl", hash = "sha256:5d741d3fc7c4da608764073089e5f58ef6352bedc223ff58f2f038c2c4698a89"}, + {file = "mypy-1.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:587ce887f75dd9700252a3abbc9c97bbe165a4a630597845c61279cf32dfbf02"}, + {file = "mypy-1.9.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f88566144752999351725ac623471661c9d1cd8caa0134ff98cceeea181789f4"}, + {file = "mypy-1.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:61758fabd58ce4b0720ae1e2fea5cfd4431591d6d590b197775329264f86311d"}, + {file = "mypy-1.9.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:e49499be624dead83927e70c756970a0bc8240e9f769389cdf5714b0784ca6bf"}, + {file = "mypy-1.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:571741dc4194b4f82d344b15e8837e8c5fcc462d66d076748142327626a1b6e9"}, + {file = "mypy-1.9.0-py3-none-any.whl", hash = "sha256:a260627a570559181a9ea5de61ac6297aa5af202f06fd7ab093ce74e7181e43e"}, + {file = "mypy-1.9.0.tar.gz", hash = "sha256:3cc5da0127e6a478cddd906068496a97a7618a21ce9b54bde5bf7e539c7af974"}, ] [package.dependencies] From d74168f15d8774eba660e51e0f3983180f8651a6 Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Thu, 11 Apr 2024 09:14:13 -0400 Subject: [PATCH 16/31] Update swagger to 24.2.977 (#168) Co-authored-by: Andy-Grigg --- .../pyproject.toml | 2 +- ...ta_export_datums_float_functional_datum.py | 32 + ...ata_export_datums_functional_grid_datum.py | 5 + ...a_export_datums_functional_series_datum.py | 29 +- yaml/server-api.json | 3708 ++++++++--------- 5 files changed, 1893 insertions(+), 1883 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 77563037..0cd95fbb 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 = "3.0.0.dev228" +version = "3.0.0.dev234" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py index 0890750e..259b0d60 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py @@ -58,6 +58,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum( "attribute_identity": "int", "datum_type": "str", "is_estimated": "bool", + "is_range": "bool", "meta_datums": "list[GrantaServerApiDataExportDatumsDatum]", "not_applicable": "str", "parameters": "list[GrantaServerApiFunctionalDatumParameterInfo]", @@ -70,6 +71,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum( "attribute_identity": "attributeIdentity", "datum_type": "datumType", "is_estimated": "isEstimated", + "is_range": "isRange", "meta_datums": "metaDatums", "not_applicable": "notApplicable", "parameters": "parameters", @@ -96,6 +98,7 @@ def __init__( attribute_identity: "Union[int, Unset_Type]" = Unset, datum_type: "str" = "floatFunctional", is_estimated: "Union[bool, Unset_Type]" = Unset, + is_range: "Union[bool, Unset_Type]" = Unset, meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, @@ -110,6 +113,7 @@ def __init__( attribute_identity: int, optional datum_type: str is_estimated: bool, optional + is_range: bool, optional meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional not_applicable: str parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional @@ -131,6 +135,7 @@ def __init__( List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type ] = Unset self._is_estimated: Union[bool, Unset_Type] = Unset + self._is_range: Union[bool, Unset_Type] = Unset self.datum_type = datum_type if unit_symbol is not Unset: @@ -141,6 +146,8 @@ def __init__( self.parameters = parameters if is_estimated is not Unset: self.is_estimated = is_estimated + if is_range is not Unset: + self.is_range = is_range @property def datum_type(self) -> "str": @@ -274,6 +281,31 @@ def is_estimated(self, is_estimated: "Union[bool, Unset_Type]") -> None: raise ValueError("Invalid value for 'is_estimated', must not be 'None'") self._is_estimated = is_estimated + @property + def is_range(self) -> "Union[bool, Unset_Type]": + """Gets the is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. + + Returns + ------- + Union[bool, Unset_Type] + The is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. + """ + return self._is_range + + @is_range.setter + def is_range(self, is_range: "Union[bool, Unset_Type]") -> None: + """Sets the is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. + + Parameters + ---------- + is_range: Union[bool, Unset_Type] + The is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. + """ + # Field is not nullable + if is_range is None: + raise ValueError("Invalid value for 'is_range', must not be 'None'") + self._is_range = is_range + @classmethod def get_real_child_model(cls, data: Dict[str, str]) -> str: """Returns the real base class as determined by the discriminator diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py index d63fc758..e47dcad1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py @@ -57,6 +57,7 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum( "datum_type": "str", "graph_type": "str", "is_estimated": "bool", + "is_range": "bool", "meta_datums": "list[GrantaServerApiDataExportDatumsDatum]", "not_applicable": "str", "parameters": "list[GrantaServerApiFunctionalDatumParameterInfo]", @@ -71,6 +72,7 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum( "datum_type": "datumType", "graph_type": "graphType", "is_estimated": "isEstimated", + "is_range": "isRange", "meta_datums": "metaDatums", "not_applicable": "notApplicable", "parameters": "parameters", @@ -93,6 +95,7 @@ def __init__( datum_type: "str" = "floatFunctional", graph_type: "str" = "grid", is_estimated: "Union[bool, Unset_Type]" = Unset, + is_range: "Union[bool, Unset_Type]" = Unset, meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset, not_applicable: "str" = "applicable", parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset, @@ -109,6 +112,7 @@ def __init__( datum_type: str graph_type: str is_estimated: bool, optional + is_range: bool, optional meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional not_applicable: str parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional @@ -121,6 +125,7 @@ def __init__( attribute_identity=attribute_identity, datum_type=datum_type, is_estimated=is_estimated, + is_range=is_range, meta_datums=meta_datums, not_applicable=not_applicable, parameters=parameters, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py index 60c36d8b..85a8a657 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py @@ -133,6 +133,7 @@ def __init__( attribute_identity=attribute_identity, datum_type=datum_type, is_estimated=is_estimated, + is_range=is_range, meta_datums=meta_datums, not_applicable=not_applicable, parameters=parameters, @@ -144,7 +145,6 @@ def __init__( List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type ] = Unset self._is_logarithmic: Union[bool, Unset_Type] = Unset - self._is_range: Union[bool, Unset_Type] = Unset self._show_as_table: Union[bool, Unset_Type] = Unset self.graph_type = graph_type @@ -152,8 +152,6 @@ def __init__( self.series = series if is_logarithmic is not Unset: self.is_logarithmic = is_logarithmic - if is_range is not Unset: - self.is_range = is_range if show_as_table is not Unset: self.show_as_table = show_as_table @@ -237,31 +235,6 @@ def is_logarithmic(self, is_logarithmic: "Union[bool, Unset_Type]") -> None: raise ValueError("Invalid value for 'is_logarithmic', must not be 'None'") self._is_logarithmic = is_logarithmic - @property - def is_range(self) -> "Union[bool, Unset_Type]": - """Gets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. - - Returns - ------- - Union[bool, Unset_Type] - The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. - """ - return self._is_range - - @is_range.setter - def is_range(self, is_range: "Union[bool, Unset_Type]") -> None: - """Sets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. - - Parameters - ---------- - is_range: Union[bool, Unset_Type] - The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. - """ - # Field is not nullable - if is_range is None: - raise ValueError("Invalid value for 'is_range', must not be 'None'") - self._is_range = is_range - @property def show_as_table(self) -> "Union[bool, Unset_Type]": """Gets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. diff --git a/yaml/server-api.json b/yaml/server-api.json index c7b13608..b49aa321 100644 --- a/yaml/server-api.json +++ b/yaml/server-api.json @@ -62,42 +62,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 481": { + "Example 97": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 482": { + "Example 98": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 483": { + "Example 99": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 484": { + "Example 100": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 485": { + "Example 101": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 486": { + "Example 102": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 487": { + "Example 103": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 488": { + "Example 104": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -109,42 +109,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 481": { + "Example 97": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 482": { + "Example 98": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 483": { + "Example 99": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 484": { + "Example 100": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 485": { + "Example 101": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 486": { + "Example 102": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 487": { + "Example 103": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 488": { + "Example 104": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -156,42 +156,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 481": { + "Example 97": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 482": { + "Example 98": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 483": { + "Example 99": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 484": { + "Example 100": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 485": { + "Example 101": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 486": { + "Example 102": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 487": { + "Example 103": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 488": { + "Example 104": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -203,42 +203,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 481": { + "Example 97": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 482": { + "Example 98": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 483": { + "Example 99": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 484": { + "Example 100": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 485": { + "Example 101": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"95e6f685-5aac-4bab-855f-aeef8c5ad17b","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 486": { + "Example 102": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"ec1d0898-50ce-4f1d-8e85-529d0d6f8cd2","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 487": { + "Example 103": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0665c230-a90b-4e6f-a62d-4a6f373539cc","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 488": { + "Example 104": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -331,42 +331,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 489": { + "Example 105": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 490": { + "Example 106": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 491": { + "Example 107": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 492": { + "Example 108": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 493": { + "Example 109": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 494": { + "Example 110": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 495": { + "Example 111": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 496": { + "Example 112": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -378,42 +378,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 489": { + "Example 105": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 490": { + "Example 106": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 491": { + "Example 107": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 492": { + "Example 108": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 493": { + "Example 109": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 494": { + "Example 110": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 495": { + "Example 111": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 496": { + "Example 112": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -425,42 +425,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 489": { + "Example 105": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 490": { + "Example 106": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 491": { + "Example 107": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 492": { + "Example 108": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 493": { + "Example 109": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 494": { + "Example 110": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 495": { + "Example 111": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 496": { + "Example 112": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -472,42 +472,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 489": { + "Example 105": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 490": { + "Example 106": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 491": { + "Example 107": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 492": { + "Example 108": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 493": { + "Example 109": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"50a9737f-b84c-4c84-836a-eefd68adb85c","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 494": { + "Example 110": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5b9b0b59-8d0f-4283-9689-7c4ab7c536ca","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 495": { + "Example 111": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"3bb51cd5-fcb5-40e4-a6bd-ad8b2913bdb7","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 496": { + "Example 112": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -591,42 +591,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 497": { + "Example 113": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 498": { + "Example 114": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 499": { + "Example 115": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 500": { + "Example 116": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 501": { + "Example 117": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 502": { + "Example 118": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 503": { + "Example 119": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 504": { + "Example 120": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -638,42 +638,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 497": { + "Example 113": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 498": { + "Example 114": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 499": { + "Example 115": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 500": { + "Example 116": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 501": { + "Example 117": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 502": { + "Example 118": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 503": { + "Example 119": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 504": { + "Example 120": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -685,42 +685,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 497": { + "Example 113": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 498": { + "Example 114": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 499": { + "Example 115": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 500": { + "Example 116": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 501": { + "Example 117": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 502": { + "Example 118": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 503": { + "Example 119": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 504": { + "Example 120": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -732,42 +732,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 497": { + "Example 113": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 498": { + "Example 114": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 499": { + "Example 115": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 500": { + "Example 116": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 501": { + "Example 117": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"0fda3143-b4e6-4b63-a722-f5d61bae2efb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 502": { + "Example 118": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"4ce35912-4b4c-41d2-b22f-69d4981168db","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 503": { + "Example 119": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"cb01b351-9823-4840-9b5c-0d7b7324fc98","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 504": { + "Example 120": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -827,42 +827,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 505": { + "Example 121": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 506": { + "Example 122": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 507": { + "Example 123": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 508": { + "Example 124": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 509": { + "Example 125": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 510": { + "Example 126": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 511": { + "Example 127": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 512": { + "Example 128": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -874,42 +874,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 505": { + "Example 121": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 506": { + "Example 122": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 507": { + "Example 123": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 508": { + "Example 124": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 509": { + "Example 125": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 510": { + "Example 126": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 511": { + "Example 127": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 512": { + "Example 128": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -921,42 +921,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 505": { + "Example 121": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 506": { + "Example 122": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 507": { + "Example 123": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 508": { + "Example 124": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 509": { + "Example 125": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 510": { + "Example 126": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 511": { + "Example 127": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 512": { + "Example 128": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -968,42 +968,42 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 505": { + "Example 121": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 506": { + "Example 122": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 507": { + "Example 123": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 508": { + "Example 124": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} }, - "Example 509": { + "Example 125": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2a21c3bd-6760-4859-a43e-3184b489b391","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} }, - "Example 510": { + "Example 126": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"33d3cfbe-3de3-40c7-887c-02931ecf388f","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} }, - "Example 511": { + "Example 127": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"e8bef4e1-f224-4c99-988e-81dfb2edfedf","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} }, - "Example 512": { + "Example 128": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} @@ -1125,12 +1125,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 122": { + "Example 26": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1222,12 +1222,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 123": { + "Example 27": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 124": { + "Example 28": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1319,12 +1319,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 125": { + "Example 29": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 126": { + "Example 30": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -1407,12 +1407,12 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 127": { + "Example 31": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} }, - "Example 128": { + "Example 32": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} @@ -2517,67 +2517,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 196": { + "Example 40": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 197": { + "Example 41": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 198": { + "Example 42": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 199": { + "Example 43": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 200": { + "Example 44": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 201": { + "Example 45": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 202": { + "Example 46": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 203": { + "Example 47": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 204": { + "Example 48": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 205": { + "Example 49": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 206": { + "Example 50": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 207": { + "Example 51": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 208": { + "Example 52": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2589,67 +2589,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 196": { + "Example 40": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 197": { + "Example 41": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 198": { + "Example 42": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 199": { + "Example 43": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 200": { + "Example 44": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 201": { + "Example 45": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 202": { + "Example 46": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 203": { + "Example 47": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 204": { + "Example 48": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 205": { + "Example 49": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 206": { + "Example 50": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 207": { + "Example 51": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 208": { + "Example 52": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2661,67 +2661,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 196": { + "Example 40": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 197": { + "Example 41": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 198": { + "Example 42": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 199": { + "Example 43": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 200": { + "Example 44": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 201": { + "Example 45": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 202": { + "Example 46": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 203": { + "Example 47": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 204": { + "Example 48": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 205": { + "Example 49": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 206": { + "Example 50": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 207": { + "Example 51": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 208": { + "Example 52": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -2733,67 +2733,67 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 196": { + "Example 40": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} }, - "Example 197": { + "Example 41": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 198": { + "Example 42": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 199": { + "Example 43": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} }, - "Example 200": { + "Example 44": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} }, - "Example 201": { + "Example 45": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} }, - "Example 202": { + "Example 46": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} }, - "Example 203": { + "Example 47": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 204": { + "Example 48": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} }, - "Example 205": { + "Example 49": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 206": { + "Example 50": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 207": { + "Example 51": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} }, - "Example 208": { + "Example 52": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} @@ -4198,12 +4198,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 31": { + "Example 7": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 32": { + "Example 8": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4215,12 +4215,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 31": { + "Example 7": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 32": { + "Example 8": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4232,12 +4232,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 31": { + "Example 7": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 32": { + "Example 8": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4249,12 +4249,12 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 31": { + "Example 7": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["MI BoM Analyzer"]} }, - "Example 32": { + "Example 8": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", "value": {"appNames":["RS Reports","Sustainability Analytics"]} @@ -4761,12 +4761,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 32": { + "Example 8": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4778,12 +4778,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 32": { + "Example 8": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4795,12 +4795,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 32": { + "Example 8": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -4812,12 +4812,12 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Update the name of list", "description": "Update the name of a list", "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} }, - "Example 32": { + "Example 8": { "summary": "Update everything for a list", "description": "Update everything for a list", "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} @@ -5771,27 +5771,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 77": { + "Example 17": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 78": { + "Example 18": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} }, - "Example 79": { + "Example 19": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 80": { + "Example 20": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5803,27 +5803,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 77": { + "Example 17": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 78": { + "Example 18": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} }, - "Example 79": { + "Example 19": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 80": { + "Example 20": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5835,27 +5835,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 77": { + "Example 17": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 78": { + "Example 18": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} }, - "Example 79": { + "Example 19": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 80": { + "Example 20": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5867,27 +5867,27 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordType":"record","name":"New Record Name"} }, - "Example 77": { + "Example 17": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} }, - "Example 78": { + "Example 18": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"0d929d31-2fc7-4800-b6b6-574e8d622718"} + "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} }, - "Example 79": { + "Example 19": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} }, - "Example 80": { + "Example 20": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} @@ -5904,7 +5904,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"b4b8e129-21ec-4979-82c0-5f2b9be47d59"}],"subsets":[],"guid":"51c94dcb-04ca-4da7-ac0d-e4d610ea2809"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"e1f05761-0b01-4d05-9d4d-cb3d45bc52d4"}],"subsets":[],"guid":"03824261-9af1-4644-949b-731257444f6c"} } } }, @@ -5962,12 +5962,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 62": { + "Example 14": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5979,12 +5979,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 62": { + "Example 14": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5996,12 +5996,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 62": { + "Example 14": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6013,12 +6013,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 62": { + "Example 14": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6047,23 +6047,23 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 151": { + "Example 31": { "summary": "New parent is not a folder.", "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 152": { + "Example 32": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 153": { + "Example 33": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 154": { + "Example 34": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 155": { + "Example 35": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } @@ -6113,12 +6113,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 63": { + "Example 15": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 64": { + "Example 16": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6130,12 +6130,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 63": { + "Example 15": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 64": { + "Example 16": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6147,12 +6147,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 63": { + "Example 15": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 64": { + "Example 16": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6164,12 +6164,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 63": { + "Example 15": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} }, - "Example 64": { + "Example 16": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6198,23 +6198,23 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 156": { + "Example 36": { "summary": "New parent is not a folder.", "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 157": { + "Example 37": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 158": { + "Example 38": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 159": { + "Example 39": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} }, - "Example 160": { + "Example 40": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} } @@ -6273,17 +6273,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 92": { + "Example 20": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 93": { + "Example 21": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6295,17 +6295,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 92": { + "Example 20": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 93": { + "Example 21": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6317,17 +6317,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 92": { + "Example 20": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 93": { + "Example 21": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6339,17 +6339,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 92": { + "Example 20": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 93": { + "Example 21": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6366,7 +6366,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"b3d22bb9-5791-437d-9265-44d78efbaeba"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"9c879223-cedf-4977-9bb7-0cf6759b5c0c"} } } }, @@ -6378,19 +6378,19 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 121": { + "Example 25": { "summary": "New parent is not a folder.", "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 122": { + "Example 26": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 123": { + "Example 27": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 124": { + "Example 28": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } @@ -6440,17 +6440,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 94": { + "Example 22": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 95": { + "Example 23": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 96": { + "Example 24": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6462,17 +6462,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 94": { + "Example 22": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 95": { + "Example 23": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 96": { + "Example 24": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6484,17 +6484,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 94": { + "Example 22": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 95": { + "Example 23": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 96": { + "Example 24": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6506,17 +6506,17 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 94": { + "Example 22": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} }, - "Example 95": { + "Example 23": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} }, - "Example 96": { + "Example 24": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {"subsetOption":"none","newShortName":"Short name for new record"} @@ -6533,7 +6533,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"6780be07-1e0f-419b-9227-4edd2e2ecceb"} + "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"3d5dea2e-5010-4fe7-9b33-363cd6e5f965"} } } }, @@ -6545,19 +6545,19 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 125": { + "Example 29": { "summary": "New parent is not a folder.", "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} }, - "Example 126": { + "Example 30": { "summary": "New parent is not in the same table.", "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} }, - "Example 127": { + "Example 31": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} }, - "Example 128": { + "Example 32": { "summary": "New parent is withdrawn.", "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} } @@ -6641,7 +6641,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -6709,7 +6709,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -6795,7 +6795,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} } } }, @@ -6912,7 +6912,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"released","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"released","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -6924,18 +6924,18 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Invalid version state.", "description": "Only unreleased record versions can be released.", "value": {"message":"Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 47": { + "Example 11": { "summary": "Table is not version controlled.", "value": {"message":"Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 48": { + "Example 12": { "summary": "Parent is not released.", - "value": {"message":"Cannot release record version 'f81881b2-5eb0-4841-a92f-6ac6910696e8'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} + "value": {"message":"Cannot release record version 'efa34b75-3e92-4a8d-a65e-5373f7a03c25'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} } } } @@ -7002,7 +7002,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -7014,18 +7014,18 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Invalid version state.", "description": "A new version can only be created from the latest released or withdrawn record version.", "value": {"message":"Cannot create a new version from the record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Superseded'.","reason":"invalidVersionState","versionState":"superseded"}]} }, - "Example 47": { + "Example 11": { "summary": "Table is not version controlled.", "value": {"message":"Cannot create a new version from the record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} }, - "Example 48": { + "Example 12": { "summary": "Record version is not the latest version.", - "value": {"message":"Cannot create a new version from the record version '3d28bc74-aa4a-4518-8f33-a0e4f1fe540d'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"ab169fd7-b4fe-42e8-8f75-7428c73365de"}}]} + "value": {"message":"Cannot create a new version from the record version 'fb7b51d6-1795-46e6-b0a3-868c94a2db38'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"c97fba0d-0f3c-46db-b9ad-cb932b723fa4"}}]} } } } @@ -7092,7 +7092,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00+01:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00+01:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"withdrawn","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"withdrawn","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} } } }, @@ -7104,12 +7104,12 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Invalid version state.", "description": "Only released record versions can be withdrawn.", "value": {"message":"Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Unreleased'.","reason":"invalidVersionState","versionState":"unreleased"}]} }, - "Example 32": { + "Example 8": { "summary": "Table is not version controlled.", "value": {"message":"Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } @@ -7242,122 +7242,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 361": { + "Example 73": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 362": { + "Example 74": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} }, - "Example 363": { + "Example 75": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 364": { + "Example 76": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 365": { + "Example 77": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 366": { + "Example 78": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 367": { + "Example 79": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 368": { + "Example 80": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 369": { + "Example 81": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 370": { + "Example 82": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 371": { + "Example 83": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 372": { + "Example 84": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 373": { + "Example 85": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 374": { + "Example 86": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 375": { + "Example 87": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 376": { + "Example 88": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 377": { + "Example 89": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 378": { + "Example 90": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 379": { + "Example 91": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 380": { + "Example 92": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 381": { + "Example 93": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 382": { + "Example 94": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 383": { + "Example 95": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 384": { + "Example 96": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7369,122 +7369,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 361": { + "Example 73": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 362": { + "Example 74": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} }, - "Example 363": { + "Example 75": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 364": { + "Example 76": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 365": { + "Example 77": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 366": { + "Example 78": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 367": { + "Example 79": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 368": { + "Example 80": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 369": { + "Example 81": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 370": { + "Example 82": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 371": { + "Example 83": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 372": { + "Example 84": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 373": { + "Example 85": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 374": { + "Example 86": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 375": { + "Example 87": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 376": { + "Example 88": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 377": { + "Example 89": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 378": { + "Example 90": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 379": { + "Example 91": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 380": { + "Example 92": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 381": { + "Example 93": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 382": { + "Example 94": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 383": { + "Example 95": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 384": { + "Example 96": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7496,122 +7496,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 361": { + "Example 73": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 362": { + "Example 74": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} }, - "Example 363": { + "Example 75": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 364": { + "Example 76": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 365": { + "Example 77": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 366": { + "Example 78": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 367": { + "Example 79": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 368": { + "Example 80": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 369": { + "Example 81": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 370": { + "Example 82": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 371": { + "Example 83": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 372": { + "Example 84": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 373": { + "Example 85": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 374": { + "Example 86": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 375": { + "Example 87": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 376": { + "Example 88": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 377": { + "Example 89": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 378": { + "Example 90": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 379": { + "Example 91": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 380": { + "Example 92": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 381": { + "Example 93": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 382": { + "Example 94": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 383": { + "Example 95": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 384": { + "Example 96": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7623,122 +7623,122 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 361": { + "Example 73": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} }, - "Example 362": { + "Example 74": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"6b2118a0-126c-469d-9715-ff5076adaf12"} + "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} }, - "Example 363": { + "Example 75": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} }, - "Example 364": { + "Example 76": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} }, - "Example 365": { + "Example 77": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} }, - "Example 366": { + "Example 78": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} }, - "Example 367": { + "Example 79": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} }, - "Example 368": { + "Example 80": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} }, - "Example 369": { + "Example 81": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} }, - "Example 370": { + "Example 82": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} }, - "Example 371": { + "Example 83": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} }, - "Example 372": { + "Example 84": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} }, - "Example 373": { + "Example 85": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} }, - "Example 374": { + "Example 86": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} }, - "Example 375": { + "Example 87": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} }, - "Example 376": { + "Example 88": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} }, - "Example 377": { + "Example 89": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} }, - "Example 378": { + "Example 90": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} }, - "Example 379": { + "Example 91": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} }, - "Example 380": { + "Example 92": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} }, - "Example 381": { + "Example 93": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} }, - "Example 382": { + "Example 94": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} }, - "Example 383": { + "Example 95": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} }, - "Example 384": { + "Example 96": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} @@ -7756,22 +7756,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 305": { + "Example 65": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 306": { + "Example 66": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 307": { + "Example 67": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"b7acd73f-8851-4320-8f7a-5323d9389821"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"8805fc79-ee58-4f92-8e33-2323d63a916b"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 308": { + "Example 68": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7860,22 +7860,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 62": { + "Example 14": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 63": { + "Example 15": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"acd5ddc9-27e1-4d85-bad2-d4cd3544ae93"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"60aa67e1-1b7c-449d-a312-12388245a947"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 64": { + "Example 16": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -7930,72 +7930,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 211": { + "Example 43": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 212": { + "Example 44": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 213": { + "Example 45": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 214": { + "Example 46": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 215": { + "Example 47": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 216": { + "Example 48": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 217": { + "Example 49": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 218": { + "Example 50": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 219": { + "Example 51": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 220": { + "Example 52": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 221": { + "Example 53": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 222": { + "Example 54": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 223": { + "Example 55": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 224": { + "Example 56": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -8007,72 +8007,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 211": { + "Example 43": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 212": { + "Example 44": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 213": { + "Example 45": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 214": { + "Example 46": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 215": { + "Example 47": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 216": { + "Example 48": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 217": { + "Example 49": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 218": { + "Example 50": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 219": { + "Example 51": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 220": { + "Example 52": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 221": { + "Example 53": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 222": { + "Example 54": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 223": { + "Example 55": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 224": { + "Example 56": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -8084,72 +8084,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 211": { + "Example 43": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 212": { + "Example 44": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 213": { + "Example 45": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 214": { + "Example 46": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 215": { + "Example 47": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 216": { + "Example 48": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 217": { + "Example 49": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 218": { + "Example 50": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 219": { + "Example 51": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 220": { + "Example 52": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 221": { + "Example 53": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 222": { + "Example 54": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 223": { + "Example 55": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 224": { + "Example 56": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -8161,72 +8161,72 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 211": { + "Example 43": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","name":"Metals (updated)"} }, - "Example 212": { + "Example 44": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} }, - "Example 213": { + "Example 45": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} }, - "Example 214": { + "Example 46": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", "value": {"type":"discrete","defaultThresholdType":"equal"} }, - "Example 215": { + "Example 47": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"discrete","isMultiValued":true} }, - "Example 216": { + "Example 48": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true} }, - "Example 217": { + "Example 49": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true} }, - "Example 218": { + "Example 50": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} }, - "Example 219": { + "Example 51": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} }, - "Example 220": { + "Example 52": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} }, - "Example 221": { + "Example 53": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} }, - "Example 222": { + "Example 54": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} }, - "Example 223": { + "Example 55": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} }, - "Example 224": { + "Example 56": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} @@ -8244,22 +8244,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 309": { + "Example 69": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 310": { + "Example 70": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 311": { + "Example 71": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"2f107d04-b5e4-469d-be0c-4b48d90fc8bf"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"d1c157e9-ee4f-4586-b7ca-05a229776071"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 312": { + "Example 72": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -8472,22 +8472,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 313": { + "Example 73": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 314": { + "Example 74": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 315": { + "Example 75": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"f2c200d8-944d-45ca-bdd9-94d0c96019a7"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"22e7f42e-aaac-4627-89e0-b3e18270fb73"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 316": { + "Example 76": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -8542,22 +8542,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 63": { + "Example 15": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 64": { + "Example 16": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8569,22 +8569,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 63": { + "Example 15": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 64": { + "Example 16": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8596,22 +8596,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 63": { + "Example 15": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 64": { + "Example 16": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8623,22 +8623,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","name":"Notes (flammability)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} }, - "Example 63": { + "Example 15": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", "value": {"type":"longText","defaultThresholdType":"equal"} }, - "Example 64": { + "Example 16": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", "value": {"type":"longText","aboutAttribute":null} @@ -8656,22 +8656,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 317": { + "Example 77": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} }, - "Example 318": { + "Example 78": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} }, - "Example 319": { + "Example 79": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"bd3308f8-0960-472f-a11d-06b71726a7f4"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"e6fab379-2336-4407-813a-b3314bb5b8d9"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} }, - "Example 320": { + "Example 80": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} @@ -8733,7 +8733,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, - "example": {"message":"Cannot delete attribute 'Notes' (GUID = 'e13f9b7b-0d71-4935-a66c-44a64360a5b5').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"554fd7cf-061e-418d-8e57-5a4c5b31afaf"}]}]} + "example": {"message":"Cannot delete attribute 'Notes' (GUID = '56f9f0a2-a2b9-4cb5-88c0-d4a11df017a8').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"3e4cc3e0-f4bd-47e2-9729-956732691578"}]}]} } } }, @@ -9074,15 +9074,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 32": { + "Example 8": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} } } }, @@ -9091,15 +9091,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 32": { + "Example 8": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} } } }, @@ -9108,15 +9108,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 32": { + "Example 8": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} } } }, @@ -9125,15 +9125,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} }, - "Example 32": { + "Example 8": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"03972aea-543c-45b9-826e-d382d098b633"} + "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} } } } @@ -9266,12 +9266,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} }, - "Example 32": { + "Example 8": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9283,12 +9283,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} }, - "Example 32": { + "Example 8": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9300,12 +9300,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} }, - "Example 32": { + "Example 8": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9317,12 +9317,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"56beb644-91f4-4735-8192-baf510e748ce"} + "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} }, - "Example 32": { + "Example 8": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", "value": {"name":"examples (updated)"} @@ -9515,17 +9515,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 47": { + "Example 11": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} }, - "Example 48": { + "Example 12": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9537,17 +9537,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 47": { + "Example 11": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} }, - "Example 48": { + "Example 12": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9559,17 +9559,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 47": { + "Example 11": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} }, - "Example 48": { + "Example 12": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9581,17 +9581,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", "value": {"value":0.0072973525693,"name":"fine-structure constant"} }, - "Example 47": { + "Example 11": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"50e1f2b3-ebc8-4bd0-8122-08caa63c980b"} + "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} }, - "Example 48": { + "Example 12": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} @@ -9704,20 +9704,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 48": { + "Example 12": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} } } }, @@ -9726,20 +9726,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 48": { + "Example 12": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} } } }, @@ -9748,20 +9748,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 48": { + "Example 12": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} } } }, @@ -9770,20 +9770,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"ca804c45-5937-45f6-b68e-4ee08ec39487"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"characteristic impedance of vacuum"} }, - "Example 48": { + "Example 12": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"d8987a0e-fbf6-43c1-aae9-424f521925d1"} + "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} } } } @@ -9919,7 +9919,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9931,7 +9931,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9943,7 +9943,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -9955,7 +9955,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} @@ -10219,10 +10219,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10235,10 +10235,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10251,10 +10251,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10267,10 +10267,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"29f79b90-47cb-44c7-8c24-8ad53da3eca4","name":"MI Training (Updated)","guid":"804d73eb-1d44-4a3a-9499-62b07ac9f829"} + "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", @@ -10444,12 +10444,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 32": { + "Example 8": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10461,12 +10461,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 32": { + "Example 8": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10478,12 +10478,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 32": { + "Example 8": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10495,12 +10495,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", "value": {"isOrdered":true,"name":"Ordered Discrete Type"} }, - "Example 32": { + "Example 8": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", "value": {"isOrdered":false,"name":"Unordered Discrete Type"} @@ -10814,15 +10814,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 32": { + "Example 8": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} + "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} } } }, @@ -10831,15 +10831,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 32": { + "Example 8": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} + "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} } } }, @@ -10848,15 +10848,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 32": { + "Example 8": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} + "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} } } }, @@ -10865,15 +10865,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", "value": {"name":"New Discrete Value 1"} }, - "Example 32": { + "Example 8": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"152146e4-43a6-4f38-91ab-9c6f38f3de38"} + "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} } } } @@ -11277,7 +11277,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11289,7 +11289,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11301,7 +11301,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11313,7 +11313,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} @@ -11492,15 +11492,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} + "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} } } }, @@ -11509,15 +11509,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} + "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} } } }, @@ -11526,15 +11526,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} + "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} } } }, @@ -11543,15 +11543,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"2aec53fa-b096-47d0-bb12-da4a317311d3"} + "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} } } } @@ -11769,7 +11769,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11781,7 +11781,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11793,7 +11793,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11805,7 +11805,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -11884,19 +11884,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"f04c4d15-fc08-4c51-acb8-81df90b8d6c4"},{"name":"no-transform.xslt","guid":"cb2807eb-be1d-47b3-8559-1c372fd5b198"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"c8ae6f6c-62fd-45b2-bf73-8643969a6008"},{"name":"no-transform.xslt","guid":"a52f9d12-4876-48da-9736-477862e70ea3"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"f04c4d15-fc08-4c51-acb8-81df90b8d6c4"},{"name":"no-transform.xslt","guid":"cb2807eb-be1d-47b3-8559-1c372fd5b198"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"c8ae6f6c-62fd-45b2-bf73-8643969a6008"},{"name":"no-transform.xslt","guid":"a52f9d12-4876-48da-9736-477862e70ea3"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"f04c4d15-fc08-4c51-acb8-81df90b8d6c4"},{"name":"no-transform.xslt","guid":"cb2807eb-be1d-47b3-8559-1c372fd5b198"}]} + "example": {"files":[{"name":"exporter-1.exp","guid":"c8ae6f6c-62fd-45b2-bf73-8643969a6008"},{"name":"no-transform.xslt","guid":"a52f9d12-4876-48da-9736-477862e70ea3"}]} } } }, @@ -11964,19 +11964,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1471aaf1-ad4d-4981-ac21-a6e3ffb5f0da"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"fee3e0c9-f36b-4bc4-93c6-d9e378b80a83"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1471aaf1-ad4d-4981-ac21-a6e3ffb5f0da"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"fee3e0c9-f36b-4bc4-93c6-d9e378b80a83"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1471aaf1-ad4d-4981-ac21-a6e3ffb5f0da"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"fee3e0c9-f36b-4bc4-93c6-d9e378b80a83"} } } }, @@ -12035,19 +12035,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"42e4c0b6-cb88-4037-a5d6-b22f9a0acc84"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c046857a-2745-49ae-a221-e312d20d9cd3"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"42e4c0b6-cb88-4037-a5d6-b22f9a0acc84"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c046857a-2745-49ae-a221-e312d20d9cd3"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"42e4c0b6-cb88-4037-a5d6-b22f9a0acc84"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c046857a-2745-49ae-a221-e312d20d9cd3"} } } }, @@ -12097,20 +12097,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} + "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} } } }, @@ -12119,20 +12119,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} + "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} } } }, @@ -12141,20 +12141,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} + "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} } } }, @@ -12163,20 +12163,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", "value": {"description":"New description for Exporter file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"c6aa7856-3f8d-44eb-b782-f509075ba736"} + "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} } } } @@ -12190,19 +12190,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"97fa8c37-595c-4a16-b61c-62fa702ca0da"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"9d28834d-dde5-4b7f-974b-635e7561e371"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"97fa8c37-595c-4a16-b61c-62fa702ca0da"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"9d28834d-dde5-4b7f-974b-635e7561e371"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"97fa8c37-595c-4a16-b61c-62fa702ca0da"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"9d28834d-dde5-4b7f-974b-635e7561e371"} } } }, @@ -12351,7 +12351,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12363,7 +12363,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12375,7 +12375,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12387,7 +12387,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} @@ -12404,19 +12404,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c023d383-e87f-4e99-9158-3e521f838b13"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b4a2d047-2842-4031-afd7-d9d2f703cd82"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c023d383-e87f-4e99-9158-3e521f838b13"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b4a2d047-2842-4031-afd7-d9d2f703cd82"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c023d383-e87f-4e99-9158-3e521f838b13"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b4a2d047-2842-4031-afd7-d9d2f703cd82"} } } }, @@ -12491,7 +12491,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpressionsInfo" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Get all expressions", "description": "This example demonstrates the response to getting all expressions from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"expressions":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]} @@ -12537,17 +12537,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 47": { + "Example 11": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} }, - "Example 48": { + "Example 12": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12559,17 +12559,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 47": { + "Example 11": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} }, - "Example 48": { + "Example 12": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12581,17 +12581,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 47": { + "Example 11": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} }, - "Example 48": { + "Example 12": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12603,17 +12603,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} }, - "Example 47": { + "Example 11": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"10b02421-87be-4aba-a9e8-71a8c96170ad"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} }, - "Example 48": { + "Example 12": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} @@ -12631,7 +12631,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 47": { + "Example 11": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12720,7 +12720,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12775,12 +12775,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} }, - "Example 32": { + "Example 8": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12792,12 +12792,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} }, - "Example 32": { + "Example 8": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12809,12 +12809,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} }, - "Example 32": { + "Example 8": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12826,12 +12826,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"494d5307-17ed-4d3b-a896-036c43241562"} + "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} }, - "Example 32": { + "Example 8": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Fatigue Model (Updated)"} @@ -12849,7 +12849,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 48": { + "Example 12": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} @@ -12988,7 +12988,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -13000,7 +13000,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -13012,7 +13012,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -13024,7 +13024,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} @@ -13203,15 +13203,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} + "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} } } }, @@ -13220,15 +13220,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} + "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} } } }, @@ -13237,15 +13237,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} + "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} } } }, @@ -13254,15 +13254,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"d25a7c09-6681-40cd-b408-bd09168e4355"} + "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} } } } @@ -13430,7 +13430,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13442,7 +13442,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13454,7 +13454,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13466,7 +13466,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -13625,19 +13625,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"14046b01-6c9d-47f2-8923-ff94f3aefc1e"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3352fe04-6f74-4fe9-ab75-e8965491937d"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"14046b01-6c9d-47f2-8923-ff94f3aefc1e"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3352fe04-6f74-4fe9-ab75-e8965491937d"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"14046b01-6c9d-47f2-8923-ff94f3aefc1e"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3352fe04-6f74-4fe9-ab75-e8965491937d"} } } }, @@ -13758,20 +13758,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} + "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} } } }, @@ -13780,20 +13780,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} + "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} } } }, @@ -13802,20 +13802,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} + "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} } } }, @@ -13824,20 +13824,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", "value": {"description":"New description for help file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"907756e7-1fa8-4b3e-a419-aac25b804e0a"} + "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} } } } @@ -13851,19 +13851,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3f5da858-97c4-4dba-9fa4-a986347a4619"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"e4b4c9d0-4294-4f62-b6b0-dac5878b39c9"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3f5da858-97c4-4dba-9fa4-a986347a4619"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"e4b4c9d0-4294-4f62-b6b0-dac5878b39c9"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3f5da858-97c4-4dba-9fa4-a986347a4619"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"e4b4c9d0-4294-4f62-b6b0-dac5878b39c9"} } } }, @@ -14012,7 +14012,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -14024,7 +14024,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -14036,7 +14036,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -14048,7 +14048,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} @@ -14065,19 +14065,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"aaae592e-9fce-493c-8f9a-a0d033e32029"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"bdce48d9-768b-4231-872f-3c620208541c"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"aaae592e-9fce-493c-8f9a-a0d033e32029"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"bdce48d9-768b-4231-872f-3c620208541c"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"aaae592e-9fce-493c-8f9a-a0d033e32029"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"bdce48d9-768b-4231-872f-3c620208541c"} } } }, @@ -14118,19 +14118,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"376eed7c-7edf-416b-a2ab-c1175e1bf7de"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"56fedf02-4e4f-4c8e-abfc-494830fd5622"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"376eed7c-7edf-416b-a2ab-c1175e1bf7de"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"56fedf02-4e4f-4c8e-abfc-494830fd5622"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"376eed7c-7edf-416b-a2ab-c1175e1bf7de"}]} + "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"56fedf02-4e4f-4c8e-abfc-494830fd5622"}]} } } }, @@ -14162,7 +14162,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14174,7 +14174,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14186,7 +14186,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14198,7 +14198,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} @@ -14324,19 +14324,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e84ee05e-7051-41f8-ac39-f0df796118aa"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e677728f-204e-4581-ba38-193c0554d823"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e84ee05e-7051-41f8-ac39-f0df796118aa"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e677728f-204e-4581-ba38-193c0554d823"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e84ee05e-7051-41f8-ac39-f0df796118aa"} + "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e677728f-204e-4581-ba38-193c0554d823"} } } }, @@ -14377,15 +14377,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} + "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} } } }, @@ -14394,15 +14394,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} + "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} } } }, @@ -14411,15 +14411,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} + "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} } } }, @@ -14428,15 +14428,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", "value": {"name":"New Folder Name"} }, - "Example 32": { + "Example 8": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"c7331c04-9044-47e7-9337-7e0aca594bfa"} + "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} } } } @@ -14549,19 +14549,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0adcce10-c8f9-464a-b3e3-7230f61f8e69"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"1524a911-f7cd-45bc-a184-cff3a4658e17"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0adcce10-c8f9-464a-b3e3-7230f61f8e69"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"1524a911-f7cd-45bc-a184-cff3a4658e17"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"0adcce10-c8f9-464a-b3e3-7230f61f8e69"}]} + "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"1524a911-f7cd-45bc-a184-cff3a4658e17"}]} } } }, @@ -14604,7 +14604,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14616,7 +14616,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14628,7 +14628,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14640,7 +14640,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -14719,19 +14719,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"57090d9f-9dda-4c43-8685-c54b03a2c3eb"},{"name":"home-page-2.html","guid":"70474734-bf45-483f-ae44-af1c49a3fefb"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"81a89406-e547-439f-a3d8-e3928e41dfec"},{"name":"home-page-2.html","guid":"75595c67-e682-4267-96d9-33e9e9d6323c"}]} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"57090d9f-9dda-4c43-8685-c54b03a2c3eb"},{"name":"home-page-2.html","guid":"70474734-bf45-483f-ae44-af1c49a3fefb"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"81a89406-e547-439f-a3d8-e3928e41dfec"},{"name":"home-page-2.html","guid":"75595c67-e682-4267-96d9-33e9e9d6323c"}]} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"57090d9f-9dda-4c43-8685-c54b03a2c3eb"},{"name":"home-page-2.html","guid":"70474734-bf45-483f-ae44-af1c49a3fefb"}]} + "example": {"files":[{"name":"home-page-1.html","guid":"81a89406-e547-439f-a3d8-e3928e41dfec"},{"name":"home-page-2.html","guid":"75595c67-e682-4267-96d9-33e9e9d6323c"}]} } } }, @@ -14799,19 +14799,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b05b4590-45be-4fa1-951a-67177a91a83f"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1a08682f-e2c2-4b17-a967-7f804ea86916"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b05b4590-45be-4fa1-951a-67177a91a83f"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1a08682f-e2c2-4b17-a967-7f804ea86916"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b05b4590-45be-4fa1-951a-67177a91a83f"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1a08682f-e2c2-4b17-a967-7f804ea86916"} } } }, @@ -14870,19 +14870,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"f4787d06-95f7-4232-bb27-bed0c5cf7b42"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"bb2adfe8-3637-40af-8097-c2eacab65197"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"f4787d06-95f7-4232-bb27-bed0c5cf7b42"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"bb2adfe8-3637-40af-8097-c2eacab65197"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"f4787d06-95f7-4232-bb27-bed0c5cf7b42"} + "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"bb2adfe8-3637-40af-8097-c2eacab65197"} } } }, @@ -14932,20 +14932,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} + "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} } } }, @@ -14954,20 +14954,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} + "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} } } }, @@ -14976,20 +14976,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} + "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} } } }, @@ -14998,20 +14998,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", "value": {"name":"New File Name"} }, - "Example 47": { + "Example 11": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", "value": {"description":"New description for home page file."} }, - "Example 48": { + "Example 12": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"97df8231-fde8-4e7a-8912-f9563729cbb2"} + "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} } } } @@ -15025,19 +15025,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"08d07a66-4ff4-4a51-81c3-d2f9f523f65c"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1b22cbc9-1872-4017-ac68-9aaf651809bf"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"08d07a66-4ff4-4a51-81c3-d2f9f523f65c"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1b22cbc9-1872-4017-ac68-9aaf651809bf"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"08d07a66-4ff4-4a51-81c3-d2f9f523f65c"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1b22cbc9-1872-4017-ac68-9aaf651809bf"} } } }, @@ -15186,7 +15186,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15198,7 +15198,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15210,7 +15210,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15222,7 +15222,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} @@ -15239,19 +15239,19 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"53ee807e-db95-4d97-8c40-c6d98971abd3"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5310478e-f1e7-4c03-8063-4fa3f8797e64"} }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"53ee807e-db95-4d97-8c40-c6d98971abd3"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5310478e-f1e7-4c03-8063-4fa3f8797e64"} }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"53ee807e-db95-4d97-8c40-c6d98971abd3"} + "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5310478e-f1e7-4c03-8063-4fa3f8797e64"} } } }, @@ -15342,15 +15342,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSectionsInfo" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Get 'slim' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to false, which is the default value.", "value": {"layoutSections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} }, - "Example 32": { + "Example 8": { "summary": "Get 'full' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to true.", - "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"8de7939d-b788-493f-875a-e16cafa953c5","name":"Price","guid":"402fece9-eac7-4a1e-b82c-551193531d69"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"6eab3600-0502-4808-9739-9266912d9606","name":"Density","guid":"8dd20318-1d4e-4c11-a8bb-e289107e463b"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"8954bf07-b070-4842-bb9e-e0c180429219","name":"Young's modulus","guid":"acd474a8-ab0f-4d15-95e1-47fbd82d754c"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"1b052c88-71a2-449f-b867-a2f8402eaa7b","name":"Tensile strength","guid":"3994d4d6-fb1a-4734-af0a-6b5b1414240f"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"1c3eaee7-a47b-4edc-a22d-68fe3c5219c2","name":"Shape factor","guid":"459f802a-183e-46a7-bff0-7fa645286735"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} + "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"b8371b18-05c0-4e9d-9a70-60402c6d7459","name":"Price","guid":"d34bc175-09e5-4994-9938-9a8fece6c6e1"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"23dcaed8-4426-4e1b-8b4f-e5eaacdc638d","name":"Density","guid":"b4acce43-19c6-4faf-a1c8-a9ced7fbd60a"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"f302d607-6c76-48cf-ba3a-c9a3691cf304","name":"Young's modulus","guid":"d5f835b3-f215-4142-a0cb-eaae82de738b"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"045f9769-564f-4c63-bc0a-9cf8205d163e","name":"Tensile strength","guid":"528185e8-6dcf-4174-a7e2-8c90c9ada8b0"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"2aa1d9cd-0f6c-42ec-9d5f-62477962851d","name":"Shape factor","guid":"7cedcd2f-cf00-4837-976e-1ba58f720efe"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} } } } @@ -15402,15 +15402,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 32": { + "Example 8": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} + "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} } } }, @@ -15419,15 +15419,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 32": { + "Example 8": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} + "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} } } }, @@ -15436,15 +15436,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 32": { + "Example 8": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} + "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} } } }, @@ -15453,15 +15453,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Additional Properties"} }, - "Example 32": { + "Example 8": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"7e4de615-6b36-4b5b-84ad-911e29f114e8"} + "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} } } } @@ -15475,7 +15475,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayoutSection" }, - "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"bb3b0731-b5f3-4b9c-aacc-923c27e6db1a"} + "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"4cf4fc08-95d9-44e1-b5ff-5d7fba32ac4b"} } } }, @@ -15531,7 +15531,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15543,7 +15543,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15555,7 +15555,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15567,7 +15567,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} @@ -15684,15 +15684,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSection" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Get 'slim' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to false, which is the default value.", - "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"82eefe18-5953-4999-a420-96f29c38e9d8"} + "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"0884f021-9aae-471d-bbbc-e5dc350f0f15"} }, - "Example 32": { + "Example 8": { "summary": "Get 'full' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to true.", - "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"ffafb3bc-7522-4ca6-b794-02ee24477148","name":"Form","guid":"323131f9-dfe2-4cc3-99dc-88bce93553f1"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"4659d37b-64b3-47c5-b801-7bd8f11eb215","name":"Sources","guid":"ab5c7230-202a-4115-8fc9-7af785d3edd1"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"39ae9a50-2917-4106-a042-f8ea35148c3a","name":"Notes","guid":"89fab23f-e4db-4461-8750-d4de8c214b21"}],"underlyingEntityGuid":"3e50a9e2-318e-4f20-a84c-1017663848a1","name":"Chemical resistance","guid":"56a34491-92ca-4a29-91e1-ebb673f44003"},{"itemType":"link","linkType":"recordLink","targetDatabase":"b6acf438-7cc9-4a49-bc43-f4d025bdcfac","targetDatabaseVersion":"f0192012-6201-4c64-a5eb-7d0a5ba2d1f7","targetTable":"1eb0496e-9f25-47ab-adec-7ff09a675d7e","forwards":true,"underlyingEntityGuid":"8c2671d5-330a-4a50-af90-d0f73677148b","name":"Material Pedigree","guid":"4880546d-375f-422a-b9ef-f8cf505ecb1d"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"9da04eee-ea0f-4b41-b11d-b1fd4c281643","name":"Offset Yield Stress","guid":"bcfd1828-aa6b-40c0-9046-5e22c3091add"},{"columnType":"localShortText","tabularColumnGuid":"ae5c866e-08be-4ed7-b02b-076d8e666dcf","name":"Young's Modulus Notes","guid":"e911b37a-7070-49f4-b45a-98d05dda2991"}],"underlyingEntityGuid":"1f568621-4c94-4ee0-ad2a-e1b90347092f","name":"Reference Characteristics","guid":"f5164aa8-bae7-4ec5-8962-c32d9116da3c"},{"itemType":"link","linkType":"associationChain","targetDatabase":"b6acf438-7cc9-4a49-bc43-f4d025bdcfac","targetDatabaseVersion":"f0192012-6201-4c64-a5eb-7d0a5ba2d1f7","targetTable":"02eebddf-dcd6-4f31-823b-de607dff30e4","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"b6acf438-7cc9-4a49-bc43-f4d025bdcfac","targetDatabaseVersion":"f0192012-6201-4c64-a5eb-7d0a5ba2d1f7","targetTable":"84dfab00-cfae-46c0-96e4-0721df167357","forwards":false,"underlyingEntityGuid":"2eab036e-4e8c-42a0-9e90-183edefa2e25","name":"Pedigree information","guid":"b9e9f971-739e-41e3-b29e-7c74f7987bed"},"underlyingEntityGuid":"f0d06297-4690-4105-897d-628eff3c0095","name":"To Pedigree from Producers","guid":"2052ec1f-0609-4b38-b15e-0e9425fdb1ef"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"65534299-434e-4738-b1ed-ccd1ec24c7f1"} + "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"6d13ef13-419a-4a2a-a811-1d0accd602e5","name":"Form","guid":"2d8aa1ce-ed6d-4af8-86c2-3ca6dbbe6bb7"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"3b51b6f5-9033-482a-842e-bebbd220f584","name":"Sources","guid":"922bbd36-84a0-4d7a-9601-79aa2a8bb2da"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"7c55dd92-5ca1-42cb-b7a8-b07e9f35ffba","name":"Notes","guid":"015d40a2-056f-4f34-8da9-3fe4f3bae7f9"}],"underlyingEntityGuid":"913ef28e-3072-4fd5-afa7-fc4b9d61c812","name":"Chemical resistance","guid":"9d9bafcc-76a1-4db4-bdb1-4f8fd703c585"},{"itemType":"link","linkType":"recordLink","targetDatabase":"27464968-03e2-4bc4-a340-7ae7d97863c7","targetDatabaseVersion":"1fac547a-1944-4fcb-8ed0-10d6dc00beb4","targetTable":"b9ac9537-89fa-4fe6-ad20-30159ea1ac6a","forwards":true,"underlyingEntityGuid":"6245f184-8961-4fdd-bddf-b9233b1fa72d","name":"Material Pedigree","guid":"aaa6004f-aa2a-4724-9430-8a537021ca4f"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"418468df-dd65-458a-9d35-9a6f8f51e1dd","name":"Offset Yield Stress","guid":"9609e958-4381-4d64-ae8b-cc2c90422d78"},{"columnType":"localShortText","tabularColumnGuid":"72ba816f-3a5a-474d-a421-0d3b862100bc","name":"Young's Modulus Notes","guid":"5f023328-b08c-461f-b3a5-f205bea0ca6c"}],"underlyingEntityGuid":"5fd202c2-d98c-45e8-8228-b3fc10315612","name":"Reference Characteristics","guid":"fbcfb6ba-44bb-489b-ae6c-7efc0a8843ce"},{"itemType":"link","linkType":"associationChain","targetDatabase":"27464968-03e2-4bc4-a340-7ae7d97863c7","targetDatabaseVersion":"1fac547a-1944-4fcb-8ed0-10d6dc00beb4","targetTable":"75eb8a13-9ee9-4099-8584-a9dbaa9e7fb6","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"27464968-03e2-4bc4-a340-7ae7d97863c7","targetDatabaseVersion":"1fac547a-1944-4fcb-8ed0-10d6dc00beb4","targetTable":"6ee780b7-958c-42f0-855f-165b992a583e","forwards":false,"underlyingEntityGuid":"4d7f48cc-bd3e-4a46-b945-4fd5ded1ea7a","name":"Pedigree information","guid":"93e952c0-73fa-4308-b0fe-ccb03443b327"},"underlyingEntityGuid":"589d1b40-3a9d-4535-aefc-fd328b23ae75","name":"To Pedigree from Producers","guid":"dcce2dcc-9165-42bf-9d20-893e36cd4a54"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"03f2d003-bc25-45a1-88eb-84610774d324"} } } } @@ -15813,45 +15813,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 122": { + "Example 26": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 123": { + "Example 27": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 124": { + "Example 28": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 125": { + "Example 29": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 126": { + "Example 30": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 127": { + "Example 31": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} }, - "Example 128": { + "Example 32": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} } } }, @@ -15860,45 +15860,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 122": { + "Example 26": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 123": { + "Example 27": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 124": { + "Example 28": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 125": { + "Example 29": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 126": { + "Example 30": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 127": { + "Example 31": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} }, - "Example 128": { + "Example 32": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} } } }, @@ -15907,45 +15907,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 122": { + "Example 26": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 123": { + "Example 27": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 124": { + "Example 28": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 125": { + "Example 29": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 126": { + "Example 30": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 127": { + "Example 31": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} }, - "Example 128": { + "Example 32": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} } } }, @@ -15954,45 +15954,45 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} }, - "Example 122": { + "Example 26": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} }, - "Example 123": { + "Example 27": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} }, - "Example 124": { + "Example 28": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} }, - "Example 125": { + "Example 29": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} }, - "Example 126": { + "Example 30": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} }, - "Example 127": { + "Example 31": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"27097620-4cf9-42a9-9d46-ddb58feb3ab7","sourceTableGuid":"eeed35d5-827f-40a4-b036-f51a53ad3d20","linkGroupGuid":"96b1c8a0-5558-42d9-ba82-4e784b1b0733"} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} }, - "Example 128": { + "Example 32": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"730433b5-2feb-4b40-ab66-54ebffe2637f","tabularAttributeGuid":"9100e238-1113-4868-a129-d331b8610fa8"},{"forwards":false,"sourceDatabaseVersionGuid":"90dd3aa0-7fa8-4cfa-92c4-eaeac68802da","tabularAttributeGuid":"a45783a5-d922-459b-a3e5-cb1f2ef0e709"}]} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} } } } @@ -16007,40 +16007,40 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Layout Attribute Item", "description": "This example demonstrates the response to creating a new attribute layout item. It was created by adding the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"f280219f-e410-4e08-854a-ab1600c03888"} + "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"71867d59-6c3d-43ca-92fb-0b7ded903b5d"} }, - "Example 107": { + "Example 23": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates the response to creating a new attribute layout item with a meta-attribute. It was created by adding the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"81fc2713-4fce-4e6d-872a-d165dd7d0c2d"} + "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"7c9fa412-9395-46ae-80ef-5254a6c23cdb"} }, - "Example 108": { + "Example 24": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates the response to creating a new tabular attribute layout item with specified tabular columns to include. It was created by adding the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include. ", "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","required":false,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"],"guid":null} }, - "Example 109": { + "Example 25": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates the response to creating a new link group layout item. It was created by adding the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949","guid":null} }, - "Example 110": { + "Example 26": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates the response to creating a new smart link group layout item. It was created by adding the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66","guid":null} }, - "Example 111": { + "Example 27": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates the response to creating a new cross database link group layout item. It was created by adding a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8cf9c208-fe30-47e0-a9b2-8071bc13aed5","sourceTableGuid":"ba223015-b641-4274-aeae-437f3b2c3504","linkGroupGuid":"7f3ad308-d12e-45e4-98aa-d2edae89d8d5","guid":null} + "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"7b913c71-31dd-43e0-806b-a1f177dc77d3","sourceTableGuid":"148a3ab0-4b0e-4dd3-a1f5-1fa7c8ee3549","linkGroupGuid":"0f6175b5-201a-4e41-91b7-e7603022e6a4","guid":null} }, - "Example 112": { + "Example 28": { "summary": "Layout Association Chain Item", "description": "This example demonstrates the response to creating a new association chain layout item. It was created by adding a association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"22110405-6c37-45fa-b698-40aebe622938"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"fbe09b73-5cfb-4540-8599-3a73ebeb2a3e"}],"guid":null} + "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"030aafea-1cd3-4f6a-924a-194009cacbfa"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"7e732b6a-4871-4daf-9151-7801361d6110"}],"guid":null} } } } @@ -16226,15 +16226,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 32": { + "Example 8": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} + "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} } } }, @@ -16243,15 +16243,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 32": { + "Example 8": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} + "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} } } }, @@ -16260,15 +16260,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 32": { + "Example 8": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} + "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} } } }, @@ -16277,15 +16277,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Composite materials"} }, - "Example 32": { + "Example 8": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"f9066a96-10de-4ba9-8986-85fb1155fb8f"} + "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} } } } @@ -16299,7 +16299,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayout" }, - "example": {"displayNames":{},"name":"Ceramics","guid":"1b2a7da3-bcc6-4354-9840-c4ca4d64c9e5"} + "example": {"displayNames":{},"name":"Ceramics","guid":"86b5ba49-b6ab-4e1b-b238-59f19c3ed08f"} } } }, @@ -16390,15 +16390,15 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Layout with 'slim' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to false, which is the default value.", "value": {"sections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 32": { + "Example 8": { "summary": "Layout with 'full' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to true.", - "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"366ac3b9-c87d-48dc-b11b-716f30732b62","name":"Price","guid":"e9e3ad07-40bd-4333-8953-ac8431324d71"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"f86e9666-c6df-4896-9ec2-957006f33e50","name":"Density","guid":"f8921d32-fbba-494a-81da-cfbec0ebe309"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3b29920a-17a7-4e5f-8a4f-43d112f5aa36","name":"Young's modulus","guid":"4e52177a-20b5-44f2-93a5-b1650e6d5c1c"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"cf0f9a10-7eed-42d2-97d1-a5965f3158aa","name":"Tensile strength","guid":"83f752d3-c2b7-4520-9165-6fe39e0e47c3"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3848a1db-811d-44b8-b590-d78e86bf374c","name":"Shape factor","guid":"b49fcc53-c223-4282-8c76-7e9c09e9399f"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e29666e5-d1ae-40f3-a358-000db9a58fa7","name":"Price","guid":"26c7ffa2-7378-458a-bd83-0bced7308d5b"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"9263f637-d0cb-4193-88d3-05c13f053ac0","name":"Density","guid":"9791e667-2eea-46e3-9074-cc5fd0bd0c8e"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e7bf2634-66c0-4b4a-be5e-b2589256b86b","name":"Young's modulus","guid":"5b24e5a4-24a1-4fe6-9a47-ee2d28d73c15"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"60175935-e616-470d-a159-5aebf6d0bfd6","name":"Tensile strength","guid":"6e0c4274-ea28-47b7-af3b-a8dc653664e5"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3c6c6dc1-dc22-4d01-a353-5b27709579f2","name":"Shape factor","guid":"72b4cff7-4c6d-455e-99ba-8987876cf8de"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} } } } @@ -16450,12 +16450,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} + "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} }, - "Example 32": { + "Example 8": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16467,12 +16467,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} + "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} }, - "Example 32": { + "Example 8": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16484,12 +16484,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} + "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} }, - "Example 32": { + "Example 8": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16501,12 +16501,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"5e2c62b8-7b97-469c-9c00-092060d7e1d0"} + "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} }, - "Example 32": { + "Example 8": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} @@ -16613,7 +16613,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParametersInfo" }, "examples": { - "Example 16": { + "Example 4": { "summary": "A mix of parameters", "description": "This example contains a mix of numeric and discrete parameters from the MI_Training database.", "value": {"parameters":[{"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"},{"type":"numeric","isRestricted":false,"values":[{"type":"numeric","value":-1.0,"guid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94"},{"type":"numeric","value":0.0,"guid":"00000022-000b-4fff-8fff-0022ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain-ratio.html","defaultParameterValueGuid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94","displayNames":{"en":"Strain Ratio","fr":"Rapport de contrainte"},"name":"Strain Ratio","guid":"00000022-000a-4fff-8fff-0000ffff0000"},{"type":"discrete","values":[{"type":"discrete","name":"Mean","guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"type":"discrete","name":"A-basis","guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"},{"type":"discrete","name":"B-basis","guid":"9ba94816-6784-4848-bfa6-d24b12597a5b"}],"helpPath":"/help/basis.html","defaultParameterValueGuid":"21a27377-12eb-413c-bac4-d4ffceda39d1","displayNames":{"en":"Basis","fr":"Base"},"name":"Basis","guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}]} @@ -16650,27 +16650,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 77": { + "Example 17": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} }, - "Example 78": { + "Example 18": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 79": { + "Example 19": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 80": { + "Example 20": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16682,27 +16682,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 77": { + "Example 17": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} }, - "Example 78": { + "Example 18": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 79": { + "Example 19": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 80": { + "Example 20": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16714,27 +16714,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 77": { + "Example 17": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} }, - "Example 78": { + "Example 18": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 79": { + "Example 19": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 80": { + "Example 20": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16746,27 +16746,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} }, - "Example 77": { + "Example 17": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"0d4e41f2-391f-4cd8-b797-fc5748841ed6"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"804d141b-4241-403c-85e8-871af9e46111"} + "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} }, - "Example 78": { + "Example 18": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} }, - "Example 79": { + "Example 19": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} }, - "Example 80": { + "Example 20": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} @@ -16874,37 +16874,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} }, - "Example 107": { + "Example 23": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} }, - "Example 108": { + "Example 24": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} + "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} }, - "Example 109": { + "Example 25": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 110": { + "Example 26": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} }, - "Example 111": { + "Example 27": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 112": { + "Example 28": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16916,37 +16916,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} }, - "Example 107": { + "Example 23": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} }, - "Example 108": { + "Example 24": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} + "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} }, - "Example 109": { + "Example 25": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 110": { + "Example 26": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} }, - "Example 111": { + "Example 27": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 112": { + "Example 28": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -16958,37 +16958,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} }, - "Example 107": { + "Example 23": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} }, - "Example 108": { + "Example 24": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} + "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} }, - "Example 109": { + "Example 25": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 110": { + "Example 26": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} }, - "Example 111": { + "Example 27": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 112": { + "Example 28": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -17000,37 +17000,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"57d8c231-1d82-478a-a757-cb729ca7beb1"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} }, - "Example 107": { + "Example 23": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"1713de76-22e7-4c28-b016-d03b618c7908"} + "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} }, - "Example 108": { + "Example 24": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"b3af9949-f311-4b13-aaca-c816b3932067"} + "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} }, - "Example 109": { + "Example 25": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", "value": {"type":"discrete","name":"Strain (Updated)"} }, - "Example 110": { + "Example 26": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"0d7a1b2c-b768-4d2e-a889-a28051251ebf"} + "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} }, - "Example 111": { + "Example 27": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", "value": {"type":"numeric","unit":null} }, - "Example 112": { + "Example 28": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} @@ -17247,20 +17247,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} }, - "Example 47": { + "Example 11": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} }, - "Example 48": { + "Example 12": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} + "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} } } }, @@ -17269,20 +17269,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} }, - "Example 47": { + "Example 11": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} }, - "Example 48": { + "Example 12": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} + "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} } } }, @@ -17291,20 +17291,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} }, - "Example 47": { + "Example 11": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} }, - "Example 48": { + "Example 12": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} + "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} } } }, @@ -17313,20 +17313,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"b5c55c7f-5b62-4309-9472-bc1525fe2249"} + "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} }, - "Example 47": { + "Example 11": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"c2b07b72-af70-404e-8f34-0e62949f8cfd"} + "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} }, - "Example 48": { + "Example 12": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"7ba6c76d-ab3d-49b4-b764-804a0795ac91"} + "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} } } } @@ -17446,12 +17446,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 32": { + "Example 8": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17463,12 +17463,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 32": { + "Example 8": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17480,12 +17480,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 32": { + "Example 8": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17497,12 +17497,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"value":10.0,"type":"numeric","name":"Cold"} }, - "Example 32": { + "Example 8": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", "value": {"type":"discrete","name":"Heavy water"} @@ -17572,22 +17572,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 62": { + "Example 14": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 63": { + "Example 15": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 64": { + "Example 16": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17599,22 +17599,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 62": { + "Example 14": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 63": { + "Example 15": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 64": { + "Example 16": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17626,22 +17626,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 62": { + "Example 14": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 63": { + "Example 15": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 64": { + "Example 16": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17653,22 +17653,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} }, - "Example 62": { + "Example 14": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", "value": {"defaultProfile":null} }, - "Example 63": { + "Example 15": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} }, - "Example 64": { + "Example 16": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} @@ -17713,20 +17713,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 47": { + "Example 11": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} + "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} }, - "Example 48": { + "Example 12": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} } } }, @@ -17735,20 +17735,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 47": { + "Example 11": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} + "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} }, - "Example 48": { + "Example 12": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} } } }, @@ -17757,20 +17757,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 47": { + "Example 11": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} + "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} }, - "Example 48": { + "Example 12": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} } } }, @@ -17779,20 +17779,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", "value": {"name":"MI:Training Processes"} }, - "Example 47": { + "Example 11": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"5dc04ef3-fc9b-4c81-ab91-d34630897ada"} + "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} }, - "Example 48": { + "Example 12": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"7ea20055-7b0f-46c9-9205-86f38aeb8b2e"} + "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} } } } @@ -17881,20 +17881,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} + "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} }, - "Example 47": { + "Example 11": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17903,20 +17903,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} + "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} }, - "Example 47": { + "Example 11": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17925,20 +17925,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} + "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} }, - "Example 47": { + "Example 11": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } }, @@ -17947,20 +17947,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"41cd6600-f164-4352-acb1-ded882eb3991"} + "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} }, - "Example 47": { + "Example 11": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"name":"MI:Training Metals (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"06bd2460-0381-4592-b60b-e266b0661997","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} } } } @@ -18084,20 +18084,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 47": { + "Example 11": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} }, - "Example 48": { + "Example 12": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} } } }, @@ -18106,20 +18106,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 47": { + "Example 11": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} }, - "Example 48": { + "Example 12": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} } } }, @@ -18128,20 +18128,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 47": { + "Example 11": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} }, - "Example 48": { + "Example 12": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} } } }, @@ -18150,20 +18150,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} }, - "Example 47": { + "Example 11": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"b712f3f5-a740-41e9-aab8-b1274718773c"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} }, - "Example 48": { + "Example 12": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"2d4d0369-31b1-4afa-b7d9-dba4a5546e7a"} + "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} } } } @@ -18273,20 +18273,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} }, - "Example 47": { + "Example 11": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 48": { + "Example 12": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} + "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} } } }, @@ -18295,20 +18295,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} }, - "Example 47": { + "Example 11": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 48": { + "Example 12": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} + "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} } } }, @@ -18317,20 +18317,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} }, - "Example 47": { + "Example 11": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 48": { + "Example 12": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} + "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} } } }, @@ -18339,20 +18339,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"8a2f6da0-ec18-4ac9-9a5b-b337da8a6fc9"} + "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} }, - "Example 47": { + "Example 11": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": {"subsetGuid":null,"layoutGuid":null} }, - "Example 48": { + "Example 12": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"891c5f17-253a-4c80-8184-c86bf43c4dcc"} + "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} } } } @@ -18478,7 +18478,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"ab25659b-3346-4938-b2c9-e0e4c5db690a"}]} + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"2b8a40a4-e0f3-4820-a8be-0d70aa3e96a9"}]} } } }, @@ -18519,35 +18519,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 92": { + "Example 20": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} }, - "Example 93": { + "Example 21": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 94": { + "Example 22": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} }, - "Example 95": { + "Example 23": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 96": { + "Example 24": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} } } }, @@ -18556,35 +18556,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 92": { + "Example 20": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} }, - "Example 93": { + "Example 21": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 94": { + "Example 22": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} }, - "Example 95": { + "Example 23": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 96": { + "Example 24": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} } } }, @@ -18593,35 +18593,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 92": { + "Example 20": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} }, - "Example 93": { + "Example 21": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 94": { + "Example 22": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} }, - "Example 95": { + "Example 23": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 96": { + "Example 24": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} } } }, @@ -18630,35 +18630,35 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 91": { + "Example 19": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} }, - "Example 92": { + "Example 20": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"eb56b3d4-5061-46a9-8322-c53817c8b728"} + "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} }, - "Example 93": { + "Example 21": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"f37d9d67-e75c-4217-992d-54b6c83ddd9d"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} }, - "Example 94": { + "Example 22": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"7ea0228a-dcb7-450c-8369-7e21993bf460","tableGuid":"7648ccb6-d213-41a9-af30-49410b8ff531"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"06622032-b6c9-4d05-ad80-8145a0c32847"} + "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} }, - "Example 95": { + "Example 23": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} }, - "Example 96": { + "Example 24": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"5edb6ae3-52bf-455d-9c87-2b1906b4d6e3"} + "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} } } } @@ -18673,17 +18673,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 139": { + "Example 31": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 140": { + "Example 32": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"f693fc39-754d-49f3-b543-6824c8056ff1","tableGuid":"dd6d0ffc-1841-4fcb-93b1-c150df237176"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"7b857048-c009-4eb0-bc1e-e5c514e36900"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"53c65c5e-e7a4-4642-a37a-413116581335","tableGuid":"b97990f9-92b2-4de1-ada3-e2aea940e645"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"1db65b9b-c008-408b-9dac-e8bb93389166"} }, - "Example 141": { + "Example 33": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -18762,7 +18762,7 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"3d5724d6-eb0f-4440-b3f9-3d30cf539f8b"}]} + "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"eecf990c-1e0f-471e-a2ff-85422054ca0d"}]} } } }, @@ -18854,17 +18854,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 47": { + "Example 11": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"31ec22cc-633f-48cd-afb8-5e0d6f5dcb3b","tableGuid":"b094687b-074f-472b-bded-d9363662d240"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"925f726b-328c-49cd-8927-4c4a3d09590a"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"ef292629-5ae3-448f-a39e-38c5522e33c2","tableGuid":"608f1889-84ef-433f-8103-a9024ae1288c"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"0ce7f6ed-beda-4507-b870-a77bc155428d"} }, - "Example 48": { + "Example 12": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -18981,30 +18981,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} + "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} }, - "Example 77": { + "Example 17": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 78": { + "Example 18": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} }, - "Example 79": { + "Example 19": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} }, - "Example 80": { + "Example 20": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} } } }, @@ -19013,30 +19013,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} + "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} }, - "Example 77": { + "Example 17": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 78": { + "Example 18": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} }, - "Example 79": { + "Example 19": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} }, - "Example 80": { + "Example 20": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} } } }, @@ -19045,30 +19045,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} + "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} }, - "Example 77": { + "Example 17": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 78": { + "Example 18": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} }, - "Example 79": { + "Example 19": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} }, - "Example 80": { + "Example 20": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} } } }, @@ -19077,30 +19077,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"87398dff-ecc8-494a-ae7d-b36d7512cb6b"} + "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} }, - "Example 77": { + "Example 17": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} }, - "Example 78": { + "Example 18": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"c7c784ef-8f51-46e7-8fb4-ad11979c445b"} + "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} }, - "Example 79": { + "Example 19": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"1fe2f6ae-cc4d-4147-8620-131ab752da66"} + "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} }, - "Example 80": { + "Example 20": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"6efe0827-c548-402f-8bf1-78163c979e94"} + "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} } } } @@ -19115,17 +19115,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 142": { + "Example 34": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} }, - "Example 143": { + "Example 35": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"e0029b55-b283-49db-ab2f-a08084634653","tableGuid":"070f4801-491c-41ad-b084-cf18bde6cc25"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"9ab986b4-d4d7-488d-9b52-f6837a558fae"} + "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"1ce1f8ca-3da0-4232-91a0-ee94c4b937a4","tableGuid":"87d7a1ab-97db-452e-9d03-5e1e85b24e2c"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"4e2c0b7e-0743-49cf-9e24-ca9421c21ce1"} }, - "Example 144": { + "Example 36": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} @@ -19202,27 +19202,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 77": { + "Example 17": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 78": { + "Example 18": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 79": { + "Example 19": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} }, - "Example 80": { + "Example 20": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19234,27 +19234,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 77": { + "Example 17": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 78": { + "Example 18": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 79": { + "Example 19": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} }, - "Example 80": { + "Example 20": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19266,27 +19266,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 77": { + "Example 17": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 78": { + "Example 18": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 79": { + "Example 19": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} }, - "Example 80": { + "Example 20": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19298,27 +19298,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 76": { + "Example 16": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} }, - "Example 77": { + "Example 17": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} }, - "Example 78": { + "Example 18": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} }, - "Example 79": { + "Example 19": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"be4527ce-6c43-4f96-bee1-c573308e3ea7"}],"name":"Unification"} + "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} }, - "Example 80": { + "Example 20": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} @@ -19424,22 +19424,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} + "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} }, - "Example 63": { + "Example 15": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 64": { + "Example 16": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19451,22 +19451,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} + "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} }, - "Example 63": { + "Example 15": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 64": { + "Example 16": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19478,22 +19478,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} + "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} }, - "Example 63": { + "Example 15": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 64": { + "Example 16": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19505,22 +19505,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"name":"Density (Updated)"} }, - "Example 62": { + "Example 14": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"1634321c-d644-4ed1-811e-aa3f8fec13d3"} + "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} }, - "Example 63": { + "Example 15": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} }, - "Example 64": { + "Example 16": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} @@ -19691,17 +19691,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 47": { + "Example 11": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} + "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} }, - "Example 48": { + "Example 12": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19713,17 +19713,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 47": { + "Example 11": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} + "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} }, - "Example 48": { + "Example 12": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19735,17 +19735,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 47": { + "Example 11": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} + "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} }, - "Example 48": { + "Example 12": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19757,17 +19757,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Alloys"} }, - "Example 47": { + "Example 11": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"dc8e3ce1-c53e-428c-bf50-d0317caea896"} + "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} }, - "Example 48": { + "Example 12": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} @@ -19917,22 +19917,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} }, - "Example 62": { + "Example 14": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 63": { + "Example 15": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 64": { + "Example 16": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19944,22 +19944,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} }, - "Example 62": { + "Example 14": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 63": { + "Example 15": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 64": { + "Example 16": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19971,22 +19971,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} }, - "Example 62": { + "Example 14": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 63": { + "Example 15": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 64": { + "Example 16": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -19998,22 +19998,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 61": { + "Example 13": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"daea1718-de7c-467e-aae0-d5d157ddf010"} + "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} }, - "Example 62": { + "Example 14": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"Ceramics (Updated)"} }, - "Example 63": { + "Example 15": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} }, - "Example 64": { + "Example 16": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"associatedLayout":null} @@ -20137,12 +20137,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 32": { + "Example 8": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20154,12 +20154,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 32": { + "Example 8": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20171,12 +20171,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 32": { + "Example 8": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20188,12 +20188,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} }, - "Example 32": { + "Example 8": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} @@ -20260,7 +20260,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20272,7 +20272,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20284,7 +20284,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20296,7 +20296,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} @@ -20402,17 +20402,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 47": { + "Example 11": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} }, - "Example 48": { + "Example 12": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20424,17 +20424,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 47": { + "Example 11": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} }, - "Example 48": { + "Example 12": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20446,17 +20446,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 47": { + "Example 11": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} }, - "Example 48": { + "Example 12": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20468,17 +20468,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} }, - "Example 47": { + "Example 11": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"cb5195f7-caa1-4291-ae2c-e16f3a644161"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} }, - "Example 48": { + "Example 12": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} @@ -20610,37 +20610,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} }, - "Example 107": { + "Example 23": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 108": { + "Example 24": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 109": { + "Example 25": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 110": { + "Example 26": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 111": { + "Example 27": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 112": { + "Example 28": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20652,37 +20652,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} }, - "Example 107": { + "Example 23": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 108": { + "Example 24": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 109": { + "Example 25": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 110": { + "Example 26": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 111": { + "Example 27": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 112": { + "Example 28": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20694,37 +20694,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} }, - "Example 107": { + "Example 23": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 108": { + "Example 24": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 109": { + "Example 25": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 110": { + "Example 26": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 111": { + "Example 27": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 112": { + "Example 28": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20736,37 +20736,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 106": { + "Example 22": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"59b83b1f-fc23-4f1c-be40-b80c76aa1bbd"} + "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} }, - "Example 107": { + "Example 23": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromBrowse":true} }, - "Example 108": { + "Example 24": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"isHiddenFromSearch":false} }, - "Example 109": { + "Example 25": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} }, - "Example 110": { + "Example 26": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultSubsetGuid":null} }, - "Example 111": { + "Example 27": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} }, - "Example 112": { + "Example 28": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"defaultLayoutGuid":null} @@ -20893,12 +20893,12 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Invalid version state.", "description": "A table can only be released if it is currently unreleased.", "value": {"message":"Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} }, - "Example 32": { + "Example 8": { "summary": "Table is not version controlled.", "value": {"message":"Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} } @@ -21454,10 +21454,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} + "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} } } }, @@ -21466,10 +21466,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} + "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} } } }, @@ -21478,10 +21478,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} + "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} } } }, @@ -21490,10 +21490,10 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 16": { + "Example 4": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"40baf2ce-5e3e-4466-8aaa-5c4ae55a4a91"} + "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} } } } @@ -21596,20 +21596,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} + "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} + "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} } } }, @@ -21618,20 +21618,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} + "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} + "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} } } }, @@ -21640,20 +21640,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} + "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} + "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} } } }, @@ -21662,20 +21662,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 46": { + "Example 10": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"31b54b9f-7153-4099-90b5-fdb7323c9bb7"} + "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} }, - "Example 47": { + "Example 11": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": {"name":"UK Imperial (Updated)"} }, - "Example 48": { + "Example 12": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"4404ac2e-0d6a-4f15-969c-5d542cf6a55c"} + "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} } } } @@ -21800,137 +21800,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -21942,137 +21942,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22084,137 +22084,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22226,137 +22226,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["b5c9c591-6ed3-4849-8f42-ebfdb2d8c129","eea286a9-bd03-42c7-b219-b78c9ca1e266"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22445,137 +22445,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22587,137 +22587,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22729,137 +22729,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -22871,137 +22871,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["e35c24c4-cce4-4fdd-a8e2-4eb45d29aab3","3efc684c-005b-4955-bbf9-ae28f1ac0e2a"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23081,137 +23081,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23223,137 +23223,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23365,137 +23365,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23507,137 +23507,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 811": { + "Example 163": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 812": { + "Example 164": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 813": { + "Example 165": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 814": { + "Example 166": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 815": { + "Example 167": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 816": { + "Example 168": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 817": { + "Example 169": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 818": { + "Example 170": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 819": { + "Example 171": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 820": { + "Example 172": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["bcd15fcb-fa12-4303-aa15-bb4b2bdb506c","938eb932-29fa-4079-bacb-efedee590ead"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 821": { + "Example 173": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 822": { + "Example 174": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 823": { + "Example 175": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 824": { + "Example 176": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 825": { + "Example 177": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 826": { + "Example 178": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 827": { + "Example 179": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 828": { + "Example 180": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 829": { + "Example 181": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 830": { + "Example 182": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 831": { + "Example 183": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 832": { + "Example 184": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 833": { + "Example 185": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 834": { + "Example 186": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 835": { + "Example 187": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 836": { + "Example 188": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 837": { + "Example 189": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23694,137 +23694,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23836,137 +23836,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -23978,137 +23978,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -24120,137 +24120,137 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 838": { + "Example 190": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 839": { + "Example 191": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} }, - "Example 840": { + "Example 192": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} }, - "Example 841": { + "Example 193": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} }, - "Example 842": { + "Example 194": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 843": { + "Example 195": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 844": { + "Example 196": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} }, - "Example 845": { + "Example 197": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 846": { + "Example 198": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} }, - "Example 847": { + "Example 199": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["34bcef75-0789-4d0a-8451-3479074bb298","68d6f337-1c2d-49b6-9c36-725b7124c15b"],"type":"recordListMember"},"sortCriteria":[]} + "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} }, - "Example 848": { + "Example 200": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} }, - "Example 849": { + "Example 201": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 850": { + "Example 202": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} }, - "Example 851": { + "Example 203": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} }, - "Example 852": { + "Example 204": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 853": { + "Example 205": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 854": { + "Example 206": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 855": { + "Example 207": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 856": { + "Example 208": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 857": { + "Example 209": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 858": { + "Example 210": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 859": { + "Example 211": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 860": { + "Example 212": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 861": { + "Example 213": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} }, - "Example 862": { + "Example 214": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} }, - "Example 863": { + "Example 215": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} }, - "Example 864": { + "Example 216": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} @@ -27418,6 +27418,9 @@ }, "isEstimated": { "type": "boolean" + }, + "isRange": { + "type": "boolean" } }, "additionalProperties": false, @@ -27487,9 +27490,6 @@ "isLogarithmic": { "type": "boolean" }, - "isRange": { - "type": "boolean" - }, "showAsTable": { "type": "boolean" } From a5229a517776b62bc2bc11dab7d4431ca6b8f65c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:20:04 +0100 Subject: [PATCH 17/31] Bump idna from 3.4 to 3.7 in /ansys-grantami-serverapi-openapi (#169) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- ansys-grantami-serverapi-openapi/poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 8b4708e5..25dd62f7 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -277,13 +277,13 @@ test = ["pytest (>=6)"] [[package]] name = "idna" -version = "3.4" +version = "3.7" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.5" files = [ - {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, - {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"}, + {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, + {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, ] [[package]] From e6353046114fb25e5534f7802a570c980bc7cc8e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 13:23:53 +0100 Subject: [PATCH 18/31] Bump pytest from 8.0.2 to 8.1.1 in /ansys-grantami-serverapi-openapi (#162) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- ansys-grantami-serverapi-openapi/poetry.lock | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 25dd62f7..4cc4a4ab 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -368,13 +368,13 @@ files = [ [[package]] name = "pluggy" -version = "1.3.0" +version = "1.4.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" files = [ - {file = "pluggy-1.3.0-py3-none-any.whl", hash = "sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7"}, - {file = "pluggy-1.3.0.tar.gz", hash = "sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12"}, + {file = "pluggy-1.4.0-py3-none-any.whl", hash = "sha256:7db9f7b503d67d1c5b95f59773ebb58a8c1c288129a88665838012cfb07b8981"}, + {file = "pluggy-1.4.0.tar.gz", hash = "sha256:8c85c2876142a764e5b7548e7d9a0e0ddb46f5185161049a79b7e974454223be"}, ] [package.extras] @@ -441,13 +441,13 @@ yaml = ["ruamel.yaml"] [[package]] name = "pytest" -version = "8.0.2" +version = "8.1.1" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.8" files = [ - {file = "pytest-8.0.2-py3-none-any.whl", hash = "sha256:edfaaef32ce5172d5466b5127b42e0d6d35ebbe4453f0e3505d96afd93f6b096"}, - {file = "pytest-8.0.2.tar.gz", hash = "sha256:d4051d623a2e0b7e51960ba963193b09ce6daeb9759a451844a21e4ddedfc1bd"}, + {file = "pytest-8.1.1-py3-none-any.whl", hash = "sha256:2a8386cfc11fa9d2c50ee7b2a57e7d898ef90470a7a34c4b949ff59662bb78b7"}, + {file = "pytest-8.1.1.tar.gz", hash = "sha256:ac978141a75948948817d360297b7aae0fcb9d6ff6bc9ec6d514b85d5a65c044"}, ] [package.dependencies] @@ -455,11 +455,11 @@ colorama = {version = "*", markers = "sys_platform == \"win32\""} exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" -pluggy = ">=1.3.0,<2.0" -tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} +pluggy = ">=1.4,<2.0" +tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] -testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +testing = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] [[package]] name = "python-dateutil" From c73d1e60c5e49eb18aee17dec068807f602dfe38 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 13:30:13 +0100 Subject: [PATCH 19/31] Bump requests-mock from 1.11.0 to 1.12.1 in /ansys-grantami-serverapi-openapi (#164) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- ansys-grantami-serverapi-openapi/poetry.lock | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 4cc4a4ab..4d63659e 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -521,22 +521,20 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] [[package]] name = "requests-mock" -version = "1.11.0" +version = "1.12.1" description = "Mock out responses from the requests package" optional = false -python-versions = "*" +python-versions = ">=3.5" files = [ - {file = "requests-mock-1.11.0.tar.gz", hash = "sha256:ef10b572b489a5f28e09b708697208c4a3b2b89ef80a9f01584340ea357ec3c4"}, - {file = "requests_mock-1.11.0-py2.py3-none-any.whl", hash = "sha256:f7fae383f228633f6bececebdab236c478ace2284d6292c6e7e2867b9ab74d15"}, + {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"}, ] [package.dependencies] -requests = ">=2.3,<3" -six = "*" +requests = ">=2.22,<3" [package.extras] fixture = ["fixtures"] -test = ["fixtures", "mock", "purl", "pytest", "requests-futures", "sphinx", "testtools"] [[package]] name = "requests-negotiate-sspi" From f3c21553c1a4cfcdc603a0956abec48a928f8241 Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Wed, 17 Apr 2024 04:38:58 -0400 Subject: [PATCH 20/31] Update root files (#170) --- AUTHORS | 16 ++++++++++++++++ AUTHORS.md => CONTRIBUTORS.md | 6 ++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 AUTHORS rename AUTHORS.md => CONTRIBUTORS.md (53%) diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 00000000..b8a3e3f6 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,16 @@ +# This is the list of GRANTA MI RecordLists API significant contributors. +# +# This file does not necessarily list everyone who has contributed code, +# especially since many employees of one corporation may be contributing. +# To see the full list of contributors, see the revision history in +# source control. +# +# For contributions made under a Corporate CLA, then the copyright +# belongs to that organization. +# +# If a contribution was made under an Individual CLA, the submitter +# has indicated that they own the copyright. If that is your case, and +# you want to be added to this file, please submit a request. +# +# +ANSYS, Inc. diff --git a/AUTHORS.md b/CONTRIBUTORS.md similarity index 53% rename from AUTHORS.md rename to CONTRIBUTORS.md index d9ae2d50..cc3f1a4b 100644 --- a/AUTHORS.md +++ b/CONTRIBUTORS.md @@ -1,10 +1,8 @@ -# Authors - -## Project Lead or Owner +## Project Lead * [Andy Grigg](https://github.com/Andy-Grigg) ## Contributors * [Doug Addy](https://github.com/da1910) -* [Ludovic Steinbach](https://github.com/ludovicsteinbach) \ No newline at end of file +* [Ludovic Steinbach](https://github.com/ludovicsteinbach) From 960967b3643570ddb639b445472ac30d44d7ec38 Mon Sep 17 00:00:00 2001 From: Andy Grigg Date: Wed, 17 Apr 2024 10:21:52 -0400 Subject: [PATCH 21/31] Fix AUTHORS project name (#172) --- AUTHORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index b8a3e3f6..ad2280c9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,4 +1,4 @@ -# This is the list of GRANTA MI RecordLists API significant contributors. +# This is the list of GRANTA MI Server API Client significant contributors. # # This file does not necessarily list everyone who has contributed code, # especially since many employees of one corporation may be contributing. From 6fe59463272c60b58659fc2fa98fe40aa71242b7 Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Thu, 18 Apr 2024 08:28:45 -0400 Subject: [PATCH 22/31] Add pre-commit config and run in CI (#177) Co-authored-by: ludovicsteinbach --- .github/dependabot.yml | 2 +- .github/workflows/generate_library.yml | 9 +- .isort.cfg | 6 + .m2/settings.xml | 2 +- .pre-commit-config.yaml | 31 ++ README.md | 14 +- .../pyproject.toml | 2 +- .../grantami/serverapi_openapi/__init__.py | 266 +++++--------- .../serverapi_openapi/api/__init__.py | 28 +- .../serverapi_openapi/api/aggregation_api.py | 79 ++--- .../serverapi_openapi/api/data_api.py | 53 +-- .../serverapi_openapi/api/data_export_api.py | 55 +-- .../serverapi_openapi/api/database_api.py | 81 ++--- .../api/help_location_api.py | 59 ++-- .../serverapi_openapi/api/integration_api.py | 117 +++---- .../serverapi_openapi/api/job_queue_api.py | 231 ++++-------- .../serverapi_openapi/api/license_api.py | 67 ++-- .../serverapi_openapi/api/list_item_api.py | 59 ++-- .../api/list_management_api.py | 169 +++------ .../api/list_permissions_api.py | 75 ++-- .../serverapi_openapi/api/metrics_api.py | 48 +-- .../api/records___record_histories_api.py | 132 +++---- .../api/records___record_versions_api.py | 53 +-- .../api/schema___attributes_api.py | 144 +++----- .../api/schema___configurations_api.py | 106 +++--- .../api/schema___constants_api.py | 79 ++--- .../api/schema___data_rules_api.py | 71 ++-- .../api/schema___databases_api.py | 97 +++-- ...___discrete_types___discrete_values_api.py | 114 +++--- .../api/schema___discrete_types_api.py | 83 ++--- .../api/schema___exporters_api.py | 96 ++--- .../api/schema___expressions_api.py | 73 ++-- .../api/schema___help_files_api.py | 88 ++--- .../api/schema___home_pages_api.py | 88 ++--- .../api/schema___layout_sections_api.py | 102 ++---- .../api/schema___layouts_api.py | 75 ++-- .../api/schema___parameters_api.py | 156 +++------ .../api/schema___profile_tables_api.py | 79 ++--- .../api/schema___profiles_api.py | 124 +++---- .../api/schema___record_link_groups_api.py | 102 +++--- .../api/schema___standard_names_api.py | 79 ++--- .../api/schema___subsets_api.py | 89 ++--- .../api/schema___tables_api.py | 95 +++-- .../api/schema___units_api.py | 167 +++------ .../serverapi_openapi/api/schema_api.py | 45 ++- .../serverapi_openapi/api/search_api.py | 99 ++---- .../api/selection_searches_api.py | 116 +++--- .../serverapi_openapi/api/status_api.py | 53 +-- .../serverapi_openapi/models/__init__.py | 330 ++++++------------ .../models/folderguid_files_body.py | 36 +- .../models/folderguid_files_body1.py | 36 +- .../models/folderguid_files_body2.py | 36 +- ...cord_property_fake_attribute_identities.py | 60 +++- .../granta_server_api_admin_mi_version.py | 48 +-- ...nta_server_api_aggregations_aggregation.py | 36 +- ..._api_aggregations_aggregation_criterion.py | 36 +- ...rver_api_aggregations_aggregation_datum.py | 36 +- ...ggregations_aggregation_datum_criterion.py | 36 +- ...ions_aggregation_datum_exists_criterion.py | 40 ++- ...r_api_aggregations_aggregations_request.py | 44 ++- ..._api_aggregations_aggregations_response.py | 47 ++- ..._api_aggregations_attribute_aggregation.py | 49 ++- ...gations_attribute_aggregation_criterion.py | 49 ++- ..._attribute_aggregation_exists_criterion.py | 53 +-- ...s_attribute_aggregation_value_criterion.py | 49 ++- ...gregations_attribute_exists_aggregation.py | 49 ++- ...ggregations_attribute_value_aggregation.py | 66 ++-- ...rver_api_aggregations_calendar_interval.py | 24 +- ..._api_aggregations_date_time_aggregation.py | 45 ++- ...s_date_time_aggregation_datum_criterion.py | 45 ++- ...h_histogram_aggregation_datum_criterion.py | 49 ++- ...h_histogram_aggregation_datum_criterion.py | 44 ++- ...er_api_aggregations_date_time_histogram.py | 36 +- ...gations_date_time_histogram_aggregation.py | 56 +-- ...e_histogram_aggregation_datum_criterion.py | 45 ++- ...aggregations_date_time_histogram_bucket.py | 36 +- ..._aggregations_discrete_text_aggregation.py | 52 +-- ...screte_text_aggregation_datum_criterion.py | 45 ++- ...gregations_float_functional_aggregation.py | 41 ++- ..._functional_aggregation_datum_criterion.py | 45 ++- ...float_functional_grid_graph_aggregation.py | 68 ++-- ...oat_functional_series_graph_aggregation.py | 52 +-- ..._api_aggregations_free_text_aggregation.py | 45 ++- ...gations_free_text_aggregation_criterion.py | 49 ++- ...ranta_server_api_aggregations_histogram.py | 45 ++- ...erver_api_aggregations_histogram_bucket.py | 36 +- ...er_api_aggregations_integer_aggregation.py | 45 ++- ...ons_integer_aggregation_datum_criterion.py | 45 ++- ...h_histogram_aggregation_datum_criterion.py | 44 ++- ...regations_integer_histogram_aggregation.py | 45 ++- ...r_histogram_aggregation_datum_criterion.py | 45 ++- ...erver_api_aggregations_link_aggregation.py | 45 ++- ...ations_link_aggregation_datum_criterion.py | 53 +-- ...i_aggregations_local_column_aggregation.py | 44 ++- ...ions_local_column_aggregation_criterion.py | 40 ++- ...cal_column_aggregation_exists_criterion.py | 57 +-- ...ocal_column_aggregation_value_criterion.py | 53 +-- ...gations_local_column_exists_aggregation.py | 49 ++- ...egations_local_column_value_aggregation.py | 66 ++-- ...er_api_aggregations_logical_aggregation.py | 49 ++- ...ons_logical_aggregation_datum_criterion.py | 45 ++- ...rver_api_aggregations_point_aggregation.py | 45 ++- ...tions_point_aggregation_datum_criterion.py | 45 ++- ...h_histogram_aggregation_datum_criterion.py | 44 ++- ...ggregations_point_histogram_aggregation.py | 41 ++- ...t_histogram_aggregation_datum_criterion.py | 45 ++- ...rver_api_aggregations_range_aggregation.py | 45 ++- ...tions_range_aggregation_datum_criterion.py | 45 ++- ...h_histogram_aggregation_datum_criterion.py | 44 ++- ...ggregations_range_histogram_aggregation.py | 41 ++- ...e_histogram_aggregation_datum_criterion.py | 45 ++- ...api_aggregations_short_text_aggregation.py | 56 +-- ..._short_text_aggregation_datum_criterion.py | 45 ++- ...server_api_aggregations_term_with_count.py | 36 +- ...ions_value_with_count_of_system_boolean.py | 40 ++- ...gations_value_with_count_of_system_guid.py | 36 +- ...ations_value_with_count_of_system_int32.py | 40 ++- .../granta_server_api_all_values_specifier.py | 41 ++- ...r_api_app_name_license_checkout_request.py | 36 +- ..._api_app_name_license_checkout_response.py | 39 ++- ...er_api_app_name_license_checkout_result.py | 36 +- ...erver_api_async_jobs_create_job_request.py | 40 ++- ...anta_server_api_async_jobs_current_user.py | 36 +- ...server_api_async_jobs_get_jobs_response.py | 44 ++- .../granta_server_api_async_jobs_job.py | 64 ++-- ...granta_server_api_async_jobs_job_status.py | 24 +- ...server_api_async_jobs_processing_config.py | 36 +- ...ver_api_async_jobs_resubmit_job_request.py | 36 +- ...erver_api_async_jobs_update_job_request.py | 40 ++- .../granta_server_api_attribute_type.py | 24 +- ...granta_server_api_data_applicable_datum.py | 41 ++- .../granta_server_api_data_date_time_datum.py | 41 ++- .../models/granta_server_api_data_datum.py | 36 +- .../granta_server_api_data_datum_type.py | 24 +- .../granta_server_api_data_discrete_datum.py | 45 ++- ..._api_data_discrete_parameter_with_value.py | 49 ++- ...ver_api_data_export_attribute_to_export.py | 36 +- ...ver_api_data_export_data_export_request.py | 49 ++- ...er_api_data_export_data_export_response.py | 36 +- ...api_data_export_datums_applicable_datum.py | 45 ++- ...rver_api_data_export_datums_binary_data.py | 36 +- ...er_api_data_export_datums_boolean_datum.py | 45 ++- ..._api_data_export_datums_date_time_datum.py | 45 ++- ...nta_server_api_data_export_datums_datum.py | 53 +-- ...r_api_data_export_datums_discrete_datum.py | 53 +-- ...export_datums_discrete_functional_datum.py | 58 +-- ...t_datums_discrete_functional_grid_datum.py | 45 ++- ...datums_discrete_functional_series_datum.py | 48 ++- ..._data_export_datums_discrete_grid_point.py | 36 +- ..._api_data_export_datums_discrete_series.py | 36 +- ...ata_export_datums_discrete_series_point.py | 36 +- ...erver_api_data_export_datums_file_datum.py | 56 +-- ...ta_export_datums_float_functional_datum.py | 54 +-- ...ata_export_datums_functional_grid_datum.py | 54 +-- ...a_export_datums_functional_series_datum.py | 52 +-- ...api_data_export_datums_graph_decoration.py | 24 +- ...erver_api_data_export_datums_grid_point.py | 36 +- ...server_api_data_export_datums_hyperlink.py | 40 ++- ..._api_data_export_datums_hyperlink_datum.py | 53 +-- ...erver_api_data_export_datums_link_datum.py | 45 ++- ...data_export_datums_linked_records_datum.py | 95 +++-- ..._api_data_export_datums_long_text_datum.py | 45 ++- ...data_export_datums_not_applicable_datum.py | 49 ++- ...er_api_data_export_datums_numeric_datum.py | 45 ++- ..._api_data_export_datums_parameter_value.py | 40 ++- ...er_api_data_export_datums_picture_datum.py | 56 +-- ...nta_server_api_data_export_datums_point.py | 36 +- ...rver_api_data_export_datums_point_datum.py | 58 +-- ...nta_server_api_data_export_datums_range.py | 52 +-- ...rver_api_data_export_datums_range_datum.py | 49 ++- ...export_datums_rollup_count_rollup_datum.py | 41 ++- ...port_datums_rollup_numeric_rollup_datum.py | 45 ++- ..._data_export_datums_rollup_rollup_datum.py | 44 ++- ...export_datums_rollup_value_rollup_datum.py | 41 ++- ...xport_datums_rollup_values_rollup_datum.py | 45 ++- ...ta_server_api_data_export_datums_series.py | 52 +-- ...ver_api_data_export_datums_series_point.py | 36 +- ...api_data_export_datums_short_text_datum.py | 45 ++- ...er_api_data_export_datums_tabular_datum.py | 45 ++- ...rver_api_data_export_datums_tabular_row.py | 52 +-- ...er_api_data_export_datums_unknown_datum.py | 41 ++- ...xport_failures_attribute_export_failure.py | 60 ++-- ...ort_export_failures_attribute_reference.py | 44 ++- ...rt_export_failures_datum_export_failure.py | 45 ++- ..._export_export_failures_datum_reference.py | 52 +-- ...a_export_export_failures_export_failure.py | 36 +- ...ort_export_failures_export_failure_type.py | 24 +- ...ort_export_failures_link_export_failure.py | 45 ++- ...a_export_export_failures_link_reference.py | 40 ++- ...t_export_failures_record_export_failure.py | 52 +-- ...t_export_failures_rollup_export_failure.py | 45 ++- ...export_export_failures_rollup_reference.py | 48 +-- ...pi_data_export_link_attribute_to_export.py | 98 +++--- ...ta_export_linked_record_export_behavior.py | 63 ++-- ...ata_export_parameter_setting_defined_at.py | 24 +- ...ort_properties_created_by_user_property.py | 45 ++- ...export_properties_created_date_property.py | 45 ++- ...export_properties_database_key_property.py | 45 ++- ...ta_export_properties_full_name_property.py | 41 ++- ...operties_last_modified_by_user_property.py | 49 ++- ..._properties_last_modified_date_property.py | 53 +-- ...ver_api_data_export_properties_property.py | 36 +- ...export_properties_record_color_property.py | 49 ++- ..._export_properties_record_guid_property.py | 41 ++- ...properties_record_history_guid_property.py | 53 +-- ...erties_record_history_identity_property.py | 53 +-- ...ort_properties_record_identity_property.py | 45 ++- ..._export_properties_record_type_property.py | 45 ++- ...xport_properties_released_date_property.py | 45 ++- ...a_export_properties_short_name_property.py | 41 ++- ...a_export_properties_table_guid_property.py | 41 ++- ...port_properties_table_identity_property.py | 45 ++- ...a_export_properties_table_name_property.py | 41 ++- ...port_properties_version_number_property.py | 45 ++- ...xport_properties_version_state_property.py | 45 ++- ...server_api_data_export_record_with_data.py | 55 +-- ..._data_export_simple_attribute_to_export.py | 57 +-- ...data_export_tabular_row_export_behavior.py | 24 +- .../granta_server_api_data_file_datum.py | 49 ++- .../granta_server_api_data_hyperlink_datum.py | 41 ++- ...granta_server_api_data_hyperlink_target.py | 24 +- .../granta_server_api_data_integer_datum.py | 41 ++- .../granta_server_api_data_logical_datum.py | 41 ++- .../granta_server_api_data_long_text_datum.py | 45 ++- ...ta_server_api_data_not_applicable_datum.py | 41 ++- ...r_api_data_numeric_parameter_with_value.py | 49 ++- ...ta_server_api_data_parameter_with_value.py | 40 ++- .../granta_server_api_data_picture_datum.py | 41 ++- ...granta_server_api_data_point_data_value.py | 52 +-- .../granta_server_api_data_point_datum.py | 41 ++- .../granta_server_api_data_range_datum.py | 65 ++-- .../granta_server_api_data_rich_text_type.py | 24 +- .../granta_server_api_data_rich_text_value.py | 36 +- ...granta_server_api_data_short_text_datum.py | 41 ++- ...erver_api_data_significant_figures_info.py | 55 +-- .../granta_server_api_database_status.py | 24 +- ..._server_api_database_status_information.py | 52 +-- .../granta_server_api_discrete_value.py | 36 +- .../models/granta_server_api_disk_status.py | 24 +- ...fication_data_modification_error_detail.py | 36 +- ...n_in_use_data_modification_error_detail.py | 48 ++- ...ns_data_modification_referenced_by_type.py | 24 +- ...s_deletion_attribute_deletion_exception.py | 40 ++- ...ns_deletion_constant_deletion_exception.py | 40 ++- ...letion_discrete_type_deletion_exception.py | 40 ++- ...etion_discrete_value_deletion_exception.py | 40 ++- ...s_deletion_parameter_deletion_exception.py | 40 ++- ...tion_parameter_value_deletion_exception.py | 40 ++- ...tions_deletion_table_deletion_exception.py | 40 ++- ...anta_server_api_exceptions_error_detail.py | 36 +- ...d_history_record_history_copy_exception.py | 51 +-- ...d_history_record_history_move_exception.py | 51 +-- ...fiable_record_version_control_exception.py | 47 ++- ...ntrol_invalid_parent_state_error_detail.py | 41 ++- ...trol_invalid_version_state_error_detail.py | 41 ++- ...rol_not_the_latest_version_error_detail.py | 41 ++- ...sion_control_not_versioned_error_detail.py | 45 ++- ...elease_record_version_control_exception.py | 47 ++- ...release_table_version_control_exception.py | 47 ++- ...on_control_version_control_error_detail.py | 40 ++- ...thdraw_record_version_control_exception.py | 47 ++- ...nta_server_api_exclude_values_specifier.py | 45 ++- ...ver_api_functional_datum_parameter_info.py | 79 ++--- .../granta_server_api_index_record_failure.py | 52 +-- .../granta_server_api_indirect_links.py | 24 +- ..._export_integration_data_export_request.py | 67 ++-- ...ntegration_data_export_record_reference.py | 44 ++- ...i_integration_integration_schema_status.py | 68 ++-- ...server_api_integration_schema_attribute.py | 52 +-- ...er_api_integration_schema_discrete_type.py | 36 +- ..._of_granta_server_api_object_identifier.py | 40 ++- ...ma_guid_only_schema_guid_only_attribute.py | 56 +-- ...uid_only_schema_guid_only_discrete_type.py | 36 +- ...ma_guid_only_integration_parameter_info.py | 78 ++--- ..._of_granta_server_api_object_identifier.py | 64 ++-- ...chema_guid_only_schema_guid_only_layout.py | 44 ++- ..._of_granta_server_api_object_identifier.py | 43 ++- ..._of_granta_server_api_object_identifier.py | 44 ++- ...ation_schema_integration_parameter_info.py | 75 ++-- ...egration_schema_generation_error_detail.py | 39 ++- ..._of_granta_server_api_object_identifier.py | 78 ++--- ...ta_server_api_integration_schema_layout.py | 40 ++- ...api_integration_schema_link_source_type.py | 24 +- ..._of_granta_server_api_object_identifier.py | 54 +-- ..._api_integration_schema_security_groups.py | 36 +- ..._of_granta_server_api_object_identifier.py | 55 +-- .../granta_server_api_link_attribute_type.py | 24 +- ...a_server_api_lists_dto_create_list_item.py | 44 ++- ...server_api_lists_dto_create_record_list.py | 51 +-- ...lists_dto_create_record_list_items_info.py | 36 +- ...r_api_lists_dto_delete_record_list_item.py | 44 ++- ..._api_lists_dto_delete_record_list_items.py | 36 +- ...er_api_lists_dto_list_boolean_criterion.py | 63 ++-- ...nta_server_api_lists_dto_list_criterion.py | 36 +- .../granta_server_api_lists_dto_list_item.py | 44 ++- ...nta_server_api_lists_dto_paging_options.py | 36 +- ...server_api_lists_dto_record_list_header.py | 80 ++--- ..._api_lists_dto_record_list_headers_info.py | 36 +- ...er_api_lists_dto_record_list_items_info.py | 36 +- ..._lists_dto_record_list_permission_flags.py | 40 ++- ..._lists_dto_record_list_search_criterion.py | 76 ++-- ...r_api_lists_dto_record_list_search_info.py | 44 ++- ...pi_lists_dto_record_list_search_request.py | 63 ++-- ...api_lists_dto_record_list_search_result.py | 36 +- ...sts_dto_record_list_search_results_info.py | 36 +- ...a_server_api_lists_dto_response_options.py | 56 +-- ...dto_update_record_list_permission_flags.py | 44 ++- ...lists_dto_update_record_list_properties.py | 40 ++- ...er_api_lists_dto_update_user_permission.py | 48 +-- ..._lists_dto_update_user_permissions_info.py | 40 ++- ...anta_server_api_lists_dto_user_or_group.py | 36 +- ...ta_server_api_lists_dto_user_permission.py | 52 +-- ...ver_api_lists_dto_user_permissions_info.py | 40 ++- .../granta_server_api_lists_dto_user_role.py | 24 +- ...r_api_metrics_get_jobs_summary_response.py | 47 ++- ..._server_api_metrics_job_type_and_status.py | 36 +- .../granta_server_api_no_values_specifier.py | 41 ++- .../granta_server_api_object_identifier.py | 36 +- .../granta_server_api_parameter_info.py | 71 ++-- ...r_api_parameter_info_interpolation_type.py | 24 +- ...erver_api_parameter_info_parameter_type.py | 24 +- ...ta_server_api_parameter_info_scale_type.py | 24 +- .../models/granta_server_api_record_color.py | 24 +- .../granta_server_api_record_property.py | 24 +- .../models/granta_server_api_record_type.py | 24 +- ...ds_record_histories_copy_record_history.py | 51 +-- ..._record_histories_create_record_history.py | 57 +-- ...ds_record_histories_move_record_history.py | 40 ++- ...records_record_histories_record_history.py | 64 ++-- ...tories_record_property_inheritance_type.py | 24 +- ...ds_record_histories_slim_record_history.py | 40 ++- ..._records_record_versions_record_version.py | 56 +-- ...rds_record_versions_slim_record_version.py | 36 +- ..._server_api_schema_attributes_attribute.py | 62 ++-- ...ema_attributes_attribute_attribute_info.py | 86 ++--- ...tributes_attribute_interpolation_method.py | 24 +- ..._schema_attributes_attribute_scale_type.py | 24 +- ...ema_attributes_attribute_threshold_type.py | 24 +- ..._attributes_attribute_validate_response.py | 48 +-- ...r_api_schema_attributes_attributes_info.py | 36 +- ...utes_create_attributes_create_attribute.py | 57 +-- ...e_attributes_create_date_time_attribute.py | 44 ++- ...te_attributes_create_discrete_attribute.py | 48 ++- ...es_create_discrete_functional_attribute.py | 56 +-- ...discrete_functional_attribute_parameter.py | 40 ++- ...create_attributes_create_file_attribute.py | 41 ++- ...butes_create_float_functional_attribute.py | 60 ++-- ...te_float_functional_attribute_parameter.py | 61 ++-- ...e_attributes_create_hyperlink_attribute.py | 44 ++- ...ate_attributes_create_integer_attribute.py | 41 ++- ...ate_attributes_create_logical_attribute.py | 41 ++- ...e_attributes_create_long_text_attribute.py | 44 ++- ...butes_create_maths_functional_attribute.py | 64 ++-- ...ate_attributes_create_picture_attribute.py | 41 ++- ...reate_attributes_create_point_attribute.py | 49 ++- ...reate_attributes_create_range_attribute.py | 49 ++- ..._attributes_create_short_text_attribute.py | 55 +-- ...ate_attributes_create_tabular_attribute.py | 70 ++-- ...i_schema_attributes_date_time_attribute.py | 45 ++- ...pi_schema_attributes_discrete_attribute.py | 45 ++- ...ttributes_discrete_functional_attribute.py | 53 +-- ...discrete_functional_attribute_parameter.py | 47 ++- ...er_api_schema_attributes_file_attribute.py | 45 ++- ...a_attributes_float_functional_attribute.py | 57 +-- ...es_float_functional_attribute_parameter.py | 72 ++-- ...i_schema_attributes_hyperlink_attribute.py | 45 ++- ...api_schema_attributes_integer_attribute.py | 45 ++- ...api_schema_attributes_logical_attribute.py | 45 ++- ...i_schema_attributes_long_text_attribute.py | 45 ++- ...ver_api_schema_attributes_maths_content.py | 73 ++-- ...a_attributes_maths_functional_attribute.py | 88 +++-- ...api_schema_attributes_picture_attribute.py | 45 ++- ...r_api_schema_attributes_point_attribute.py | 68 ++-- ...r_api_schema_attributes_range_attribute.py | 49 ++- ..._schema_attributes_short_text_attribute.py | 56 +-- ...api_schema_attributes_tabular_attribute.py | 86 +++-- ...ema_attributes_tabular_attribute_target.py | 60 ++-- ...utes_update_attributes_update_attribute.py | 57 +-- ...e_attributes_update_date_time_attribute.py | 44 ++- ...te_attributes_update_discrete_attribute.py | 44 ++- ...es_update_discrete_functional_attribute.py | 48 ++- ...discrete_functional_attribute_parameter.py | 47 ++- ...update_attributes_update_file_attribute.py | 41 ++- ...butes_update_float_functional_attribute.py | 56 +-- ...te_float_functional_attribute_parameter.py | 57 +-- ...e_attributes_update_hyperlink_attribute.py | 44 ++- ...ate_attributes_update_integer_attribute.py | 41 ++- ...ate_attributes_update_logical_attribute.py | 41 ++- ...e_attributes_update_long_text_attribute.py | 44 ++- ..._update_attributes_update_maths_content.py | 78 ++--- ...butes_update_maths_functional_attribute.py | 67 ++-- ...ate_attributes_update_picture_attribute.py | 41 ++- ...pdate_attributes_update_point_attribute.py | 49 ++- ...pdate_attributes_update_range_attribute.py | 49 ++- ..._attributes_update_short_text_attribute.py | 55 +-- ...ate_attributes_update_tabular_attribute.py | 57 +-- ...a_attributes_validate_attribute_request.py | 44 ++- ...api_schema_configurations_configuration.py | 36 +- ...hema_configurations_configurations_info.py | 40 ++- ...ema_configurations_create_configuration.py | 40 ++- ...ema_configurations_update_configuration.py | 40 ++- ...ta_server_api_schema_constants_constant.py | 40 ++- ...ver_api_schema_constants_constants_info.py | 36 +- ...er_api_schema_constants_create_constant.py | 36 +- ...er_api_schema_constants_update_constant.py | 36 +- ..._api_schema_data_rules_create_data_rule.py | 44 ++- ..._server_api_schema_data_rules_data_rule.py | 59 ++-- ...r_api_schema_data_rules_data_rules_info.py | 49 ++- ..._api_schema_data_rules_update_data_rule.py | 40 ++- .../granta_server_api_schema_database.py | 44 ++- ...granta_server_api_schema_databases_info.py | 36 +- ...ema_discrete_types_create_discrete_type.py | 36 +- ...api_schema_discrete_types_discrete_type.py | 36 +- ...hema_discrete_types_discrete_types_info.py | 40 ++- ...ema_discrete_types_update_discrete_type.py | 36 +- ...a_discrete_values_create_discrete_value.py | 40 ++- ...i_schema_discrete_values_discrete_value.py | 36 +- ...ma_discrete_values_discrete_values_info.py | 36 +- ...ete_values_replace_discrete_values_info.py | 44 ++- ...a_discrete_values_update_discrete_value.py | 40 ++- ...pi_schema_expressions_create_expression.py | 44 ++- ...erver_api_schema_expressions_expression.py | 97 +++-- ...api_schema_expressions_expressions_info.py | 40 ++- ...pi_schema_expressions_update_expression.py | 44 ++- ...a_server_api_schema_files_create_folder.py | 36 +- ..._api_schema_files_exporter_refetch_info.py | 36 +- ...nta_server_api_schema_files_file_header.py | 36 +- ...anta_server_api_schema_files_files_info.py | 49 ++- .../granta_server_api_schema_files_folder.py | 36 +- ...ta_server_api_schema_files_folders_info.py | 44 ++- ...ranta_server_api_schema_files_move_file.py | 36 +- ...nta_server_api_schema_files_move_folder.py | 36 +- ...nta_server_api_schema_files_update_file.py | 36 +- ...a_server_api_schema_files_update_folder.py | 36 +- ...server_api_schema_layouts_create_layout.py | 36 +- ...pi_schema_layouts_create_layout_section.py | 36 +- ..._api_schema_layouts_full_layout_section.py | 57 +-- ...granta_server_api_schema_layouts_layout.py | 40 ++- ...pi_schema_layouts_layout_attribute_item.py | 57 +-- ...a_server_api_schema_layouts_layout_item.py | 44 ++- ...pi_schema_layouts_layout_item_link_type.py | 24 +- ...ver_api_schema_layouts_layout_item_type.py | 24 +- ...ver_api_schema_layouts_layout_link_item.py | 61 ++-- ...erver_api_schema_layouts_layout_section.py | 36 +- ...hema_layouts_layout_section_detail_type.py | 24 +- ...api_schema_layouts_layout_sections_info.py | 36 +- ...pi_schema_layouts_layout_tabular_column.py | 44 ++- ..._server_api_schema_layouts_layouts_info.py | 39 ++- ...youts_new_layout_association_chain_item.py | 61 ++-- ...youts_new_layout_association_chain_link.py | 52 +-- ...chema_layouts_new_layout_attribute_item.py | 45 ++- ...uts_new_layout_cross_database_link_item.py | 61 ++-- ...rver_api_schema_layouts_new_layout_item.py | 36 +- ...api_schema_layouts_new_layout_item_type.py | 24 +- ...ema_layouts_new_layout_record_link_item.py | 41 ++- ...hema_layouts_new_layout_smart_link_item.py | 45 ++- ...pi_schema_layouts_reorder_sections_info.py | 36 +- ...server_api_schema_layouts_update_layout.py | 36 +- ..._api_schema_parameters_continuous_range.py | 36 +- ...ma_parameters_create_discrete_parameter.py | 52 +-- ...ameters_create_discrete_parameter_value.py | 45 ++- ...ema_parameters_create_numeric_parameter.py | 76 ++-- ...rameters_create_numeric_parameter_value.py | 45 ++- ..._api_schema_parameters_create_parameter.py | 40 ++- ...chema_parameters_create_parameter_value.py | 36 +- ...pi_schema_parameters_discrete_parameter.py | 49 ++- ...a_parameters_discrete_parameter_content.py | 48 ++- ...ema_parameters_discrete_parameter_value.py | 41 ++- ...er_api_schema_parameters_discrete_range.py | 44 ++- ...api_schema_parameters_numeric_parameter.py | 76 ++-- ...ma_parameters_numeric_parameter_content.py | 45 ++- ...hema_parameters_numeric_parameter_value.py | 41 ++- ..._server_api_schema_parameters_parameter.py | 40 ++- ...api_schema_parameters_parameter_content.py | 40 ++- ...parameters_parameter_interpolation_type.py | 24 +- ..._schema_parameters_parameter_scale_type.py | 24 +- ...er_api_schema_parameters_parameter_type.py | 24 +- ...r_api_schema_parameters_parameter_value.py | 36 +- ..._schema_parameters_parameter_value_type.py | 24 +- ...r_api_schema_parameters_parameters_info.py | 39 ++- ...hema_parameters_update_continuous_range.py | 36 +- ...ma_parameters_update_discrete_parameter.py | 45 ++- ...eters_update_discrete_parameter_content.py | 58 +-- ...ameters_update_discrete_parameter_value.py | 45 ++- ...schema_parameters_update_discrete_range.py | 40 ++- ...ema_parameters_update_numeric_parameter.py | 66 ++-- ...meters_update_numeric_parameter_content.py | 45 ++- ...rameters_update_numeric_parameter_value.py | 45 ++- ..._api_schema_parameters_update_parameter.py | 40 ++- ...ema_parameters_update_parameter_content.py | 40 ++- ...chema_parameters_update_parameter_value.py | 36 +- ...ema_profile_tables_create_profile_table.py | 36 +- ...api_schema_profile_tables_profile_table.py | 48 +-- ...hema_profile_tables_profile_tables_info.py | 36 +- ...ema_profile_tables_update_profile_table.py | 36 +- ...r_api_schema_profiles_all_profiles_info.py | 49 ++- ...rver_api_schema_profiles_create_profile.py | 36 +- ...anta_server_api_schema_profiles_profile.py | 40 ++- ...chema_profiles_update_all_profiles_info.py | 39 ++- ..._schema_profiles_update_default_profile.py | 36 +- ...rver_api_schema_profiles_update_profile.py | 36 +- ..._record_link_groups_attribute_link_pair.py | 46 ++- ..._link_groups_create_attribute_link_pair.py | 56 +-- ...create_cross_database_record_link_group.py | 56 +-- ...groups_create_dynamic_record_link_group.py | 60 ++-- ...rd_link_groups_create_record_link_group.py | 44 ++- ..._groups_create_static_record_link_group.py | 57 +-- ...groups_cross_database_record_link_group.py | 53 +-- ...d_link_groups_dynamic_record_link_group.py | 64 ++-- ...api_schema_record_link_groups_link_info.py | 44 ++- ...i_schema_record_link_groups_link_target.py | 40 ++- ...ma_record_link_groups_record_link_group.py | 40 ++- ...cord_link_groups_record_link_group_type.py | 24 +- ...ord_link_groups_record_link_groups_info.py | 40 ++- ...link_groups_referential_integrity_model.py | 24 +- ...rd_link_groups_static_record_link_group.py | 53 +-- ...update_cross_database_record_link_group.py | 52 +-- ...groups_update_dynamic_record_link_group.py | 52 +-- ...rd_link_groups_update_record_link_group.py | 40 ++- ..._groups_update_static_record_link_group.py | 53 +-- ...api_schema_slim_entities_slim_attribute.py | 39 ++- ...schema_slim_entities_slim_configuration.py | 36 +- ..._api_schema_slim_entities_slim_constant.py | 36 +- ..._api_schema_slim_entities_slim_database.py | 40 ++- ...er_api_schema_slim_entities_slim_entity.py | 36 +- ...pi_schema_slim_entities_slim_expression.py | 36 +- ...rver_api_schema_slim_entities_slim_file.py | 36 +- ...er_api_schema_slim_entities_slim_layout.py | 36 +- ...chema_slim_entities_slim_layout_section.py | 53 +-- ..._schema_slim_entities_slim_named_entity.py | 36 +- ...r_api_schema_slim_entities_slim_objects.py | 36 +- ...r_api_schema_slim_entities_slim_profile.py | 36 +- ...schema_slim_entities_slim_profile_table.py | 40 ++- ...ma_slim_entities_slim_record_link_group.py | 40 ++- ...er_api_schema_slim_entities_slim_subset.py | 36 +- ...ver_api_schema_slim_entities_slim_table.py | 52 +-- ...rver_api_schema_slim_entities_slim_unit.py | 36 +- ...i_schema_slim_entities_slim_unit_system.py | 36 +- ...ema_standard_names_create_standard_name.py | 44 ++- ...api_schema_standard_names_standard_name.py | 93 +++-- ...hema_standard_names_standard_names_info.py | 40 ++- ...ema_standard_names_update_standard_name.py | 44 ++- ...ma_subsets_add_record_history_to_subset.py | 44 ++- ...server_api_schema_subsets_create_subset.py | 53 +-- ...bsets_remove_record_history_from_subset.py | 48 +-- ...granta_server_api_schema_subsets_subset.py | 53 +-- ..._server_api_schema_subsets_subsets_info.py | 39 ++- ...server_api_schema_subsets_update_subset.py | 53 +-- ...a_server_api_schema_tables_create_table.py | 52 +-- .../granta_server_api_schema_tables_table.py | 82 ++--- ...ta_server_api_schema_tables_tables_info.py | 49 ++- ...a_server_api_schema_tables_update_table.py | 60 ++-- ..._create_linked_attribute_tabular_column.py | 45 ++- ...mns_create_linked_column_tabular_column.py | 45 ++- ...mns_create_linked_record_tabular_column.py | 41 ++- ...s_create_local_date_time_tabular_column.py | 45 ++- ...ns_create_local_discrete_tabular_column.py | 49 ++- ...olumns_create_local_file_tabular_column.py | 45 ++- ...s_create_local_hyperlink_tabular_column.py | 45 ++- ...mns_create_local_integer_tabular_column.py | 45 ++- ...mns_create_local_logical_tabular_column.py | 45 ++- ...s_create_local_long_text_tabular_column.py | 45 ++- ...mns_create_local_picture_tabular_column.py | 45 ++- ...lumns_create_local_point_tabular_column.py | 53 +-- ...lumns_create_local_range_tabular_column.py | 53 +-- ..._create_local_short_text_tabular_column.py | 45 ++- ...e_tabular_columns_create_tabular_column.py | 67 ++-- ...columns_linked_attribute_tabular_column.py | 49 ++- ...ar_columns_linked_column_tabular_column.py | 49 ++- ...ar_columns_linked_record_tabular_column.py | 45 ++- ..._columns_local_date_time_tabular_column.py | 64 ++-- ...r_columns_local_discrete_tabular_column.py | 64 ++-- ...bular_columns_local_file_tabular_column.py | 64 ++-- ..._columns_local_hyperlink_tabular_column.py | 64 ++-- ...ar_columns_local_integer_tabular_column.py | 64 ++-- ...ar_columns_local_logical_tabular_column.py | 64 ++-- ..._columns_local_long_text_tabular_column.py | 64 ++-- ...ar_columns_local_picture_tabular_column.py | 64 ++-- ...ular_columns_local_point_tabular_column.py | 68 ++-- ...ular_columns_local_range_tabular_column.py | 68 ++-- ...columns_local_short_text_tabular_column.py | 64 ++-- ...i_schema_tabular_columns_tabular_column.py | 67 ++-- ...tabular_columns_tabular_column_dto_type.py | 24 +- ...lar_columns_tabular_column_roll_up_type.py | 24 +- ...ular_columns_unavailable_tabular_column.py | 45 ++- ..._update_linked_attribute_tabular_column.py | 54 +-- ...mns_update_linked_column_tabular_column.py | 52 +-- ...mns_update_linked_record_tabular_column.py | 41 ++- ...s_update_local_date_time_tabular_column.py | 45 ++- ...ns_update_local_discrete_tabular_column.py | 56 +-- ...olumns_update_local_file_tabular_column.py | 45 ++- ...s_update_local_hyperlink_tabular_column.py | 45 ++- ...mns_update_local_integer_tabular_column.py | 45 ++- ...mns_update_local_logical_tabular_column.py | 45 ++- ...s_update_local_long_text_tabular_column.py | 45 ++- ...mns_update_local_picture_tabular_column.py | 45 ++- ...lumns_update_local_point_tabular_column.py | 53 +-- ...lumns_update_local_range_tabular_column.py | 53 +-- ..._update_local_short_text_tabular_column.py | 45 ++- ...e_tabular_columns_update_tabular_column.py | 67 ++-- ...nta_server_api_schema_units_create_unit.py | 36 +- ...ver_api_schema_units_create_unit_system.py | 36 +- .../granta_server_api_schema_units_unit.py | 36 +- ...server_api_schema_units_unit_equivalent.py | 40 ++- ..._api_schema_units_unit_equivalents_info.py | 36 +- ...ta_server_api_schema_units_unit_mapping.py | 40 ++- ...nta_server_api_schema_units_unit_system.py | 40 ++- ...rver_api_schema_units_unit_systems_info.py | 40 ++- ...anta_server_api_schema_units_unit_usage.py | 36 +- ...anta_server_api_schema_units_units_info.py | 49 ++- ...nta_server_api_schema_units_update_unit.py | 36 +- ...ver_api_schema_units_update_unit_system.py | 36 +- ...ranta_server_api_schema_update_database.py | 36 +- ...a_server_api_search_attribute_criterion.py | 45 ++- ...r_api_search_attribute_exists_criterion.py | 64 ++-- ..._api_search_attribute_matches_criterion.py | 61 ++-- ...arch_attribute_not_applicable_criterion.py | 53 +-- ...ver_api_search_attribute_sort_criterion.py | 45 ++- ...nta_server_api_search_boolean_criterion.py | 57 +-- .../granta_server_api_search_boost_by_guid.py | 36 +- ...nta_server_api_search_boost_by_identity.py | 36 +- .../granta_server_api_search_criterion.py | 36 +- ...er_api_search_date_time_datum_criterion.py | 41 ++- ...ranta_server_api_search_datum_criterion.py | 36 +- ...erver_api_search_datum_exists_criterion.py | 36 +- ...screte_functional_range_datum_criterion.py | 48 ++- ...crete_functional_values_datum_criterion.py | 52 +-- ...pi_search_discrete_guid_datum_criterion.py | 45 ++- ...ch_discrete_guid_values_datum_criterion.py | 45 ++- ...earch_discrete_identity_datum_criterion.py | 45 ++- ...iscrete_identity_values_datum_criterion.py | 45 ++- ...arch_discrete_parameter_name_constraint.py | 41 ++- ...rch_discrete_parameter_value_constraint.py | 41 ++- ...i_search_discrete_range_datum_criterion.py | 45 ++- ...pi_search_discrete_text_datum_criterion.py | 60 ++-- ...ch_discrete_text_values_datum_criterion.py | 60 ++-- ..._server_api_search_double_sorting_value.py | 41 ++- ..._server_api_search_file_datum_criterion.py | 41 ++- ...search_float_functional_datum_criterion.py | 48 ++- ..._float_functional_graph_datum_criterion.py | 69 ++-- ...a_server_api_search_free_text_criterion.py | 45 ++- ...er_api_search_hyperlink_datum_criterion.py | 41 ++- .../granta_server_api_search_index_status.py | 60 ++-- ...rver_api_search_integer_datum_criterion.py | 41 ++- ..._server_api_search_link_datum_criterion.py | 80 ++--- ..._api_search_link_exists_datum_criterion.py | 84 +++-- ...api_search_linking_value_match_behavior.py | 24 +- ...erver_api_search_local_column_criterion.py | 41 ++- ...pi_search_local_column_exists_criterion.py | 57 +-- ...i_search_local_column_matches_criterion.py | 57 +-- ...h_local_column_not_applicable_criterion.py | 53 +-- ...a_server_api_search_local_rows_behavior.py | 24 +- ...rver_api_search_logical_datum_criterion.py | 41 ++- ...ta_server_api_search_long_sorting_value.py | 41 ++- ...er_api_search_long_text_datum_criterion.py | 41 ++- ...search_maths_functional_datum_criterion.py | 48 ++- ...api_search_numeric_parameter_constraint.py | 53 +-- ...granta_server_api_search_paging_options.py | 40 ++- ..._server_api_search_parameter_constraint.py | 40 ++- ...rver_api_search_picture_datum_criterion.py | 41 ++- ...server_api_search_point_datum_criterion.py | 41 ++- ...server_api_search_range_datum_criterion.py | 41 ++- ...er_api_search_record_ancestor_criterion.py | 49 ++- ...d_ancestor_history_identities_criterion.py | 49 ++- ...api_search_record_list_member_criterion.py | 41 ++- ...er_api_search_record_property_criterion.py | 60 ++-- ...i_search_record_property_sort_criterion.py | 60 ++-- ...r_api_search_record_reference_criterion.py | 45 ++- ...rver_api_search_record_subset_criterion.py | 41 ++- ...ver_api_search_relevance_sort_criterion.py | 41 ++- ...granta_server_api_search_search_request.py | 53 +-- ...ranta_server_api_search_search_response.py | 55 +-- .../granta_server_api_search_search_result.py | 60 ++-- ...erver_api_search_search_results_request.py | 36 +- ...r_api_search_searchable_record_property.py | 24 +- ...r_api_search_short_text_datum_criterion.py | 56 +-- ...pi_search_simple_datum_exists_criterion.py | 45 ++- ...granta_server_api_search_sort_criterion.py | 40 ++- ...granta_server_api_search_sort_direction.py | 24 +- .../granta_server_api_search_sort_type.py | 24 +- .../granta_server_api_search_sorting_value.py | 36 +- ..._server_api_search_string_sorting_value.py | 41 ++- ..._search_tabular_linking_value_criterion.py | 45 ++- ...a_server_api_search_text_match_behavior.py | 24 +- ...election_searches_create_search_request.py | 44 ++- ..._selection_searches_find_search_request.py | 36 +- ..._selection_searches_save_search_request.py | 44 ++- ...er_api_selection_searches_search_detail.py | 36 +- ...api_selection_searches_selection_search.py | 71 ++-- ...er_api_selection_searches_user_or_group.py | 36 +- ...ta_server_api_specific_values_specifier.py | 41 ++- .../granta_server_api_value_specifier.py | 36 +- .../granta_server_api_value_specifier_type.py | 24 +- .../models/granta_server_api_version_state.py | 24 +- .../models/jobqueue_files_body.py | 36 +- .../models/json_patch_document.py | 36 +- ..._core_mvc_formatters_i_output_formatter.py | 36 +- ...icrosoft_asp_net_core_mvc_object_result.py | 40 ++- .../models/system_net_http_status_code.py | 24 +- .../tests/__init__.py | 21 ++ .../tests/conftest.py | 28 +- .../tests/test_discriminators.py | 34 +- .../tests/test_general.py | 29 +- 703 files changed, 20264 insertions(+), 13633 deletions(-) create mode 100644 .isort.cfg create mode 100644 .pre-commit-config.yaml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7735a274..2d12f9a4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -18,7 +18,7 @@ updates: interval: "weekly" labels: - "maintenance" - + - package-ecosystem: "pip" # See documentation for possible values directory: "/ansys-grantami-serverapi-openapi/" # Location of package manifests schedule: diff --git a/.github/workflows/generate_library.yml b/.github/workflows/generate_library.yml index d7607b1a..dcc875a2 100644 --- a/.github/workflows/generate_library.yml +++ b/.github/workflows/generate_library.yml @@ -29,7 +29,7 @@ jobs: with: token: ${{ steps.get_workflow_token.outputs.token }} ref: ${{ github.event.pull_request.head.ref }} - + - name: "Set up JDK 11" uses: actions/setup-java@v4 with: @@ -58,11 +58,10 @@ jobs: poetry lock --no-update working-directory: ansys-grantami-serverapi-openapi - - name: "Install and run black" + - name: "Install and run pre-commit" run: | - pip install black - black ./src ./tests - working-directory: ansys-grantami-serverapi-openapi + pip install pre-commit + ! pre-commit run --all-files - name: "Commit changes to library code" uses: EndBug/add-and-commit@v9 diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 00000000..16f2683c --- /dev/null +++ b/.isort.cfg @@ -0,0 +1,6 @@ +[settings] +profile=black +force_sort_within_sections=true +line_length=100 +default_section=THIRDPARTY +src_paths=src,tests \ No newline at end of file diff --git a/.m2/settings.xml b/.m2/settings.xml index ca2e249d..7c2f9f06 100644 --- a/.m2/settings.xml +++ b/.m2/settings.xml @@ -38,7 +38,7 @@ - + github diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..e4af08ae --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,31 @@ +repos: + +- repo: https://github.com/psf/black + rev: 24.3.0 + hooks: + - id: black + files: '^ansys-grantami-serverapi-openapi/(src|tests)' + args: + - '--line-length=100' + +- repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + files: '^ansys-grantami-serverapi-openapi/(src|tests)' + +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-yaml + - id: debug-statements + - id: check-merge-conflict + - id: trailing-whitespace + +- repo: https://github.com/ansys/pre-commit-hooks + rev: v0.2.8 + hooks: + - id: add-license-headers + args: + - --start_year=2023 + files: 'ansys-grantami-serverapi-openapi/(src|tests)/.*\.(py)' \ No newline at end of file diff --git a/README.md b/README.md index 50a0cdcb..5dec01e3 100644 --- a/README.md +++ b/README.md @@ -52,12 +52,12 @@ Once the tag is pushed to GitHub, a workflow will build and publish the release. As stated above, direct use of this package is unsupported. The recommended approach is to use the idiomatic libraries written for specific API areas. -We do understand that internal or external users might want to experiment with Granta MI Server API functionality that +We do understand that internal or external users might want to experiment with Granta MI Server API functionality that is not exposed via an idiomatic python library. To that extent, the following sections demonstrate how to install and get started with the library. ### Requirements -The `ansys-grantami-serverapi-openapi` package requires Granta MI. The following table details compatibility between +The `ansys-grantami-serverapi-openapi` package requires Granta MI. The following table details compatibility between Granta MI releases and versions of the Python package. | Granta MI | ansys-grantami-serverapi-openapi | @@ -69,8 +69,8 @@ Granta MI releases and versions of the Python package. ### Installation -During active development phases of Granta MI, this repository is kept up to date with new versions of the API -documentation. To use the most up-to-date version of this package in another project, add a dependency on the +During active development phases of Granta MI, this repository is kept up to date with new versions of the API +documentation. To use the most up-to-date version of this package in another project, add a dependency on the repository's main branch, e.g. with poetry: ```console @@ -84,7 +84,7 @@ Or with pip: ``` ### Minimal setup -The following code snippet demonstrates how to perform the minimal setup required to interact with the API using this +The following code snippet demonstrates how to perform the minimal setup required to interact with the API using this library. ```python @@ -130,11 +130,11 @@ class Connection(ApiClientFactory): if __name__ == '__main__': from ansys.grantami.serverapi_openapi import api - + # Update URL and connection method for your system URL = "http://my_server_name/mi_servicelayer" api_client = Connection(api_url=URL).with_autologon().connect() - + schema_api = api.SchemaApi(api_client) server_version = schema_api.v1alpha_schema_mi_version_get() print(server_version.version) diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 0cd95fbb..1a02ec89 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 = "3.0.0.dev234" +version = "3.0.0.dev236" 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 68daa954..ab627c6e 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 @@ -1,3 +1,25 @@ +# Copyright (C) 2023 - 2024 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. + # flake8: noqa """ @@ -6,7 +28,7 @@ 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 """ @@ -25,15 +47,12 @@ from .api.metrics_api import MetricsApi from .api.records___record_histories_api import RecordsRecordHistoriesApi from .api.records___record_versions_api import RecordsRecordVersionsApi -from .api.schema_api import SchemaApi from .api.schema___attributes_api import SchemaAttributesApi from .api.schema___configurations_api import SchemaConfigurationsApi from .api.schema___constants_api import SchemaConstantsApi from .api.schema___data_rules_api import SchemaDataRulesApi from .api.schema___databases_api import SchemaDatabasesApi -from .api.schema___discrete_types___discrete_values_api import ( - SchemaDiscreteTypesDiscreteValuesApi, -) +from .api.schema___discrete_types___discrete_values_api import SchemaDiscreteTypesDiscreteValuesApi from .api.schema___discrete_types_api import SchemaDiscreteTypesApi from .api.schema___exporters_api import SchemaExportersApi from .api.schema___expressions_api import SchemaExpressionsApi @@ -49,14 +68,15 @@ from .api.schema___subsets_api import SchemaSubsetsApi from .api.schema___tables_api import SchemaTablesApi from .api.schema___units_api import SchemaUnitsApi +from .api.schema_api import SchemaApi from .api.search_api import SearchApi from .api.selection_searches_api import SelectionSearchesApi from .api.status_api import StatusApi +from .models.folderguid_files_body1 import FolderguidFilesBody1 +from .models.folderguid_files_body2 import FolderguidFilesBody2 # import models into sdk package from .models.folderguid_files_body import FolderguidFilesBody -from .models.folderguid_files_body1 import FolderguidFilesBody1 -from .models.folderguid_files_body2 import FolderguidFilesBody2 from .models.granta_mi_record_property_fake_attribute_identities import ( GrantaMIRecordPropertyFakeAttributeIdentities, ) @@ -151,9 +171,7 @@ from .models.granta_server_api_aggregations_free_text_aggregation_criterion import ( GrantaServerApiAggregationsFreeTextAggregationCriterion, ) -from .models.granta_server_api_aggregations_histogram import ( - GrantaServerApiAggregationsHistogram, -) +from .models.granta_server_api_aggregations_histogram import GrantaServerApiAggregationsHistogram from .models.granta_server_api_aggregations_histogram_bucket import ( GrantaServerApiAggregationsHistogramBucket, ) @@ -250,9 +268,7 @@ from .models.granta_server_api_aggregations_value_with_count_of_system_int32 import ( GrantaServerApiAggregationsValueWithCountOfSystemInt32, ) -from .models.granta_server_api_all_values_specifier import ( - GrantaServerApiAllValuesSpecifier, -) +from .models.granta_server_api_all_values_specifier import GrantaServerApiAllValuesSpecifier from .models.granta_server_api_app_name_license_checkout_request import ( GrantaServerApiAppNameLicenseCheckoutRequest, ) @@ -265,16 +281,12 @@ from .models.granta_server_api_async_jobs_create_job_request import ( GrantaServerApiAsyncJobsCreateJobRequest, ) -from .models.granta_server_api_async_jobs_current_user import ( - GrantaServerApiAsyncJobsCurrentUser, -) +from .models.granta_server_api_async_jobs_current_user import GrantaServerApiAsyncJobsCurrentUser from .models.granta_server_api_async_jobs_get_jobs_response import ( GrantaServerApiAsyncJobsGetJobsResponse, ) from .models.granta_server_api_async_jobs_job import GrantaServerApiAsyncJobsJob -from .models.granta_server_api_async_jobs_job_status import ( - GrantaServerApiAsyncJobsJobStatus, -) +from .models.granta_server_api_async_jobs_job_status import GrantaServerApiAsyncJobsJobStatus from .models.granta_server_api_async_jobs_processing_config import ( GrantaServerApiAsyncJobsProcessingConfig, ) @@ -285,17 +297,11 @@ GrantaServerApiAsyncJobsUpdateJobRequest, ) from .models.granta_server_api_attribute_type import GrantaServerApiAttributeType -from .models.granta_server_api_data_applicable_datum import ( - GrantaServerApiDataApplicableDatum, -) -from .models.granta_server_api_data_date_time_datum import ( - GrantaServerApiDataDateTimeDatum, -) +from .models.granta_server_api_data_applicable_datum import GrantaServerApiDataApplicableDatum +from .models.granta_server_api_data_date_time_datum import GrantaServerApiDataDateTimeDatum from .models.granta_server_api_data_datum import GrantaServerApiDataDatum from .models.granta_server_api_data_datum_type import GrantaServerApiDataDatumType -from .models.granta_server_api_data_discrete_datum import ( - GrantaServerApiDataDiscreteDatum, -) +from .models.granta_server_api_data_discrete_datum import GrantaServerApiDataDiscreteDatum from .models.granta_server_api_data_discrete_parameter_with_value import ( GrantaServerApiDataDiscreteParameterWithValue, ) @@ -320,9 +326,7 @@ from .models.granta_server_api_data_export_datums_date_time_datum import ( GrantaServerApiDataExportDatumsDateTimeDatum, ) -from .models.granta_server_api_data_export_datums_datum import ( - GrantaServerApiDataExportDatumsDatum, -) +from .models.granta_server_api_data_export_datums_datum import GrantaServerApiDataExportDatumsDatum from .models.granta_server_api_data_export_datums_discrete_datum import ( GrantaServerApiDataExportDatumsDiscreteDatum, ) @@ -389,15 +393,11 @@ from .models.granta_server_api_data_export_datums_picture_datum import ( GrantaServerApiDataExportDatumsPictureDatum, ) -from .models.granta_server_api_data_export_datums_point import ( - GrantaServerApiDataExportDatumsPoint, -) +from .models.granta_server_api_data_export_datums_point import GrantaServerApiDataExportDatumsPoint from .models.granta_server_api_data_export_datums_point_datum import ( GrantaServerApiDataExportDatumsPointDatum, ) -from .models.granta_server_api_data_export_datums_range import ( - GrantaServerApiDataExportDatumsRange, -) +from .models.granta_server_api_data_export_datums_range import GrantaServerApiDataExportDatumsRange from .models.granta_server_api_data_export_datums_range_datum import ( GrantaServerApiDataExportDatumsRangeDatum, ) @@ -546,17 +546,11 @@ GrantaServerApiDataExportTabularRowExportBehavior, ) from .models.granta_server_api_data_file_datum import GrantaServerApiDataFileDatum -from .models.granta_server_api_data_hyperlink_datum import ( - GrantaServerApiDataHyperlinkDatum, -) -from .models.granta_server_api_data_hyperlink_target import ( - GrantaServerApiDataHyperlinkTarget, -) +from .models.granta_server_api_data_hyperlink_datum import GrantaServerApiDataHyperlinkDatum +from .models.granta_server_api_data_hyperlink_target import GrantaServerApiDataHyperlinkTarget from .models.granta_server_api_data_integer_datum import GrantaServerApiDataIntegerDatum from .models.granta_server_api_data_logical_datum import GrantaServerApiDataLogicalDatum -from .models.granta_server_api_data_long_text_datum import ( - GrantaServerApiDataLongTextDatum, -) +from .models.granta_server_api_data_long_text_datum import GrantaServerApiDataLongTextDatum from .models.granta_server_api_data_not_applicable_datum import ( GrantaServerApiDataNotApplicableDatum, ) @@ -567,20 +561,12 @@ GrantaServerApiDataParameterWithValue, ) from .models.granta_server_api_data_picture_datum import GrantaServerApiDataPictureDatum -from .models.granta_server_api_data_point_data_value import ( - GrantaServerApiDataPointDataValue, -) +from .models.granta_server_api_data_point_data_value import GrantaServerApiDataPointDataValue from .models.granta_server_api_data_point_datum import GrantaServerApiDataPointDatum from .models.granta_server_api_data_range_datum import GrantaServerApiDataRangeDatum -from .models.granta_server_api_data_rich_text_type import ( - GrantaServerApiDataRichTextType, -) -from .models.granta_server_api_data_rich_text_value import ( - GrantaServerApiDataRichTextValue, -) -from .models.granta_server_api_data_short_text_datum import ( - GrantaServerApiDataShortTextDatum, -) +from .models.granta_server_api_data_rich_text_type import GrantaServerApiDataRichTextType +from .models.granta_server_api_data_rich_text_value import GrantaServerApiDataRichTextValue +from .models.granta_server_api_data_short_text_datum import GrantaServerApiDataShortTextDatum from .models.granta_server_api_data_significant_figures_info import ( GrantaServerApiDataSignificantFiguresInfo, ) @@ -620,9 +606,7 @@ from .models.granta_server_api_exceptions_deletion_table_deletion_exception import ( GrantaServerApiExceptionsDeletionTableDeletionException, ) -from .models.granta_server_api_exceptions_error_detail import ( - GrantaServerApiExceptionsErrorDetail, -) +from .models.granta_server_api_exceptions_error_detail import GrantaServerApiExceptionsErrorDetail from .models.granta_server_api_exceptions_record_history_record_history_copy_exception import ( GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, ) @@ -656,15 +640,11 @@ from .models.granta_server_api_exceptions_version_control_withdraw_record_version_control_exception import ( GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, ) -from .models.granta_server_api_exclude_values_specifier import ( - GrantaServerApiExcludeValuesSpecifier, -) +from .models.granta_server_api_exclude_values_specifier import GrantaServerApiExcludeValuesSpecifier from .models.granta_server_api_functional_datum_parameter_info import ( GrantaServerApiFunctionalDatumParameterInfo, ) -from .models.granta_server_api_index_record_failure import ( - GrantaServerApiIndexRecordFailure, -) +from .models.granta_server_api_index_record_failure import GrantaServerApiIndexRecordFailure from .models.granta_server_api_indirect_links import GrantaServerApiIndirectLinks from .models.granta_server_api_integration_data_export_integration_data_export_request import ( GrantaServerApiIntegrationDataExportIntegrationDataExportRequest, @@ -729,9 +709,7 @@ from .models.granta_server_api_integration_schema_source_of_granta_server_api_object_identifier import ( GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier, ) -from .models.granta_server_api_link_attribute_type import ( - GrantaServerApiLinkAttributeType, -) +from .models.granta_server_api_link_attribute_type import GrantaServerApiLinkAttributeType from .models.granta_server_api_lists_dto_create_list_item import ( GrantaServerApiListsDtoCreateListItem, ) @@ -750,15 +728,9 @@ from .models.granta_server_api_lists_dto_list_boolean_criterion import ( GrantaServerApiListsDtoListBooleanCriterion, ) -from .models.granta_server_api_lists_dto_list_criterion import ( - GrantaServerApiListsDtoListCriterion, -) -from .models.granta_server_api_lists_dto_list_item import ( - GrantaServerApiListsDtoListItem, -) -from .models.granta_server_api_lists_dto_paging_options import ( - GrantaServerApiListsDtoPagingOptions, -) +from .models.granta_server_api_lists_dto_list_criterion import GrantaServerApiListsDtoListCriterion +from .models.granta_server_api_lists_dto_list_item import GrantaServerApiListsDtoListItem +from .models.granta_server_api_lists_dto_paging_options import GrantaServerApiListsDtoPagingOptions from .models.granta_server_api_lists_dto_record_list_header import ( GrantaServerApiListsDtoRecordListHeader, ) @@ -801,27 +773,21 @@ from .models.granta_server_api_lists_dto_update_user_permissions_info import ( GrantaServerApiListsDtoUpdateUserPermissionsInfo, ) -from .models.granta_server_api_lists_dto_user_or_group import ( - GrantaServerApiListsDtoUserOrGroup, -) +from .models.granta_server_api_lists_dto_user_or_group import GrantaServerApiListsDtoUserOrGroup from .models.granta_server_api_lists_dto_user_permission import ( GrantaServerApiListsDtoUserPermission, ) from .models.granta_server_api_lists_dto_user_permissions_info import ( GrantaServerApiListsDtoUserPermissionsInfo, ) -from .models.granta_server_api_lists_dto_user_role import ( - GrantaServerApiListsDtoUserRole, -) +from .models.granta_server_api_lists_dto_user_role import GrantaServerApiListsDtoUserRole from .models.granta_server_api_metrics_get_jobs_summary_response import ( GrantaServerApiMetricsGetJobsSummaryResponse, ) from .models.granta_server_api_metrics_job_type_and_status import ( GrantaServerApiMetricsJobTypeAndStatus, ) -from .models.granta_server_api_no_values_specifier import ( - GrantaServerApiNoValuesSpecifier, -) +from .models.granta_server_api_no_values_specifier import GrantaServerApiNoValuesSpecifier from .models.granta_server_api_object_identifier import GrantaServerApiObjectIdentifier from .models.granta_server_api_parameter_info import GrantaServerApiParameterInfo from .models.granta_server_api_parameter_info_interpolation_type import ( @@ -1089,9 +1055,7 @@ GrantaServerApiSchemaDataRulesUpdateDataRule, ) from .models.granta_server_api_schema_database import GrantaServerApiSchemaDatabase -from .models.granta_server_api_schema_databases_info import ( - GrantaServerApiSchemaDatabasesInfo, -) +from .models.granta_server_api_schema_databases_info import GrantaServerApiSchemaDatabasesInfo from .models.granta_server_api_schema_discrete_types_create_discrete_type import ( GrantaServerApiSchemaDiscreteTypesCreateDiscreteType, ) @@ -1137,27 +1101,15 @@ from .models.granta_server_api_schema_files_exporter_refetch_info import ( GrantaServerApiSchemaFilesExporterRefetchInfo, ) -from .models.granta_server_api_schema_files_file_header import ( - GrantaServerApiSchemaFilesFileHeader, -) -from .models.granta_server_api_schema_files_files_info import ( - GrantaServerApiSchemaFilesFilesInfo, -) -from .models.granta_server_api_schema_files_folder import ( - GrantaServerApiSchemaFilesFolder, -) +from .models.granta_server_api_schema_files_file_header import GrantaServerApiSchemaFilesFileHeader +from .models.granta_server_api_schema_files_files_info import GrantaServerApiSchemaFilesFilesInfo +from .models.granta_server_api_schema_files_folder import GrantaServerApiSchemaFilesFolder from .models.granta_server_api_schema_files_folders_info import ( GrantaServerApiSchemaFilesFoldersInfo, ) -from .models.granta_server_api_schema_files_move_file import ( - GrantaServerApiSchemaFilesMoveFile, -) -from .models.granta_server_api_schema_files_move_folder import ( - GrantaServerApiSchemaFilesMoveFolder, -) -from .models.granta_server_api_schema_files_update_file import ( - GrantaServerApiSchemaFilesUpdateFile, -) +from .models.granta_server_api_schema_files_move_file import GrantaServerApiSchemaFilesMoveFile +from .models.granta_server_api_schema_files_move_folder import GrantaServerApiSchemaFilesMoveFolder +from .models.granta_server_api_schema_files_update_file import GrantaServerApiSchemaFilesUpdateFile from .models.granta_server_api_schema_files_update_folder import ( GrantaServerApiSchemaFilesUpdateFolder, ) @@ -1170,9 +1122,7 @@ from .models.granta_server_api_schema_layouts_full_layout_section import ( GrantaServerApiSchemaLayoutsFullLayoutSection, ) -from .models.granta_server_api_schema_layouts_layout import ( - GrantaServerApiSchemaLayoutsLayout, -) +from .models.granta_server_api_schema_layouts_layout import GrantaServerApiSchemaLayoutsLayout from .models.granta_server_api_schema_layouts_layout_attribute_item import ( GrantaServerApiSchemaLayoutsLayoutAttributeItem, ) @@ -1350,9 +1300,7 @@ from .models.granta_server_api_schema_profiles_create_profile import ( GrantaServerApiSchemaProfilesCreateProfile, ) -from .models.granta_server_api_schema_profiles_profile import ( - GrantaServerApiSchemaProfilesProfile, -) +from .models.granta_server_api_schema_profiles_profile import GrantaServerApiSchemaProfilesProfile from .models.granta_server_api_schema_profiles_update_all_profiles_info import ( GrantaServerApiSchemaProfilesUpdateAllProfilesInfo, ) @@ -1494,9 +1442,7 @@ from .models.granta_server_api_schema_subsets_remove_record_history_from_subset import ( GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset, ) -from .models.granta_server_api_schema_subsets_subset import ( - GrantaServerApiSchemaSubsetsSubset, -) +from .models.granta_server_api_schema_subsets_subset import GrantaServerApiSchemaSubsetsSubset from .models.granta_server_api_schema_subsets_subsets_info import ( GrantaServerApiSchemaSubsetsSubsetsInfo, ) @@ -1506,9 +1452,7 @@ from .models.granta_server_api_schema_tables_create_table import ( GrantaServerApiSchemaTablesCreateTable, ) -from .models.granta_server_api_schema_tables_table import ( - GrantaServerApiSchemaTablesTable, -) +from .models.granta_server_api_schema_tables_table import GrantaServerApiSchemaTablesTable from .models.granta_server_api_schema_tables_tables_info import ( GrantaServerApiSchemaTablesTablesInfo, ) @@ -1659,9 +1603,7 @@ from .models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) -from .models.granta_server_api_schema_units_create_unit import ( - GrantaServerApiSchemaUnitsCreateUnit, -) +from .models.granta_server_api_schema_units_create_unit import GrantaServerApiSchemaUnitsCreateUnit from .models.granta_server_api_schema_units_create_unit_system import ( GrantaServerApiSchemaUnitsCreateUnitSystem, ) @@ -1675,27 +1617,17 @@ from .models.granta_server_api_schema_units_unit_mapping import ( GrantaServerApiSchemaUnitsUnitMapping, ) -from .models.granta_server_api_schema_units_unit_system import ( - GrantaServerApiSchemaUnitsUnitSystem, -) +from .models.granta_server_api_schema_units_unit_system import GrantaServerApiSchemaUnitsUnitSystem from .models.granta_server_api_schema_units_unit_systems_info import ( GrantaServerApiSchemaUnitsUnitSystemsInfo, ) -from .models.granta_server_api_schema_units_unit_usage import ( - GrantaServerApiSchemaUnitsUnitUsage, -) -from .models.granta_server_api_schema_units_units_info import ( - GrantaServerApiSchemaUnitsUnitsInfo, -) -from .models.granta_server_api_schema_units_update_unit import ( - GrantaServerApiSchemaUnitsUpdateUnit, -) +from .models.granta_server_api_schema_units_unit_usage import GrantaServerApiSchemaUnitsUnitUsage +from .models.granta_server_api_schema_units_units_info import GrantaServerApiSchemaUnitsUnitsInfo +from .models.granta_server_api_schema_units_update_unit import GrantaServerApiSchemaUnitsUpdateUnit from .models.granta_server_api_schema_units_update_unit_system import ( GrantaServerApiSchemaUnitsUpdateUnitSystem, ) -from .models.granta_server_api_schema_update_database import ( - GrantaServerApiSchemaUpdateDatabase, -) +from .models.granta_server_api_schema_update_database import GrantaServerApiSchemaUpdateDatabase from .models.granta_server_api_search_attribute_criterion import ( GrantaServerApiSearchAttributeCriterion, ) @@ -1711,22 +1643,14 @@ from .models.granta_server_api_search_attribute_sort_criterion import ( GrantaServerApiSearchAttributeSortCriterion, ) -from .models.granta_server_api_search_boolean_criterion import ( - GrantaServerApiSearchBooleanCriterion, -) -from .models.granta_server_api_search_boost_by_guid import ( - GrantaServerApiSearchBoostByGuid, -) -from .models.granta_server_api_search_boost_by_identity import ( - GrantaServerApiSearchBoostByIdentity, -) +from .models.granta_server_api_search_boolean_criterion import GrantaServerApiSearchBooleanCriterion +from .models.granta_server_api_search_boost_by_guid import GrantaServerApiSearchBoostByGuid +from .models.granta_server_api_search_boost_by_identity import GrantaServerApiSearchBoostByIdentity from .models.granta_server_api_search_criterion import GrantaServerApiSearchCriterion from .models.granta_server_api_search_date_time_datum_criterion import ( GrantaServerApiSearchDateTimeDatumCriterion, ) -from .models.granta_server_api_search_datum_criterion import ( - GrantaServerApiSearchDatumCriterion, -) +from .models.granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion from .models.granta_server_api_search_datum_exists_criterion import ( GrantaServerApiSearchDatumExistsCriterion, ) @@ -1781,9 +1705,7 @@ from .models.granta_server_api_search_hyperlink_datum_criterion import ( GrantaServerApiSearchHyperlinkDatumCriterion, ) -from .models.granta_server_api_search_index_status import ( - GrantaServerApiSearchIndexStatus, -) +from .models.granta_server_api_search_index_status import GrantaServerApiSearchIndexStatus from .models.granta_server_api_search_integer_datum_criterion import ( GrantaServerApiSearchIntegerDatumCriterion, ) @@ -1826,9 +1748,7 @@ from .models.granta_server_api_search_numeric_parameter_constraint import ( GrantaServerApiSearchNumericParameterConstraint, ) -from .models.granta_server_api_search_paging_options import ( - GrantaServerApiSearchPagingOptions, -) +from .models.granta_server_api_search_paging_options import GrantaServerApiSearchPagingOptions from .models.granta_server_api_search_parameter_constraint import ( GrantaServerApiSearchParameterConstraint, ) @@ -1865,15 +1785,9 @@ from .models.granta_server_api_search_relevance_sort_criterion import ( GrantaServerApiSearchRelevanceSortCriterion, ) -from .models.granta_server_api_search_search_request import ( - GrantaServerApiSearchSearchRequest, -) -from .models.granta_server_api_search_search_response import ( - GrantaServerApiSearchSearchResponse, -) -from .models.granta_server_api_search_search_result import ( - GrantaServerApiSearchSearchResult, -) +from .models.granta_server_api_search_search_request import GrantaServerApiSearchSearchRequest +from .models.granta_server_api_search_search_response import GrantaServerApiSearchSearchResponse +from .models.granta_server_api_search_search_result import GrantaServerApiSearchSearchResult from .models.granta_server_api_search_search_results_request import ( GrantaServerApiSearchSearchResultsRequest, ) @@ -1886,16 +1800,10 @@ from .models.granta_server_api_search_simple_datum_exists_criterion import ( GrantaServerApiSearchSimpleDatumExistsCriterion, ) -from .models.granta_server_api_search_sort_criterion import ( - GrantaServerApiSearchSortCriterion, -) -from .models.granta_server_api_search_sort_direction import ( - GrantaServerApiSearchSortDirection, -) +from .models.granta_server_api_search_sort_criterion import GrantaServerApiSearchSortCriterion +from .models.granta_server_api_search_sort_direction import GrantaServerApiSearchSortDirection from .models.granta_server_api_search_sort_type import GrantaServerApiSearchSortType -from .models.granta_server_api_search_sorting_value import ( - GrantaServerApiSearchSortingValue, -) +from .models.granta_server_api_search_sorting_value import GrantaServerApiSearchSortingValue from .models.granta_server_api_search_string_sorting_value import ( GrantaServerApiSearchStringSortingValue, ) @@ -1927,18 +1835,14 @@ GrantaServerApiSpecificValuesSpecifier, ) from .models.granta_server_api_value_specifier import GrantaServerApiValueSpecifier -from .models.granta_server_api_value_specifier_type import ( - GrantaServerApiValueSpecifierType, -) +from .models.granta_server_api_value_specifier_type import GrantaServerApiValueSpecifierType from .models.granta_server_api_version_state import GrantaServerApiVersionState from .models.jobqueue_files_body import JobqueueFilesBody from .models.json_patch_document import JsonPatchDocument from .models.microsoft_asp_net_core_mvc_formatters_i_output_formatter import ( MicrosoftAspNetCoreMvcFormattersIOutputFormatter, ) -from .models.microsoft_asp_net_core_mvc_object_result import ( - MicrosoftAspNetCoreMvcObjectResult, -) +from .models.microsoft_asp_net_core_mvc_object_result import MicrosoftAspNetCoreMvcObjectResult from .models.system_net_http_status_code import SystemNetHttpStatusCode __all__ = [ 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 099fbcfd..86a59a54 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 @@ -1,3 +1,25 @@ +# Copyright (C) 2023 - 2024 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. + # flake8: noqa # import API ABC @@ -18,15 +40,12 @@ from .metrics_api import MetricsApi from .records___record_histories_api import RecordsRecordHistoriesApi from .records___record_versions_api import RecordsRecordVersionsApi -from .schema_api import SchemaApi from .schema___attributes_api import SchemaAttributesApi from .schema___configurations_api import SchemaConfigurationsApi from .schema___constants_api import SchemaConstantsApi from .schema___data_rules_api import SchemaDataRulesApi from .schema___databases_api import SchemaDatabasesApi -from .schema___discrete_types___discrete_values_api import ( - SchemaDiscreteTypesDiscreteValuesApi, -) +from .schema___discrete_types___discrete_values_api import SchemaDiscreteTypesDiscreteValuesApi from .schema___discrete_types_api import SchemaDiscreteTypesApi from .schema___exporters_api import SchemaExportersApi from .schema___expressions_api import SchemaExpressionsApi @@ -42,6 +61,7 @@ from .schema___subsets_api import SchemaSubsetsApi from .schema___tables_api import SchemaTablesApi from .schema___units_api import SchemaUnitsApi +from .schema_api import SchemaApi from .search_api import SearchApi from .selection_searches_api import SelectionSearchesApi from .status_api import StatusApi diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py index df408fff..0f4002dd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/aggregation_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -122,12 +137,7 @@ def _database_aggregation_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -179,12 +189,7 @@ def database_aggregation_for_table_with_guid( Union[GrantaServerApiAggregationsAggregationsResponse, None] """ data = self._database_aggregation_for_table_with_guid_with_http_info( - database_key, - table_guid, - body, - x_ansys_vc_mode, - mode, - _return_http_data_only=True, + database_key, table_guid, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -256,12 +261,7 @@ def _database_aggregation_for_table_with_guid_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -313,12 +313,7 @@ def database_aggregation_for_table_with_identity( Union[GrantaServerApiAggregationsAggregationsResponse, None] """ data = self._database_aggregation_for_table_with_identity_with_http_info( - database_key, - table_identity, - body, - x_ansys_vc_mode, - mode, - _return_http_data_only=True, + database_key, table_identity, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -390,12 +385,7 @@ def _database_aggregation_for_table_with_identity_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -494,12 +484,7 @@ def _integration_aggregation_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py index 3d13d78d..3c7513a2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -761,9 +776,7 @@ def _get_datum_for_latest_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", @@ -902,9 +915,7 @@ def _get_datum_for_latest_from_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", @@ -1043,9 +1054,7 @@ def _get_datum_for_version_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", @@ -1196,9 +1205,7 @@ def _get_datum_for_version_from_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiDataDatum", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py index 6bbea870..ac96582f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_export_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -84,9 +99,7 @@ def _export_data_with_http_info( 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 export_data" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method export_data") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -122,12 +135,7 @@ def _export_data_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -227,12 +235,7 @@ def _export_data_from_integration_schema_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py index 13fb2ada..e2b49360 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -56,11 +71,7 @@ def generate_schema_from_layout( return data # type: ignore[no-any-return] def _generate_schema_from_layout_with_http_info( - self, - database_key: "str", - table_identity: "int", - layout_identity: "int", - **kwargs: Any, + self, database_key: "str", table_identity: "int", layout_identity: "int", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -163,11 +174,7 @@ def generate_schema_from_layout_name( return data # type: ignore[no-any-return] def _generate_schema_from_layout_name_with_http_info( - self, - database_key: "str", - table_identity: "int", - layout_name: "str", - **kwargs: Any, + self, database_key: "str", table_identity: "int", layout_name: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -373,11 +380,7 @@ def generate_schema_from_layout_with_table_name( return data # type: ignore[no-any-return] def _generate_schema_from_layout_with_table_name_with_http_info( - self, - database_key: "str", - table_name: "str", - layout_identity: "int", - **kwargs: Any, + self, database_key: "str", table_name: "str", layout_identity: "int", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -526,12 +529,7 @@ def _generate_schema_from_standard_names_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -579,12 +577,7 @@ def generate_schema_from_standard_names_all_databases( def _generate_schema_from_standard_names_all_databases_with_http_info( self, body: "Optional[List[str]]" = None, **kwargs: Any ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -616,12 +609,7 @@ def _generate_schema_from_standard_names_all_databases_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -856,10 +844,7 @@ def get_search_index_status( return data # type: ignore[no-any-return] def _get_search_index_status_with_http_info( - self, - database_key: "str", - include_diagnostics: "Optional[bool]" = None, - **kwargs: Any, + self, database_key: "str", include_diagnostics: "Optional[bool]" = None, **kwargs: Any ) -> Any: all_params = [ "database_key", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py index ac5625ba..93ab8b13 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/help_location_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -51,12 +66,7 @@ def get_help_url(self, *, help_key: "str") -> "None": return data # type: ignore[no-any-return] def _get_help_url_with_http_info(self, help_key: "str", **kwargs: Any) -> Any: - all_params = [ - "help_key", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["help_key", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -121,20 +131,11 @@ def get_help_url_redirect(self, *, help_key: "str") -> "None": ------- None """ - data = self._get_help_url_redirect_with_http_info( - help_key, _return_http_data_only=True - ) + data = self._get_help_url_redirect_with_http_info(help_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_help_url_redirect_with_http_info( - self, help_key: "str", **kwargs: Any - ) -> Any: - all_params = [ - "help_key", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_help_url_redirect_with_http_info(self, help_key: "str", **kwargs: Any) -> Any: + all_params = ["help_key", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py index f86bb0e4..b50873da 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -58,19 +73,12 @@ def _add_schema_with_http_info( body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, **kwargs: Any, ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_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 add_schema" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method add_schema") params[key] = val del params["kwargs"] @@ -95,12 +103,7 @@ def _add_schema_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -221,12 +224,7 @@ def delete_schema(self, *, schema: "str") -> "None": return data # type: ignore[no-any-return] def _delete_schema_with_http_info(self, schema: "str", **kwargs: Any) -> Any: - all_params = [ - "schema", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["schema", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -238,9 +236,7 @@ def _delete_schema_with_http_info(self, schema: "str", **kwargs: Any) -> Any: del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: - raise ValueError( - "Missing the required parameter 'schema' when calling 'delete_schema'" - ) + raise ValueError("Missing the required parameter 'schema' when calling 'delete_schema'") collection_formats: Dict[str, Any] = {} @@ -303,10 +299,7 @@ def get_schema( return data # type: ignore[no-any-return] def _get_schema_with_http_info( - self, - schema: "str", - include_implicit_attributes: "Optional[bool]" = None, - **kwargs: Any, + self, schema: "str", include_implicit_attributes: "Optional[bool]" = None, **kwargs: Any ) -> Any: all_params = [ "schema", @@ -319,16 +312,12 @@ def _get_schema_with_http_info( 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_schema" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_schema") params[key] = val del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: - raise ValueError( - "Missing the required parameter 'schema' when calling 'get_schema'" - ) + raise ValueError("Missing the required parameter 'schema' when calling 'get_schema'") collection_formats: Dict[str, Any] = {} @@ -337,10 +326,7 @@ def _get_schema_with_http_info( path_params["schema"] = params["schema"] query_params: List[Any] = [] - if ( - "include_implicit_attributes" in params - and include_implicit_attributes is not None - ): + if "include_implicit_attributes" in params and include_implicit_attributes is not None: query_params.append( ("includeImplicitAttributes", params["include_implicit_attributes"]) ) @@ -466,7 +452,9 @@ def _get_status_for_integration_schema_with_http_info( def schema_table_mappings( self, *, schema: "str", database_key: "str", table_identity: "int" - ) -> "Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None]": + ) -> ( + "Union[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None]" + ): """Returns a list of the schema source mapping from the given table. Will fail if the database is not loaded in MI. Names and identities of source items will be populated. This method makes a synchronous HTTP request. @@ -590,10 +578,7 @@ def schema_targets( return data # type: ignore[no-any-return] def _schema_targets_with_http_info( - self, - schema: "str", - include_implicit_attributes: "Optional[bool]" = None, - **kwargs: Any, + self, schema: "str", include_implicit_attributes: "Optional[bool]" = None, **kwargs: Any ) -> Any: all_params = [ "schema", @@ -624,10 +609,7 @@ def _schema_targets_with_http_info( path_params["schema"] = params["schema"] query_params: List[Any] = [] - if ( - "include_implicit_attributes" in params - and include_implicit_attributes is not None - ): + if "include_implicit_attributes" in params and include_implicit_attributes is not None: query_params.append( ("includeImplicitAttributes", params["include_implicit_attributes"]) ) @@ -682,9 +664,7 @@ def _schemas_with_http_info(self, **kwargs: Any) -> Any: 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 schemas" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method schemas") params[key] = val del params["kwargs"] @@ -744,9 +724,7 @@ def update_schema( ------- Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._update_schema_with_http_info( - schema, body, _return_http_data_only=True - ) + data = self._update_schema_with_http_info(schema, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _update_schema_with_http_info( @@ -773,9 +751,7 @@ def _update_schema_with_http_info( del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: - raise ValueError( - "Missing the required parameter 'schema' when calling 'update_schema'" - ) + raise ValueError("Missing the required parameter 'schema' when calling 'update_schema'") collection_formats: Dict[str, Any] = {} @@ -800,12 +776,7 @@ def _update_schema_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py index c27a2f30..9e5e0321 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/job_queue_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -52,23 +67,14 @@ def create_job( return data # type: ignore[no-any-return] def _create_job_with_http_info( - self, - body: "Optional[GrantaServerApiAsyncJobsCreateJobRequest]" = None, - **kwargs: Any, + self, body: "Optional[GrantaServerApiAsyncJobsCreateJobRequest]" = None, **kwargs: Any ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_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 create_job" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method create_job") params[key] = val del params["kwargs"] @@ -93,12 +99,7 @@ def _create_job_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -138,26 +139,17 @@ def delete_job(self, *, id: "str") -> "None": return data # type: ignore[no-any-return] def _delete_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: - all_params = [ - "id", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["id", "_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 delete_job" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method delete_job") params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'delete_job'" - ) + raise ValueError("Missing the required parameter 'id' when calling 'delete_job'") collection_formats: Dict[str, Any] = {} @@ -196,9 +188,7 @@ def _delete_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: response_type_map=response_type_map, ) - def delete_jobs( - self, *, body: "Optional[List[str]]" = None - ) -> "Union[List[str], None]": + def delete_jobs(self, *, body: "Optional[List[str]]" = None) -> "Union[List[str], None]": """Delete specified jobs. This method makes a synchronous HTTP request. @@ -214,22 +204,13 @@ def delete_jobs( data = self._delete_jobs_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _delete_jobs_with_http_info( - self, body: "Optional[List[str]]" = None, **kwargs: Any - ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _delete_jobs_with_http_info(self, body: "Optional[List[str]]" = None, **kwargs: Any) -> Any: + all_params = ["body", "_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 delete_jobs" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method delete_jobs") params[key] = val del params["kwargs"] @@ -254,12 +235,7 @@ def _delete_jobs_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -362,26 +338,17 @@ def get_job(self, *, id: "str") -> "Union[GrantaServerApiAsyncJobsJob, None]": return data # type: ignore[no-any-return] def _get_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: - all_params = [ - "id", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["id", "_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_job" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_job") params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'get_job'" - ) + raise ValueError("Missing the required parameter 'id' when calling 'get_job'") collection_formats: Dict[str, Any] = {} @@ -437,9 +404,7 @@ def get_job_output_file(self, *, id: "str", file_name: "str") -> "Union[None, st ------- Union[None, str] """ - data = self._get_job_output_file_with_http_info( - id, file_name, _return_http_data_only=True - ) + data = self._get_job_output_file_with_http_info(id, file_name, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_job_output_file_with_http_info( @@ -489,9 +454,7 @@ def _get_job_output_file_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/octet-stream"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/octet-stream"]) response_type_map: Dict[int, Optional[str]] = { 200: "file", @@ -582,9 +545,7 @@ def _get_jobs_with_http_info( 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_jobs" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_jobs") params[key] = val del params["kwargs"] @@ -602,9 +563,7 @@ def _get_jobs_with_http_info( if "description_filter" in params and description_filter is not None: query_params.append(("descriptionFilter", params["description_filter"])) if "submitter_name_filter" in params and submitter_name_filter is not None: - query_params.append( - ("submitterNameFilter", params["submitter_name_filter"]) - ) + query_params.append(("submitterNameFilter", params["submitter_name_filter"])) if "page_size" in params and page_size is not None: query_params.append(("pageSize", params["page_size"])) if "page_number" in params and page_number is not None: @@ -654,18 +613,11 @@ def get_output_filenames(self, *, id: "str") -> "Union[List[str], None]": ------- Union[List[str], None] """ - data = self._get_output_filenames_with_http_info( - id, _return_http_data_only=True - ) + data = self._get_output_filenames_with_http_info(id, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_output_filenames_with_http_info(self, id: "str", **kwargs: Any) -> Any: - all_params = [ - "id", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["id", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -799,26 +751,17 @@ def move_to_top(self, *, id: "str") -> "None": return data # type: ignore[no-any-return] def _move_to_top_with_http_info(self, id: "str", **kwargs: Any) -> Any: - all_params = [ - "id", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["id", "_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 move_to_top" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method move_to_top") params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'move_to_top'" - ) + raise ValueError("Missing the required parameter 'id' when calling 'move_to_top'") collection_formats: Dict[str, Any] = {} @@ -856,9 +799,7 @@ def _move_to_top_with_http_info(self, id: "str", **kwargs: Any) -> Any: response_type_map=response_type_map, ) - def restore_job( - self, *, id: "str" - ) -> "Union[GrantaServerApiAsyncJobsCreateJobRequest, None]": + def restore_job(self, *, id: "str") -> "Union[GrantaServerApiAsyncJobsCreateJobRequest, None]": """Get a job creation object based on an existing job. This method makes a synchronous HTTP request. @@ -875,26 +816,17 @@ def restore_job( return data # type: ignore[no-any-return] def _restore_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: - all_params = [ - "id", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["id", "_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 restore_job" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method restore_job") params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'restore_job'" - ) + raise ValueError("Missing the required parameter 'id' when calling 'restore_job'") collection_formats: Dict[str, Any] = {} @@ -937,10 +869,7 @@ def _restore_job_with_http_info(self, id: "str", **kwargs: Any) -> Any: ) def resubmit( - self, - *, - id: "str", - body: "Optional[GrantaServerApiAsyncJobsResubmitJobRequest]" = None, + self, *, id: "str", body: "Optional[GrantaServerApiAsyncJobsResubmitJobRequest]" = None ) -> "Union[GrantaServerApiAsyncJobsJob, None]": """Resubmit a job. @@ -975,16 +904,12 @@ def _resubmit_with_http_info( 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 resubmit" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method resubmit") params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'resubmit'" - ) + raise ValueError("Missing the required parameter 'id' when calling 'resubmit'") collection_formats: Dict[str, Any] = {} @@ -1009,12 +934,7 @@ def _resubmit_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1039,10 +959,7 @@ def _resubmit_with_http_info( ) def update_job( - self, - *, - id: "str", - body: "Optional[GrantaServerApiAsyncJobsUpdateJobRequest]" = None, + self, *, id: "str", body: "Optional[GrantaServerApiAsyncJobsUpdateJobRequest]" = None ) -> "Union[GrantaServerApiAsyncJobsJob, None]": """Update a job. @@ -1077,16 +994,12 @@ def _update_job_with_http_info( 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 update_job" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method update_job") params[key] = val del params["kwargs"] # verify the required parameter "id" is set if "id" not in params or params["id"] is None: - raise ValueError( - "Missing the required parameter 'id' when calling 'update_job'" - ) + raise ValueError("Missing the required parameter 'id' when calling 'update_job'") collection_formats: Dict[str, Any] = {} @@ -1111,12 +1024,7 @@ def _update_job_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1140,9 +1048,7 @@ def _update_job_with_http_info( response_type_map=response_type_map, ) - def upload_file( - self, *, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None - ) -> "str": + def upload_file(self, *, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None) -> "str": """Uploads an ephemeral file and returns an ID which can subsequently be used to refer to that file in a job creation request. Ephemeral files have a short lifespan and should be used to provide file data to jobs only. They should not be used as file storage. This method makes a synchronous HTTP request. @@ -1161,19 +1067,12 @@ def upload_file( def _upload_file_with_http_info( self, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, **kwargs: Any ) -> Any: - all_params = [ - "file", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["file", "_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 upload_file" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method upload_file") params[key] = val del params["kwargs"] diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py index 5972b520..910a50cc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/license_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -48,22 +63,13 @@ def checkout_app_license( ------- GrantaServerApiAppNameLicenseCheckoutResponse """ - data = self._checkout_app_license_with_http_info( - body, _return_http_data_only=True - ) + data = self._checkout_app_license_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _checkout_app_license_with_http_info( - self, - body: "Optional[GrantaServerApiAppNameLicenseCheckoutRequest]" = None, - **kwargs: Any, + self, body: "Optional[GrantaServerApiAppNameLicenseCheckoutRequest]" = None, **kwargs: Any ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -95,12 +101,7 @@ def _checkout_app_license_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -123,9 +124,7 @@ def _checkout_app_license_with_http_info( response_type_map=response_type_map, ) - def ensure_user_license_available( - self, - ) -> "Union[MicrosoftAspNetCoreMvcObjectResult, None]": + def ensure_user_license_available(self) -> "Union[MicrosoftAspNetCoreMvcObjectResult, None]": """Either checks out a user license for the requesting user, or returns an error response if no such license is available. This method is a no-op because it relies on license check to happen within Granta.Server.Api.Auth.UserContextFilter This method makes a synchronous HTTP request. @@ -134,9 +133,7 @@ def ensure_user_license_available( ------- Union[MicrosoftAspNetCoreMvcObjectResult, None] """ - data = self._ensure_user_license_available_with_http_info( - _return_http_data_only=True - ) + data = self._ensure_user_license_available_with_http_info(_return_http_data_only=True) return data # type: ignore[no-any-return] def _ensure_user_license_available_with_http_info(self, **kwargs: Any) -> Any: diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py index e77651af..70543bad 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_item_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -108,12 +123,7 @@ def _add_items_to_list_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -154,14 +164,10 @@ def get_list_items( ------- Union[GrantaServerApiListsDtoRecordListItemsInfo, None] """ - data = self._get_list_items_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._get_list_items_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_list_items_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _get_list_items_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -299,12 +305,7 @@ def _remove_items_from_list_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py index 8bc5a950..f8e588a6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -48,9 +63,7 @@ def copy_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._copy_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._copy_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] def _copy_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: @@ -64,9 +77,7 @@ def _copy_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> An 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 copy_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method copy_list") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set @@ -135,23 +146,14 @@ def create_list( return data # type: ignore[no-any-return] def _create_list_with_http_info( - self, - body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None, - **kwargs: Any, + self, body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None, **kwargs: Any ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_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 create_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method create_list") params[key] = val del params["kwargs"] @@ -176,12 +178,7 @@ def _create_list_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -219,9 +216,7 @@ def delete_list(self, *, list_identifier: "str") -> "None": ------- None """ - data = self._delete_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._delete_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] def _delete_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: @@ -235,9 +230,7 @@ def _delete_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> 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 delete_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method delete_list") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set @@ -283,9 +276,7 @@ def _delete_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> response_type_map=response_type_map, ) - def get_all_lists( - self, - ) -> "Union[GrantaServerApiListsDtoRecordListHeadersInfo, None]": + def get_all_lists(self) -> "Union[GrantaServerApiListsDtoRecordListHeadersInfo, None]": """Returns all lists visible to the calling user This method makes a synchronous HTTP request. @@ -362,9 +353,7 @@ def get_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._get_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._get_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: @@ -378,9 +367,7 @@ def _get_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any 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_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_list") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set @@ -480,13 +467,8 @@ def _get_record_list_search_results_with_http_info( collection_formats: Dict[str, Any] = {} path_params: Dict[str, Any] = {} - if ( - "result_resource_identifier" in params - and result_resource_identifier is not None - ): - path_params["resultResourceIdentifier"] = params[ - "result_resource_identifier" - ] + if "result_resource_identifier" in params and result_resource_identifier is not None: + path_params["resultResourceIdentifier"] = params["result_resource_identifier"] query_params: List[Any] = [] @@ -539,14 +521,10 @@ def publish_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._publish_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._publish_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _publish_list_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _publish_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -625,14 +603,10 @@ def request_approval( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._request_approval_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._request_approval_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _request_approval_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _request_approval_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -716,9 +690,7 @@ def reset_awaiting_approval( ) return data # type: ignore[no-any-return] - def _reset_awaiting_approval_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _reset_awaiting_approval_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -797,9 +769,7 @@ def revise_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._revise_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._revise_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] def _revise_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: @@ -813,9 +783,7 @@ def _revise_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> 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 revise_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method revise_list") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set @@ -881,22 +849,13 @@ def run_record_lists_search( ------- Union[GrantaServerApiListsDtoRecordListSearchInfo, None] """ - data = self._run_record_lists_search_with_http_info( - body, _return_http_data_only=True - ) + data = self._run_record_lists_search_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _run_record_lists_search_with_http_info( - self, - body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None, - **kwargs: Any, + self, body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None, **kwargs: Any ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -928,12 +887,7 @@ def _run_record_lists_search_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -973,14 +927,10 @@ def unpublish_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._unpublish_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._unpublish_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _unpublish_list_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _unpublish_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -1063,9 +1013,7 @@ def update_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._update_list_with_http_info( - list_identifier, body, _return_http_data_only=True - ) + data = self._update_list_with_http_info(list_identifier, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _update_list_with_http_info( @@ -1085,9 +1033,7 @@ def _update_list_with_http_info( 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 update_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method update_list") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set @@ -1119,12 +1065,7 @@ def _update_list_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py index ce6dd072..136c4cdc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -48,14 +63,10 @@ def get_permissions( ------- Union[GrantaServerApiListsDtoUserPermissionsInfo, None] """ - data = self._get_permissions_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._get_permissions_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_permissions_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _get_permissions_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -287,12 +298,7 @@ def _set_permissions_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -404,12 +410,7 @@ def _set_permissions_for_user_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -450,9 +451,7 @@ def subscribe( ------- Union[GrantaServerApiListsDtoUserPermission, None] """ - data = self._subscribe_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._subscribe_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] def _subscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: @@ -466,9 +465,7 @@ def _subscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> An 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 subscribe" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method subscribe") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set @@ -534,9 +531,7 @@ def unsubscribe( ------- Union[GrantaServerApiListsDtoUserPermission, None] """ - data = self._unsubscribe_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._unsubscribe_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] def _unsubscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: @@ -550,9 +545,7 @@ def _unsubscribe_with_http_info(self, list_identifier: "str", **kwargs: Any) -> 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 unsubscribe" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method unsubscribe") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/metrics_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/metrics_api.py index 1bef6b3f..2889a6f0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/metrics_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/metrics_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -51,15 +66,8 @@ def get_jobs_summary( data = self._get_jobs_summary_with_http_info(start, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_jobs_summary_with_http_info( - self, start: "Optional[str]" = None, **kwargs: Any - ) -> Any: - all_params = [ - "start", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + def _get_jobs_summary_with_http_info(self, start: "Optional[str]" = None, **kwargs: Any) -> Any: + all_params = ["start", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py index 35ee1e63..f547bad9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_histories_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -113,18 +128,11 @@ def _copy_record_history_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -174,11 +182,7 @@ def copy_record_history_in_table( Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ data = self._copy_record_history_in_table_with_http_info( - database_key, - table_guid, - record_history_guid, - body, - _return_http_data_only=True, + database_key, table_guid, record_history_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -245,18 +249,11 @@ def _copy_record_history_in_table_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -362,18 +359,11 @@ def _create_record_history_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -425,11 +415,7 @@ def get_latest_record_version( Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ data = self._get_latest_record_version_with_http_info( - database_key, - record_history_guid, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, + database_key, record_history_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -491,9 +477,7 @@ def _get_latest_record_version_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", @@ -620,9 +604,7 @@ def _get_latest_record_version_from_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", @@ -671,11 +653,7 @@ def get_record_history( Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ data = self._get_record_history_with_http_info( - database_key, - record_history_guid, - mode, - x_ansys_vc_mode, - _return_http_data_only=True, + database_key, record_history_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -737,9 +715,7 @@ def _get_record_history_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", @@ -866,9 +842,7 @@ def _get_record_history_from_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", @@ -971,18 +945,11 @@ def _move_record_history_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1032,11 +999,7 @@ def move_record_history_in_table( Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] """ data = self._move_record_history_in_table_with_http_info( - database_key, - table_guid, - record_history_guid, - body, - _return_http_data_only=True, + database_key, table_guid, record_history_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -1103,18 +1066,11 @@ def _move_record_history_in_table_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py index 0bf56daf..e2f7a57f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/records___record_versions_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -255,9 +270,7 @@ def _get_modifiable_record_version_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 201: "GrantaServerApiRecordsRecordVersionsRecordVersion", @@ -398,9 +411,7 @@ def _get_record_version_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", @@ -523,9 +534,7 @@ def _release_record_version_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", @@ -650,9 +659,7 @@ def _withdraw_record_version_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 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 eb6084f7..54ae9b8d 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 @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -113,18 +128,11 @@ def _create_attribute_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -173,11 +181,7 @@ def delete_attribute( return data # type: ignore[no-any-return] def _delete_attribute_with_http_info( - self, - database_key: "str", - table_guid: "str", - attribute_guid: "str", - **kwargs: Any, + self, database_key: "str", table_guid: "str", attribute_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -231,9 +235,7 @@ def _delete_attribute_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", @@ -281,11 +283,7 @@ def delete_meta_attribute( return data # type: ignore[no-any-return] def _delete_meta_attribute_with_http_info( - self, - database_key: "str", - table_guid: "str", - meta_attribute_guid: "str", - **kwargs: Any, + self, database_key: "str", table_guid: "str", meta_attribute_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -339,9 +337,7 @@ def _delete_meta_attribute_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", @@ -470,9 +466,7 @@ def _get_attribute_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttribute", @@ -583,9 +577,7 @@ def _get_attributes_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributesInfo", @@ -712,9 +704,7 @@ def _get_meta_attribute_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttribute", @@ -825,9 +815,7 @@ def _get_meta_attributes_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributesInfo", @@ -954,9 +942,7 @@ def _get_meta_attributes_for_attribute_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaAttributesAttributesInfo", @@ -1070,18 +1056,11 @@ def _update_attribute_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1131,11 +1110,7 @@ def update_meta_attribute( Union[GrantaServerApiSchemaAttributesAttribute, None] """ data = self._update_meta_attribute_with_http_info( - database_key, - table_guid, - meta_attribute_guid, - body, - _return_http_data_only=True, + database_key, table_guid, meta_attribute_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -1202,18 +1177,11 @@ def _update_meta_attribute_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1330,18 +1298,11 @@ def _validate_attribute_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1391,11 +1352,7 @@ def validate_meta_attribute( Union[GrantaServerApiSchemaAttributesAttributeValidateResponse, None] """ data = self._validate_meta_attribute_with_http_info( - database_key, - table_guid, - meta_attribute_guid, - body, - _return_http_data_only=True, + database_key, table_guid, meta_attribute_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -1462,18 +1419,11 @@ def _validate_meta_attribute_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py index 834b7804..a17a202f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -114,18 +129,11 @@ def _create_configuration_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -152,11 +160,7 @@ def _create_configuration_with_http_info( ) def delete_configuration( - self, - *, - database_key: "str", - configuration_type: "str", - configuration_guid: "str", + self, *, database_key: "str", configuration_type: "str", configuration_guid: "str" ) -> "None": """Delete a configuration @@ -174,10 +178,7 @@ def delete_configuration( None """ data = self._delete_configuration_with_http_info( - database_key, - configuration_type, - configuration_guid, - _return_http_data_only=True, + database_key, configuration_type, configuration_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -263,11 +264,7 @@ def _delete_configuration_with_http_info( ) def export_configuration( - self, - *, - database_key: "str", - configuration_type: "str", - configuration_guid: "str", + self, *, database_key: "str", configuration_type: "str", configuration_guid: "str" ) -> "None": """Get individual configuration as a file @@ -285,10 +282,7 @@ def export_configuration( None """ data = self._export_configuration_with_http_info( - database_key, - configuration_type, - configuration_guid, - _return_http_data_only=True, + database_key, configuration_type, configuration_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -373,11 +367,7 @@ def _export_configuration_with_http_info( ) def get_configuration( - self, - *, - database_key: "str", - configuration_type: "str", - configuration_guid: "str", + self, *, database_key: "str", configuration_type: "str", configuration_guid: "str" ) -> "Union[GrantaServerApiSchemaConfigurationsConfiguration, None]": """Get individual configuration @@ -395,10 +385,7 @@ def get_configuration( Union[GrantaServerApiSchemaConfigurationsConfiguration, None] """ data = self._get_configuration_with_http_info( - database_key, - configuration_type, - configuration_guid, - _return_http_data_only=True, + database_key, configuration_type, configuration_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -461,9 +448,7 @@ def _get_configuration_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConfigurationsConfiguration", @@ -555,9 +540,7 @@ def _get_configurations_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConfigurationsConfigurationsInfo", @@ -605,11 +588,7 @@ def update_configuration( Union[GrantaServerApiSchemaConfigurationsConfiguration, None] """ data = self._update_configuration_with_http_info( - database_key, - configuration_type, - configuration_guid, - body, - _return_http_data_only=True, + database_key, configuration_type, configuration_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -676,18 +655,11 @@ def _update_configuration_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py index cbf19292..57efa841 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -54,9 +69,7 @@ def create_constant( ------- Union[GrantaServerApiSchemaConstantsConstant, None] """ - data = self._create_constant_with_http_info( - database_key, body, _return_http_data_only=True - ) + data = self._create_constant_with_http_info(database_key, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _create_constant_with_http_info( @@ -104,18 +117,11 @@ def _create_constant_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -211,9 +217,7 @@ def _delete_constant_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionConstantDeletionException", @@ -308,9 +312,7 @@ def _get_constant_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConstantsConstant", @@ -348,9 +350,7 @@ def get_constants( ------- Union[GrantaServerApiSchemaConstantsConstantsInfo, None] """ - data = self._get_constants_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_constants_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_constants_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: @@ -390,9 +390,7 @@ def _get_constants_with_http_info(self, database_key: "str", **kwargs: Any) -> A body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaConstantsConstantsInfo", @@ -498,18 +496,11 @@ def _update_constant_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py index 8b70112b..144f7272 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -102,18 +117,11 @@ def _create_data_rule_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -296,9 +304,7 @@ def _get_data_rule_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDataRulesDataRule", @@ -336,9 +342,7 @@ def get_data_rules( ------- Union[GrantaServerApiSchemaDataRulesDataRulesInfo, None] """ - data = self._get_data_rules_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_data_rules_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_data_rules_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: @@ -378,9 +382,7 @@ def _get_data_rules_with_http_info(self, database_key: "str", **kwargs: Any) -> body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDataRulesDataRulesInfo", @@ -483,18 +485,11 @@ def _update_data_rule_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py index 62754d21..ed4283d7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -70,9 +85,7 @@ def _get_all_databases_with_http_info(self, **kwargs: Any) -> Any: body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabasesInfo", @@ -94,9 +107,7 @@ def _get_all_databases_with_http_info(self, **kwargs: Any) -> Any: response_type_map=response_type_map, ) - def get_database( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaDatabase, None]": + def get_database(self, *, database_key: "str") -> "Union[GrantaServerApiSchemaDatabase, None]": """Returns details for a given database. This method makes a synchronous HTTP request. @@ -109,9 +120,7 @@ def get_database( ------- Union[GrantaServerApiSchemaDatabase, None] """ - data = self._get_database_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_database_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_database_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: @@ -151,9 +160,7 @@ def _get_database_with_http_info(self, database_key: "str", **kwargs: Any) -> An body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabase", @@ -176,9 +183,7 @@ def _get_database_with_http_info(self, database_key: "str", **kwargs: Any) -> An response_type_map=response_type_map, ) - def lock_database( - self, *, database_key: "str" - ) -> "Union[GrantaServerApiSchemaDatabase, None]": + def lock_database(self, *, database_key: "str") -> "Union[GrantaServerApiSchemaDatabase, None]": """Lock database This method makes a synchronous HTTP request. @@ -192,9 +197,7 @@ def lock_database( ------- Union[GrantaServerApiSchemaDatabase, None] """ - data = self._lock_database_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._lock_database_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] def _lock_database_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: @@ -234,9 +237,7 @@ def _lock_database_with_http_info(self, database_key: "str", **kwargs: Any) -> A body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabase", @@ -277,14 +278,10 @@ def unlock_database( ------- Union[GrantaServerApiSchemaDatabase, None] """ - data = self._unlock_database_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._unlock_database_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _unlock_database_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _unlock_database_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -321,9 +318,7 @@ def _unlock_database_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDatabase", @@ -349,10 +344,7 @@ def _unlock_database_with_http_info( ) def update_database( - self, - *, - database_key: "str", - body: "Optional[GrantaServerApiSchemaUpdateDatabase]" = None, + self, *, database_key: "str", body: "Optional[GrantaServerApiSchemaUpdateDatabase]" = None ) -> "Union[GrantaServerApiSchemaDatabase, None]": """Update database details. @@ -367,9 +359,7 @@ def update_database( ------- Union[GrantaServerApiSchemaDatabase, None] """ - data = self._update_database_with_http_info( - database_key, body, _return_http_data_only=True - ) + data = self._update_database_with_http_info(database_key, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _update_database_with_http_info( @@ -417,18 +407,11 @@ def _update_database_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py index f7e79aa9..a7bfada0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -113,18 +128,11 @@ def _create_discrete_value_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -151,11 +159,7 @@ def _create_discrete_value_with_http_info( ) def delete_discrete_value( - self, - *, - database_key: "str", - discrete_type_guid: "str", - discrete_value_guid: "str", + self, *, database_key: "str", discrete_type_guid: "str", discrete_value_guid: "str" ) -> "Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None]": """Delete a single discrete value. It must not be used by any data, or the operation will fail. @@ -172,10 +176,7 @@ def delete_discrete_value( Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None] """ data = self._delete_discrete_value_with_http_info( - database_key, - discrete_type_guid, - discrete_value_guid, - _return_http_data_only=True, + database_key, discrete_type_guid, discrete_value_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -238,9 +239,7 @@ def _delete_discrete_value_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException", @@ -333,9 +332,7 @@ def _find_unused_discrete_values_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", @@ -360,11 +357,7 @@ def _find_unused_discrete_values_with_http_info( ) def get_discrete_value( - self, - *, - database_key: "str", - discrete_type_guid: "str", - discrete_value_guid: "str", + self, *, database_key: "str", discrete_type_guid: "str", discrete_value_guid: "str" ) -> "Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None]": """Gets specific discrete value for a given discreteType within a given database. @@ -381,10 +374,7 @@ def get_discrete_value( Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] """ data = self._get_discrete_value_with_http_info( - database_key, - discrete_type_guid, - discrete_value_guid, - _return_http_data_only=True, + database_key, discrete_type_guid, discrete_value_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -447,9 +437,7 @@ def _get_discrete_value_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValue", @@ -540,9 +528,7 @@ def _get_discrete_values_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", @@ -645,18 +631,11 @@ def _replace_discrete_values_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -706,11 +685,7 @@ def update_discrete_value( Union[GrantaServerApiSchemaDiscreteValuesDiscreteValue, None] """ data = self._update_discrete_value_with_http_info( - database_key, - discrete_type_guid, - discrete_value_guid, - body, - _return_http_data_only=True, + database_key, discrete_type_guid, discrete_value_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -777,18 +752,11 @@ def _update_discrete_value_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py index 8d74e972..9ff6dece 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -102,18 +117,11 @@ def _create_discrete_type_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -207,9 +215,7 @@ def _delete_discrete_type_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException", @@ -302,9 +308,7 @@ def _get_attributes_for_type_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", @@ -396,9 +400,7 @@ def _get_discrete_type_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteTypesDiscreteType", @@ -436,14 +438,10 @@ def get_discrete_types( ------- Union[GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo, None] """ - data = self._get_discrete_types_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_discrete_types_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_discrete_types_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_discrete_types_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -480,9 +478,7 @@ def _get_discrete_types_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo", @@ -586,18 +582,11 @@ def _update_discrete_type_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py index a3b6d364..861dfe0e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___exporters_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -224,12 +239,7 @@ def _create_exporters_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -354,9 +364,7 @@ def _delete_exporters_file_with_http_info( response_type_map=response_type_map, ) - def delete_exporters_folder( - self, *, database_key: "str", folder_guid: "str" - ) -> "None": + def delete_exporters_folder(self, *, database_key: "str", folder_guid: "str") -> "None": """Delete an Exporter Folder. This method makes a synchronous HTTP request. @@ -938,14 +946,10 @@ def get_exporters_folders( ------- Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._get_exporters_folders_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_exporters_folders_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_exporters_folders_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_exporters_folders_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1027,9 +1031,7 @@ def get_exporters_root_folder( ) return data # type: ignore[no-any-return] - def _get_exporters_root_folder_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_exporters_root_folder_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1188,12 +1190,7 @@ def _move_exporters_file_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1305,12 +1302,7 @@ def _move_exporters_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1351,14 +1343,10 @@ def refetch_exporters( ------- Union[GrantaServerApiSchemaFilesExporterRefetchInfo, None] """ - data = self._refetch_exporters_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._refetch_exporters_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _refetch_exporters_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _refetch_exporters_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1519,12 +1507,7 @@ def _update_exporters_file_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1636,12 +1619,7 @@ def _update_exporters_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py index 1457ddec..0d09af24 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -113,18 +128,11 @@ def _create_expression_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -173,11 +181,7 @@ def delete_expression( return data # type: ignore[no-any-return] def _delete_expression_with_http_info( - self, - database_key: "str", - table_guid: "str", - expression_guid: "str", - **kwargs: Any, + self, database_key: "str", table_guid: "str", expression_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -358,9 +362,7 @@ def _get_expression_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaExpressionsExpression", @@ -471,9 +473,7 @@ def _get_expressions_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaExpressionsExpressionsInfo", @@ -587,18 +587,11 @@ def _update_expression_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py index 107a4751..6f05713e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -224,12 +239,7 @@ def _create_help_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -936,14 +946,10 @@ def get_help_folders( ------- Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._get_help_folders_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_help_folders_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_help_folders_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_help_folders_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1020,14 +1026,10 @@ def get_help_root_folder( ------- Union[GrantaServerApiSchemaFilesFolder, None] """ - data = self._get_help_root_folder_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_help_root_folder_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_help_root_folder_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_help_root_folder_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1186,12 +1188,7 @@ def _move_help_file_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1303,12 +1300,7 @@ def _move_help_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1431,12 +1423,7 @@ def _update_help_file_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1548,12 +1535,7 @@ def _update_help_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py index 90204817..ee10b945 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___home_pages_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -224,12 +239,7 @@ def _create_home_page_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -354,9 +364,7 @@ def _delete_home_page_file_with_http_info( response_type_map=response_type_map, ) - def delete_home_page_folder( - self, *, database_key: "str", folder_guid: "str" - ) -> "None": + def delete_home_page_folder(self, *, database_key: "str", folder_guid: "str") -> "None": """Delete a Home Page Folder. This method makes a synchronous HTTP request. @@ -938,14 +946,10 @@ def get_home_page_folders( ------- Union[GrantaServerApiSchemaFilesFoldersInfo, None] """ - data = self._get_home_page_folders_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_home_page_folders_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_home_page_folders_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_home_page_folders_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1027,9 +1031,7 @@ def get_home_page_root_folder( ) return data # type: ignore[no-any-return] - def _get_home_page_root_folder_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_home_page_root_folder_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1188,12 +1190,7 @@ def _move_home_page_file_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1305,12 +1302,7 @@ def _move_home_page_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1433,12 +1425,7 @@ def _update_home_page_file_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1550,12 +1537,7 @@ def _update_home_page_folder_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py index 87ba56ed..aa401b5d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layout_sections_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -59,12 +74,7 @@ def create_layout_item( Union[GrantaServerApiSchemaLayoutsNewLayoutItem, None] """ data = self._create_layout_item_with_http_info( - database_key, - table_guid, - layout_guid, - section_guid, - body, - _return_http_data_only=True, + database_key, table_guid, layout_guid, section_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -140,18 +150,11 @@ def _create_layout_item_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -268,18 +271,11 @@ def _create_section_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -363,9 +359,7 @@ def _delete_item_with_http_info( 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 delete_item" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method delete_item") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -441,12 +435,7 @@ def _delete_item_with_http_info( ) def delete_section( - self, - *, - database_key: "str", - table_guid: "str", - layout_guid: "str", - section_guid: "str", + self, *, database_key: "str", table_guid: "str", layout_guid: "str", section_guid: "str" ) -> "None": """Delete a layout section. @@ -464,11 +453,7 @@ def delete_section( None """ data = self._delete_section_with_http_info( - database_key, - table_guid, - layout_guid, - section_guid, - _return_http_data_only=True, + database_key, table_guid, layout_guid, section_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -686,9 +671,7 @@ def _get_layout_section_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayoutSection", @@ -822,9 +805,7 @@ def _get_layout_sections_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", @@ -938,18 +919,11 @@ def _reorder_sections_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py index 32b34085..cc04a818 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -113,18 +128,11 @@ def _create_layout_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -315,9 +323,7 @@ def _get_layout_with_http_info( 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_layout" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_layout") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -361,9 +367,7 @@ def _get_layout_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayout", @@ -437,9 +441,7 @@ def _get_layouts_with_http_info( 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_layouts" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_layouts") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -474,9 +476,7 @@ def _get_layouts_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaLayoutsLayoutsInfo", @@ -590,18 +590,11 @@ def _update_layout_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py index 64d919bd..37c7ff79 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___parameters_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -102,18 +117,11 @@ def _create_parameter_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -219,18 +227,11 @@ def _create_parameter_value_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -324,9 +325,7 @@ def _delete_parameter_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionParameterDeletionException", @@ -353,9 +352,7 @@ def _delete_parameter_with_http_info( def delete_parameter_value( self, *, database_key: "str", parameter_guid: "str", parameter_value_guid: "str" - ) -> ( - "Union[GrantaServerApiExceptionsDeletionParameterValueDeletionException, None]" - ): + ) -> "Union[GrantaServerApiExceptionsDeletionParameterValueDeletionException, None]": """Delete a parameter value. This method makes a synchronous HTTP request. @@ -371,19 +368,12 @@ def delete_parameter_value( Union[GrantaServerApiExceptionsDeletionParameterValueDeletionException, None] """ data = self._delete_parameter_value_with_http_info( - database_key, - parameter_guid, - parameter_value_guid, - _return_http_data_only=True, + database_key, parameter_guid, parameter_value_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] def _delete_parameter_value_with_http_info( - self, - database_key: "str", - parameter_guid: "str", - parameter_value_guid: "str", - **kwargs: Any, + self, database_key: "str", parameter_guid: "str", parameter_value_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -413,10 +403,7 @@ def _delete_parameter_value_with_http_info( "Missing the required parameter 'parameter_guid' when calling 'delete_parameter_value'" ) # verify the required parameter "parameter_value_guid" is set - if ( - "parameter_value_guid" not in params - or params["parameter_value_guid"] is None - ): + if "parameter_value_guid" not in params or params["parameter_value_guid"] is None: raise ValueError( "Missing the required parameter 'parameter_value_guid' when calling 'delete_parameter_value'" ) @@ -440,9 +427,7 @@ def _delete_parameter_value_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionParameterValueDeletionException", @@ -535,9 +520,7 @@ def _get_objects_using_parameter_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSlimEntitiesSlimObjects", @@ -628,9 +611,7 @@ def _get_parameter_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParameter", @@ -671,19 +652,12 @@ def get_parameter_value( Union[GrantaServerApiSchemaParametersParameterValue, None] """ data = self._get_parameter_value_with_http_info( - database_key, - parameter_guid, - parameter_value_guid, - _return_http_data_only=True, + database_key, parameter_guid, parameter_value_guid, _return_http_data_only=True ) return data # type: ignore[no-any-return] def _get_parameter_value_with_http_info( - self, - database_key: "str", - parameter_guid: "str", - parameter_value_guid: "str", - **kwargs: Any, + self, database_key: "str", parameter_guid: "str", parameter_value_guid: "str", **kwargs: Any ) -> Any: all_params = [ "database_key", @@ -713,10 +687,7 @@ def _get_parameter_value_with_http_info( "Missing the required parameter 'parameter_guid' when calling 'get_parameter_value'" ) # verify the required parameter "parameter_value_guid" is set - if ( - "parameter_value_guid" not in params - or params["parameter_value_guid"] is None - ): + if "parameter_value_guid" not in params or params["parameter_value_guid"] is None: raise ValueError( "Missing the required parameter 'parameter_value_guid' when calling 'get_parameter_value'" ) @@ -740,9 +711,7 @@ def _get_parameter_value_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParameterValue", @@ -780,9 +749,7 @@ def get_parameters( ------- Union[GrantaServerApiSchemaParametersParametersInfo, None] """ - data = self._get_parameters_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_parameters_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_parameters_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: @@ -822,9 +789,7 @@ def _get_parameters_with_http_info(self, database_key: "str", **kwargs: Any) -> body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaParametersParametersInfo", @@ -927,18 +892,11 @@ def _update_parameter_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -988,11 +946,7 @@ def update_parameter_value( Union[GrantaServerApiSchemaParametersParameterValue, None] """ data = self._update_parameter_value_with_http_info( - database_key, - parameter_guid, - parameter_value_guid, - body, - _return_http_data_only=True, + database_key, parameter_guid, parameter_value_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -1033,10 +987,7 @@ def _update_parameter_value_with_http_info( "Missing the required parameter 'parameter_guid' when calling 'update_parameter_value'" ) # verify the required parameter "parameter_value_guid" is set - if ( - "parameter_value_guid" not in params - or params["parameter_value_guid"] is None - ): + if "parameter_value_guid" not in params or params["parameter_value_guid"] is None: raise ValueError( "Missing the required parameter 'parameter_value_guid' when calling 'update_parameter_value'" ) @@ -1062,18 +1013,11 @@ def _update_parameter_value_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py index 2821a7df..c9700b43 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -102,18 +117,11 @@ def _create_profile_table_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -139,9 +147,7 @@ def _create_profile_table_with_http_info( response_type_map=response_type_map, ) - def delete_profile_table( - self, *, profile_guid: "str", profile_table_guid: "str" - ) -> "None": + def delete_profile_table(self, *, profile_guid: "str", profile_table_guid: "str") -> "None": """Delete a profile table This method makes a synchronous HTTP request. @@ -297,9 +303,7 @@ def _get_profile_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfileTablesProfileTable", @@ -338,14 +342,10 @@ def get_profile_tables( ------- Union[GrantaServerApiSchemaProfileTablesProfileTablesInfo, None] """ - data = self._get_profile_tables_with_http_info( - profile_guid, _return_http_data_only=True - ) + data = self._get_profile_tables_with_http_info(profile_guid, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_profile_tables_with_http_info( - self, profile_guid: "str", **kwargs: Any - ) -> Any: + def _get_profile_tables_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any: all_params = [ "profile_guid", "_return_http_data_only", @@ -382,9 +382,7 @@ def _get_profile_tables_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfileTablesProfileTablesInfo", @@ -488,18 +486,11 @@ def _update_profile_table_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py index 12454ce3..0bd8caaf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -52,16 +67,9 @@ def create_profile( return data # type: ignore[no-any-return] def _create_profile_with_http_info( - self, - body: "Optional[GrantaServerApiSchemaProfilesCreateProfile]" = None, - **kwargs: Any, + self, body: "Optional[GrantaServerApiSchemaProfilesCreateProfile]" = None, **kwargs: Any ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -87,18 +95,11 @@ def _create_profile_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -136,9 +137,7 @@ def delete_profile(self, *, profile_guid: "str") -> "None": ------- None """ - data = self._delete_profile_with_http_info( - profile_guid, _return_http_data_only=True - ) + data = self._delete_profile_with_http_info(profile_guid, _return_http_data_only=True) return data # type: ignore[no-any-return] def _delete_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any: @@ -216,9 +215,7 @@ def get_profile( ------- Union[GrantaServerApiSchemaProfilesProfile, None] """ - data = self._get_profile_with_http_info( - profile_guid, _return_http_data_only=True - ) + data = self._get_profile_with_http_info(profile_guid, _return_http_data_only=True) return data # type: ignore[no-any-return] def _get_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any: @@ -232,9 +229,7 @@ def _get_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any 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_profile" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_profile") params[key] = val del params["kwargs"] # verify the required parameter "profile_guid" is set @@ -258,9 +253,7 @@ def _get_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfilesProfile", @@ -284,9 +277,7 @@ def _get_profile_with_http_info(self, profile_guid: "str", **kwargs: Any) -> Any response_type_map=response_type_map, ) - def get_profiles( - self, - ) -> "Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None]": + def get_profiles(self) -> "Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None]": """Get AllProfilesInfo This method makes a synchronous HTTP request. @@ -323,9 +314,7 @@ def _get_profiles_with_http_info(self, **kwargs: Any) -> Any: body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaProfilesAllProfilesInfo", @@ -349,9 +338,7 @@ def _get_profiles_with_http_info(self, **kwargs: Any) -> Any: ) def update_all_profiles_info( - self, - *, - body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None, + self, *, body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None ) -> "Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None]": """Update AllProfilesInfo @@ -365,9 +352,7 @@ def update_all_profiles_info( ------- Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None] """ - data = self._update_all_profiles_info_with_http_info( - body, _return_http_data_only=True - ) + data = self._update_all_profiles_info_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _update_all_profiles_info_with_http_info( @@ -375,12 +360,7 @@ def _update_all_profiles_info_with_http_info( body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None, **kwargs: Any, ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -406,18 +386,11 @@ def _update_all_profiles_info_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -462,9 +435,7 @@ def update_profile( ------- Union[GrantaServerApiSchemaProfilesProfile, None] """ - data = self._update_profile_with_http_info( - profile_guid, body, _return_http_data_only=True - ) + data = self._update_profile_with_http_info(profile_guid, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _update_profile_with_http_info( @@ -512,18 +483,11 @@ def _update_profile_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py index 83c508d3..787c129a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -113,18 +128,11 @@ def _create_record_link_group_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -220,18 +228,12 @@ def _delete_record_link_group_with_http_info( "Missing the required parameter 'table_guid' when calling 'delete_record_link_group'" ) # verify the required parameter "record_link_group_guid" is set - if ( - "record_link_group_guid" not in params - or params["record_link_group_guid"] is None - ): + if "record_link_group_guid" not in params or params["record_link_group_guid"] is None: raise ValueError( "Missing the required parameter 'record_link_group_guid' when calling 'delete_record_link_group'" ) # verify the required parameter "record_link_group_type" is set - if ( - "record_link_group_type" not in params - or params["record_link_group_type"] is None - ): + if "record_link_group_type" not in params or params["record_link_group_type"] is None: raise ValueError( "Missing the required parameter 'record_link_group_type' when calling 'delete_record_link_group'" ) @@ -367,9 +369,7 @@ def _get_inbound_record_link_groups_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", @@ -474,18 +474,12 @@ def _get_record_link_group_with_http_info( "Missing the required parameter 'table_guid' when calling 'get_record_link_group'" ) # verify the required parameter "record_link_group_guid" is set - if ( - "record_link_group_guid" not in params - or params["record_link_group_guid"] is None - ): + if "record_link_group_guid" not in params or params["record_link_group_guid"] is None: raise ValueError( "Missing the required parameter 'record_link_group_guid' when calling 'get_record_link_group'" ) # verify the required parameter "record_link_group_type" is set - if ( - "record_link_group_type" not in params - or params["record_link_group_type"] is None - ): + if "record_link_group_type" not in params or params["record_link_group_type"] is None: raise ValueError( "Missing the required parameter 'record_link_group_type' when calling 'get_record_link_group'" ) @@ -515,9 +509,7 @@ def _get_record_link_group_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", @@ -628,9 +620,7 @@ def _get_record_link_groups_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", @@ -677,11 +667,7 @@ def update_record_link_group( Union[GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, None] """ data = self._update_record_link_group_with_http_info( - database_key, - table_guid, - record_link_group_guid, - body, - _return_http_data_only=True, + database_key, table_guid, record_link_group_guid, body, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -722,10 +708,7 @@ def _update_record_link_group_with_http_info( "Missing the required parameter 'table_guid' when calling 'update_record_link_group'" ) # verify the required parameter "record_link_group_guid" is set - if ( - "record_link_group_guid" not in params - or params["record_link_group_guid"] is None - ): + if "record_link_group_guid" not in params or params["record_link_group_guid"] is None: raise ValueError( "Missing the required parameter 'record_link_group_guid' when calling 'update_record_link_group'" ) @@ -751,18 +734,11 @@ def _update_record_link_group_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py index f16a536f..c9a055e2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -102,18 +117,11 @@ def _create_standard_name_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -139,9 +147,7 @@ def _create_standard_name_with_http_info( response_type_map=response_type_map, ) - def delete_standard_name( - self, *, database_key: "str", standard_name_guid: "str" - ) -> "None": + def delete_standard_name(self, *, database_key: "str", standard_name_guid: "str") -> "None": """Delete a standard name. This method makes a synchronous HTTP request. @@ -298,9 +304,7 @@ def _get_standard_name_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaStandardNamesStandardName", @@ -338,14 +342,10 @@ def get_standard_names( ------- Union[GrantaServerApiSchemaStandardNamesStandardNamesInfo, None] """ - data = self._get_standard_names_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_standard_names_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_standard_names_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_standard_names_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -382,9 +382,7 @@ def _get_standard_names_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaStandardNamesStandardNamesInfo", @@ -487,18 +485,11 @@ def _update_standard_name_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py index 96f29d4b..fb50fc15 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___subsets_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -125,12 +140,7 @@ def _add_to_subset_with_http_info( body_params = params["body"] # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -236,18 +246,11 @@ def _create_subset_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -433,9 +436,7 @@ def _get_subset_with_http_info( 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_subset" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_subset") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -477,9 +478,7 @@ def _get_subset_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSubsetsSubset", @@ -553,9 +552,7 @@ def _get_subsets_with_http_info( 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_subsets" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_subsets") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -590,9 +587,7 @@ def _get_subsets_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaSubsetsSubsetsInfo", @@ -707,12 +702,7 @@ def _remove_from_subset_with_http_info( body_params = params["body"] # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -829,18 +819,11 @@ def _update_subset_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py index fed3be57..f4688345 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -52,9 +67,7 @@ def create_table( ------- Union[GrantaServerApiSchemaTablesTable, None] """ - data = self._create_table_with_http_info( - database_key, body, _return_http_data_only=True - ) + data = self._create_table_with_http_info(database_key, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _create_table_with_http_info( @@ -102,18 +115,11 @@ def _create_table_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -207,9 +213,7 @@ def _delete_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 400: "GrantaServerApiExceptionsDeletionTableDeletionException", @@ -302,9 +306,7 @@ def _enable_version_control_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTable", @@ -380,9 +382,7 @@ def _get_table_with_http_info( 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_table" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_table") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -392,9 +392,7 @@ def _get_table_with_http_info( ) # 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_table'" - ) + raise ValueError("Missing the required parameter 'table_guid' when calling 'get_table'") collection_formats: Dict[str, Any] = {} @@ -417,9 +415,7 @@ def _get_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTable", @@ -489,9 +485,7 @@ def _get_tables_with_http_info( 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_tables" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_tables") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -519,9 +513,7 @@ def _get_tables_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTablesInfo", @@ -612,9 +604,7 @@ def _release_table_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaTablesTable", @@ -719,18 +709,11 @@ def _update_table_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py index bb7289e5..bcb39aff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -34,10 +49,7 @@ class SchemaUnitsApi(ApiBase): """ def create_unit( - self, - *, - database_key: "str", - body: "Optional[GrantaServerApiSchemaUnitsCreateUnit]" = None, + self, *, database_key: "str", body: "Optional[GrantaServerApiSchemaUnitsCreateUnit]" = None ) -> "Union[GrantaServerApiSchemaUnitsUnit, None]": """Create a new unit. @@ -52,9 +64,7 @@ def create_unit( ------- Union[GrantaServerApiSchemaUnitsUnit, None] """ - data = self._create_unit_with_http_info( - database_key, body, _return_http_data_only=True - ) + data = self._create_unit_with_http_info(database_key, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _create_unit_with_http_info( @@ -74,9 +84,7 @@ def _create_unit_with_http_info( 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 create_unit" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method create_unit") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -102,18 +110,11 @@ def _create_unit_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -208,18 +209,11 @@ def _create_unit_system_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -278,9 +272,7 @@ def _delete_unit_with_http_info( 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 delete_unit" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method delete_unit") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -334,9 +326,7 @@ def _delete_unit_with_http_info( response_type_map=response_type_map, ) - def delete_unit_system( - self, *, database_key: "str", unit_system_guid: "str" - ) -> "None": + def delete_unit_system(self, *, database_key: "str", unit_system_guid: "str") -> "None": """Delete a unit system. This method makes a synchronous HTTP request. @@ -493,9 +483,7 @@ def _get_compatible_units_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitsInfo", @@ -534,14 +522,10 @@ def get_unit( ------- Union[GrantaServerApiSchemaUnitsUnit, None] """ - data = self._get_unit_with_http_info( - database_key, unit_guid, _return_http_data_only=True - ) + data = self._get_unit_with_http_info(database_key, unit_guid, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_unit_with_http_info( - self, database_key: "str", unit_guid: "str", **kwargs: Any - ) -> Any: + def _get_unit_with_http_info(self, database_key: "str", unit_guid: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "unit_guid", @@ -553,9 +537,7 @@ def _get_unit_with_http_info( 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_unit" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_unit") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -565,9 +547,7 @@ def _get_unit_with_http_info( ) # verify the required parameter "unit_guid" is set if "unit_guid" not in params or params["unit_guid"] is None: - raise ValueError( - "Missing the required parameter 'unit_guid' when calling 'get_unit'" - ) + raise ValueError("Missing the required parameter 'unit_guid' when calling 'get_unit'") collection_formats: Dict[str, Any] = {} @@ -586,9 +566,7 @@ def _get_unit_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnit", @@ -679,9 +657,7 @@ def _get_unit_equivalents_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitEquivalentsInfo", @@ -772,9 +748,7 @@ def _get_unit_system_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitSystem", @@ -812,14 +786,10 @@ def get_unit_systems( ------- Union[GrantaServerApiSchemaUnitsUnitSystemsInfo, None] """ - data = self._get_unit_systems_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_unit_systems_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_unit_systems_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_unit_systems_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -856,9 +826,7 @@ def _get_unit_systems_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitSystemsInfo", @@ -949,9 +917,7 @@ def _get_unit_usages_with_http_info( body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitUsage", @@ -1003,9 +969,7 @@ def _get_units_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: 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_units" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_units") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -1029,9 +993,7 @@ def _get_units_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSchemaUnitsUnitsInfo", @@ -1128,10 +1090,7 @@ def _set_unit_equivalent_with_http_info( "Missing the required parameter 'unit_system_guid' when calling 'set_unit_equivalent'" ) # verify the required parameter "equivalent_unit_guid" is set - if ( - "equivalent_unit_guid" not in params - or params["equivalent_unit_guid"] is None - ): + if "equivalent_unit_guid" not in params or params["equivalent_unit_guid"] is None: raise ValueError( "Missing the required parameter 'equivalent_unit_guid' when calling 'set_unit_equivalent'" ) @@ -1223,9 +1182,7 @@ def _update_unit_with_http_info( 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 update_unit" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method update_unit") params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set @@ -1258,18 +1215,11 @@ def _update_unit_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -1375,18 +1325,11 @@ def _update_unit_system_with_http_info( 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"] - ) + 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py index b08760d7..4f0a8f74 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -51,9 +66,7 @@ def _get_version_with_http_info(self, **kwargs: Any) -> Any: 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_version" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_version") params[key] = val del params["kwargs"] @@ -70,9 +83,7 @@ def _get_version_with_http_info(self, **kwargs: Any) -> Any: body_params = None # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["application/json"] - ) + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiAdminMiVersion", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py index 8c1f0912..4d1caea2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -122,12 +137,7 @@ def _database_search_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -178,12 +188,7 @@ def database_search_in_table_with_guid( GrantaServerApiSearchSearchResponse """ data = self._database_search_in_table_with_guid_with_http_info( - database_key, - table_guid, - body, - x_ansys_vc_mode, - mode, - _return_http_data_only=True, + database_key, table_guid, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -255,12 +260,7 @@ def _database_search_in_table_with_guid_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -311,12 +311,7 @@ def database_search_in_table_with_identity( GrantaServerApiSearchSearchResponse """ data = self._database_search_in_table_with_identity_with_http_info( - database_key, - table_identity, - body, - x_ansys_vc_mode, - mode, - _return_http_data_only=True, + database_key, table_identity, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) return data # type: ignore[no-any-return] @@ -388,12 +383,7 @@ def _database_search_in_table_with_identity_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -434,9 +424,7 @@ def delete_search_results(self, *, search_identifier: "str") -> "None": ) return data # type: ignore[no-any-return] - def _delete_search_results_with_http_info( - self, search_identifier: "str", **kwargs: Any - ) -> Any: + def _delete_search_results_with_http_info(self, search_identifier: "str", **kwargs: Any) -> Any: all_params = [ "search_identifier", "_return_http_data_only", @@ -569,12 +557,7 @@ def _get_search_results_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -599,10 +582,7 @@ def _get_search_results_with_http_info( ) def integration_search( - self, - *, - schema: "str", - body: "Optional[GrantaServerApiSearchSearchRequest]" = None, + self, *, schema: "str", body: "Optional[GrantaServerApiSearchSearchRequest]" = None ) -> "Union[GrantaServerApiSearchSearchResponse, None]": """Runs a search against the integration schema. @@ -617,9 +597,7 @@ def integration_search( ------- Union[GrantaServerApiSearchSearchResponse, None] """ - data = self._integration_search_with_http_info( - schema, body, _return_http_data_only=True - ) + data = self._integration_search_with_http_info(schema, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _integration_search_with_http_info( @@ -673,12 +651,7 @@ def _integration_search_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py index a4fa9772..3dc62fd7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/selection_searches_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -34,9 +49,7 @@ class SelectionSearchesApi(ApiBase): """ def create_search( - self, - *, - body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None, + self, *, body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": """Creates a new search with the specified properties. @@ -58,12 +71,7 @@ def _create_search_with_http_info( body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None, **kwargs: Any, ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() for key, val in params["kwargs"].items(): @@ -95,12 +103,7 @@ def _create_search_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -138,14 +141,10 @@ def delete_search(self, *, search_identifier: "str") -> "None": ------- None """ - data = self._delete_search_with_http_info( - search_identifier, _return_http_data_only=True - ) + data = self._delete_search_with_http_info(search_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _delete_search_with_http_info( - self, search_identifier: "str", **kwargs: Any - ) -> Any: + def _delete_search_with_http_info(self, search_identifier: "str", **kwargs: Any) -> Any: all_params = [ "search_identifier", "_return_http_data_only", @@ -204,9 +203,7 @@ def _delete_search_with_http_info( response_type_map=response_type_map, ) - def get_all( - self, - ) -> "Union[List[GrantaServerApiSelectionSearchesSelectionSearch], None]": + def get_all(self) -> "Union[List[GrantaServerApiSelectionSearchesSelectionSearch], None]": """Returns all searches visible to the calling user. This method makes a synchronous HTTP request. @@ -224,9 +221,7 @@ def _get_all_with_http_info(self, **kwargs: Any) -> Any: 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_all" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_all") params[key] = val del params["kwargs"] @@ -283,14 +278,10 @@ def get_search( ------- Union[GrantaServerApiSelectionSearchesSelectionSearch, None] """ - data = self._get_search_with_http_info( - search_identifier, _return_http_data_only=True - ) + data = self._get_search_with_http_info(search_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_search_with_http_info( - self, search_identifier: "str", **kwargs: Any - ) -> Any: + def _get_search_with_http_info(self, search_identifier: "str", **kwargs: Any) -> Any: all_params = [ "search_identifier", "_return_http_data_only", @@ -301,9 +292,7 @@ def _get_search_with_http_info( 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_search" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_search") params[key] = val del params["kwargs"] # verify the required parameter "search_identifier" is set @@ -395,9 +384,7 @@ def _save_search_with_http_info( 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 save_search" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method save_search") params[key] = val del params["kwargs"] # verify the required parameter "search_identifier" is set @@ -424,12 +411,7 @@ def _save_search_with_http_info( body_params = params["body"] # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { @@ -456,9 +438,7 @@ def _save_search_with_http_info( ) def search( - self, - *, - body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None, + self, *, body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None ) -> "Union[GrantaServerApiSelectionSearchesSelectionSearch, None]": """Retrieves a collection of searches that match the specified criteria. @@ -480,19 +460,12 @@ def _search_with_http_info( body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None, **kwargs: Any, ) -> Any: - all_params = [ - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] + all_params = ["body", "_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 search" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method search") params[key] = val del params["kwargs"] @@ -517,12 +490,7 @@ def _search_with_http_info( # 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", - ] + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] ) response_type_map: Dict[int, Optional[str]] = { diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py index a32f7472..9884476c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/status_api.py @@ -1,28 +1,43 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - BinaryIO, - List, - Optional, - Union, -) # noqa: F401 -from . import ApiBase +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase if TYPE_CHECKING: import pathlib + from ..models import * @@ -51,9 +66,7 @@ def _get_with_http_info(self, **kwargs: Any) -> Any: 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" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get") params[key] = val del params["kwargs"] @@ -105,14 +118,10 @@ def get_database_status( ------- GrantaServerApiDatabaseStatusInformation """ - data = self._get_database_status_with_http_info( - database_key, _return_http_data_only=True - ) + data = self._get_database_status_with_http_info(database_key, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _get_database_status_with_http_info( - self, database_key: "str", **kwargs: Any - ) -> Any: + def _get_database_status_with_http_info(self, database_key: "str", **kwargs: Any) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -191,9 +200,7 @@ def _get_status_with_http_info(self, **kwargs: Any) -> Any: 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_status" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method get_status") params[key] = val del params["kwargs"] 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 1c093c71..eca27dbb 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 @@ -1,3 +1,25 @@ +# Copyright (C) 2023 - 2024 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. + # flake8: noqa """ @@ -6,24 +28,23 @@ 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 Model ABC from ansys.openapi.common import ModelBase, Unset, Unset_Type -# import models into model package -from .folderguid_files_body import FolderguidFilesBody from .folderguid_files_body1 import FolderguidFilesBody1 from .folderguid_files_body2 import FolderguidFilesBody2 + +# import models into model package +from .folderguid_files_body import FolderguidFilesBody from .granta_mi_record_property_fake_attribute_identities import ( GrantaMIRecordPropertyFakeAttributeIdentities, ) from .granta_server_api_admin_mi_version import GrantaServerApiAdminMiVersion -from .granta_server_api_aggregations_aggregation import ( - GrantaServerApiAggregationsAggregation, -) +from .granta_server_api_aggregations_aggregation import GrantaServerApiAggregationsAggregation from .granta_server_api_aggregations_aggregation_criterion import ( GrantaServerApiAggregationsAggregationCriterion, ) @@ -111,9 +132,7 @@ from .granta_server_api_aggregations_free_text_aggregation_criterion import ( GrantaServerApiAggregationsFreeTextAggregationCriterion, ) -from .granta_server_api_aggregations_histogram import ( - GrantaServerApiAggregationsHistogram, -) +from .granta_server_api_aggregations_histogram import GrantaServerApiAggregationsHistogram from .granta_server_api_aggregations_histogram_bucket import ( GrantaServerApiAggregationsHistogramBucket, ) @@ -198,9 +217,7 @@ from .granta_server_api_aggregations_short_text_aggregation_datum_criterion import ( GrantaServerApiAggregationsShortTextAggregationDatumCriterion, ) -from .granta_server_api_aggregations_term_with_count import ( - GrantaServerApiAggregationsTermWithCount, -) +from .granta_server_api_aggregations_term_with_count import GrantaServerApiAggregationsTermWithCount from .granta_server_api_aggregations_value_with_count_of_system_boolean import ( GrantaServerApiAggregationsValueWithCountOfSystemBoolean, ) @@ -223,17 +240,11 @@ from .granta_server_api_async_jobs_create_job_request import ( GrantaServerApiAsyncJobsCreateJobRequest, ) -from .granta_server_api_async_jobs_current_user import ( - GrantaServerApiAsyncJobsCurrentUser, -) -from .granta_server_api_async_jobs_get_jobs_response import ( - GrantaServerApiAsyncJobsGetJobsResponse, -) +from .granta_server_api_async_jobs_current_user import GrantaServerApiAsyncJobsCurrentUser +from .granta_server_api_async_jobs_get_jobs_response import GrantaServerApiAsyncJobsGetJobsResponse from .granta_server_api_async_jobs_job import GrantaServerApiAsyncJobsJob from .granta_server_api_async_jobs_job_status import GrantaServerApiAsyncJobsJobStatus -from .granta_server_api_async_jobs_processing_config import ( - GrantaServerApiAsyncJobsProcessingConfig, -) +from .granta_server_api_async_jobs_processing_config import GrantaServerApiAsyncJobsProcessingConfig from .granta_server_api_async_jobs_resubmit_job_request import ( GrantaServerApiAsyncJobsResubmitJobRequest, ) @@ -270,9 +281,7 @@ from .granta_server_api_data_export_datums_date_time_datum import ( GrantaServerApiDataExportDatumsDateTimeDatum, ) -from .granta_server_api_data_export_datums_datum import ( - GrantaServerApiDataExportDatumsDatum, -) +from .granta_server_api_data_export_datums_datum import GrantaServerApiDataExportDatumsDatum from .granta_server_api_data_export_datums_discrete_datum import ( GrantaServerApiDataExportDatumsDiscreteDatum, ) @@ -312,9 +321,7 @@ from .granta_server_api_data_export_datums_grid_point import ( GrantaServerApiDataExportDatumsGridPoint, ) -from .granta_server_api_data_export_datums_hyperlink import ( - GrantaServerApiDataExportDatumsHyperlink, -) +from .granta_server_api_data_export_datums_hyperlink import GrantaServerApiDataExportDatumsHyperlink from .granta_server_api_data_export_datums_hyperlink_datum import ( GrantaServerApiDataExportDatumsHyperlinkDatum, ) @@ -339,15 +346,11 @@ from .granta_server_api_data_export_datums_picture_datum import ( GrantaServerApiDataExportDatumsPictureDatum, ) -from .granta_server_api_data_export_datums_point import ( - GrantaServerApiDataExportDatumsPoint, -) +from .granta_server_api_data_export_datums_point import GrantaServerApiDataExportDatumsPoint from .granta_server_api_data_export_datums_point_datum import ( GrantaServerApiDataExportDatumsPointDatum, ) -from .granta_server_api_data_export_datums_range import ( - GrantaServerApiDataExportDatumsRange, -) +from .granta_server_api_data_export_datums_range import GrantaServerApiDataExportDatumsRange from .granta_server_api_data_export_datums_range_datum import ( GrantaServerApiDataExportDatumsRangeDatum, ) @@ -366,9 +369,7 @@ from .granta_server_api_data_export_datums_rollup_values_rollup_datum import ( GrantaServerApiDataExportDatumsRollupValuesRollupDatum, ) -from .granta_server_api_data_export_datums_series import ( - GrantaServerApiDataExportDatumsSeries, -) +from .granta_server_api_data_export_datums_series import GrantaServerApiDataExportDatumsSeries from .granta_server_api_data_export_datums_series_point import ( GrantaServerApiDataExportDatumsSeriesPoint, ) @@ -486,9 +487,7 @@ from .granta_server_api_data_export_properties_version_state_property import ( GrantaServerApiDataExportPropertiesVersionStateProperty, ) -from .granta_server_api_data_export_record_with_data import ( - GrantaServerApiDataExportRecordWithData, -) +from .granta_server_api_data_export_record_with_data import GrantaServerApiDataExportRecordWithData from .granta_server_api_data_export_simple_attribute_to_export import ( GrantaServerApiDataExportSimpleAttributeToExport, ) @@ -501,15 +500,11 @@ from .granta_server_api_data_integer_datum import GrantaServerApiDataIntegerDatum from .granta_server_api_data_logical_datum import GrantaServerApiDataLogicalDatum from .granta_server_api_data_long_text_datum import GrantaServerApiDataLongTextDatum -from .granta_server_api_data_not_applicable_datum import ( - GrantaServerApiDataNotApplicableDatum, -) +from .granta_server_api_data_not_applicable_datum import GrantaServerApiDataNotApplicableDatum from .granta_server_api_data_numeric_parameter_with_value import ( GrantaServerApiDataNumericParameterWithValue, ) -from .granta_server_api_data_parameter_with_value import ( - GrantaServerApiDataParameterWithValue, -) +from .granta_server_api_data_parameter_with_value import GrantaServerApiDataParameterWithValue from .granta_server_api_data_picture_datum import GrantaServerApiDataPictureDatum from .granta_server_api_data_point_data_value import GrantaServerApiDataPointDataValue from .granta_server_api_data_point_datum import GrantaServerApiDataPointDatum @@ -521,9 +516,7 @@ GrantaServerApiDataSignificantFiguresInfo, ) from .granta_server_api_database_status import GrantaServerApiDatabaseStatus -from .granta_server_api_database_status_information import ( - GrantaServerApiDatabaseStatusInformation, -) +from .granta_server_api_database_status_information import GrantaServerApiDatabaseStatusInformation from .granta_server_api_discrete_value import GrantaServerApiDiscreteValue from .granta_server_api_disk_status import GrantaServerApiDiskStatus from .granta_server_api_exceptions_data_modification_data_modification_error_detail import ( @@ -556,9 +549,7 @@ from .granta_server_api_exceptions_deletion_table_deletion_exception import ( GrantaServerApiExceptionsDeletionTableDeletionException, ) -from .granta_server_api_exceptions_error_detail import ( - GrantaServerApiExceptionsErrorDetail, -) +from .granta_server_api_exceptions_error_detail import GrantaServerApiExceptionsErrorDetail from .granta_server_api_exceptions_record_history_record_history_copy_exception import ( GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, ) @@ -592,9 +583,7 @@ from .granta_server_api_exceptions_version_control_withdraw_record_version_control_exception import ( GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, ) -from .granta_server_api_exclude_values_specifier import ( - GrantaServerApiExcludeValuesSpecifier, -) +from .granta_server_api_exclude_values_specifier import GrantaServerApiExcludeValuesSpecifier from .granta_server_api_functional_datum_parameter_info import ( GrantaServerApiFunctionalDatumParameterInfo, ) @@ -648,9 +637,7 @@ from .granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier import ( GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, ) -from .granta_server_api_integration_schema_layout import ( - GrantaServerApiIntegrationSchemaLayout, -) +from .granta_server_api_integration_schema_layout import GrantaServerApiIntegrationSchemaLayout from .granta_server_api_integration_schema_link_source_type import ( GrantaServerApiIntegrationSchemaLinkSourceType, ) @@ -664,12 +651,8 @@ GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier, ) from .granta_server_api_link_attribute_type import GrantaServerApiLinkAttributeType -from .granta_server_api_lists_dto_create_list_item import ( - GrantaServerApiListsDtoCreateListItem, -) -from .granta_server_api_lists_dto_create_record_list import ( - GrantaServerApiListsDtoCreateRecordList, -) +from .granta_server_api_lists_dto_create_list_item import GrantaServerApiListsDtoCreateListItem +from .granta_server_api_lists_dto_create_record_list import GrantaServerApiListsDtoCreateRecordList from .granta_server_api_lists_dto_create_record_list_items_info import ( GrantaServerApiListsDtoCreateRecordListItemsInfo, ) @@ -682,16 +665,10 @@ from .granta_server_api_lists_dto_list_boolean_criterion import ( GrantaServerApiListsDtoListBooleanCriterion, ) -from .granta_server_api_lists_dto_list_criterion import ( - GrantaServerApiListsDtoListCriterion, -) +from .granta_server_api_lists_dto_list_criterion import GrantaServerApiListsDtoListCriterion from .granta_server_api_lists_dto_list_item import GrantaServerApiListsDtoListItem -from .granta_server_api_lists_dto_paging_options import ( - GrantaServerApiListsDtoPagingOptions, -) -from .granta_server_api_lists_dto_record_list_header import ( - GrantaServerApiListsDtoRecordListHeader, -) +from .granta_server_api_lists_dto_paging_options import GrantaServerApiListsDtoPagingOptions +from .granta_server_api_lists_dto_record_list_header import GrantaServerApiListsDtoRecordListHeader from .granta_server_api_lists_dto_record_list_headers_info import ( GrantaServerApiListsDtoRecordListHeadersInfo, ) @@ -716,9 +693,7 @@ from .granta_server_api_lists_dto_record_list_search_results_info import ( GrantaServerApiListsDtoRecordListSearchResultsInfo, ) -from .granta_server_api_lists_dto_response_options import ( - GrantaServerApiListsDtoResponseOptions, -) +from .granta_server_api_lists_dto_response_options import GrantaServerApiListsDtoResponseOptions from .granta_server_api_lists_dto_update_record_list_permission_flags import ( GrantaServerApiListsDtoUpdateRecordListPermissionFlags, ) @@ -731,12 +706,8 @@ from .granta_server_api_lists_dto_update_user_permissions_info import ( GrantaServerApiListsDtoUpdateUserPermissionsInfo, ) -from .granta_server_api_lists_dto_user_or_group import ( - GrantaServerApiListsDtoUserOrGroup, -) -from .granta_server_api_lists_dto_user_permission import ( - GrantaServerApiListsDtoUserPermission, -) +from .granta_server_api_lists_dto_user_or_group import GrantaServerApiListsDtoUserOrGroup +from .granta_server_api_lists_dto_user_permission import GrantaServerApiListsDtoUserPermission from .granta_server_api_lists_dto_user_permissions_info import ( GrantaServerApiListsDtoUserPermissionsInfo, ) @@ -744,9 +715,7 @@ from .granta_server_api_metrics_get_jobs_summary_response import ( GrantaServerApiMetricsGetJobsSummaryResponse, ) -from .granta_server_api_metrics_job_type_and_status import ( - GrantaServerApiMetricsJobTypeAndStatus, -) +from .granta_server_api_metrics_job_type_and_status import GrantaServerApiMetricsJobTypeAndStatus from .granta_server_api_no_values_specifier import GrantaServerApiNoValuesSpecifier from .granta_server_api_object_identifier import GrantaServerApiObjectIdentifier from .granta_server_api_parameter_info import GrantaServerApiParameterInfo @@ -756,9 +725,7 @@ from .granta_server_api_parameter_info_parameter_type import ( GrantaServerApiParameterInfoParameterType, ) -from .granta_server_api_parameter_info_scale_type import ( - GrantaServerApiParameterInfoScaleType, -) +from .granta_server_api_parameter_info_scale_type import GrantaServerApiParameterInfoScaleType from .granta_server_api_record_color import GrantaServerApiRecordColor from .granta_server_api_record_property import GrantaServerApiRecordProperty from .granta_server_api_record_type import GrantaServerApiRecordType @@ -786,9 +753,7 @@ from .granta_server_api_records_record_versions_slim_record_version import ( GrantaServerApiRecordsRecordVersionsSlimRecordVersion, ) -from .granta_server_api_schema_attributes_attribute import ( - GrantaServerApiSchemaAttributesAttribute, -) +from .granta_server_api_schema_attributes_attribute import GrantaServerApiSchemaAttributesAttribute from .granta_server_api_schema_attributes_attribute_attribute_info import ( GrantaServerApiSchemaAttributesAttributeAttributeInfo, ) @@ -990,9 +955,7 @@ from .granta_server_api_schema_configurations_update_configuration import ( GrantaServerApiSchemaConfigurationsUpdateConfiguration, ) -from .granta_server_api_schema_constants_constant import ( - GrantaServerApiSchemaConstantsConstant, -) +from .granta_server_api_schema_constants_constant import GrantaServerApiSchemaConstantsConstant from .granta_server_api_schema_constants_constants_info import ( GrantaServerApiSchemaConstantsConstantsInfo, ) @@ -1005,9 +968,7 @@ from .granta_server_api_schema_data_rules_create_data_rule import ( GrantaServerApiSchemaDataRulesCreateDataRule, ) -from .granta_server_api_schema_data_rules_data_rule import ( - GrantaServerApiSchemaDataRulesDataRule, -) +from .granta_server_api_schema_data_rules_data_rule import GrantaServerApiSchemaDataRulesDataRule from .granta_server_api_schema_data_rules_data_rules_info import ( GrantaServerApiSchemaDataRulesDataRulesInfo, ) @@ -1055,35 +1016,19 @@ from .granta_server_api_schema_expressions_update_expression import ( GrantaServerApiSchemaExpressionsUpdateExpression, ) -from .granta_server_api_schema_files_create_folder import ( - GrantaServerApiSchemaFilesCreateFolder, -) +from .granta_server_api_schema_files_create_folder import GrantaServerApiSchemaFilesCreateFolder from .granta_server_api_schema_files_exporter_refetch_info import ( GrantaServerApiSchemaFilesExporterRefetchInfo, ) -from .granta_server_api_schema_files_file_header import ( - GrantaServerApiSchemaFilesFileHeader, -) -from .granta_server_api_schema_files_files_info import ( - GrantaServerApiSchemaFilesFilesInfo, -) +from .granta_server_api_schema_files_file_header import GrantaServerApiSchemaFilesFileHeader +from .granta_server_api_schema_files_files_info import GrantaServerApiSchemaFilesFilesInfo from .granta_server_api_schema_files_folder import GrantaServerApiSchemaFilesFolder -from .granta_server_api_schema_files_folders_info import ( - GrantaServerApiSchemaFilesFoldersInfo, -) +from .granta_server_api_schema_files_folders_info import GrantaServerApiSchemaFilesFoldersInfo from .granta_server_api_schema_files_move_file import GrantaServerApiSchemaFilesMoveFile -from .granta_server_api_schema_files_move_folder import ( - GrantaServerApiSchemaFilesMoveFolder, -) -from .granta_server_api_schema_files_update_file import ( - GrantaServerApiSchemaFilesUpdateFile, -) -from .granta_server_api_schema_files_update_folder import ( - GrantaServerApiSchemaFilesUpdateFolder, -) -from .granta_server_api_schema_layouts_create_layout import ( - GrantaServerApiSchemaLayoutsCreateLayout, -) +from .granta_server_api_schema_files_move_folder import GrantaServerApiSchemaFilesMoveFolder +from .granta_server_api_schema_files_update_file import GrantaServerApiSchemaFilesUpdateFile +from .granta_server_api_schema_files_update_folder import GrantaServerApiSchemaFilesUpdateFolder +from .granta_server_api_schema_layouts_create_layout import GrantaServerApiSchemaLayoutsCreateLayout from .granta_server_api_schema_layouts_create_layout_section import ( GrantaServerApiSchemaLayoutsCreateLayoutSection, ) @@ -1094,9 +1039,7 @@ from .granta_server_api_schema_layouts_layout_attribute_item import ( GrantaServerApiSchemaLayoutsLayoutAttributeItem, ) -from .granta_server_api_schema_layouts_layout_item import ( - GrantaServerApiSchemaLayoutsLayoutItem, -) +from .granta_server_api_schema_layouts_layout_item import GrantaServerApiSchemaLayoutsLayoutItem from .granta_server_api_schema_layouts_layout_item_link_type import ( GrantaServerApiSchemaLayoutsLayoutItemLinkType, ) @@ -1118,9 +1061,7 @@ from .granta_server_api_schema_layouts_layout_tabular_column import ( GrantaServerApiSchemaLayoutsLayoutTabularColumn, ) -from .granta_server_api_schema_layouts_layouts_info import ( - GrantaServerApiSchemaLayoutsLayoutsInfo, -) +from .granta_server_api_schema_layouts_layouts_info import GrantaServerApiSchemaLayoutsLayoutsInfo from .granta_server_api_schema_layouts_new_layout_association_chain_item import ( GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem, ) @@ -1148,9 +1089,7 @@ from .granta_server_api_schema_layouts_reorder_sections_info import ( GrantaServerApiSchemaLayoutsReorderSectionsInfo, ) -from .granta_server_api_schema_layouts_update_layout import ( - GrantaServerApiSchemaLayoutsUpdateLayout, -) +from .granta_server_api_schema_layouts_update_layout import GrantaServerApiSchemaLayoutsUpdateLayout from .granta_server_api_schema_parameters_continuous_range import ( GrantaServerApiSchemaParametersContinuousRange, ) @@ -1193,9 +1132,7 @@ from .granta_server_api_schema_parameters_numeric_parameter_value import ( GrantaServerApiSchemaParametersNumericParameterValue, ) -from .granta_server_api_schema_parameters_parameter import ( - GrantaServerApiSchemaParametersParameter, -) +from .granta_server_api_schema_parameters_parameter import GrantaServerApiSchemaParametersParameter from .granta_server_api_schema_parameters_parameter_content import ( GrantaServerApiSchemaParametersParameterContent, ) @@ -1268,9 +1205,7 @@ from .granta_server_api_schema_profiles_create_profile import ( GrantaServerApiSchemaProfilesCreateProfile, ) -from .granta_server_api_schema_profiles_profile import ( - GrantaServerApiSchemaProfilesProfile, -) +from .granta_server_api_schema_profiles_profile import GrantaServerApiSchemaProfilesProfile from .granta_server_api_schema_profiles_update_all_profiles_info import ( GrantaServerApiSchemaProfilesUpdateAllProfilesInfo, ) @@ -1406,29 +1341,17 @@ from .granta_server_api_schema_subsets_add_record_history_to_subset import ( GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset, ) -from .granta_server_api_schema_subsets_create_subset import ( - GrantaServerApiSchemaSubsetsCreateSubset, -) +from .granta_server_api_schema_subsets_create_subset import GrantaServerApiSchemaSubsetsCreateSubset from .granta_server_api_schema_subsets_remove_record_history_from_subset import ( GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset, ) from .granta_server_api_schema_subsets_subset import GrantaServerApiSchemaSubsetsSubset -from .granta_server_api_schema_subsets_subsets_info import ( - GrantaServerApiSchemaSubsetsSubsetsInfo, -) -from .granta_server_api_schema_subsets_update_subset import ( - GrantaServerApiSchemaSubsetsUpdateSubset, -) -from .granta_server_api_schema_tables_create_table import ( - GrantaServerApiSchemaTablesCreateTable, -) +from .granta_server_api_schema_subsets_subsets_info import GrantaServerApiSchemaSubsetsSubsetsInfo +from .granta_server_api_schema_subsets_update_subset import GrantaServerApiSchemaSubsetsUpdateSubset +from .granta_server_api_schema_tables_create_table import GrantaServerApiSchemaTablesCreateTable from .granta_server_api_schema_tables_table import GrantaServerApiSchemaTablesTable -from .granta_server_api_schema_tables_tables_info import ( - GrantaServerApiSchemaTablesTablesInfo, -) -from .granta_server_api_schema_tables_update_table import ( - GrantaServerApiSchemaTablesUpdateTable, -) +from .granta_server_api_schema_tables_tables_info import GrantaServerApiSchemaTablesTablesInfo +from .granta_server_api_schema_tables_update_table import GrantaServerApiSchemaTablesUpdateTable from .granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column import ( GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttributeTabularColumn, ) @@ -1573,46 +1496,28 @@ from .granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, ) -from .granta_server_api_schema_units_create_unit import ( - GrantaServerApiSchemaUnitsCreateUnit, -) +from .granta_server_api_schema_units_create_unit import GrantaServerApiSchemaUnitsCreateUnit from .granta_server_api_schema_units_create_unit_system import ( GrantaServerApiSchemaUnitsCreateUnitSystem, ) from .granta_server_api_schema_units_unit import GrantaServerApiSchemaUnitsUnit -from .granta_server_api_schema_units_unit_equivalent import ( - GrantaServerApiSchemaUnitsUnitEquivalent, -) +from .granta_server_api_schema_units_unit_equivalent import GrantaServerApiSchemaUnitsUnitEquivalent from .granta_server_api_schema_units_unit_equivalents_info import ( GrantaServerApiSchemaUnitsUnitEquivalentsInfo, ) -from .granta_server_api_schema_units_unit_mapping import ( - GrantaServerApiSchemaUnitsUnitMapping, -) -from .granta_server_api_schema_units_unit_system import ( - GrantaServerApiSchemaUnitsUnitSystem, -) +from .granta_server_api_schema_units_unit_mapping import GrantaServerApiSchemaUnitsUnitMapping +from .granta_server_api_schema_units_unit_system import GrantaServerApiSchemaUnitsUnitSystem from .granta_server_api_schema_units_unit_systems_info import ( GrantaServerApiSchemaUnitsUnitSystemsInfo, ) -from .granta_server_api_schema_units_unit_usage import ( - GrantaServerApiSchemaUnitsUnitUsage, -) -from .granta_server_api_schema_units_units_info import ( - GrantaServerApiSchemaUnitsUnitsInfo, -) -from .granta_server_api_schema_units_update_unit import ( - GrantaServerApiSchemaUnitsUpdateUnit, -) +from .granta_server_api_schema_units_unit_usage import GrantaServerApiSchemaUnitsUnitUsage +from .granta_server_api_schema_units_units_info import GrantaServerApiSchemaUnitsUnitsInfo +from .granta_server_api_schema_units_update_unit import GrantaServerApiSchemaUnitsUpdateUnit from .granta_server_api_schema_units_update_unit_system import ( GrantaServerApiSchemaUnitsUpdateUnitSystem, ) -from .granta_server_api_schema_update_database import ( - GrantaServerApiSchemaUpdateDatabase, -) -from .granta_server_api_search_attribute_criterion import ( - GrantaServerApiSearchAttributeCriterion, -) +from .granta_server_api_schema_update_database import GrantaServerApiSchemaUpdateDatabase +from .granta_server_api_search_attribute_criterion import GrantaServerApiSearchAttributeCriterion from .granta_server_api_search_attribute_exists_criterion import ( GrantaServerApiSearchAttributeExistsCriterion, ) @@ -1625,20 +1530,14 @@ from .granta_server_api_search_attribute_sort_criterion import ( GrantaServerApiSearchAttributeSortCriterion, ) -from .granta_server_api_search_boolean_criterion import ( - GrantaServerApiSearchBooleanCriterion, -) +from .granta_server_api_search_boolean_criterion import GrantaServerApiSearchBooleanCriterion from .granta_server_api_search_boost_by_guid import GrantaServerApiSearchBoostByGuid -from .granta_server_api_search_boost_by_identity import ( - GrantaServerApiSearchBoostByIdentity, -) +from .granta_server_api_search_boost_by_identity import GrantaServerApiSearchBoostByIdentity from .granta_server_api_search_criterion import GrantaServerApiSearchCriterion from .granta_server_api_search_date_time_datum_criterion import ( GrantaServerApiSearchDateTimeDatumCriterion, ) -from .granta_server_api_search_datum_criterion import ( - GrantaServerApiSearchDatumCriterion, -) +from .granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion from .granta_server_api_search_datum_exists_criterion import ( GrantaServerApiSearchDatumExistsCriterion, ) @@ -1675,21 +1574,15 @@ from .granta_server_api_search_discrete_text_values_datum_criterion import ( GrantaServerApiSearchDiscreteTextValuesDatumCriterion, ) -from .granta_server_api_search_double_sorting_value import ( - GrantaServerApiSearchDoubleSortingValue, -) -from .granta_server_api_search_file_datum_criterion import ( - GrantaServerApiSearchFileDatumCriterion, -) +from .granta_server_api_search_double_sorting_value import GrantaServerApiSearchDoubleSortingValue +from .granta_server_api_search_file_datum_criterion import GrantaServerApiSearchFileDatumCriterion from .granta_server_api_search_float_functional_datum_criterion import ( GrantaServerApiSearchFloatFunctionalDatumCriterion, ) from .granta_server_api_search_float_functional_graph_datum_criterion import ( GrantaServerApiSearchFloatFunctionalGraphDatumCriterion, ) -from .granta_server_api_search_free_text_criterion import ( - GrantaServerApiSearchFreeTextCriterion, -) +from .granta_server_api_search_free_text_criterion import GrantaServerApiSearchFreeTextCriterion from .granta_server_api_search_hyperlink_datum_criterion import ( GrantaServerApiSearchHyperlinkDatumCriterion, ) @@ -1697,9 +1590,7 @@ from .granta_server_api_search_integer_datum_criterion import ( GrantaServerApiSearchIntegerDatumCriterion, ) -from .granta_server_api_search_link_datum_criterion import ( - GrantaServerApiSearchLinkDatumCriterion, -) +from .granta_server_api_search_link_datum_criterion import GrantaServerApiSearchLinkDatumCriterion from .granta_server_api_search_link_exists_datum_criterion import ( GrantaServerApiSearchLinkExistsDatumCriterion, ) @@ -1718,15 +1609,11 @@ from .granta_server_api_search_local_column_not_applicable_criterion import ( GrantaServerApiSearchLocalColumnNotApplicableCriterion, ) -from .granta_server_api_search_local_rows_behavior import ( - GrantaServerApiSearchLocalRowsBehavior, -) +from .granta_server_api_search_local_rows_behavior import GrantaServerApiSearchLocalRowsBehavior from .granta_server_api_search_logical_datum_criterion import ( GrantaServerApiSearchLogicalDatumCriterion, ) -from .granta_server_api_search_long_sorting_value import ( - GrantaServerApiSearchLongSortingValue, -) +from .granta_server_api_search_long_sorting_value import GrantaServerApiSearchLongSortingValue from .granta_server_api_search_long_text_datum_criterion import ( GrantaServerApiSearchLongTextDatumCriterion, ) @@ -1737,18 +1624,12 @@ GrantaServerApiSearchNumericParameterConstraint, ) from .granta_server_api_search_paging_options import GrantaServerApiSearchPagingOptions -from .granta_server_api_search_parameter_constraint import ( - GrantaServerApiSearchParameterConstraint, -) +from .granta_server_api_search_parameter_constraint import GrantaServerApiSearchParameterConstraint from .granta_server_api_search_picture_datum_criterion import ( GrantaServerApiSearchPictureDatumCriterion, ) -from .granta_server_api_search_point_datum_criterion import ( - GrantaServerApiSearchPointDatumCriterion, -) -from .granta_server_api_search_range_datum_criterion import ( - GrantaServerApiSearchRangeDatumCriterion, -) +from .granta_server_api_search_point_datum_criterion import GrantaServerApiSearchPointDatumCriterion +from .granta_server_api_search_range_datum_criterion import GrantaServerApiSearchRangeDatumCriterion from .granta_server_api_search_record_ancestor_criterion import ( GrantaServerApiSearchRecordAncestorCriterion, ) @@ -1774,9 +1655,7 @@ GrantaServerApiSearchRelevanceSortCriterion, ) from .granta_server_api_search_search_request import GrantaServerApiSearchSearchRequest -from .granta_server_api_search_search_response import ( - GrantaServerApiSearchSearchResponse, -) +from .granta_server_api_search_search_response import GrantaServerApiSearchSearchResponse from .granta_server_api_search_search_result import GrantaServerApiSearchSearchResult from .granta_server_api_search_search_results_request import ( GrantaServerApiSearchSearchResultsRequest, @@ -1794,15 +1673,11 @@ from .granta_server_api_search_sort_direction import GrantaServerApiSearchSortDirection from .granta_server_api_search_sort_type import GrantaServerApiSearchSortType from .granta_server_api_search_sorting_value import GrantaServerApiSearchSortingValue -from .granta_server_api_search_string_sorting_value import ( - GrantaServerApiSearchStringSortingValue, -) +from .granta_server_api_search_string_sorting_value import GrantaServerApiSearchStringSortingValue from .granta_server_api_search_tabular_linking_value_criterion import ( GrantaServerApiSearchTabularLinkingValueCriterion, ) -from .granta_server_api_search_text_match_behavior import ( - GrantaServerApiSearchTextMatchBehavior, -) +from .granta_server_api_search_text_match_behavior import GrantaServerApiSearchTextMatchBehavior from .granta_server_api_selection_searches_create_search_request import ( GrantaServerApiSelectionSearchesCreateSearchRequest, ) @@ -1821,9 +1696,7 @@ from .granta_server_api_selection_searches_user_or_group import ( GrantaServerApiSelectionSearchesUserOrGroup, ) -from .granta_server_api_specific_values_specifier import ( - GrantaServerApiSpecificValuesSpecifier, -) +from .granta_server_api_specific_values_specifier import GrantaServerApiSpecificValuesSpecifier from .granta_server_api_value_specifier import GrantaServerApiValueSpecifier from .granta_server_api_value_specifier_type import GrantaServerApiValueSpecifierType from .granta_server_api_version_state import GrantaServerApiVersionState @@ -1835,7 +1708,6 @@ from .microsoft_asp_net_core_mvc_object_result import MicrosoftAspNetCoreMvcObjectResult from .system_net_http_status_code import SystemNetHttpStatusCode - __all__ = [ "ModelBase", "Unset", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py index d92d16b7..a9be4c75 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py index 7a1dbdcd..e5c6bb1d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body1.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py index c988738f..6f51d7df 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/folderguid_files_body2.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_record_property_fake_attribute_identities.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_record_property_fake_attribute_identities.py index c9b16113..491a2139 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_record_property_fake_attribute_identities.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_record_property_fake_attribute_identities.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ @@ -20,12 +42,30 @@ class GrantaMIRecordPropertyFakeAttributeIdentities(Enum): """ Allowed Enum values """ - BREADCRUMBS_IDENTITY_10_GUID_00000007_0000_0000_0000_000000000000_ = '{"name":"Breadcrumbs","identity":-10,"guid":"00000007-0000-0000-0000-000000000000"}' - TREENAME_IDENTITY_9_GUID_00000006_0000_0000_0000_000000000000_ = '{"name":"TreeName","identity":-9,"guid":"00000006-0000-0000-0000-000000000000"}' - TABLEIDENTITY_IDENTITY_8_GUID_00000005_0000_0000_0000_000000000000_ = '{"name":"TableIdentity","identity":-8,"guid":"00000005-0000-0000-0000-000000000000"}' - TABLENAME_IDENTITY_7_GUID_00000004_0000_0000_0000_000000000000_ = '{"name":"TableName","identity":-7,"guid":"00000004-0000-0000-0000-000000000000"}' - RECORDCOLOR_IDENTITY_6_GUID_00000003_0000_0000_0000_000000000000_ = '{"name":"RecordColor","identity":-6,"guid":"00000003-0000-0000-0000-000000000000"}' - DATABASEKEY_IDENTITY_5_GUID_00000002_0000_0000_0000_000000000000_ = '{"name":"DatabaseKey","identity":-5,"guid":"00000002-0000-0000-0000-000000000000"}' - RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = '{"name":"RecordName","identity":-4,"guid":"00000001-0000-0000-0000-000000000000"}' - RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009-0000-0000-0000-000000000000"}' - RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = '{"name":"RecordCreatedBy","identity":-2,"guid":"00000008-0000-0000-0000-000000000000"}' + BREADCRUMBS_IDENTITY_10_GUID_00000007_0000_0000_0000_000000000000_ = ( + '{"name":"Breadcrumbs","identity":-10,"guid":"00000007-0000-0000-0000-000000000000"}' + ) + TREENAME_IDENTITY_9_GUID_00000006_0000_0000_0000_000000000000_ = ( + '{"name":"TreeName","identity":-9,"guid":"00000006-0000-0000-0000-000000000000"}' + ) + TABLEIDENTITY_IDENTITY_8_GUID_00000005_0000_0000_0000_000000000000_ = ( + '{"name":"TableIdentity","identity":-8,"guid":"00000005-0000-0000-0000-000000000000"}' + ) + TABLENAME_IDENTITY_7_GUID_00000004_0000_0000_0000_000000000000_ = ( + '{"name":"TableName","identity":-7,"guid":"00000004-0000-0000-0000-000000000000"}' + ) + RECORDCOLOR_IDENTITY_6_GUID_00000003_0000_0000_0000_000000000000_ = ( + '{"name":"RecordColor","identity":-6,"guid":"00000003-0000-0000-0000-000000000000"}' + ) + DATABASEKEY_IDENTITY_5_GUID_00000002_0000_0000_0000_000000000000_ = ( + '{"name":"DatabaseKey","identity":-5,"guid":"00000002-0000-0000-0000-000000000000"}' + ) + RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = ( + '{"name":"RecordName","identity":-4,"guid":"00000001-0000-0000-0000-000000000000"}' + ) + RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = ( + '{"name":"RecordModifiedBy","identity":-3,"guid":"00000009-0000-0000-0000-000000000000"}' + ) + RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = ( + '{"name":"RecordCreatedBy","identity":-2,"guid":"00000008-0000-0000-0000-000000000000"}' + ) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py index f9930ad2..2cf5e924 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_admin_mi_version.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -112,9 +126,7 @@ def binary_compatibility_version( """ # Field is not nullable if binary_compatibility_version is None: - raise ValueError( - "Invalid value for 'binary_compatibility_version', must not be 'None'" - ) + raise ValueError("Invalid value for 'binary_compatibility_version', must not be 'None'") self._binary_compatibility_version = binary_compatibility_version @property @@ -154,9 +166,7 @@ def major_minor_version(self) -> "Union[str, Unset_Type]": return self._major_minor_version @major_minor_version.setter - def major_minor_version( - self, major_minor_version: "Union[str, Unset_Type]" - ) -> None: + def major_minor_version(self, major_minor_version: "Union[str, Unset_Type]") -> None: """Sets the major_minor_version of this GrantaServerApiAdminMiVersion. Parameters @@ -166,9 +176,7 @@ def major_minor_version( """ # Field is not nullable if major_minor_version is None: - raise ValueError( - "Invalid value for 'major_minor_version', must not be 'None'" - ) + raise ValueError("Invalid value for 'major_minor_version', must not be 'None'") self._major_minor_version = major_minor_version @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py index b8a21619..a4184730 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py index f478d2e7..6afab8c0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py index 0daecca0..719272fc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py index a49e1bb6..3a4ae030 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py index bad58521..1811e367 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_exists_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +137,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsAggregationDatumExistsCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsAggregationDatumExistsCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py index 5da0de3e..f17c70f2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -98,9 +112,7 @@ def criterion(self) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": return self._criterion @criterion.setter - def criterion( - self, criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" - ) -> None: + def criterion(self, criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]") -> None: """Sets the criterion of this GrantaServerApiAggregationsAggregationsRequest. Parameters @@ -116,9 +128,7 @@ def criterion( @property def aggregation_criteria( self, - ) -> ( - "Union[List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiAggregationsAggregationCriterion], None, Unset_Type]": """Gets the aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. The aggregations you wish to perform. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py index 019dfe59..d79785d7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregations_response.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,17 +85,13 @@ def __init__( ---------- results: List[GrantaServerApiAggregationsAggregation], optional """ - self._results: Union[ - List[GrantaServerApiAggregationsAggregation], None, Unset_Type - ] = Unset + self._results: Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type] = Unset if results is not Unset: self.results = results @property - def results( - self, - ) -> "Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type]": + def results(self) -> "Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type]": """Gets the results of this GrantaServerApiAggregationsAggregationsResponse. Returns @@ -93,8 +103,7 @@ def results( @results.setter def results( - self, - results: "Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type]", + self, results: "Union[List[GrantaServerApiAggregationsAggregation], None, Unset_Type]" ) -> None: """Sets the results of this GrantaServerApiAggregationsAggregationsResponse. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py index 3f5733b8..572eef0a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation import ( # noqa: F401 GrantaServerApiAggregationsAggregation, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsAttributeAggregation( - GrantaServerApiAggregationsAggregation -): +class GrantaServerApiAggregationsAttributeAggregation(GrantaServerApiAggregationsAggregation): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -120,9 +133,7 @@ def attribute_identity(self) -> "Union[int, None, Unset_Type]": return self._attribute_identity @attribute_identity.setter - def attribute_identity( - self, attribute_identity: "Union[int, None, Unset_Type]" - ) -> None: + def attribute_identity(self, attribute_identity: "Union[int, None, Unset_Type]") -> None: """Sets the attribute_identity of this GrantaServerApiAggregationsAttributeAggregation. The identity of the attribute that was aggregated over. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py index 3d6f9fc1..40754190 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -173,9 +188,7 @@ def is_meta_attribute(self, is_meta_attribute: "Union[bool, Unset_Type]") -> Non """ # Field is not nullable if is_meta_attribute is None: - raise ValueError( - "Invalid value for 'is_meta_attribute', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_meta_attribute', must not be 'None'") self._is_meta_attribute = is_meta_attribute @property @@ -233,9 +246,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsAttributeAggregationCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsAttributeAggregationCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py index 078e389f..3449a514 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_exists_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation_criterion import ( # noqa: F401 GrantaServerApiAggregationsAttributeAggregationCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -140,16 +155,12 @@ def attribute_aggregation_criterion_type( raise ValueError( "Invalid value for 'attribute_aggregation_criterion_type', must not be 'Unset'" ) - self._attribute_aggregation_criterion_type = ( - attribute_aggregation_criterion_type - ) + self._attribute_aggregation_criterion_type = attribute_aggregation_criterion_type @property def inner_criterion( self, - ) -> ( - "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]" - ): + ) -> "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. Returns @@ -198,9 +209,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsAttributeAggregationExistsCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsAttributeAggregationExistsCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py index a0af7773..9108ab9e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_value_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation_criterion import ( # noqa: F401 GrantaServerApiAggregationsAttributeAggregationCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -140,9 +155,7 @@ def attribute_aggregation_criterion_type( raise ValueError( "Invalid value for 'attribute_aggregation_criterion_type', must not be 'Unset'" ) - self._attribute_aggregation_criterion_type = ( - attribute_aggregation_criterion_type - ) + self._attribute_aggregation_criterion_type = attribute_aggregation_criterion_type @property def inner_criterion( @@ -196,9 +209,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsAttributeAggregationValueCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsAttributeAggregationValueCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py index 2388ad6c..b75231e6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_exists_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation import ( # noqa: F401 GrantaServerApiAggregationsAttributeAggregation, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -122,14 +137,10 @@ def attribute_aggregation_type(self, attribute_aggregation_type: "str") -> None: """ # Field is not nullable if attribute_aggregation_type is None: - raise ValueError( - "Invalid value for 'attribute_aggregation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_aggregation_type', must not be 'None'") # Field is required if attribute_aggregation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_aggregation_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_aggregation_type', must not be 'Unset'") self._attribute_aggregation_type = attribute_aggregation_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py index db839816..ec7d8d9e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_aggregation import ( # noqa: F401 GrantaServerApiAggregationsAttributeAggregation, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -103,9 +118,9 @@ def __init__( type=type, ) self._attribute_aggregation_type: str - self._aggregation_datum: Union[ - GrantaServerApiAggregationsAggregationDatum, Unset_Type - ] = Unset + self._aggregation_datum: Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type] = ( + Unset + ) self.attribute_aggregation_type = attribute_aggregation_type if aggregation_datum is not Unset: @@ -133,20 +148,14 @@ def attribute_aggregation_type(self, attribute_aggregation_type: "str") -> None: """ # Field is not nullable if attribute_aggregation_type is None: - raise ValueError( - "Invalid value for 'attribute_aggregation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_aggregation_type', must not be 'None'") # Field is required if attribute_aggregation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_aggregation_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_aggregation_type', must not be 'Unset'") self._attribute_aggregation_type = attribute_aggregation_type @property - def aggregation_datum( - self, - ) -> "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]": + def aggregation_datum(self) -> "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]": """Gets the aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. Returns @@ -158,8 +167,7 @@ def aggregation_datum( @aggregation_datum.setter def aggregation_datum( - self, - aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]", + self, aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]" ) -> None: """Sets the aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. @@ -170,9 +178,7 @@ def aggregation_datum( """ # Field is not nullable if aggregation_datum is None: - raise ValueError( - "Invalid value for 'aggregation_datum', must not be 'None'" - ) + raise ValueError("Invalid value for 'aggregation_datum', must not be 'None'") self._aggregation_datum = aggregation_datum @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_calendar_interval.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_calendar_interval.py index f3a2cdb0..cc3089bf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_calendar_interval.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_calendar_interval.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py index 641dc5cc..6414a571 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsDateTimeAggregation( - GrantaServerApiAggregationsAggregationDatum -): +class GrantaServerApiAggregationsDateTimeAggregation(GrantaServerApiAggregationsAggregationDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py index cb737fd8..1c929409 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,9 +144,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsDateTimeAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsDateTimeAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py index d09663a1..c9805c3e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_calendar_width_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -85,9 +100,7 @@ def __init__( type: str """ super().__init__() - self._interval: Union[ - GrantaServerApiAggregationsCalendarInterval, Unset_Type - ] = Unset + self._interval: Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type] = Unset self._offset: Union[str, None, Unset_Type] = Unset self._type: str @@ -98,9 +111,7 @@ def __init__( self.type = type @property - def interval( - self, - ) -> "Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type]": + def interval(self) -> "Union[GrantaServerApiAggregationsCalendarInterval, Unset_Type]": """Gets the interval of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py index 7bae0256..1c50c6c7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_fixed_width_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -192,8 +207,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion, + other, GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py index d06f8863..affe648e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py index 488bf513..9eb6d606 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +96,7 @@ def __init__( histogram: GrantaServerApiAggregationsDateTimeHistogram, optional """ super().__init__() - self._histogram: Union[ - GrantaServerApiAggregationsDateTimeHistogram, Unset_Type - ] = Unset + self._histogram: Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type] = Unset self._datum_type: str if histogram is not Unset: @@ -91,9 +104,7 @@ def __init__( self.datum_type = datum_type @property - def histogram( - self, - ) -> "Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type]": + def histogram(self) -> "Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type]": """Gets the histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. Returns @@ -105,8 +116,7 @@ def histogram( @histogram.setter def histogram( - self, - histogram: "Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type]", + self, histogram: "Union[GrantaServerApiAggregationsDateTimeHistogram, Unset_Type]" ) -> None: """Sets the histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. @@ -170,9 +180,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsDateTimeHistogramAggregation - ): + if not isinstance(other, GrantaServerApiAggregationsDateTimeHistogramAggregation): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py index 3a9c7f2e..70bc6bb6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -112,9 +127,7 @@ def maximum_number_of_buckets( """ # Field is not nullable if maximum_number_of_buckets is None: - raise ValueError( - "Invalid value for 'maximum_number_of_buckets', must not be 'None'" - ) + raise ValueError("Invalid value for 'maximum_number_of_buckets', must not be 'None'") self._maximum_number_of_buckets = maximum_number_of_buckets @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py index 3b6964d8..5043cb3f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_date_time_histogram_bucket.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py index d7fd41f3..14788a44 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +96,7 @@ def __init__( terms: List[GrantaServerApiAggregationsTermWithCount], optional """ super().__init__() - self._terms: Union[ - List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type - ] = Unset + self._terms: Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type] = Unset self._datum_type: str if terms is not Unset: @@ -91,9 +104,7 @@ def __init__( self.datum_type = datum_type @property - def terms( - self, - ) -> "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]": + def terms(self) -> "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]": """Gets the terms of this GrantaServerApiAggregationsDiscreteTextAggregation. Returns @@ -105,8 +116,7 @@ def terms( @terms.setter def terms( - self, - terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]", + self, terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]" ) -> None: """Sets the terms of this GrantaServerApiAggregationsDiscreteTextAggregation. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py index b40b7633..acaf131c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -194,9 +209,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py index 76be6f2a..6c7049f1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py index 7c8fd72a..6c04ad27 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -112,9 +127,7 @@ def number_of_parameter_values( """ # Field is not nullable if number_of_parameter_values is None: - raise ValueError( - "Invalid value for 'number_of_parameter_values', must not be 'None'" - ) + raise ValueError("Invalid value for 'number_of_parameter_values', must not be 'None'") self._number_of_parameter_values = number_of_parameter_values @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py index 531797fb..27876b6b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_grid_graph_aggregation.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,32 +108,22 @@ def __init__( show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], optional """ self._default_x_axis_parameter_identity_values: Union[ - List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], - None, - Unset_Type, + List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type ] = Unset self._default_x_axis_parameter_guid_values: Union[ - List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], - None, - Unset_Type, + List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type ] = Unset self._show_as_table_values: Union[ - List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], - None, - Unset_Type, + List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type ] = Unset self._minimum_number_of_points: Union[int, None, Unset_Type] = Unset self._maximum_number_of_points: Union[int, None, Unset_Type] = Unset self._count: Union[int, Unset_Type] = Unset if default_x_axis_parameter_identity_values is not Unset: - self.default_x_axis_parameter_identity_values = ( - default_x_axis_parameter_identity_values - ) + self.default_x_axis_parameter_identity_values = default_x_axis_parameter_identity_values if default_x_axis_parameter_guid_values is not Unset: - self.default_x_axis_parameter_guid_values = ( - default_x_axis_parameter_guid_values - ) + self.default_x_axis_parameter_guid_values = default_x_axis_parameter_guid_values if show_as_table_values is not Unset: self.show_as_table_values = show_as_table_values if minimum_number_of_points is not Unset: @@ -154,9 +158,7 @@ def default_x_axis_parameter_identity_values( default_x_axis_parameter_identity_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type] The default_x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ - self._default_x_axis_parameter_identity_values = ( - default_x_axis_parameter_identity_values - ) + self._default_x_axis_parameter_identity_values = default_x_axis_parameter_identity_values @property def default_x_axis_parameter_guid_values( @@ -183,9 +185,7 @@ def default_x_axis_parameter_guid_values( default_x_axis_parameter_guid_values: Union[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type] The default_x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ - self._default_x_axis_parameter_guid_values = ( - default_x_axis_parameter_guid_values - ) + self._default_x_axis_parameter_guid_values = default_x_axis_parameter_guid_values @property def show_as_table_values( @@ -311,9 +311,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation - ): + if not isinstance(other, GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py index 0aca1556..1fcf48a0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_series_graph_aggregation.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,19 +108,13 @@ def __init__( x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], optional """ self._x_axis_parameter_identity_values: Union[ - List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], - None, - Unset_Type, + List[GrantaServerApiAggregationsValueWithCountOfSystemInt32], None, Unset_Type ] = Unset self._x_axis_parameter_guid_values: Union[ - List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], - None, - Unset_Type, + List[GrantaServerApiAggregationsValueWithCountOfSystemGuid], None, Unset_Type ] = Unset self._show_as_table_values: Union[ - List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], - None, - Unset_Type, + List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type ] = Unset self._minimum_number_of_series: Union[int, None, Unset_Type] = Unset self._maximum_number_of_series: Union[int, None, Unset_Type] = Unset @@ -303,9 +311,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation - ): + if not isinstance(other, GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py index f0a8ed40..065806ec 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation import ( # noqa: F401 GrantaServerApiAggregationsAggregation, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsFreeTextAggregation( - GrantaServerApiAggregationsAggregation -): +class GrantaServerApiAggregationsFreeTextAggregation(GrantaServerApiAggregationsAggregation): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py index b3d9a989..9ac33715 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -205,9 +220,7 @@ def attributes(self) -> "Union[GrantaServerApiValueSpecifier, Unset_Type]": return self._attributes @attributes.setter - def attributes( - self, attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]" - ) -> None: + def attributes(self, attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]") -> None: """Sets the attributes of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Parameters @@ -297,9 +310,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsFreeTextAggregationCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsFreeTextAggregationCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py index 0c85a361..b4b37752 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,9 +85,9 @@ def __init__( ---------- buckets: List[GrantaServerApiAggregationsHistogramBucket], optional """ - self._buckets: Union[ - List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type - ] = Unset + self._buckets: Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type] = ( + Unset + ) if buckets is not Unset: self.buckets = buckets @@ -93,8 +107,7 @@ def buckets( @buckets.setter def buckets( - self, - buckets: "Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type]", + self, buckets: "Union[List[GrantaServerApiAggregationsHistogramBucket], None, Unset_Type]" ) -> None: """Sets the buckets of this GrantaServerApiAggregationsHistogram. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py index 91971fbe..967c9fc2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_histogram_bucket.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py index 17ba64ab..174fca81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsIntegerAggregation( - GrantaServerApiAggregationsAggregationDatum -): +class GrantaServerApiAggregationsIntegerAggregation(GrantaServerApiAggregationsAggregationDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py index 396d2529..2fe70159 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,9 +144,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsIntegerAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsIntegerAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py index 49aec71f..28090562 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_fixed_width_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -198,8 +213,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion, + other, GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py index 9a5cd5fb..26006e7d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -165,9 +180,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsIntegerHistogramAggregation - ): + if not isinstance(other, GrantaServerApiAggregationsIntegerHistogramAggregation): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py index 82c265d1..4083aeb5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_integer_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -110,9 +125,7 @@ def maximum_number_of_buckets( """ # Field is not nullable if maximum_number_of_buckets is None: - raise ValueError( - "Invalid value for 'maximum_number_of_buckets', must not be 'None'" - ) + raise ValueError("Invalid value for 'maximum_number_of_buckets', must not be 'None'") self._maximum_number_of_buckets = maximum_number_of_buckets @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py index ea4e836e..6b47c9bd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsLinkAggregation( - GrantaServerApiAggregationsAggregationDatum -): +class GrantaServerApiAggregationsLinkAggregation(GrantaServerApiAggregationsAggregationDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py index 9f89e894..97ca1952 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_link_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -83,9 +98,7 @@ def __init__( super().__init__() self._type: str self._local_aggregation_criteria: Union[ - List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], - None, - Unset_Type, + List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type ] = Unset self.type = type @@ -123,7 +136,9 @@ def type(self, type: "str") -> None: @property def local_aggregation_criteria( self, - ) -> "Union[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type]": + ) -> ( + "Union[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion], None, Unset_Type]" + ): """Gets the local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. Returns @@ -169,9 +184,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsLinkAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsLinkAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py index fa3dcee2..89f3fb84 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -108,9 +122,7 @@ def local_column_identity(self) -> "Union[int, None, Unset_Type]": return self._local_column_identity @local_column_identity.setter - def local_column_identity( - self, local_column_identity: "Union[int, None, Unset_Type]" - ) -> None: + def local_column_identity(self, local_column_identity: "Union[int, None, Unset_Type]") -> None: """Sets the local_column_identity of this GrantaServerApiAggregationsLocalColumnAggregation. The identity of the local column that was aggregated over. @@ -134,9 +146,7 @@ def local_column_guid(self) -> "Union[str, None, Unset_Type]": return self._local_column_guid @local_column_guid.setter - def local_column_guid( - self, local_column_guid: "Union[str, None, Unset_Type]" - ) -> None: + def local_column_guid(self, local_column_guid: "Union[str, None, Unset_Type]") -> None: """Sets the local_column_guid of this GrantaServerApiAggregationsLocalColumnAggregation. The GUID of the local column that was aggregated over. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py index dcbd6028..f5f4a5ee 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -159,9 +173,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsLocalColumnAggregationCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsLocalColumnAggregationCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py index 3837f415..a26db006 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_exists_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation_criterion import ( # noqa: F401 GrantaServerApiAggregationsLocalColumnAggregationCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +109,7 @@ def __init__( GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type ] = Unset - self.local_column_aggregation_criterion_type = ( - local_column_aggregation_criterion_type - ) + self.local_column_aggregation_criterion_type = local_column_aggregation_criterion_type if inner_criterion is not Unset: self.inner_criterion = inner_criterion @@ -132,16 +145,12 @@ def local_column_aggregation_criterion_type( raise ValueError( "Invalid value for 'local_column_aggregation_criterion_type', must not be 'Unset'" ) - self._local_column_aggregation_criterion_type = ( - local_column_aggregation_criterion_type - ) + self._local_column_aggregation_criterion_type = local_column_aggregation_criterion_type @property def inner_criterion( self, - ) -> ( - "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]" - ): + ) -> "Union[GrantaServerApiAggregationsAggregationDatumExistsCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. Returns @@ -190,9 +199,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py index 74b4a7fc..f1741660 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_aggregation_value_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation_criterion import ( # noqa: F401 GrantaServerApiAggregationsLocalColumnAggregationCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +109,7 @@ def __init__( GrantaServerApiAggregationsAggregationDatumCriterion, Unset_Type ] = Unset - self.local_column_aggregation_criterion_type = ( - local_column_aggregation_criterion_type - ) + self.local_column_aggregation_criterion_type = local_column_aggregation_criterion_type if inner_criterion is not Unset: self.inner_criterion = inner_criterion @@ -132,9 +145,7 @@ def local_column_aggregation_criterion_type( raise ValueError( "Invalid value for 'local_column_aggregation_criterion_type', must not be 'Unset'" ) - self._local_column_aggregation_criterion_type = ( - local_column_aggregation_criterion_type - ) + self._local_column_aggregation_criterion_type = local_column_aggregation_criterion_type @property def inner_criterion( @@ -188,9 +199,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsLocalColumnAggregationValueCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsLocalColumnAggregationValueCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py index 865c2756..540df56c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_exists_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation import ( # noqa: F401 GrantaServerApiAggregationsLocalColumnAggregation, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -107,9 +122,7 @@ def local_column_aggregation_type(self) -> "str": return self._local_column_aggregation_type @local_column_aggregation_type.setter - def local_column_aggregation_type( - self, local_column_aggregation_type: "str" - ) -> None: + def local_column_aggregation_type(self, local_column_aggregation_type: "str") -> None: """Sets the local_column_aggregation_type of this GrantaServerApiAggregationsLocalColumnExistsAggregation. Parameters @@ -151,9 +164,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsLocalColumnExistsAggregation - ): + if not isinstance(other, GrantaServerApiAggregationsLocalColumnExistsAggregation): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py index bd449f81..59780a0d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_local_column_value_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_local_column_aggregation import ( # noqa: F401 GrantaServerApiAggregationsLocalColumnAggregation, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -97,9 +112,9 @@ def __init__( local_column_guid=local_column_guid, local_column_identity=local_column_identity, ) - self._aggregation_datum: Union[ - GrantaServerApiAggregationsAggregationDatum, Unset_Type - ] = Unset + self._aggregation_datum: Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type] = ( + Unset + ) self._local_column_aggregation_type: str if aggregation_datum is not Unset: @@ -107,9 +122,7 @@ def __init__( self.local_column_aggregation_type = local_column_aggregation_type @property - def aggregation_datum( - self, - ) -> "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]": + def aggregation_datum(self) -> "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]": """Gets the aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. Returns @@ -121,8 +134,7 @@ def aggregation_datum( @aggregation_datum.setter def aggregation_datum( - self, - aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]", + self, aggregation_datum: "Union[GrantaServerApiAggregationsAggregationDatum, Unset_Type]" ) -> None: """Sets the aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. @@ -133,9 +145,7 @@ def aggregation_datum( """ # Field is not nullable if aggregation_datum is None: - raise ValueError( - "Invalid value for 'aggregation_datum', must not be 'None'" - ) + raise ValueError("Invalid value for 'aggregation_datum', must not be 'None'") self._aggregation_datum = aggregation_datum @property @@ -150,9 +160,7 @@ def local_column_aggregation_type(self) -> "str": return self._local_column_aggregation_type @local_column_aggregation_type.setter - def local_column_aggregation_type( - self, local_column_aggregation_type: "str" - ) -> None: + def local_column_aggregation_type(self, local_column_aggregation_type: "str") -> None: """Sets the local_column_aggregation_type of this GrantaServerApiAggregationsLocalColumnValueAggregation. Parameters @@ -194,9 +202,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsLocalColumnValueAggregation - ): + if not isinstance(other, GrantaServerApiAggregationsLocalColumnValueAggregation): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py index 3a55a063..5aad27c0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsLogicalAggregation( - GrantaServerApiAggregationsAggregationDatum -): +class GrantaServerApiAggregationsLogicalAggregation(GrantaServerApiAggregationsAggregationDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -82,9 +95,7 @@ def __init__( """ super().__init__() self._values: Union[ - List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], - None, - Unset_Type, + List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean], None, Unset_Type ] = Unset self._datum_type: str diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py index 61da016b..083a666d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,9 +144,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsLogicalAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsLogicalAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py index 44c8c69a..23293ff8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsPointAggregation( - GrantaServerApiAggregationsAggregationDatum -): +class GrantaServerApiAggregationsPointAggregation(GrantaServerApiAggregationsAggregationDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py index 2cf94731..6ca13422 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,9 +144,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsPointAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsPointAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py index 6dc33f41..0d3342b2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_fixed_width_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -198,8 +213,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion, + other, GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py index c293d9d2..003e1e9f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py index 74c33040..47cbf4c6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_point_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -110,9 +125,7 @@ def maximum_number_of_buckets( """ # Field is not nullable if maximum_number_of_buckets is None: - raise ValueError( - "Invalid value for 'maximum_number_of_buckets', must not be 'None'" - ) + raise ValueError("Invalid value for 'maximum_number_of_buckets', must not be 'None'") self._maximum_number_of_buckets = maximum_number_of_buckets @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py index aaa11838..5cdf7281 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsRangeAggregation( - GrantaServerApiAggregationsAggregationDatum -): +class GrantaServerApiAggregationsRangeAggregation(GrantaServerApiAggregationsAggregationDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py index ff38ad4c..71156d56 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,9 +144,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsRangeAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsRangeAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py index 82ab9177..773fa734 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_fixed_width_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -198,8 +213,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion, + other, GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py index 3fa43169..205e119a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py index 41b47209..365c6fe7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_range_histogram_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -110,9 +125,7 @@ def maximum_number_of_buckets( """ # Field is not nullable if maximum_number_of_buckets is None: - raise ValueError( - "Invalid value for 'maximum_number_of_buckets', must not be 'None'" - ) + raise ValueError("Invalid value for 'maximum_number_of_buckets', must not be 'None'") self._maximum_number_of_buckets = maximum_number_of_buckets @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py index deab4bb8..a87e2993 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiAggregationsShortTextAggregation( - GrantaServerApiAggregationsAggregationDatum -): +class GrantaServerApiAggregationsShortTextAggregation(GrantaServerApiAggregationsAggregationDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -81,9 +94,7 @@ def __init__( terms: List[GrantaServerApiAggregationsTermWithCount], optional """ super().__init__() - self._terms: Union[ - List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type - ] = Unset + self._terms: Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type] = Unset self._datum_type: str if terms is not Unset: @@ -91,9 +102,7 @@ def __init__( self.datum_type = datum_type @property - def terms( - self, - ) -> "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]": + def terms(self) -> "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]": """Gets the terms of this GrantaServerApiAggregationsShortTextAggregation. Returns @@ -105,8 +114,7 @@ def terms( @terms.setter def terms( - self, - terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]", + self, terms: "Union[List[GrantaServerApiAggregationsTermWithCount], None, Unset_Type]" ) -> None: """Sets the terms of this GrantaServerApiAggregationsShortTextAggregation. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py index 8af176d3..b2720a45 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_short_text_aggregation_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import ( # noqa: F401 GrantaServerApiAggregationsAggregationDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -194,9 +209,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsShortTextAggregationDatumCriterion - ): + if not isinstance(other, GrantaServerApiAggregationsShortTextAggregationDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py index 8959edd9..424f0de9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_term_with_count.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py index 39cfe21a..c517fb8f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -153,9 +167,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsValueWithCountOfSystemBoolean - ): + if not isinstance(other, GrantaServerApiAggregationsValueWithCountOfSystemBoolean): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py index 500cc2c7..19fb24c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py index 464f9784..87f99ec8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -153,9 +167,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiAggregationsValueWithCountOfSystemInt32 - ): + if not isinstance(other, GrantaServerApiAggregationsValueWithCountOfSystemInt32): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py index 3217bb69..8684c961 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_all_values_specifier.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( # noqa: F401 GrantaServerApiValueSpecifier, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py index 632e90b8..17c3cb6a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py index a8d9bd2e..36a9104b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_response.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -93,8 +107,7 @@ def results( @results.setter def results( - self, - results: "Union[List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type]", + self, results: "Union[List[GrantaServerApiAppNameLicenseCheckoutResult], None, Unset_Type]" ) -> None: """Sets the results of this GrantaServerApiAppNameLicenseCheckoutResponse. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py index 23dbb374..0b4a6816 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_app_name_license_checkout_result.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py index f56bcb6d..2bf44970 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_create_job_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -273,9 +287,7 @@ def input_file_ids(self) -> "Union[List[str], None, Unset_Type]": return self._input_file_ids @input_file_ids.setter - def input_file_ids( - self, input_file_ids: "Union[List[str], None, Unset_Type]" - ) -> None: + def input_file_ids(self, input_file_ids: "Union[List[str], None, Unset_Type]") -> None: """Sets the input_file_ids of this GrantaServerApiAsyncJobsCreateJobRequest. Names of temporary input files that were uploaded prior to creating this job. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py index 6adb3a61..6b536065 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py index a608ecd3..85729c53 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_get_jobs_response.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -76,9 +90,7 @@ def __init__( total_result_count: int, optional """ self._total_result_count: Union[int, Unset_Type] = Unset - self._results: Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type] = ( - Unset - ) + self._results: Union[List[GrantaServerApiAsyncJobsJob], None, Unset_Type] = Unset if total_result_count is not Unset: self.total_result_count = total_result_count @@ -107,9 +119,7 @@ def total_result_count(self, total_result_count: "Union[int, Unset_Type]") -> No """ # Field is not nullable if total_result_count is None: - raise ValueError( - "Invalid value for 'total_result_count', must not be 'None'" - ) + raise ValueError("Invalid value for 'total_result_count', must not be 'None'") self._total_result_count = total_result_count @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py index ea9a0a38..520f1bf1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -299,9 +313,7 @@ def submitter_roles(self) -> "Union[List[str], None, Unset_Type]": return self._submitter_roles @submitter_roles.setter - def submitter_roles( - self, submitter_roles: "Union[List[str], None, Unset_Type]" - ) -> None: + def submitter_roles(self, submitter_roles: "Union[List[str], None, Unset_Type]") -> None: """Sets the submitter_roles of this GrantaServerApiAsyncJobsJob. Parameters @@ -323,9 +335,7 @@ def submission_date(self) -> "Union[datetime, None, Unset_Type]": return self._submission_date @submission_date.setter - def submission_date( - self, submission_date: "Union[datetime, None, Unset_Type]" - ) -> None: + def submission_date(self, submission_date: "Union[datetime, None, Unset_Type]") -> None: """Sets the submission_date of this GrantaServerApiAsyncJobsJob. Parameters @@ -371,9 +381,7 @@ def execution_date(self) -> "Union[datetime, None, Unset_Type]": return self._execution_date @execution_date.setter - def execution_date( - self, execution_date: "Union[datetime, None, Unset_Type]" - ) -> None: + def execution_date(self, execution_date: "Union[datetime, None, Unset_Type]") -> None: """Sets the execution_date of this GrantaServerApiAsyncJobsJob. Parameters @@ -395,9 +403,7 @@ def completion_date(self) -> "Union[datetime, None, Unset_Type]": return self._completion_date @completion_date.setter - def completion_date( - self, completion_date: "Union[datetime, None, Unset_Type]" - ) -> None: + def completion_date(self, completion_date: "Union[datetime, None, Unset_Type]") -> None: """Sets the completion_date of this GrantaServerApiAsyncJobsJob. Parameters @@ -419,9 +425,7 @@ def status(self) -> "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]": return self._status @status.setter - def status( - self, status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]" - ) -> None: + def status(self, status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]") -> None: """Sets the status of this GrantaServerApiAsyncJobsJob. Parameters @@ -446,9 +450,7 @@ def input_file_ids(self) -> "Union[List[str], None, Unset_Type]": return self._input_file_ids @input_file_ids.setter - def input_file_ids( - self, input_file_ids: "Union[List[str], None, Unset_Type]" - ) -> None: + def input_file_ids(self, input_file_ids: "Union[List[str], None, Unset_Type]") -> None: """Sets the input_file_ids of this GrantaServerApiAsyncJobsJob. Parameters @@ -470,9 +472,7 @@ def output_file_names(self) -> "Union[List[str], None, Unset_Type]": return self._output_file_names @output_file_names.setter - def output_file_names( - self, output_file_names: "Union[List[str], None, Unset_Type]" - ) -> None: + def output_file_names(self, output_file_names: "Union[List[str], None, Unset_Type]") -> None: """Sets the output_file_names of this GrantaServerApiAsyncJobsJob. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job_status.py index fc9d5d1e..b77e8953 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_job_status.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py index 1740372c..d2d48ef2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_processing_config.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py index 66fc2ae1..bb9fc2b1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_resubmit_job_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py index 044fc266..650559b1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_update_job_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -177,9 +191,7 @@ def status(self) -> "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]": return self._status @status.setter - def status( - self, status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]" - ) -> None: + def status(self, status: "Union[GrantaServerApiAsyncJobsJobStatus, Unset_Type]") -> None: """Sets the status of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_attribute_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_attribute_type.py index 0df5d393..9a73b355 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_attribute_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_attribute_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py index e5bd569c..e411b211 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( # noqa: F401 GrantaServerApiDataDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py index 7d474d7d..6e75175c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py index 88ca2403..687edfb4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py index 241fc11b..c70d577d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py index 9548b18a..fa80958c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -118,9 +133,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def discrete_values( - self, - ) -> "List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]": + def discrete_values(self) -> "List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]": """Gets the discrete_values of this GrantaServerApiDataDiscreteDatum. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py index bd5ad657..311aa789 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_parameter_with_value.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( # noqa: F401 GrantaServerApiDataParameterWithValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataDiscreteParameterWithValue( - GrantaServerApiDataParameterWithValue -): +class GrantaServerApiDataDiscreteParameterWithValue(GrantaServerApiDataParameterWithValue): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -120,9 +133,7 @@ def type(self, type: "str") -> None: self._type = type @property - def parameter_value( - self, - ) -> "GrantaServerApiSchemaParametersDiscreteParameterValue": + def parameter_value(self) -> "GrantaServerApiSchemaParametersDiscreteParameterValue": """Gets the parameter_value of this GrantaServerApiDataDiscreteParameterWithValue. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py index 500a8752..3783a0bb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py index ce36ee85..dc87981e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -83,9 +97,9 @@ def __init__( self._attributes: Union[ List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type ] = Unset - self._record_properties: Union[ - List[GrantaServerApiRecordProperty], None, Unset_Type - ] = Unset + self._record_properties: Union[List[GrantaServerApiRecordProperty], None, Unset_Type] = ( + Unset + ) self._record_history_identities: Union[List[int], None, Unset_Type] = Unset if attributes is not Unset: @@ -123,9 +137,7 @@ def attributes( self._attributes = attributes @property - def record_properties( - self, - ) -> "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]": + def record_properties(self) -> "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]": """Gets the record_properties of this GrantaServerApiDataExportDataExportRequest. Returns @@ -137,8 +149,7 @@ def record_properties( @record_properties.setter def record_properties( - self, - record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]", + self, record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]" ) -> None: """Sets the record_properties of this GrantaServerApiDataExportDataExportRequest. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py index ba71788a..776c3391 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_response.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py index 53aa64d2..2acda6ed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsApplicableDatum( - GrantaServerApiDataExportDatumsDatum -): +class GrantaServerApiDataExportDatumsApplicableDatum(GrantaServerApiDataExportDatumsDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py index eecd9a65..b671a2bb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_binary_data.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py index b2b04d01..2683a042 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_boolean_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsBooleanDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsBooleanDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py index 5d161faa..58c09a13 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_date_time_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsDateTimeDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsDateTimeDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py index 23dc628a..3c6fdd25 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -89,9 +103,9 @@ def __init__( """ self._attribute_identity: Union[int, Unset_Type] = Unset self._attribute_guid: Union[str, Unset_Type] = Unset - self._meta_datums: Union[ - List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type - ] = Unset + self._meta_datums: Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] = ( + Unset + ) if attribute_identity is not Unset: self.attribute_identity = attribute_identity @@ -122,9 +136,7 @@ def attribute_identity(self, attribute_identity: "Union[int, Unset_Type]") -> No """ # Field is not nullable if attribute_identity is None: - raise ValueError( - "Invalid value for 'attribute_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_identity', must not be 'None'") self._attribute_identity = attribute_identity @property @@ -153,9 +165,7 @@ def attribute_guid(self, attribute_guid: "Union[str, Unset_Type]") -> None: self._attribute_guid = attribute_guid @property - def meta_datums( - self, - ) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": + def meta_datums(self) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": """Gets the meta_datums of this GrantaServerApiDataExportDatumsDatum. Returns @@ -167,8 +177,7 @@ def meta_datums( @meta_datums.setter def meta_datums( - self, - meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]", + self, meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" ) -> None: """Sets the meta_datums of this GrantaServerApiDataExportDatumsDatum. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py index efe4096f..400e8426 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsDiscreteDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsDiscreteDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,9 +116,7 @@ def __init__( not_applicable=not_applicable, ) self._datum_type: str - self._datum_value: Union[ - List[GrantaServerApiDiscreteValue], None, Unset_Type - ] = Unset + self._datum_value: Union[List[GrantaServerApiDiscreteValue], None, Unset_Type] = Unset self.datum_type = datum_type if datum_value is not Unset: @@ -140,9 +151,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value( - self, - ) -> "Union[List[GrantaServerApiDiscreteValue], None, Unset_Type]": + def datum_value(self) -> "Union[List[GrantaServerApiDiscreteValue], None, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py index 80bc11fa..7f3f9a8a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -115,9 +130,9 @@ def __init__( not_applicable=not_applicable, ) self._datum_type: str - self._x_axis_parameter: Union[ - GrantaServerApiFunctionalDatumParameterInfo, Unset_Type - ] = Unset + self._x_axis_parameter: Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type] = ( + Unset + ) self._parameters: Union[ List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type ] = Unset @@ -157,9 +172,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def x_axis_parameter( - self, - ) -> "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]": + def x_axis_parameter(self) -> "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]": """Gets the x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Returns @@ -171,8 +184,7 @@ def x_axis_parameter( @x_axis_parameter.setter def x_axis_parameter( - self, - x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]", + self, x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" ) -> None: """Sets the x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. @@ -240,9 +252,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportDatumsDiscreteFunctionalDatum - ): + if not isinstance(other, GrantaServerApiDataExportDatumsDiscreteFunctionalDatum): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py index 4ce53dc9..810a76b7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_grid_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_discrete_functional_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_discrete_functional_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsDiscreteFunctionalDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -203,9 +218,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum - ): + if not isinstance(other, GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py index 146c14fa..5288363a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_functional_series_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_discrete_functional_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_discrete_functional_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsDiscreteFunctionalDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -169,8 +184,7 @@ def series( @series.setter def series( - self, - series: "Union[List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type]", + self, series: "Union[List[GrantaServerApiDataExportDatumsDiscreteSeries], None, Unset_Type]" ) -> None: """Sets the series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. @@ -203,9 +217,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum - ): + if not isinstance(other, GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py index 5b279149..bb5d3776 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_grid_point.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py index fb09d69d..80470e88 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py index a651607a..b47caacd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_discrete_series_point.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py index 76538818..080b9b21 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_file_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsFileDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsFileDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,9 +116,7 @@ def __init__( not_applicable=not_applicable, ) self._datum_type: str - self._datum_value: Union[ - GrantaServerApiDataExportDatumsBinaryData, Unset_Type - ] = Unset + self._datum_value: Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type] = Unset self.datum_type = datum_type if datum_value is not Unset: @@ -140,9 +151,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value( - self, - ) -> "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]": + def datum_value(self) -> "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsFileDatum. Returns @@ -154,8 +163,7 @@ def datum_value( @datum_value.setter def datum_value( - self, - datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]", + self, datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsFileDatum. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py index 259b0d60..b82fdbf1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +143,9 @@ def __init__( ) self._datum_type: str self._unit_symbol: Union[str, None, Unset_Type] = Unset - self._x_axis_parameter: Union[ - GrantaServerApiFunctionalDatumParameterInfo, Unset_Type - ] = Unset + self._x_axis_parameter: Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type] = ( + Unset + ) self._parameters: Union[ List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type ] = Unset @@ -200,9 +215,7 @@ def unit_symbol(self, unit_symbol: "Union[str, None, Unset_Type]") -> None: self._unit_symbol = unit_symbol @property - def x_axis_parameter( - self, - ) -> "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]": + def x_axis_parameter(self) -> "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]": """Gets the x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns @@ -214,8 +227,7 @@ def x_axis_parameter( @x_axis_parameter.setter def x_axis_parameter( - self, - x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]", + self, x_axis_parameter: "Union[GrantaServerApiFunctionalDatumParameterInfo, Unset_Type]" ) -> None: """Sets the x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py index e47dcad1..a6fbd57b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_float_functional_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_float_functional_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsFloatFunctionalDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -133,9 +148,9 @@ def __init__( x_axis_parameter=x_axis_parameter, ) self._graph_type: str - self._points: Union[ - List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type - ] = Unset + self._points: Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type] = ( + Unset + ) self.graph_type = graph_type if points is not Unset: @@ -170,9 +185,7 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def points( - self, - ) -> "Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type]": + def points(self) -> "Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type]": """Gets the points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. Returns @@ -184,8 +197,7 @@ def points( @points.setter def points( - self, - points: "Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type]", + self, points: "Union[List[GrantaServerApiDataExportDatumsGridPoint], None, Unset_Type]" ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py index 85a8a657..ff8fcb09 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_float_functional_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_float_functional_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsFloatFunctionalDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -141,9 +156,7 @@ def __init__( x_axis_parameter=x_axis_parameter, ) self._graph_type: str - self._series: Union[ - List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type - ] = Unset + self._series: Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type] = Unset self._is_logarithmic: Union[bool, Unset_Type] = Unset self._show_as_table: Union[bool, Unset_Type] = Unset @@ -184,9 +197,7 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def series( - self, - ) -> "Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type]": + def series(self) -> "Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type]": """Gets the series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns @@ -198,8 +209,7 @@ def series( @series.setter def series( - self, - series: "Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type]", + self, series: "Union[List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type]" ) -> None: """Sets the series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_graph_decoration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_graph_decoration.py index 59121eed..934c78a7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_graph_decoration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_graph_decoration.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py index 9b13798e..3a12e547 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_grid_point.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py index cf8aa4e0..0145b0d5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -122,9 +136,7 @@ def formatted_address(self) -> "Union[str, None, Unset_Type]": return self._formatted_address @formatted_address.setter - def formatted_address( - self, formatted_address: "Union[str, None, Unset_Type]" - ) -> None: + def formatted_address(self, formatted_address: "Union[str, None, Unset_Type]") -> None: """Sets the formatted_address of this GrantaServerApiDataExportDatumsHyperlink. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py index 43dbf4e7..22d1de66 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_hyperlink_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsHyperlinkDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsHyperlinkDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,9 +116,7 @@ def __init__( not_applicable=not_applicable, ) self._datum_type: str - self._datum_value: Union[ - GrantaServerApiDataExportDatumsHyperlink, Unset_Type - ] = Unset + self._datum_value: Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type] = Unset self.datum_type = datum_type if datum_value is not Unset: @@ -140,9 +151,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value( - self, - ) -> "Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type]": + def datum_value(self) -> "Union[GrantaServerApiDataExportDatumsHyperlink, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsHyperlinkDatum. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py index b9441265..6ed20c6f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_link_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsLinkDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsLinkDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py index 380f4651..5debe6d4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_link_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_link_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsLinkDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsLinkedRecordsDatum( - GrantaServerApiDataExportDatumsLinkDatum -): +class GrantaServerApiDataExportDatumsLinkedRecordsDatum(GrantaServerApiDataExportDatumsLinkDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -138,20 +151,14 @@ def __init__( not_applicable=not_applicable, ) self._link_group_name: Union[str, None, Unset_Type] = Unset - self._link_attribute_type: Union[ - GrantaServerApiLinkAttributeType, Unset_Type - ] = Unset + self._link_attribute_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = Unset self._export_in_reversed_direction: Union[bool, Unset_Type] = Unset self._target_database_guid: Union[str, None, Unset_Type] = Unset self._linked_records: Union[ List[GrantaServerApiDataExportRecordWithData], None, Unset_Type ] = Unset - self._link_group_names_by_database_key: Union[ - Dict[str, str], None, Unset_Type - ] = Unset - self._link_group_identities_by_database_key: Union[ - Dict[str, int], None, Unset_Type - ] = Unset + self._link_group_names_by_database_key: Union[Dict[str, str], None, Unset_Type] = Unset + self._link_group_identities_by_database_key: Union[Dict[str, int], None, Unset_Type] = Unset self._rolled_up_data: Union[ List[GrantaServerApiDataExportDatumsRollupRollupDatum], None, Unset_Type ] = Unset @@ -170,9 +177,7 @@ def __init__( if link_group_names_by_database_key is not Unset: self.link_group_names_by_database_key = link_group_names_by_database_key if link_group_identities_by_database_key is not Unset: - self.link_group_identities_by_database_key = ( - link_group_identities_by_database_key - ) + self.link_group_identities_by_database_key = link_group_identities_by_database_key if rolled_up_data is not Unset: self.rolled_up_data = rolled_up_data self.link_datum_type = link_datum_type @@ -200,9 +205,7 @@ def link_group_name(self, link_group_name: "Union[str, None, Unset_Type]") -> No self._link_group_name = link_group_name @property - def link_attribute_type( - self, - ) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": + def link_attribute_type(self) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": """Gets the link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -225,9 +228,7 @@ def link_attribute_type( """ # Field is not nullable if link_attribute_type is None: - raise ValueError( - "Invalid value for 'link_attribute_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'link_attribute_type', must not be 'None'") self._link_attribute_type = link_attribute_type @property @@ -254,9 +255,7 @@ def export_in_reversed_direction( """ # Field is not nullable if export_in_reversed_direction is None: - raise ValueError( - "Invalid value for 'export_in_reversed_direction', must not be 'None'" - ) + raise ValueError("Invalid value for 'export_in_reversed_direction', must not be 'None'") self._export_in_reversed_direction = export_in_reversed_direction @property @@ -271,9 +270,7 @@ def target_database_guid(self) -> "Union[str, None, Unset_Type]": return self._target_database_guid @target_database_guid.setter - def target_database_guid( - self, target_database_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_database_guid(self, target_database_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters @@ -311,9 +308,7 @@ def linked_records( self._linked_records = linked_records @property - def link_group_names_by_database_key( - self, - ) -> "Union[Dict[str, str], None, Unset_Type]": + def link_group_names_by_database_key(self) -> "Union[Dict[str, str], None, Unset_Type]": """Gets the link_group_names_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -325,8 +320,7 @@ def link_group_names_by_database_key( @link_group_names_by_database_key.setter def link_group_names_by_database_key( - self, - link_group_names_by_database_key: "Union[Dict[str, str], None, Unset_Type]", + self, link_group_names_by_database_key: "Union[Dict[str, str], None, Unset_Type]" ) -> None: """Sets the link_group_names_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. @@ -338,9 +332,7 @@ def link_group_names_by_database_key( self._link_group_names_by_database_key = link_group_names_by_database_key @property - def link_group_identities_by_database_key( - self, - ) -> "Union[Dict[str, int], None, Unset_Type]": + def link_group_identities_by_database_key(self) -> "Union[Dict[str, int], None, Unset_Type]": """Gets the link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -352,8 +344,7 @@ def link_group_identities_by_database_key( @link_group_identities_by_database_key.setter def link_group_identities_by_database_key( - self, - link_group_identities_by_database_key: "Union[Dict[str, int], None, Unset_Type]", + self, link_group_identities_by_database_key: "Union[Dict[str, int], None, Unset_Type]" ) -> None: """Sets the link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. @@ -362,9 +353,7 @@ def link_group_identities_by_database_key( link_group_identities_by_database_key: Union[Dict[str, int], None, Unset_Type] The link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ - self._link_group_identities_by_database_key = ( - link_group_identities_by_database_key - ) + self._link_group_identities_by_database_key = link_group_identities_by_database_key @property def rolled_up_data( diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py index 957caad2..138778a6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_long_text_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsLongTextDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsLongTextDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py index 3ae42d4f..3915c85e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_not_applicable_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsNotApplicableDatum( - GrantaServerApiDataExportDatumsDatum -): +class GrantaServerApiDataExportDatumsNotApplicableDatum(GrantaServerApiDataExportDatumsDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -116,9 +129,7 @@ def datum_type(self) -> "Union[GrantaServerApiAttributeType, Unset_Type]": return self._datum_type @datum_type.setter - def datum_type( - self, datum_type: "Union[GrantaServerApiAttributeType, Unset_Type]" - ) -> None: + def datum_type(self, datum_type: "Union[GrantaServerApiAttributeType, Unset_Type]") -> None: """Sets the datum_type of this GrantaServerApiDataExportDatumsNotApplicableDatum. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py index 58f55d1e..42964d2d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_numeric_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsNumericDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsNumericDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py index 8bb8fcda..f1982964 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_parameter_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -102,9 +116,7 @@ def parameter(self) -> "Union[GrantaServerApiParameterInfo, Unset_Type]": return self._parameter @parameter.setter - def parameter( - self, parameter: "Union[GrantaServerApiParameterInfo, Unset_Type]" - ) -> None: + def parameter(self, parameter: "Union[GrantaServerApiParameterInfo, Unset_Type]") -> None: """Sets the parameter of this GrantaServerApiDataExportDatumsParameterValue. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py index 45aa7316..efed165a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_picture_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsPictureDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsPictureDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,9 +116,7 @@ def __init__( not_applicable=not_applicable, ) self._datum_type: str - self._datum_value: Union[ - GrantaServerApiDataExportDatumsBinaryData, Unset_Type - ] = Unset + self._datum_value: Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type] = Unset self.datum_type = datum_type if datum_value is not Unset: @@ -140,9 +151,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value( - self, - ) -> "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]": + def datum_value(self) -> "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsPictureDatum. Returns @@ -154,8 +163,7 @@ def datum_value( @datum_value.setter def datum_value( - self, - datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]", + self, datum_value: "Union[GrantaServerApiDataExportDatumsBinaryData, Unset_Type]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsPictureDatum. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py index 9ae2eb94..8d02538a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py index f2f4ae81..f60a77a1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsPointDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsPointDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -111,9 +124,9 @@ def __init__( not_applicable=not_applicable, ) self._datum_type: str - self._datum_value: Union[ - List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type - ] = Unset + self._datum_value: Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type] = ( + Unset + ) self._is_estimated: Union[bool, Unset_Type] = Unset self._unit: Union[str, None, Unset_Type] = Unset @@ -154,9 +167,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value( - self, - ) -> "Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type]": + def datum_value(self) -> "Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type]": """Gets the datum_value of this GrantaServerApiDataExportDatumsPointDatum. Returns @@ -168,8 +179,7 @@ def datum_value( @datum_value.setter def datum_value( - self, - datum_value: "Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type]", + self, datum_value: "Union[List[GrantaServerApiDataExportDatumsPoint], None, Unset_Type]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsPointDatum. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py index dd74e196..8f5a6d88 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -151,9 +165,7 @@ def high_value_is_inclusive(self) -> "Union[bool, Unset_Type]": return self._high_value_is_inclusive @high_value_is_inclusive.setter - def high_value_is_inclusive( - self, high_value_is_inclusive: "Union[bool, Unset_Type]" - ) -> None: + def high_value_is_inclusive(self, high_value_is_inclusive: "Union[bool, Unset_Type]") -> None: """Sets the high_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Parameters @@ -163,9 +175,7 @@ def high_value_is_inclusive( """ # Field is not nullable if high_value_is_inclusive is None: - raise ValueError( - "Invalid value for 'high_value_is_inclusive', must not be 'None'" - ) + raise ValueError("Invalid value for 'high_value_is_inclusive', must not be 'None'") self._high_value_is_inclusive = high_value_is_inclusive @property @@ -180,9 +190,7 @@ def low_value_is_inclusive(self) -> "Union[bool, Unset_Type]": return self._low_value_is_inclusive @low_value_is_inclusive.setter - def low_value_is_inclusive( - self, low_value_is_inclusive: "Union[bool, Unset_Type]" - ) -> None: + def low_value_is_inclusive(self, low_value_is_inclusive: "Union[bool, Unset_Type]") -> None: """Sets the low_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Parameters @@ -192,9 +200,7 @@ def low_value_is_inclusive( """ # Field is not nullable if low_value_is_inclusive is None: - raise ValueError( - "Invalid value for 'low_value_is_inclusive', must not be 'None'" - ) + raise ValueError("Invalid value for 'low_value_is_inclusive', must not be 'None'") self._low_value_is_inclusive = low_value_is_inclusive @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py index 778d58dc..bc77eed6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsRangeDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsRangeDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -111,9 +124,7 @@ def __init__( not_applicable=not_applicable, ) self._datum_type: str - self._datum_value: Union[GrantaServerApiDataExportDatumsRange, Unset_Type] = ( - Unset - ) + self._datum_value: Union[GrantaServerApiDataExportDatumsRange, Unset_Type] = Unset self._is_estimated: Union[bool, Unset_Type] = Unset self._unit: Union[str, None, Unset_Type] = Unset diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py index 05968a5a..bfac93c4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_count_rollup_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsRollupRollupDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py index fb200c05..6ae8c9d1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_numeric_rollup_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsRollupRollupDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -211,9 +226,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportDatumsRollupNumericRollupDatum - ): + if not isinstance(other, GrantaServerApiDataExportDatumsRollupNumericRollupDatum): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py index a004b129..9b4c2856 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_rollup_datum.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -145,9 +159,7 @@ def attribute_identity(self) -> "Union[int, None, Unset_Type]": return self._attribute_identity @attribute_identity.setter - def attribute_identity( - self, attribute_identity: "Union[int, None, Unset_Type]" - ) -> None: + def attribute_identity(self, attribute_identity: "Union[int, None, Unset_Type]") -> None: """Sets the attribute_identity of this GrantaServerApiDataExportDatumsRollupRollupDatum. The attribute identity of the rolled up data. If the data came from a local column, this is the column identity. If the data came from linked records, this is the identity of the tabular attribute @@ -185,9 +197,7 @@ def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None @property def roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the roll_up_type of this GrantaServerApiDataExportDatumsRollupRollupDatum. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py index 72a5dc15..661f2421 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_value_rollup_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsRollupRollupDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py index 5b4a66cb..d3655d4a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_rollup_values_rollup_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_rollup_rollup_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsRollupRollupDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -208,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportDatumsRollupValuesRollupDatum - ): + if not isinstance(other, GrantaServerApiDataExportDatumsRollupValuesRollupDatum): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py index 5d9caa7e..4217adcd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -84,9 +98,9 @@ def __init__( self._parameter_values: Union[ List[GrantaServerApiDataExportDatumsParameterValue], None, Unset_Type ] = Unset - self._points: Union[ - List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type - ] = Unset + self._points: Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type] = ( + Unset + ) self._graph_decoration: Union[ GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type ] = Unset @@ -126,9 +140,7 @@ def parameter_values( self._parameter_values = parameter_values @property - def points( - self, - ) -> "Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type]": + def points(self) -> "Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type]": """Gets the points of this GrantaServerApiDataExportDatumsSeries. Returns @@ -140,8 +152,7 @@ def points( @points.setter def points( - self, - points: "Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type]", + self, points: "Union[List[GrantaServerApiDataExportDatumsSeriesPoint], None, Unset_Type]" ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsSeries. @@ -167,8 +178,7 @@ def graph_decoration( @graph_decoration.setter def graph_decoration( - self, - graph_decoration: "Union[GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type]", + self, graph_decoration: "Union[GrantaServerApiDataExportDatumsGraphDecoration, Unset_Type]" ) -> None: """Sets the graph_decoration of this GrantaServerApiDataExportDatumsSeries. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py index 63727777..ad131ad2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series_point.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py index 21f6f24a..9e25153c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_short_text_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_applicable_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsShortTextDatum( - GrantaServerApiDataExportDatumsApplicableDatum -): +class GrantaServerApiDataExportDatumsShortTextDatum(GrantaServerApiDataExportDatumsApplicableDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py index 34549354..b93674ac 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_datum.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_link_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_link_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsLinkDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportDatumsTabularDatum( - GrantaServerApiDataExportDatumsLinkDatum -): +class GrantaServerApiDataExportDatumsTabularDatum(GrantaServerApiDataExportDatumsLinkDatum): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py index afe69289..71275441 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_tabular_row.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -101,9 +115,9 @@ def __init__( self._row_guid: Union[str, Unset_Type] = Unset self._linking_value: Union[str, None, Unset_Type] = Unset self._row_number: Union[int, Unset_Type] = Unset - self._local_data: Union[ - List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type - ] = Unset + self._local_data: Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] = ( + Unset + ) self._linked_records: Union[ List[GrantaServerApiIntegrationDataExportRecordReference], None, Unset_Type ] = Unset @@ -202,9 +216,7 @@ def row_number(self, row_number: "Union[int, Unset_Type]") -> None: self._row_number = row_number @property - def local_data( - self, - ) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": + def local_data(self) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": """Gets the local_data of this GrantaServerApiDataExportDatumsTabularRow. Returns @@ -216,8 +228,7 @@ def local_data( @local_data.setter def local_data( - self, - local_data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]", + self, local_data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" ) -> None: """Sets the local_data of this GrantaServerApiDataExportDatumsTabularRow. @@ -273,8 +284,7 @@ def linked_data( @linked_data.setter def linked_data( - self, - linked_data: "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]", + self, linked_data: "Union[List[GrantaServerApiDataExportRecordWithData], None, Unset_Type]" ) -> None: """Sets the linked_data of this GrantaServerApiDataExportDatumsTabularRow. Data for the linked records, if the request included linked data to export diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py index 032d48db..fcc52bde 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_unknown_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_datums_datum import ( # noqa: F401 GrantaServerApiDataExportDatumsDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py index 503c7583..ce721d77 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_export_failure.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( # noqa: F401 GrantaServerApiDataExportExportFailuresExportFailure, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -89,9 +104,7 @@ def __init__( type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_attributes: List[ - GrantaServerApiDataExportExportFailuresAttributeReference - ] + self._failed_attributes: List[GrantaServerApiDataExportExportFailuresAttributeReference] self._type: str self.failed_attributes = failed_attributes @@ -112,8 +125,7 @@ def failed_attributes( @failed_attributes.setter def failed_attributes( - self, - failed_attributes: "List[GrantaServerApiDataExportExportFailuresAttributeReference]", + self, failed_attributes: "List[GrantaServerApiDataExportExportFailuresAttributeReference]" ) -> None: """Sets the failed_attributes of this GrantaServerApiDataExportExportFailuresAttributeExportFailure. @@ -124,14 +136,10 @@ def failed_attributes( """ # Field is not nullable if failed_attributes is None: - raise ValueError( - "Invalid value for 'failed_attributes', must not be 'None'" - ) + raise ValueError("Invalid value for 'failed_attributes', must not be 'None'") # Field is required if failed_attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'failed_attributes', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'failed_attributes', must not be 'Unset'") self._failed_attributes = failed_attributes @property @@ -184,9 +192,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportExportFailuresAttributeExportFailure - ): + if not isinstance(other, GrantaServerApiDataExportExportFailuresAttributeExportFailure): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py index ae6d873d..d0b8f50a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_attribute_reference.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -127,9 +141,7 @@ def attribute_identity(self) -> "Union[int, None, Unset_Type]": return self._attribute_identity @attribute_identity.setter - def attribute_identity( - self, attribute_identity: "Union[int, None, Unset_Type]" - ) -> None: + def attribute_identity(self, attribute_identity: "Union[int, None, Unset_Type]") -> None: """Sets the attribute_identity of this GrantaServerApiDataExportExportFailuresAttributeReference. Parameters @@ -183,9 +195,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportExportFailuresAttributeReference - ): + if not isinstance(other, GrantaServerApiDataExportExportFailuresAttributeReference): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py index cc48934a..a4f6147e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_export_failure.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( # noqa: F401 GrantaServerApiDataExportExportFailuresExportFailure, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -175,9 +190,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportExportFailuresDatumExportFailure - ): + if not isinstance(other, GrantaServerApiDataExportExportFailuresDatumExportFailure): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py index f77de5c3..5bbce947 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_datum_reference.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -142,14 +156,10 @@ def record_history_identity(self, record_history_identity: "int") -> None: """ # Field is not nullable if record_history_identity is None: - raise ValueError( - "Invalid value for 'record_history_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_identity', must not be 'None'") # Field is required if record_history_identity is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'record_history_identity', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'record_history_identity', must not be 'Unset'") self._record_history_identity = record_history_identity @property @@ -174,14 +184,10 @@ def attribute_identity(self, attribute_identity: "int") -> None: """ # Field is not nullable if attribute_identity is None: - raise ValueError( - "Invalid value for 'attribute_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_identity', must not be 'None'") # Field is required if attribute_identity is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_identity', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_identity', must not be 'Unset'") self._attribute_identity = attribute_identity @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py index f9d9f6ae..af1099eb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure_type.py index 38689cd1..cb65da40 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_export_failure_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py index 9835c40b..97cfdf30 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_export_failure.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( # noqa: F401 GrantaServerApiDataExportExportFailuresExportFailure, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -175,9 +190,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportExportFailuresLinkExportFailure - ): + if not isinstance(other, GrantaServerApiDataExportExportFailuresLinkExportFailure): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py index b53e870c..3faea1c3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_link_reference.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -108,9 +122,7 @@ def target_database_guid(self) -> "Union[str, None, Unset_Type]": return self._target_database_guid @target_database_guid.setter - def target_database_guid( - self, target_database_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_database_guid(self, target_database_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_database_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py index 448e172c..8ec71ac9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_record_export_failure.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( # noqa: F401 GrantaServerApiDataExportExportFailuresExportFailure, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,9 +111,7 @@ def __init__( self.type = type @property - def failed_records( - self, - ) -> "List[GrantaServerApiIntegrationDataExportRecordReference]": + def failed_records(self) -> "List[GrantaServerApiIntegrationDataExportRecordReference]": """Gets the failed_records of this GrantaServerApiDataExportExportFailuresRecordExportFailure. Returns @@ -110,8 +123,7 @@ def failed_records( @failed_records.setter def failed_records( - self, - failed_records: "List[GrantaServerApiIntegrationDataExportRecordReference]", + self, failed_records: "List[GrantaServerApiIntegrationDataExportRecordReference]" ) -> None: """Sets the failed_records of this GrantaServerApiDataExportExportFailuresRecordExportFailure. @@ -178,9 +190,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportExportFailuresRecordExportFailure - ): + if not isinstance(other, GrantaServerApiDataExportExportFailuresRecordExportFailure): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py index 7f77a0de..f1862d71 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_export_failure.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_export_failures_export_failure import ( # noqa: F401 GrantaServerApiDataExportExportFailuresExportFailure, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -175,9 +190,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportExportFailuresRollupExportFailure - ): + if not isinstance(other, GrantaServerApiDataExportExportFailuresRollupExportFailure): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py index bb632098..164c8b78 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_export_failures_rollup_reference.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -135,9 +149,7 @@ def attribute_identity(self) -> "Union[int, None, Unset_Type]": return self._attribute_identity @attribute_identity.setter - def attribute_identity( - self, attribute_identity: "Union[int, None, Unset_Type]" - ) -> None: + def attribute_identity(self, attribute_identity: "Union[int, None, Unset_Type]") -> None: """Sets the attribute_identity of this GrantaServerApiDataExportExportFailuresRollupReference. Parameters @@ -170,9 +182,7 @@ def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None self._attribute_guid = attribute_guid @property - def rollup_type( - self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + def rollup_type(self) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": """Gets the rollup_type of this GrantaServerApiDataExportExportFailuresRollupReference. Returns @@ -223,9 +233,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportExportFailuresRollupReference - ): + if not isinstance(other, GrantaServerApiDataExportExportFailuresRollupReference): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py index 64a58575..c409f8c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import ( # noqa: F401 GrantaServerApiDataExportAttributeToExport, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportLinkAttributeToExport( - GrantaServerApiDataExportAttributeToExport -): +class GrantaServerApiDataExportLinkAttributeToExport(GrantaServerApiDataExportAttributeToExport): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -137,22 +150,18 @@ def __init__( self._target_database_guid: Union[str, None, Unset_Type] = Unset self._target_attribute_guid: Union[str, None, Unset_Type] = Unset self._attribute_type: str - self._link_attribute_type: Union[ - GrantaServerApiLinkAttributeType, Unset_Type - ] = Unset + self._link_attribute_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = Unset self._export_in_reversed_direction: Union[bool, Unset_Type] = Unset - self._record_properties: Union[ - List[GrantaServerApiRecordProperty], None, Unset_Type - ] = Unset + self._record_properties: Union[List[GrantaServerApiRecordProperty], None, Unset_Type] = ( + Unset + ) self._attributes: Union[ List[GrantaServerApiDataExportAttributeToExport], None, Unset_Type ] = Unset self._linked_records_export_behavior: Union[ GrantaServerApiDataExportLinkedRecordExportBehavior, Unset_Type ] = Unset - self._indirect_links_behavior: Union[ - GrantaServerApiIndirectLinks, Unset_Type - ] = Unset + self._indirect_links_behavior: Union[GrantaServerApiIndirectLinks, Unset_Type] = Unset if local_data is not Unset: self.local_data = local_data @@ -218,9 +227,7 @@ def target_table_guid(self) -> "Union[str, None, Unset_Type]": return self._target_table_guid @target_table_guid.setter - def target_table_guid( - self, target_table_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_table_guid(self, target_table_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. Table containing the linked records @@ -244,9 +251,7 @@ def target_database_guid(self) -> "Union[str, None, Unset_Type]": return self._target_database_guid @target_database_guid.setter - def target_database_guid( - self, target_database_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_database_guid(self, target_database_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. Database containing the linked records. For reverse cross database links, this is the database where the link is defined. This is not required for cross-database link groups that don't have a target database. @@ -270,9 +275,7 @@ def target_attribute_guid(self) -> "Union[str, None, Unset_Type]": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid( - self, target_attribute_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_attribute_guid(self, target_attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_attribute_guid of this GrantaServerApiDataExportLinkAttributeToExport. For tabular searching: this is the identifier of the short-text linking attribute. Otherwise null. @@ -312,9 +315,7 @@ def attribute_type(self, attribute_type: "str") -> None: self._attribute_type = attribute_type @property - def link_attribute_type( - self, - ) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": + def link_attribute_type(self) -> "Union[GrantaServerApiLinkAttributeType, Unset_Type]": """Gets the link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. Returns @@ -337,9 +338,7 @@ def link_attribute_type( """ # Field is not nullable if link_attribute_type is None: - raise ValueError( - "Invalid value for 'link_attribute_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'link_attribute_type', must not be 'None'") self._link_attribute_type = link_attribute_type @property @@ -366,15 +365,11 @@ def export_in_reversed_direction( """ # Field is not nullable if export_in_reversed_direction is None: - raise ValueError( - "Invalid value for 'export_in_reversed_direction', must not be 'None'" - ) + raise ValueError("Invalid value for 'export_in_reversed_direction', must not be 'None'") self._export_in_reversed_direction = export_in_reversed_direction @property - def record_properties( - self, - ) -> "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]": + def record_properties(self) -> "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]": """Gets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. The properties to export on any linked records. @@ -387,8 +382,7 @@ def record_properties( @record_properties.setter def record_properties( - self, - record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]", + self, record_properties: "Union[List[GrantaServerApiRecordProperty], None, Unset_Type]" ) -> None: """Sets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. The properties to export on any linked records. @@ -462,9 +456,7 @@ def linked_records_export_behavior( self._linked_records_export_behavior = linked_records_export_behavior @property - def indirect_links_behavior( - self, - ) -> "Union[GrantaServerApiIndirectLinks, Unset_Type]": + def indirect_links_behavior(self) -> "Union[GrantaServerApiIndirectLinks, Unset_Type]": """Gets the indirect_links_behavior of this GrantaServerApiDataExportLinkAttributeToExport. Returns @@ -487,9 +479,7 @@ def indirect_links_behavior( """ # Field is not nullable if indirect_links_behavior is None: - raise ValueError( - "Invalid value for 'indirect_links_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'indirect_links_behavior', must not be 'None'") self._indirect_links_behavior = indirect_links_behavior @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py index 6b771a93..9308f523 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_linked_record_export_behavior.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -87,9 +101,7 @@ def __init__( self._summary_roll_up_type: Union[ GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type ] = Unset - self._linked_records_criterion: Union[ - GrantaServerApiSearchCriterion, Unset_Type - ] = Unset + self._linked_records_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset if tabular_row_behavior is not Unset: self.tabular_row_behavior = tabular_row_behavior @@ -125,17 +137,13 @@ def tabular_row_behavior( """ # Field is not nullable if tabular_row_behavior is None: - raise ValueError( - "Invalid value for 'tabular_row_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'tabular_row_behavior', must not be 'None'") self._tabular_row_behavior = tabular_row_behavior @property def summary_roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the summary_roll_up_type of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns @@ -159,15 +167,11 @@ def summary_roll_up_type( """ # Field is not nullable if summary_roll_up_type is None: - raise ValueError( - "Invalid value for 'summary_roll_up_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_roll_up_type', must not be 'None'") self._summary_roll_up_type = summary_roll_up_type @property - def linked_records_criterion( - self, - ) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": + def linked_records_criterion(self) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": """Gets the linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns @@ -179,8 +183,7 @@ def linked_records_criterion( @linked_records_criterion.setter def linked_records_criterion( - self, - linked_records_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]", + self, linked_records_criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" ) -> None: """Sets the linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. @@ -191,9 +194,7 @@ def linked_records_criterion( """ # Field is not nullable if linked_records_criterion is None: - raise ValueError( - "Invalid value for 'linked_records_criterion', must not be 'None'" - ) + raise ValueError("Invalid value for 'linked_records_criterion', must not be 'None'") self._linked_records_criterion = linked_records_criterion @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_parameter_setting_defined_at.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_parameter_setting_defined_at.py index 42151c0c..b72ae66a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_parameter_setting_defined_at.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_parameter_setting_defined_at.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py index 3b3ee453..c0d34f41 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_by_user_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -158,9 +173,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesCreatedByUserProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesCreatedByUserProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py index 3b5b609a..2f2b7517 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_created_date_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -161,9 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesCreatedDateProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesCreatedDateProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py index a8e751b5..38510a8b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_database_key_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -158,9 +173,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesDatabaseKeyProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesDatabaseKeyProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py index fabeb88c..286cc6ab 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_full_name_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py index 6bd66cde..0d19bd41 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_by_user_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def last_modified_by_user(self) -> "Union[str, None, Unset_Type]": return self._last_modified_by_user @last_modified_by_user.setter - def last_modified_by_user( - self, last_modified_by_user: "Union[str, None, Unset_Type]" - ) -> None: + def last_modified_by_user(self, last_modified_by_user: "Union[str, None, Unset_Type]") -> None: """Sets the last_modified_by_user of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. Parameters @@ -160,9 +173,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesLastModifiedByUserProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesLastModifiedByUserProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py index bca97c26..d2e53724 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_last_modified_date_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def last_modified_date(self) -> "Union[datetime, Unset_Type]": return self._last_modified_date @last_modified_date.setter - def last_modified_date( - self, last_modified_date: "Union[datetime, Unset_Type]" - ) -> None: + def last_modified_date(self, last_modified_date: "Union[datetime, Unset_Type]") -> None: """Sets the last_modified_date of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. Parameters @@ -138,9 +151,7 @@ def last_modified_date( """ # Field is not nullable if last_modified_date is None: - raise ValueError( - "Invalid value for 'last_modified_date', must not be 'None'" - ) + raise ValueError("Invalid value for 'last_modified_date', must not be 'None'") self._last_modified_date = last_modified_date @classmethod @@ -165,9 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesLastModifiedDateProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesLastModifiedDateProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py index 5c9017fe..1992f670 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py index e596dd17..bc52db07 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_color_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +143,7 @@ def record_color(self) -> "Union[GrantaServerApiRecordColor, Unset_Type]": return self._record_color @record_color.setter - def record_color( - self, record_color: "Union[GrantaServerApiRecordColor, Unset_Type]" - ) -> None: + def record_color(self, record_color: "Union[GrantaServerApiRecordColor, Unset_Type]") -> None: """Sets the record_color of this GrantaServerApiDataExportPropertiesRecordColorProperty. Parameters @@ -165,9 +178,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesRecordColorProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesRecordColorProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py index 9aedf16a..49d5188f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_guid_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py index c9cdb061..9acaadff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_guid_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def record_history_guid(self) -> "Union[str, Unset_Type]": return self._record_history_guid @record_history_guid.setter - def record_history_guid( - self, record_history_guid: "Union[str, Unset_Type]" - ) -> None: + def record_history_guid(self, record_history_guid: "Union[str, Unset_Type]") -> None: """Sets the record_history_guid of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. Parameters @@ -138,9 +151,7 @@ def record_history_guid( """ # Field is not nullable if record_history_guid is None: - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'None'") self._record_history_guid = record_history_guid @classmethod @@ -165,9 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py index f8108ebb..6edbc9b1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_history_identity_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def record_history_identity(self) -> "Union[int, Unset_Type]": return self._record_history_identity @record_history_identity.setter - def record_history_identity( - self, record_history_identity: "Union[int, Unset_Type]" - ) -> None: + def record_history_identity(self, record_history_identity: "Union[int, Unset_Type]") -> None: """Sets the record_history_identity of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. Parameters @@ -138,9 +151,7 @@ def record_history_identity( """ # Field is not nullable if record_history_identity is None: - raise ValueError( - "Invalid value for 'record_history_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_identity', must not be 'None'") self._record_history_identity = record_history_identity @classmethod @@ -165,9 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py index 0cb4e581..0fd28c94 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_identity_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -161,9 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesRecordIdentityProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesRecordIdentityProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py index 86ab586d..701fb61d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_record_type_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +143,7 @@ def record_type(self) -> "Union[GrantaServerApiRecordType, Unset_Type]": return self._record_type @record_type.setter - def record_type( - self, record_type: "Union[GrantaServerApiRecordType, Unset_Type]" - ) -> None: + def record_type(self, record_type: "Union[GrantaServerApiRecordType, Unset_Type]") -> None: """Sets the record_type of this GrantaServerApiDataExportPropertiesRecordTypeProperty. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py index 92089d2f..ffb116c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_released_date_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -158,9 +173,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesReleasedDateProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesReleasedDateProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py index 774a790f..d85555f7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_short_name_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py index 3ad6f2b0..02f9f317 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_guid_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py index 68b38251..e618fa72 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_identity_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -161,9 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesTableIdentityProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesTableIdentityProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py index fc9aec9f..987d1a57 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_table_name_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py index 11380d6e..324ba1bf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_number_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -161,9 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesVersionNumberProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesVersionNumberProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py index da498351..ef9ccb18 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_version_state_property.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_properties_property import ( # noqa: F401 GrantaServerApiDataExportPropertiesProperty, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -165,9 +180,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiDataExportPropertiesVersionStateProperty - ): + if not isinstance(other, GrantaServerApiDataExportPropertiesVersionStateProperty): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py index 8f18e69e..0c7651b6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_record_with_data.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -86,9 +100,7 @@ def __init__( """ self._database_key: Union[str, None, Unset_Type] = Unset self._record_history_identity: Union[int, Unset_Type] = Unset - self._data: Union[ - List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type - ] = Unset + self._data: Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type] = Unset self._properties: Union[ List[GrantaServerApiDataExportPropertiesProperty], None, Unset_Type ] = Unset @@ -136,9 +148,7 @@ def record_history_identity(self) -> "Union[int, Unset_Type]": return self._record_history_identity @record_history_identity.setter - def record_history_identity( - self, record_history_identity: "Union[int, Unset_Type]" - ) -> None: + def record_history_identity(self, record_history_identity: "Union[int, Unset_Type]") -> None: """Sets the record_history_identity of this GrantaServerApiDataExportRecordWithData. Parameters @@ -148,15 +158,11 @@ def record_history_identity( """ # Field is not nullable if record_history_identity is None: - raise ValueError( - "Invalid value for 'record_history_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_identity', must not be 'None'") self._record_history_identity = record_history_identity @property - def data( - self, - ) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": + def data(self) -> "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]": """Gets the data of this GrantaServerApiDataExportRecordWithData. Returns @@ -168,8 +174,7 @@ def data( @data.setter def data( - self, - data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]", + self, data: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" ) -> None: """Sets the data of this GrantaServerApiDataExportRecordWithData. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py index 06e7f5d9..1191e11f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import ( # noqa: F401 GrantaServerApiDataExportAttributeToExport, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataExportSimpleAttributeToExport( - GrantaServerApiDataExportAttributeToExport -): +class GrantaServerApiDataExportSimpleAttributeToExport(GrantaServerApiDataExportAttributeToExport): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -111,9 +124,7 @@ def __init__( @property def roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Returns @@ -143,9 +154,7 @@ def roll_up_type( @property def summary_roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the summary_roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Returns @@ -169,9 +178,7 @@ def summary_roll_up_type( """ # Field is not nullable if summary_roll_up_type is None: - raise ValueError( - "Invalid value for 'summary_roll_up_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_roll_up_type', must not be 'None'") self._summary_roll_up_type = summary_roll_up_type @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behavior.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behavior.py index 9c1be503..b4b09fb9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behavior.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_tabular_row_export_behavior.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py index b45269f9..25127bff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_file_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -273,14 +288,10 @@ def content_is_in_search_index(self, content_is_in_search_index: "bool") -> None """ # Field is not nullable if content_is_in_search_index is None: - raise ValueError( - "Invalid value for 'content_is_in_search_index', must not be 'None'" - ) + raise ValueError("Invalid value for 'content_is_in_search_index', must not be 'None'") # Field is required if content_is_in_search_index is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'content_is_in_search_index', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'content_is_in_search_index', must not be 'Unset'") self._content_is_in_search_index = content_is_in_search_index @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py index 8cd94641..cf7e18f7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py index c44be81b..125171b1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py index d927fa7f..eac5bad2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py index 84dcd27f..f8e95867 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py index 4f6e8abc..d996b725 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,9 +144,7 @@ def rich_text_value(self) -> "GrantaServerApiDataRichTextValue": return self._rich_text_value @rich_text_value.setter - def rich_text_value( - self, rich_text_value: "GrantaServerApiDataRichTextValue" - ) -> None: + def rich_text_value(self, rich_text_value: "GrantaServerApiDataRichTextValue") -> None: """Sets the rich_text_value of this GrantaServerApiDataLongTextDatum. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py index 22a2e2a5..96ec45ea 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( # noqa: F401 GrantaServerApiDataDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py index f591a1b4..fedfba9c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_numeric_parameter_with_value.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_parameter_with_value import ( # noqa: F401 GrantaServerApiDataParameterWithValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiDataNumericParameterWithValue( - GrantaServerApiDataParameterWithValue -): +class GrantaServerApiDataNumericParameterWithValue(GrantaServerApiDataParameterWithValue): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -166,9 +179,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiDataNumericParameterWithValue. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py index 3d082644..bc073b7e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_parameter_with_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +108,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": return self._parameter @parameter.setter - def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" - ) -> None: + def parameter(self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity") -> None: """Sets the parameter of this GrantaServerApiDataParameterWithValue. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_picture_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_picture_datum.py index 378c9ba2..def52c35 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_picture_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_picture_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py index 07e53fe6..ab515364 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_data_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -139,9 +153,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiDataPointDataValue. Parameters @@ -181,9 +193,7 @@ def significant_figures_info( """ # Field is not nullable if significant_figures_info is None: - raise ValueError( - "Invalid value for 'significant_figures_info', must not be 'None'" - ) + raise ValueError("Invalid value for 'significant_figures_info', must not be 'None'") self._significant_figures_info = significant_figures_info @property @@ -210,14 +220,10 @@ def parameter_and_values( """ # Field is not nullable if parameter_and_values is None: - raise ValueError( - "Invalid value for 'parameter_and_values', must not be 'None'" - ) + raise ValueError("Invalid value for 'parameter_and_values', must not be 'None'") # Field is required if parameter_and_values is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'parameter_and_values', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'parameter_and_values', must not be 'Unset'") self._parameter_and_values = parameter_and_values @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py index 7cbf477e..a791c260 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_point_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py index 9bd01abd..9e1f8343 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -135,9 +150,7 @@ def __init__( if low_value_significant_figures_info is not Unset: self.low_value_significant_figures_info = low_value_significant_figures_info if high_value_significant_figures_info is not Unset: - self.high_value_significant_figures_info = ( - high_value_significant_figures_info - ) + self.high_value_significant_figures_info = high_value_significant_figures_info self.estimated = estimated if unit is not Unset: self.unit = unit @@ -248,14 +261,10 @@ def low_value_is_inclusive(self, low_value_is_inclusive: "bool") -> None: """ # Field is not nullable if low_value_is_inclusive is None: - raise ValueError( - "Invalid value for 'low_value_is_inclusive', must not be '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'" - ) + raise ValueError("Invalid value for 'low_value_is_inclusive', must not be 'Unset'") self._low_value_is_inclusive = low_value_is_inclusive @property @@ -280,14 +289,10 @@ def high_value_is_inclusive(self, high_value_is_inclusive: "bool") -> None: """ # Field is not nullable if high_value_is_inclusive is None: - raise ValueError( - "Invalid value for 'high_value_is_inclusive', must not be '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'" - ) + raise ValueError("Invalid value for 'high_value_is_inclusive', must not be 'Unset'") self._high_value_is_inclusive = high_value_is_inclusive @property @@ -394,9 +399,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiDataRangeDatum. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py index 454054e0..7c418a1f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py index 2b38b933..8fac50f7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py index 8a182393..8c4a350b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( # noqa: F401 GrantaServerApiDataApplicableDatum, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py index fed5f798..ddf74548 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +95,7 @@ def __init__( """ self._significant_figures: int self._entered_value: float - self._entered_unit: Union[ - GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type - ] = Unset + self._entered_unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.significant_figures = significant_figures self.entered_value = entered_value @@ -112,14 +124,10 @@ def significant_figures(self, significant_figures: "int") -> None: """ # Field is not nullable if significant_figures is None: - raise ValueError( - "Invalid value for 'significant_figures', must not be 'None'" - ) + raise ValueError("Invalid value for 'significant_figures', must not be 'None'") # Field is required if significant_figures is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'significant_figures', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'significant_figures', must not be 'Unset'") self._significant_figures = significant_figures @property @@ -151,9 +159,7 @@ def entered_value(self, entered_value: "float") -> None: self._entered_value = entered_value @property - def entered_unit( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": + def entered_unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]": """Gets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. Returns @@ -165,8 +171,7 @@ def entered_unit( @entered_unit.setter def entered_unit( - self, - entered_unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]", + self, entered_unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" ) -> None: """Sets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status.py index 4ae8a25d..c4c57d78 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py index c067acff..92c1a58c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_database_status_information.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -148,9 +162,7 @@ def database_is_read_only(self) -> "Union[bool, Unset_Type]": return self._database_is_read_only @database_is_read_only.setter - def database_is_read_only( - self, database_is_read_only: "Union[bool, Unset_Type]" - ) -> None: + def database_is_read_only(self, database_is_read_only: "Union[bool, Unset_Type]") -> None: """Sets the database_is_read_only of this GrantaServerApiDatabaseStatusInformation. Gets a value indicating whether the database is read only. @@ -161,9 +173,7 @@ def database_is_read_only( """ # Field is not nullable if database_is_read_only is None: - raise ValueError( - "Invalid value for 'database_is_read_only', must not be 'None'" - ) + raise ValueError("Invalid value for 'database_is_read_only', must not be 'None'") self._database_is_read_only = database_is_read_only @property @@ -255,9 +265,7 @@ def search_index_in_sync(self) -> "Union[bool, Unset_Type]": return self._search_index_in_sync @search_index_in_sync.setter - def search_index_in_sync( - self, search_index_in_sync: "Union[bool, Unset_Type]" - ) -> None: + def search_index_in_sync(self, search_index_in_sync: "Union[bool, Unset_Type]") -> None: """Sets the search_index_in_sync of this GrantaServerApiDatabaseStatusInformation. Whether the search indexes for this database are in sync with the database changes @@ -268,9 +276,7 @@ def search_index_in_sync( """ # Field is not nullable if search_index_in_sync is None: - raise ValueError( - "Invalid value for 'search_index_in_sync', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_index_in_sync', must not be 'None'") self._search_index_in_sync = search_index_in_sync @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py index b02981f5..8c1ef502 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_discrete_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_disk_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_disk_status.py index 8dd6bf39..391fc42d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_disk_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_disk_status.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py index aa0aaddf..1eb4778d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py index 8ba24e7a..d1b8951a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_data_modification_data_modification_error_detail import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_data_modification_data_modification_error_detail import ( # noqa: F401 GrantaServerApiExceptionsDataModificationDataModificationErrorDetail, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -131,9 +146,7 @@ def referenced_by_type( """ # Field is not nullable if referenced_by_type is None: - raise ValueError( - "Invalid value for 'referenced_by_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'referenced_by_type', must not be 'None'") self._referenced_by_type = referenced_by_type @property @@ -214,8 +227,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail, + other, GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py index f94b021a..8e7c839d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py index 5ee92f07..9b098475 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -191,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsDeletionAttributeDeletionException - ): + if not isinstance(other, GrantaServerApiExceptionsDeletionAttributeDeletionException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py index 6f490826..d5e90fb9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -191,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsDeletionConstantDeletionException - ): + if not isinstance(other, GrantaServerApiExceptionsDeletionConstantDeletionException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py index bb38fdc6..02d191c6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -191,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException - ): + if not isinstance(other, GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py index 63652882..c1260d3d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -191,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsDeletionDiscreteValueDeletionException - ): + if not isinstance(other, GrantaServerApiExceptionsDeletionDiscreteValueDeletionException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py index ac1ab5b7..e7ae3950 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -191,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsDeletionParameterDeletionException - ): + if not isinstance(other, GrantaServerApiExceptionsDeletionParameterDeletionException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py index 91fb9d97..2fb8b0fe 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -191,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsDeletionParameterValueDeletionException - ): + if not isinstance(other, GrantaServerApiExceptionsDeletionParameterValueDeletionException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py index a0801f92..2fedcbc5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -191,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsDeletionTableDeletionException - ): + if not isinstance(other, GrantaServerApiExceptionsDeletionTableDeletionException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py index 68d0d103..c1c03aa7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_error_detail.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py index 62ca2105..73d2b31f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -82,9 +96,7 @@ def __init__( """ self._message: Union[str, None, Unset_Type] = Unset self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset - self._errors: Union[ - List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type - ] = Unset + self._errors: Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type] = Unset if message is not Unset: self.message = message @@ -141,9 +153,7 @@ def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: self._code = code @property - def errors( - self, - ) -> "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]": + def errors(self) -> "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns @@ -155,8 +165,7 @@ def errors( @errors.setter def errors( - self, - errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]", + self, errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]" ) -> None: """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. @@ -189,9 +198,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException - ): + if not isinstance(other, GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py index 66ba2f8d..aab2dbfe 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -82,9 +96,7 @@ def __init__( """ self._message: Union[str, None, Unset_Type] = Unset self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset - self._errors: Union[ - List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type - ] = Unset + self._errors: Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type] = Unset if message is not Unset: self.message = message @@ -141,9 +153,7 @@ def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: self._code = code @property - def errors( - self, - ) -> "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]": + def errors(self) -> "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]": """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns @@ -155,8 +165,7 @@ def errors( @errors.setter def errors( - self, - errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]", + self, errors: "Union[List[GrantaServerApiExceptionsErrorDetail], None, Unset_Type]" ) -> None: """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. @@ -189,9 +198,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException - ): + if not isinstance(other, GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py index b3b0c950..3dd44ab3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_get_modifiable_record_version_control_exception.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -85,9 +97,7 @@ def __init__( self._message: Union[str, None, Unset_Type] = Unset self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset self._errors: Union[ - List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], - None, - Unset_Type, + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type ] = Unset if message is not Unset: @@ -194,8 +204,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException, + other, GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py index 26099269..37932b28 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( # noqa: F401 GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py index 003cb213..9b907739 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( # noqa: F401 GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py index 8376e9a6..d0fa1678 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( # noqa: F401 GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py index 53516add..b406a1a2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( # noqa: F401 GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -133,9 +148,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail - ): + if not isinstance(other, GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py index b9ffcd14..6c8e13fd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -85,9 +97,7 @@ def __init__( self._message: Union[str, None, Unset_Type] = Unset self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset self._errors: Union[ - List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], - None, - Unset_Type, + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type ] = Unset if message is not Unset: @@ -194,8 +204,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException, + other, GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py index a8dab7cb..d0bc8224 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -85,9 +97,7 @@ def __init__( self._message: Union[str, None, Unset_Type] = Unset self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset self._errors: Union[ - List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], - None, - Unset_Type, + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type ] = Unset if message is not Unset: @@ -194,8 +204,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, + other, GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py index a0381fd2..8e0f7fca 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -137,9 +151,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiExceptionsVersionControlVersionControlErrorDetail - ): + if not isinstance(other, GrantaServerApiExceptionsVersionControlVersionControlErrorDetail): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py index f455d5da..15e8e0bd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -85,9 +97,7 @@ def __init__( self._message: Union[str, None, Unset_Type] = Unset self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset self._errors: Union[ - List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], - None, - Unset_Type, + List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], None, Unset_Type ] = Unset if message is not Unset: @@ -194,8 +204,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, + other, GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py index c1e5defa..d589ccc3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exclude_values_specifier.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( # noqa: F401 GrantaServerApiValueSpecifier, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -127,9 +142,7 @@ def excluded_guids(self) -> "Union[List[str], None, Unset_Type]": return self._excluded_guids @excluded_guids.setter - def excluded_guids( - self, excluded_guids: "Union[List[str], None, Unset_Type]" - ) -> None: + def excluded_guids(self, excluded_guids: "Union[List[str], None, Unset_Type]") -> None: """Sets the excluded_guids of this GrantaServerApiExcludeValuesSpecifier. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py index 8c788167..f91db119 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -125,18 +139,14 @@ def __init__( self._name: Union[str, None, Unset_Type] = Unset self._identity: Union[int, Unset_Type] = Unset self._unit_symbol: Union[str, None, Unset_Type] = Unset - self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( - Unset - ) + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = Unset self._interpolation_type: Union[ GrantaServerApiParameterInfoInterpolationType, Unset_Type ] = Unset - self._parameter_type: Union[ - GrantaServerApiParameterInfoParameterType, Unset_Type - ] = Unset - self._default_value: Union[ - GrantaServerApiDataExportDatumsParameterValue, Unset_Type - ] = Unset + self._parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] = Unset + self._default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] = ( + Unset + ) if scale_type_defined_at is not Unset: self.scale_type_defined_at = scale_type_defined_at @@ -186,9 +196,7 @@ def scale_type_defined_at( """ # Field is not nullable if scale_type_defined_at is None: - raise ValueError( - "Invalid value for 'scale_type_defined_at', must not be 'None'" - ) + raise ValueError("Invalid value for 'scale_type_defined_at', must not be 'None'") self._scale_type_defined_at = scale_type_defined_at @property @@ -250,9 +258,7 @@ def default_value_defined_at( """ # Field is not nullable if default_value_defined_at is None: - raise ValueError( - "Invalid value for 'default_value_defined_at', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_value_defined_at', must not be 'None'") self._default_value_defined_at = default_value_defined_at @property @@ -366,8 +372,7 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( - self, - interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", + self, interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" ) -> None: """Sets the interpolation_type of this GrantaServerApiFunctionalDatumParameterInfo. @@ -378,15 +383,11 @@ def interpolation_type( """ # Field is not nullable if interpolation_type is None: - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'None'") self._interpolation_type = interpolation_type @property - def parameter_type( - self, - ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": + def parameter_type(self) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -398,8 +399,7 @@ def parameter_type( @parameter_type.setter def parameter_type( - self, - parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", + self, parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" ) -> None: """Sets the parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. @@ -414,9 +414,7 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value( - self, - ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": + def default_value(self) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -428,8 +426,7 @@ def default_value( @default_value.setter def default_value( - self, - default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", + self, default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" ) -> None: """Sets the default_value of this GrantaServerApiFunctionalDatumParameterInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py index 76d32225..917a9d93 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -107,9 +121,7 @@ def record_history_identity(self) -> "Union[int, Unset_Type]": return self._record_history_identity @record_history_identity.setter - def record_history_identity( - self, record_history_identity: "Union[int, Unset_Type]" - ) -> None: + def record_history_identity(self, record_history_identity: "Union[int, Unset_Type]") -> None: """Sets the record_history_identity of this GrantaServerApiIndexRecordFailure. Parameters @@ -119,9 +131,7 @@ def record_history_identity( """ # Field is not nullable if record_history_identity is None: - raise ValueError( - "Invalid value for 'record_history_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_identity', must not be 'None'") self._record_history_identity = record_history_identity @property @@ -183,9 +193,7 @@ def record_was_oversized(self) -> "Union[bool, Unset_Type]": return self._record_was_oversized @record_was_oversized.setter - def record_was_oversized( - self, record_was_oversized: "Union[bool, Unset_Type]" - ) -> None: + def record_was_oversized(self, record_was_oversized: "Union[bool, Unset_Type]") -> None: """Sets the record_was_oversized of this GrantaServerApiIndexRecordFailure. Records that contain a large amount of data are intentionally not sent to the index. This size limit is configurable through MIServer.exe.config @@ -196,9 +204,7 @@ def record_was_oversized( """ # Field is not nullable if record_was_oversized is None: - raise ValueError( - "Invalid value for 'record_was_oversized', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_was_oversized', must not be 'None'") self._record_was_oversized = record_was_oversized @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_indirect_links.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_indirect_links.py index 7fdc7904..7fd4323c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_indirect_links.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_indirect_links.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py index fcb36849..29074abd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_integration_data_export_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -75,18 +89,14 @@ def __init__( attribute_identities: List[int] record_references: List[GrantaServerApiIntegrationDataExportRecordReference] """ - self._record_references: List[ - GrantaServerApiIntegrationDataExportRecordReference - ] + self._record_references: List[GrantaServerApiIntegrationDataExportRecordReference] self._attribute_identities: List[int] self.record_references = record_references self.attribute_identities = attribute_identities @property - def record_references( - self, - ) -> "List[GrantaServerApiIntegrationDataExportRecordReference]": + def record_references(self) -> "List[GrantaServerApiIntegrationDataExportRecordReference]": """Gets the record_references of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. A list of records to export. These are references to the underlying records in the source database @@ -99,8 +109,7 @@ def record_references( @record_references.setter def record_references( - self, - record_references: "List[GrantaServerApiIntegrationDataExportRecordReference]", + self, record_references: "List[GrantaServerApiIntegrationDataExportRecordReference]" ) -> None: """Sets the record_references of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. A list of records to export. These are references to the underlying records in the source database @@ -112,14 +121,10 @@ def record_references( """ # Field is not nullable if record_references is None: - raise ValueError( - "Invalid value for 'record_references', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_references', must not be 'None'") # Field is required if record_references is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'record_references', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'record_references', must not be 'Unset'") self._record_references = record_references @property @@ -146,14 +151,10 @@ def attribute_identities(self, attribute_identities: "List[int]") -> None: """ # Field is not nullable if attribute_identities is None: - raise ValueError( - "Invalid value for 'attribute_identities', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_identities', must not be 'None'") # Field is required if attribute_identities is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_identities', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_identities', must not be 'Unset'") self._attribute_identities = attribute_identities @classmethod @@ -178,9 +179,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiIntegrationDataExportIntegrationDataExportRequest - ): + if not isinstance(other, GrantaServerApiIntegrationDataExportIntegrationDataExportRequest): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py index 01daf18c..dbbd19ed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_data_export_record_reference.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -93,9 +107,7 @@ def record_history_identity(self) -> "Union[int, Unset_Type]": return self._record_history_identity @record_history_identity.setter - def record_history_identity( - self, record_history_identity: "Union[int, Unset_Type]" - ) -> None: + def record_history_identity(self, record_history_identity: "Union[int, Unset_Type]") -> None: """Sets the record_history_identity of this GrantaServerApiIntegrationDataExportRecordReference. Parameters @@ -105,9 +117,7 @@ def record_history_identity( """ # Field is not nullable if record_history_identity is None: - raise ValueError( - "Invalid value for 'record_history_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_identity', must not be 'None'") self._record_history_identity = record_history_identity @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py index f42f66fa..04add221 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -186,9 +200,7 @@ def loaded_databases(self) -> "Union[List[str], None, Unset_Type]": return self._loaded_databases @loaded_databases.setter - def loaded_databases( - self, loaded_databases: "Union[List[str], None, Unset_Type]" - ) -> None: + def loaded_databases(self, loaded_databases: "Union[List[str], None, Unset_Type]") -> None: """Sets the loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Loaded databases have been successfully indexed into the integration schema. @@ -212,9 +224,7 @@ def loading_databases(self) -> "Union[List[str], None, Unset_Type]": return self._loading_databases @loading_databases.setter - def loading_databases( - self, loading_databases: "Union[List[str], None, Unset_Type]" - ) -> None: + def loading_databases(self, loading_databases: "Union[List[str], None, Unset_Type]") -> None: """Sets the loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases which are in the process of loading. @@ -319,9 +329,7 @@ def search_index_up_to_date(self) -> "Union[bool, Unset_Type]": return self._search_index_up_to_date @search_index_up_to_date.setter - def search_index_up_to_date( - self, search_index_up_to_date: "Union[bool, Unset_Type]" - ) -> None: + def search_index_up_to_date(self, search_index_up_to_date: "Union[bool, Unset_Type]") -> None: """Sets the search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed @@ -332,9 +340,7 @@ def search_index_up_to_date( """ # Field is not nullable if search_index_up_to_date is None: - raise ValueError( - "Invalid value for 'search_index_up_to_date', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_index_up_to_date', must not be 'None'") self._search_index_up_to_date = search_index_up_to_date @property @@ -376,9 +382,7 @@ def search_index_in_sync(self) -> "Union[bool, Unset_Type]": return self._search_index_in_sync @search_index_in_sync.setter - def search_index_in_sync( - self, search_index_in_sync: "Union[bool, Unset_Type]" - ) -> None: + def search_index_in_sync(self, search_index_in_sync: "Union[bool, Unset_Type]") -> None: """Sets the search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) @@ -389,9 +393,7 @@ def search_index_in_sync( """ # Field is not nullable if search_index_in_sync is None: - raise ValueError( - "Invalid value for 'search_index_in_sync', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_index_in_sync', must not be 'None'") self._search_index_in_sync = search_index_in_sync @property @@ -407,9 +409,7 @@ def search_index_location(self) -> "Union[str, None, Unset_Type]": return self._search_index_location @search_index_location.setter - def search_index_location( - self, search_index_location: "Union[str, None, Unset_Type]" - ) -> None: + def search_index_location(self, search_index_location: "Union[str, None, Unset_Type]") -> None: """Sets the search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. The location of the index. @@ -458,9 +458,7 @@ def disk_status(self) -> "Union[GrantaServerApiDiskStatus, Unset_Type]": return self._disk_status @disk_status.setter - def disk_status( - self, disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]" - ) -> None: + def disk_status(self, disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]") -> None: """Sets the disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py index 1f58bcf3..8fe85ee3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_attribute.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -131,13 +145,9 @@ def __init__( self._discrete_type_identity: Union[int, None, Unset_Type] = Unset self._discrete_type_guid: Union[str, None, Unset_Type] = Unset self._parameters: Union[ - List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], - None, - Unset_Type, + List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo], None, Unset_Type ] = Unset - self._target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = ( - Unset - ) + self._target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset self._target_table: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset self._graph_type: Union[str, None, Unset_Type] = Unset self._x_axis_parameter: Union[str, None, Unset_Type] = Unset @@ -350,9 +360,7 @@ def discrete_type_guid(self) -> "Union[str, None, Unset_Type]": return self._discrete_type_guid @discrete_type_guid.setter - def discrete_type_guid( - self, discrete_type_guid: "Union[str, None, Unset_Type]" - ) -> None: + def discrete_type_guid(self, discrete_type_guid: "Union[str, None, Unset_Type]") -> None: """Sets the discrete_type_guid of this GrantaServerApiIntegrationSchemaAttribute. A discrete attribute must define the guid of its discrete type (i.e. list of possible values) @@ -483,9 +491,7 @@ def x_axis_parameter(self) -> "Union[str, None, Unset_Type]": return self._x_axis_parameter @x_axis_parameter.setter - def x_axis_parameter( - self, x_axis_parameter: "Union[str, None, Unset_Type]" - ) -> None: + def x_axis_parameter(self, x_axis_parameter: "Union[str, None, Unset_Type]") -> None: """Sets the x_axis_parameter of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must define an x-axis. This will be one of the parameters listed in parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py index c6e0bed7..91366d8e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_discrete_type.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py index 3342ea2b..f67d13cb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_generated_integration_schema_of_granta_server_api_object_identifier.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -79,9 +93,7 @@ def __init__( warnings: List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], optional """ self._warnings: Union[ - List[ - GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail - ], + List[GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail], None, Unset_Type, ] = Unset diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py index 4253ad0f..c965361a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_attribute.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -121,15 +135,11 @@ def __init__( self._is_unitted: Union[bool, None, Unset_Type] = Unset self._discrete_type_guid: Union[str, None, Unset_Type] = Unset self._parameters: Union[ - List[ - GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo - ], + List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo], None, Unset_Type, ] = Unset - self._target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = ( - Unset - ) + self._target_database: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset self._target_table: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset self._graph_type: Union[str, None, Unset_Type] = Unset self._x_axis_parameter: Union[str, None, Unset_Type] = Unset @@ -290,9 +300,7 @@ def discrete_type_guid(self) -> "Union[str, None, Unset_Type]": return self._discrete_type_guid @discrete_type_guid.setter - def discrete_type_guid( - self, discrete_type_guid: "Union[str, None, Unset_Type]" - ) -> None: + def discrete_type_guid(self, discrete_type_guid: "Union[str, None, Unset_Type]") -> None: """Sets the discrete_type_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A discrete attribute must define the guid of its discrete type (i.e. list of possible values) @@ -423,9 +431,7 @@ def x_axis_parameter(self) -> "Union[str, None, Unset_Type]": return self._x_axis_parameter @x_axis_parameter.setter - def x_axis_parameter( - self, x_axis_parameter: "Union[str, None, Unset_Type]" - ) -> None: + def x_axis_parameter(self, x_axis_parameter: "Union[str, None, Unset_Type]") -> None: """Sets the x_axis_parameter of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must define an x-axis. This will be one of the parameters listed in parameters @@ -458,9 +464,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute - ): + if not isinstance(other, GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py index a167efbb..b4586bf1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_discrete_type.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py index 3319f19b..6ee599f5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_parameter_info.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo( - ModelBase -): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -103,18 +115,14 @@ def __init__( self._name: Union[str, None, Unset_Type] = Unset self._guid: Union[str, Unset_Type] = Unset self._unit_symbol: Union[str, None, Unset_Type] = Unset - self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( - Unset - ) + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = Unset self._interpolation_type: Union[ GrantaServerApiParameterInfoInterpolationType, Unset_Type ] = Unset - self._parameter_type: Union[ - GrantaServerApiParameterInfoParameterType, Unset_Type - ] = Unset - self._default_value: Union[ - GrantaServerApiDataExportDatumsParameterValue, Unset_Type - ] = Unset + self._parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] = Unset + self._default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] = ( + Unset + ) if name is not Unset: self.name = name @@ -242,8 +250,7 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( - self, - interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", + self, interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" ) -> None: """Sets the interpolation_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. @@ -254,15 +261,11 @@ def interpolation_type( """ # Field is not nullable if interpolation_type is None: - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'None'") self._interpolation_type = interpolation_type @property - def parameter_type( - self, - ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": + def parameter_type(self) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -274,8 +277,7 @@ def parameter_type( @parameter_type.setter def parameter_type( - self, - parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", + self, parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" ) -> None: """Sets the parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. @@ -290,9 +292,7 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value( - self, - ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": + def default_value(self) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -304,8 +304,7 @@ def default_value( @default_value.setter def default_value( - self, - default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", + self, default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" ) -> None: """Sets the default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. @@ -342,8 +341,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo, + other, GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py index ee404e6b..bc91f75a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_integration_schema_of_granta_server_api_object_identifier.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -112,14 +126,10 @@ def __init__( self._key: Union[str, None, Unset_Type] = Unset self._version: Union[int, None, Unset_Type] = Unset self._attributes: Union[ - List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], - None, - Unset_Type, + List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute], None, Unset_Type ] = Unset self._layouts: Union[ - List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], - None, - Unset_Type, + List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout], None, Unset_Type ] = Unset self._unit_system: Union[str, None, Unset_Type] = Unset self._discrete_types: Union[ @@ -134,12 +144,10 @@ def __init__( None, Unset_Type, ] = Unset - self._access_control_category_values: Union[ - Dict[str, List[str]], None, Unset_Type - ] = Unset - self._security_groups: Union[ - GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type - ] = Unset + self._access_control_category_values: Union[Dict[str, List[str]], None, Unset_Type] = Unset + self._security_groups: Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type] = ( + Unset + ) if key is not Unset: self.key = key @@ -335,9 +343,7 @@ def sources( self._sources = sources @property - def access_control_category_values( - self, - ) -> "Union[Dict[str, List[str]], None, Unset_Type]": + def access_control_category_values(self) -> "Union[Dict[str, List[str]], None, Unset_Type]": """Gets the access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -349,8 +355,7 @@ def access_control_category_values( @access_control_category_values.setter def access_control_category_values( - self, - access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]", + self, access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]" ) -> None: """Sets the access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. @@ -376,8 +381,7 @@ def security_groups( @security_groups.setter def security_groups( - self, - security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]", + self, security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]" ) -> None: """Sets the security_groups of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py index 8faec53f..1fb6f774 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_layout.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -115,9 +129,7 @@ def attribute_guids(self) -> "Union[List[str], None, Unset_Type]": return self._attribute_guids @attribute_guids.setter - def attribute_guids( - self, attribute_guids: "Union[List[str], None, Unset_Type]" - ) -> None: + def attribute_guids(self, attribute_guids: "Union[List[str], None, Unset_Type]") -> None: """Sets the attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Parameters @@ -149,9 +161,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout - ): + if not isinstance(other, GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py index 4361fb97..3099ef76 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_mapping_of_granta_server_api_object_identifier.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -121,9 +135,7 @@ def source(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": return self._source @source.setter - def source( - self, source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" - ) -> None: + def source(self, source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]") -> None: """Sets the source of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Parameters @@ -207,8 +219,7 @@ def link_source_type( @link_source_type.setter def link_source_type( - self, - link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]", + self, link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]" ) -> None: """Sets the link_source_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py index 9836b69a..cc16c6ed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_guid_only_schema_guid_only_source_of_granta_server_api_object_identifier.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -119,9 +133,7 @@ def database(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": return self._database @database.setter - def database( - self, database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" - ) -> None: + def database(self, database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]") -> None: """Sets the database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters @@ -168,9 +180,7 @@ def table(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": return self._table @table.setter - def table( - self, table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" - ) -> None: + def table(self, table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]") -> None: """Sets the table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py index 2b200a5f..9276808f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_parameter_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -106,18 +120,14 @@ def __init__( self._identity: Union[int, Unset_Type] = Unset self._guid: Union[str, None, Unset_Type] = Unset self._unit_symbol: Union[str, None, Unset_Type] = Unset - self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( - Unset - ) + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = Unset self._interpolation_type: Union[ GrantaServerApiParameterInfoInterpolationType, Unset_Type ] = Unset - self._parameter_type: Union[ - GrantaServerApiParameterInfoParameterType, Unset_Type - ] = Unset - self._default_value: Union[ - GrantaServerApiDataExportDatumsParameterValue, Unset_Type - ] = Unset + self._parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] = Unset + self._default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] = ( + Unset + ) if name is not Unset: self.name = name @@ -269,8 +279,7 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( - self, - interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", + self, interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" ) -> None: """Sets the interpolation_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. @@ -281,15 +290,11 @@ def interpolation_type( """ # Field is not nullable if interpolation_type is None: - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'None'") self._interpolation_type = interpolation_type @property - def parameter_type( - self, - ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": + def parameter_type(self) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -301,8 +306,7 @@ def parameter_type( @parameter_type.setter def parameter_type( - self, - parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", + self, parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" ) -> None: """Sets the parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. @@ -317,9 +321,7 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value( - self, - ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": + def default_value(self) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -331,8 +333,7 @@ def default_value( @default_value.setter def default_value( - self, - default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", + self, default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" ) -> None: """Sets the default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. @@ -368,9 +369,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiIntegrationSchemaIntegrationParameterInfo - ): + if not isinstance(other, GrantaServerApiIntegrationSchemaIntegrationParameterInfo): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_generation_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_generation_error_detail.py index d8f35a52..b9b82b4e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_generation_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_generation_error_detail.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -158,8 +172,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail, + other, GrantaServerApiIntegrationSchemaIntegrationSchemaGenerationErrorDetail ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py index b55d5026..1205548f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -114,26 +126,20 @@ def __init__( self._attributes: Union[ List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type ] = Unset - self._layouts: Union[ - List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type - ] = Unset + self._layouts: Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type] = Unset self._unit_system: Union[str, None, Unset_Type] = Unset self._discrete_types: Union[ List[GrantaServerApiIntegrationSchemaDiscreteType], None, Unset_Type ] = Unset self._sources: Union[ - List[ - GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier - ], + List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier], None, Unset_Type, ] = Unset - self._access_control_category_values: Union[ - Dict[str, List[str]], None, Unset_Type - ] = Unset - self._security_groups: Union[ - GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type - ] = Unset + self._access_control_category_values: Union[Dict[str, List[str]], None, Unset_Type] = Unset + self._security_groups: Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type] = ( + Unset + ) if key is not Unset: self.key = key @@ -213,8 +219,7 @@ def attributes( @attributes.setter def attributes( - self, - attributes: "Union[List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type]", + self, attributes: "Union[List[GrantaServerApiIntegrationSchemaAttribute], None, Unset_Type]" ) -> None: """Sets the attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. @@ -226,9 +231,7 @@ def attributes( self._attributes = attributes @property - def layouts( - self, - ) -> "Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type]": + def layouts(self) -> "Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type]": """Gets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -240,8 +243,7 @@ def layouts( @layouts.setter def layouts( - self, - layouts: "Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type]", + self, layouts: "Union[List[GrantaServerApiIntegrationSchemaLayout], None, Unset_Type]" ) -> None: """Sets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. @@ -329,9 +331,7 @@ def sources( self._sources = sources @property - def access_control_category_values( - self, - ) -> "Union[Dict[str, List[str]], None, Unset_Type]": + def access_control_category_values(self) -> "Union[Dict[str, List[str]], None, Unset_Type]": """Gets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -343,8 +343,7 @@ def access_control_category_values( @access_control_category_values.setter def access_control_category_values( - self, - access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]", + self, access_control_category_values: "Union[Dict[str, List[str]], None, Unset_Type]" ) -> None: """Sets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. @@ -370,8 +369,7 @@ def security_groups( @security_groups.setter def security_groups( - self, - security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]", + self, security_groups: "Union[GrantaServerApiIntegrationSchemaSecurityGroups, Unset_Type]" ) -> None: """Sets the security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py index 35cf84d3..2cc030f0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_layout.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -146,9 +160,7 @@ def attribute_guids(self) -> "Union[List[str], None, Unset_Type]": return self._attribute_guids @attribute_guids.setter - def attribute_guids( - self, attribute_guids: "Union[List[str], None, Unset_Type]" - ) -> None: + def attribute_guids(self, attribute_guids: "Union[List[str], None, Unset_Type]") -> None: """Sets the attribute_guids of this GrantaServerApiIntegrationSchemaLayout. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_link_source_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_link_source_type.py index b89b91c9..59aec7f9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_link_source_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_link_source_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py index e1435065..f33b268a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -95,9 +107,7 @@ def __init__( self._target_identity: Union[int, Unset_Type] = Unset self._target_guid: Union[str, None, Unset_Type] = Unset self._parameter_mappings: Union[ - List[ - GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier - ], + List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type, ] = Unset @@ -128,9 +138,7 @@ def source(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": return self._source @source.setter - def source( - self, source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" - ) -> None: + def source(self, source: "Union[GrantaServerApiObjectIdentifier, Unset_Type]") -> None: """Sets the source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Parameters @@ -238,8 +246,7 @@ def link_source_type( @link_source_type.setter def link_source_type( - self, - link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]", + self, link_source_type: "Union[GrantaServerApiIntegrationSchemaLinkSourceType, Unset_Type]" ) -> None: """Sets the link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. @@ -276,8 +283,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier, + other, GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py index 19c54960..0ede34bb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_security_groups.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py index 3602a036..4b1ce026 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -91,9 +103,7 @@ def __init__( self._database_key: Union[str, None, Unset_Type] = Unset self._table: Union[GrantaServerApiObjectIdentifier, Unset_Type] = Unset self._mappings: Union[ - List[ - GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier - ], + List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier], None, Unset_Type, ] = Unset @@ -119,9 +129,7 @@ def database(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": return self._database @database.setter - def database( - self, database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" - ) -> None: + def database(self, database: "Union[GrantaServerApiObjectIdentifier, Unset_Type]") -> None: """Sets the database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters @@ -168,9 +176,7 @@ def table(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": return self._table @table.setter - def table( - self, table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" - ) -> None: + def table(self, table: "Union[GrantaServerApiObjectIdentifier, Unset_Type]") -> None: """Sets the table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters @@ -235,8 +241,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier, + other, GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_link_attribute_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_link_attribute_type.py index c1d16e63..8983ae9d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_link_attribute_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_link_attribute_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py index 2aeb28a6..8abb1f51 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -143,14 +157,10 @@ def record_history_guid(self, record_history_guid: "str") -> None: """ # Field is not nullable if record_history_guid is None: - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'None'") # Field is required if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'Unset'") self._record_history_guid = record_history_guid @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py index daceefb2..93d9a4cc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -99,9 +113,7 @@ def __init__( notes: str, optional published: bool, optional """ - self._items: Union[ - GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type - ] = Unset + self._items: Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type] = Unset self._identifier: Union[str, None, Unset_Type] = Unset self._name: str self._description: Union[str, None, Unset_Type] = Unset @@ -127,9 +139,7 @@ def __init__( self.internal_use = internal_use @property - def items( - self, - ) -> "Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type]": + def items(self) -> "Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type]": """Gets the items of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -141,8 +151,7 @@ def items( @items.setter def items( - self, - items: "Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type]", + self, items: "Union[GrantaServerApiListsDtoCreateRecordListItemsInfo, Unset_Type]" ) -> None: """Sets the items of this GrantaServerApiListsDtoCreateRecordList. @@ -297,9 +306,7 @@ def awaiting_approval(self, awaiting_approval: "Union[bool, Unset_Type]") -> Non """ # Field is not nullable if awaiting_approval is None: - raise ValueError( - "Invalid value for 'awaiting_approval', must not be 'None'" - ) + raise ValueError("Invalid value for 'awaiting_approval', must not be 'None'") self._awaiting_approval = awaiting_approval @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py index 5a97cbaf..4b3e1b1a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py index 658d759f..f0dd0f8c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -136,14 +150,10 @@ def record_history_guid(self, record_history_guid: "str") -> None: """ # Field is not nullable if record_history_guid is None: - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'None'") # Field is required if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'Unset'") self._record_history_guid = record_history_guid @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py index aa604e0a..007717d6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py index d7f00e49..15c577d7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_boolean_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_lists_dto_list_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_lists_dto_list_criterion import ( # noqa: F401 GrantaServerApiListsDtoListCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -84,12 +99,8 @@ def __init__( type: str """ super().__init__() - self._match_any: Union[ - List[GrantaServerApiListsDtoListCriterion], None, Unset_Type - ] = Unset - self._match_all: Union[ - List[GrantaServerApiListsDtoListCriterion], None, Unset_Type - ] = Unset + self._match_any: Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type] = Unset + self._match_all: Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type] = Unset self._type: str if match_any is not Unset: @@ -99,9 +110,7 @@ def __init__( self.type = type @property - def match_any( - self, - ) -> "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]": + def match_any(self) -> "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]": """Gets the match_any of this GrantaServerApiListsDtoListBooleanCriterion. Returns @@ -113,8 +122,7 @@ def match_any( @match_any.setter def match_any( - self, - match_any: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]", + self, match_any: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]" ) -> None: """Sets the match_any of this GrantaServerApiListsDtoListBooleanCriterion. @@ -126,9 +134,7 @@ def match_any( self._match_any = match_any @property - def match_all( - self, - ) -> "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]": + def match_all(self) -> "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]": """Gets the match_all of this GrantaServerApiListsDtoListBooleanCriterion. Returns @@ -140,8 +146,7 @@ def match_all( @match_all.setter def match_all( - self, - match_all: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]", + self, match_all: "Union[List[GrantaServerApiListsDtoListCriterion], None, Unset_Type]" ) -> None: """Sets the match_all of this GrantaServerApiListsDtoListBooleanCriterion. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py index 75f045fb..df2b30bf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py index 13ed8d9a..1a5ca98c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_list_item.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -149,14 +163,10 @@ def record_history_guid(self, record_history_guid: "str") -> None: """ # Field is not nullable if record_history_guid is None: - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'None'") # Field is required if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'Unset'") self._record_history_guid = record_history_guid @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py index af6a9f86..c7c5e692 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_paging_options.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py index b5c67434..dab94c50 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_header.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -141,9 +155,7 @@ def __init__( self._last_modified_timestamp: datetime self._last_modified_user: GrantaServerApiListsDtoUserOrGroup self._published_timestamp: Union[datetime, None, Unset_Type] = Unset - self._published_user: Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type] = ( - Unset - ) + self._published_user: Union[GrantaServerApiListsDtoUserOrGroup, Unset_Type] = Unset self._is_revision: bool self._name: str self._description: Union[str, None, Unset_Type] = Unset @@ -276,14 +288,10 @@ def created_timestamp(self, created_timestamp: "datetime") -> None: """ # Field is not nullable if created_timestamp is None: - raise ValueError( - "Invalid value for 'created_timestamp', must not be 'None'" - ) + raise ValueError("Invalid value for 'created_timestamp', must not be 'None'") # Field is required if created_timestamp is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'created_timestamp', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'created_timestamp', must not be 'Unset'") self._created_timestamp = created_timestamp @property @@ -336,14 +344,10 @@ def last_modified_timestamp(self, last_modified_timestamp: "datetime") -> None: """ # Field is not nullable if last_modified_timestamp is None: - raise ValueError( - "Invalid value for 'last_modified_timestamp', must not be 'None'" - ) + raise ValueError("Invalid value for 'last_modified_timestamp', must not be 'None'") # Field is required if last_modified_timestamp is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'last_modified_timestamp', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'last_modified_timestamp', must not be 'Unset'") self._last_modified_timestamp = last_modified_timestamp @property @@ -358,9 +362,7 @@ def last_modified_user(self) -> "GrantaServerApiListsDtoUserOrGroup": return self._last_modified_user @last_modified_user.setter - def last_modified_user( - self, last_modified_user: "GrantaServerApiListsDtoUserOrGroup" - ) -> None: + def last_modified_user(self, last_modified_user: "GrantaServerApiListsDtoUserOrGroup") -> None: """Sets the last_modified_user of this GrantaServerApiListsDtoRecordListHeader. Parameters @@ -370,14 +372,10 @@ def last_modified_user( """ # Field is not nullable if last_modified_user is None: - raise ValueError( - "Invalid value for 'last_modified_user', must not be 'None'" - ) + raise ValueError("Invalid value for 'last_modified_user', must not be 'None'") # Field is required if last_modified_user is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'last_modified_user', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'last_modified_user', must not be 'Unset'") self._last_modified_user = last_modified_user @property @@ -392,9 +390,7 @@ def published_timestamp(self) -> "Union[datetime, None, Unset_Type]": return self._published_timestamp @published_timestamp.setter - def published_timestamp( - self, published_timestamp: "Union[datetime, None, Unset_Type]" - ) -> None: + def published_timestamp(self, published_timestamp: "Union[datetime, None, Unset_Type]") -> None: """Sets the published_timestamp of this GrantaServerApiListsDtoRecordListHeader. Parameters @@ -581,14 +577,10 @@ def awaiting_approval(self, awaiting_approval: "bool") -> None: """ # Field is not nullable if awaiting_approval is None: - raise ValueError( - "Invalid value for 'awaiting_approval', must not be 'None'" - ) + raise ValueError("Invalid value for 'awaiting_approval', must not be 'None'") # Field is required if awaiting_approval is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'awaiting_approval', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'awaiting_approval', must not be 'Unset'") self._awaiting_approval = awaiting_approval @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py index c2a8a099..6b299278 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py index 0f48d27d..4831de47 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py index 80fc578a..c69f78a9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -214,9 +228,7 @@ def is_administrator(self, is_administrator: "bool") -> None: raise ValueError("Invalid value for 'is_administrator', must not be 'None'") # Field is required if is_administrator is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'is_administrator', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'is_administrator', must not be 'Unset'") self._is_administrator = is_administrator @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py index c09e9974..2321e907 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_lists_dto_list_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_lists_dto_list_criterion import ( # noqa: F401 GrantaServerApiListsDtoListCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiListsDtoRecordListSearchCriterion( - GrantaServerApiListsDtoListCriterion -): +class GrantaServerApiListsDtoRecordListSearchCriterion(GrantaServerApiListsDtoListCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -128,9 +141,7 @@ def __init__( self._is_internal_use: Union[bool, None, Unset_Type] = Unset self._is_revision: Union[bool, None, Unset_Type] = Unset self._contains_records_in_databases: Union[List[str], None, Unset_Type] = Unset - self._contains_records_in_integration_schemas: Union[ - List[str], None, Unset_Type - ] = Unset + self._contains_records_in_integration_schemas: Union[List[str], None, Unset_Type] = Unset self._contains_records_in_tables: Union[List[str], None, Unset_Type] = Unset self._contains_records: Union[List[str], None, Unset_Type] = Unset self._user_can_add_or_remove_items: Union[bool, None, Unset_Type] = Unset @@ -151,9 +162,7 @@ def __init__( if contains_records_in_databases is not Unset: self.contains_records_in_databases = contains_records_in_databases if contains_records_in_integration_schemas is not Unset: - self.contains_records_in_integration_schemas = ( - contains_records_in_integration_schemas - ) + self.contains_records_in_integration_schemas = contains_records_in_integration_schemas if contains_records_in_tables is not Unset: self.contains_records_in_tables = contains_records_in_tables if contains_records is not Unset: @@ -196,9 +205,7 @@ def user_role(self) -> "Union[GrantaServerApiListsDtoUserRole, Unset_Type]": return self._user_role @user_role.setter - def user_role( - self, user_role: "Union[GrantaServerApiListsDtoUserRole, Unset_Type]" - ) -> None: + def user_role(self, user_role: "Union[GrantaServerApiListsDtoUserRole, Unset_Type]") -> None: """Sets the user_role of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters @@ -245,9 +252,7 @@ def is_awaiting_approval(self) -> "Union[bool, None, Unset_Type]": return self._is_awaiting_approval @is_awaiting_approval.setter - def is_awaiting_approval( - self, is_awaiting_approval: "Union[bool, None, Unset_Type]" - ) -> None: + def is_awaiting_approval(self, is_awaiting_approval: "Union[bool, None, Unset_Type]") -> None: """Sets the is_awaiting_approval of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters @@ -330,9 +335,7 @@ def contains_records_in_databases( self._contains_records_in_databases = contains_records_in_databases @property - def contains_records_in_integration_schemas( - self, - ) -> "Union[List[str], None, Unset_Type]": + def contains_records_in_integration_schemas(self) -> "Union[List[str], None, Unset_Type]": """Gets the contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified integration schemas @@ -345,8 +348,7 @@ def contains_records_in_integration_schemas( @contains_records_in_integration_schemas.setter def contains_records_in_integration_schemas( - self, - contains_records_in_integration_schemas: "Union[List[str], None, Unset_Type]", + self, contains_records_in_integration_schemas: "Union[List[str], None, Unset_Type]" ) -> None: """Sets the contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified integration schemas @@ -356,9 +358,7 @@ def contains_records_in_integration_schemas( contains_records_in_integration_schemas: Union[List[str], None, Unset_Type] The contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. """ - self._contains_records_in_integration_schemas = ( - contains_records_in_integration_schemas - ) + self._contains_records_in_integration_schemas = contains_records_in_integration_schemas @property def contains_records_in_tables(self) -> "Union[List[str], None, Unset_Type]": @@ -399,9 +399,7 @@ def contains_records(self) -> "Union[List[str], None, Unset_Type]": return self._contains_records @contains_records.setter - def contains_records( - self, contains_records: "Union[List[str], None, Unset_Type]" - ) -> None: + def contains_records(self, contains_records: "Union[List[str], None, Unset_Type]") -> None: """Sets the contains_records of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing any of the given records diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py index f3934c8f..d4b1b7bf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -95,14 +109,10 @@ def search_result_identifier(self, search_result_identifier: "str") -> None: """ # Field is not nullable if search_result_identifier is None: - raise ValueError( - "Invalid value for 'search_result_identifier', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_result_identifier', must not be 'None'") # Field is required if search_result_identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'search_result_identifier', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'search_result_identifier', must not be 'Unset'") self._search_result_identifier = search_result_identifier @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py index a310083d..ebb95d63 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -82,12 +96,8 @@ def __init__( response_options: GrantaServerApiListsDtoResponseOptions, optional """ self._search_criterion: GrantaServerApiListsDtoListCriterion - self._paging_options: Union[ - GrantaServerApiListsDtoPagingOptions, Unset_Type - ] = Unset - self._response_options: Union[ - GrantaServerApiListsDtoResponseOptions, Unset_Type - ] = Unset + self._paging_options: Union[GrantaServerApiListsDtoPagingOptions, Unset_Type] = Unset + self._response_options: Union[GrantaServerApiListsDtoResponseOptions, Unset_Type] = Unset self.search_criterion = search_criterion if paging_options is not Unset: @@ -107,9 +117,7 @@ def search_criterion(self) -> "GrantaServerApiListsDtoListCriterion": return self._search_criterion @search_criterion.setter - def search_criterion( - self, search_criterion: "GrantaServerApiListsDtoListCriterion" - ) -> None: + def search_criterion(self, search_criterion: "GrantaServerApiListsDtoListCriterion") -> None: """Sets the search_criterion of this GrantaServerApiListsDtoRecordListSearchRequest. Parameters @@ -122,15 +130,11 @@ def search_criterion( raise ValueError("Invalid value for 'search_criterion', must not be 'None'") # Field is required if search_criterion is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'search_criterion', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'search_criterion', must not be 'Unset'") self._search_criterion = search_criterion @property - def paging_options( - self, - ) -> "Union[GrantaServerApiListsDtoPagingOptions, Unset_Type]": + def paging_options(self) -> "Union[GrantaServerApiListsDtoPagingOptions, Unset_Type]": """Gets the paging_options of this GrantaServerApiListsDtoRecordListSearchRequest. Returns @@ -157,9 +161,7 @@ def paging_options( self._paging_options = paging_options @property - def response_options( - self, - ) -> "Union[GrantaServerApiListsDtoResponseOptions, Unset_Type]": + def response_options(self) -> "Union[GrantaServerApiListsDtoResponseOptions, Unset_Type]": """Gets the response_options of this GrantaServerApiListsDtoRecordListSearchRequest. Returns @@ -171,8 +173,7 @@ def response_options( @response_options.setter def response_options( - self, - response_options: "Union[GrantaServerApiListsDtoResponseOptions, Unset_Type]", + self, response_options: "Union[GrantaServerApiListsDtoResponseOptions, Unset_Type]" ) -> None: """Sets the response_options of this GrantaServerApiListsDtoRecordListSearchRequest. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py index 6008f390..9f6d217e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_result.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py index b05f6bfa..7b1e6d1d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py index 34b96609..782af8e9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_response_options.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -100,9 +114,7 @@ def include_user_actions(self) -> "Union[bool, Unset_Type]": return self._include_user_actions @include_user_actions.setter - def include_user_actions( - self, include_user_actions: "Union[bool, Unset_Type]" - ) -> None: + def include_user_actions(self, include_user_actions: "Union[bool, Unset_Type]") -> None: """Sets the include_user_actions of this GrantaServerApiListsDtoResponseOptions. Parameters @@ -112,9 +124,7 @@ def include_user_actions( """ # Field is not nullable if include_user_actions is None: - raise ValueError( - "Invalid value for 'include_user_actions', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_user_actions', must not be 'None'") self._include_user_actions = include_user_actions @property @@ -129,9 +139,7 @@ def include_user_permissions(self) -> "Union[bool, Unset_Type]": return self._include_user_permissions @include_user_permissions.setter - def include_user_permissions( - self, include_user_permissions: "Union[bool, Unset_Type]" - ) -> None: + def include_user_permissions(self, include_user_permissions: "Union[bool, Unset_Type]") -> None: """Sets the include_user_permissions of this GrantaServerApiListsDtoResponseOptions. Parameters @@ -141,9 +149,7 @@ def include_user_permissions( """ # Field is not nullable if include_user_permissions is None: - raise ValueError( - "Invalid value for 'include_user_permissions', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_user_permissions', must not be 'None'") self._include_user_permissions = include_user_permissions @property @@ -170,9 +176,7 @@ def include_record_list_items( """ # Field is not nullable if include_record_list_items is None: - raise ValueError( - "Invalid value for 'include_record_list_items', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_record_list_items', must not be 'None'") self._include_record_list_items = include_record_list_items @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py index acc3389d..2b9e67d1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -178,9 +192,7 @@ def is_administrator(self, is_administrator: "bool") -> None: raise ValueError("Invalid value for 'is_administrator', must not be 'None'") # Field is required if is_administrator is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'is_administrator', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'is_administrator', must not be 'Unset'") self._is_administrator = is_administrator @property @@ -235,9 +247,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiListsDtoUpdateRecordListPermissionFlags - ): + if not isinstance(other, GrantaServerApiListsDtoUpdateRecordListPermissionFlags): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py index 973c8322..39a1a7f8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -222,9 +236,7 @@ def awaiting_approval(self, awaiting_approval: "Union[bool, Unset_Type]") -> Non """ # Field is not nullable if awaiting_approval is None: - raise ValueError( - "Invalid value for 'awaiting_approval', must not be 'None'" - ) + raise ValueError("Invalid value for 'awaiting_approval', must not be 'None'") self._awaiting_approval = awaiting_approval @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py index 6c199776..ba74b50f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -105,14 +119,10 @@ def user_or_group_identifier(self, user_or_group_identifier: "str") -> None: """ # Field is not nullable if user_or_group_identifier is None: - raise ValueError( - "Invalid value for 'user_or_group_identifier', must not be 'None'" - ) + raise ValueError("Invalid value for 'user_or_group_identifier', must not be 'None'") # Field is required if user_or_group_identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'user_or_group_identifier', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'user_or_group_identifier', must not be 'Unset'") self._user_or_group_identifier = user_or_group_identifier @property @@ -127,9 +137,7 @@ def flags(self) -> "GrantaServerApiListsDtoUpdateRecordListPermissionFlags": return self._flags @flags.setter - def flags( - self, flags: "GrantaServerApiListsDtoUpdateRecordListPermissionFlags" - ) -> None: + def flags(self, flags: "GrantaServerApiListsDtoUpdateRecordListPermissionFlags") -> None: """Sets the flags of this GrantaServerApiListsDtoUpdateUserPermission. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py index f1a9af81..3186d12e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -102,9 +116,7 @@ def user_permissions( raise ValueError("Invalid value for 'user_permissions', must not be 'None'") # Field is required if user_permissions is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'user_permissions', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'user_permissions', must not be 'Unset'") self._user_permissions = user_permissions @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py index 99cc7f8c..a5fe828c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_or_group.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py index a5664ed9..c5a57339 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -111,14 +125,10 @@ def user_or_group_name(self, user_or_group_name: "str") -> None: """ # Field is not nullable if user_or_group_name is None: - raise ValueError( - "Invalid value for 'user_or_group_name', must not be 'None'" - ) + raise ValueError("Invalid value for 'user_or_group_name', must not be 'None'") # Field is required if user_or_group_name is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'user_or_group_name', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'user_or_group_name', must not be 'Unset'") self._user_or_group_name = user_or_group_name @property @@ -145,14 +155,10 @@ def user_or_group_identifier(self, user_or_group_identifier: "str") -> None: """ # Field is not nullable if user_or_group_identifier is None: - raise ValueError( - "Invalid value for 'user_or_group_identifier', must not be 'None'" - ) + raise ValueError("Invalid value for 'user_or_group_identifier', must not be 'None'") # Field is required if user_or_group_identifier is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'user_or_group_identifier', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'user_or_group_identifier', must not be 'Unset'") self._user_or_group_identifier = user_or_group_identifier @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py index e0fe4316..595b9bea 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -102,9 +116,7 @@ def user_permissions( raise ValueError("Invalid value for 'user_permissions', must not be 'None'") # Field is required if user_permissions is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'user_permissions', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'user_permissions', must not be 'Unset'") self._user_permissions = user_permissions @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_role.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_role.py index ac9cad14..f8e6bef6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_role.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_role.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_get_jobs_summary_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_get_jobs_summary_response.py index 7159d439..a8defe79 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_get_jobs_summary_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_get_jobs_summary_response.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,17 +85,13 @@ def __init__( ---------- jobs: List[GrantaServerApiMetricsJobTypeAndStatus], optional """ - self._jobs: Union[ - List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type - ] = Unset + self._jobs: Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type] = Unset if jobs is not Unset: self.jobs = jobs @property - def jobs( - self, - ) -> "Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type]": + def jobs(self) -> "Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type]": """Gets the jobs of this GrantaServerApiMetricsGetJobsSummaryResponse. Returns @@ -93,8 +103,7 @@ def jobs( @jobs.setter def jobs( - self, - jobs: "Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type]", + self, jobs: "Union[List[GrantaServerApiMetricsJobTypeAndStatus], None, Unset_Type]" ) -> None: """Sets the jobs of this GrantaServerApiMetricsGetJobsSummaryResponse. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_job_type_and_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_job_type_and_status.py index 58fe57c7..9352383b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_job_type_and_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_metrics_job_type_and_status.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py index 2861c182..94d99de8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_no_values_specifier.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( # noqa: F401 GrantaServerApiValueSpecifier, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py index 44da7b42..aa9f9704 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_object_identifier.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py index bce20aff..ba004907 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -101,18 +115,14 @@ def __init__( self._name: Union[str, None, Unset_Type] = Unset self._identity: Union[int, Unset_Type] = Unset self._unit_symbol: Union[str, None, Unset_Type] = Unset - self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = ( - Unset - ) + self._scale_type: Union[GrantaServerApiParameterInfoScaleType, Unset_Type] = Unset self._interpolation_type: Union[ GrantaServerApiParameterInfoInterpolationType, Unset_Type ] = Unset - self._parameter_type: Union[ - GrantaServerApiParameterInfoParameterType, Unset_Type - ] = Unset - self._default_value: Union[ - GrantaServerApiDataExportDatumsParameterValue, Unset_Type - ] = Unset + self._parameter_type: Union[GrantaServerApiParameterInfoParameterType, Unset_Type] = Unset + self._default_value: Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type] = ( + Unset + ) if name is not Unset: self.name = name @@ -240,8 +250,7 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( - self, - interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]", + self, interpolation_type: "Union[GrantaServerApiParameterInfoInterpolationType, Unset_Type]" ) -> None: """Sets the interpolation_type of this GrantaServerApiParameterInfo. @@ -252,15 +261,11 @@ def interpolation_type( """ # Field is not nullable if interpolation_type is None: - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'None'") self._interpolation_type = interpolation_type @property - def parameter_type( - self, - ) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": + def parameter_type(self) -> "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]": """Gets the parameter_type of this GrantaServerApiParameterInfo. Returns @@ -272,8 +277,7 @@ def parameter_type( @parameter_type.setter def parameter_type( - self, - parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]", + self, parameter_type: "Union[GrantaServerApiParameterInfoParameterType, Unset_Type]" ) -> None: """Sets the parameter_type of this GrantaServerApiParameterInfo. @@ -288,9 +292,7 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value( - self, - ) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": + def default_value(self) -> "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]": """Gets the default_value of this GrantaServerApiParameterInfo. Returns @@ -302,8 +304,7 @@ def default_value( @default_value.setter def default_value( - self, - default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]", + self, default_value: "Union[GrantaServerApiDataExportDatumsParameterValue, Unset_Type]" ) -> None: """Sets the default_value of this GrantaServerApiParameterInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_interpolation_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_interpolation_type.py index 7b6454dc..0e0e0c20 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_interpolation_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_interpolation_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_parameter_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_parameter_type.py index 85d9d028..54154590 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_parameter_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_parameter_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_scale_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_scale_type.py index c291e476..91a48d91 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_scale_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_parameter_info_scale_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_color.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_color.py index 986340cf..8802180f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_color.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_color.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_property.py index d3bcdd22..7306a01a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_property.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_type.py index 8b4fd670..4c31ff45 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_record_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py index cb0712eb..c8998ff7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -83,9 +97,7 @@ def __init__( self._new_parent: Union[ GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type ] = Unset - self._subset_option: ( - GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType - ) + self._subset_option: GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType self._new_short_name: Union[str, None, Unset_Type] = Unset if new_parent is not Unset: @@ -125,9 +137,7 @@ def new_parent( self._new_parent = new_parent @property - def subset_option( - self, - ) -> "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType": + def subset_option(self) -> "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType": """Gets the subset_option of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Returns @@ -139,8 +149,7 @@ def subset_option( @subset_option.setter def subset_option( - self, - subset_option: "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType", + self, subset_option: "GrantaServerApiRecordsRecordHistoriesRecordPropertyInheritanceType" ) -> None: """Sets the subset_option of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. @@ -201,9 +210,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiRecordsRecordHistoriesCopyRecordHistory - ): + if not isinstance(other, GrantaServerApiRecordsRecordHistoriesCopyRecordHistory): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py index 5969961a..e4c1eb81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,9 +110,9 @@ def __init__( self._record_type: GrantaServerApiRecordType self._name: str self._short_name: Union[str, None, Unset_Type] = Unset - self._parent: Union[ - GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type - ] = Unset + self._parent: Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] = ( + Unset + ) self._record_color: Union[GrantaServerApiRecordColor, Unset_Type] = Unset self._guid: Union[str, Unset_Type] = Unset @@ -192,9 +206,7 @@ def short_name(self, short_name: "Union[str, None, Unset_Type]") -> None: self._short_name = short_name @property - def parent( - self, - ) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": + def parent(self) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": """Gets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns @@ -206,8 +218,7 @@ def parent( @parent.setter def parent( - self, - parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]", + self, parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]" ) -> None: """Sets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. @@ -233,9 +244,7 @@ def record_color(self) -> "Union[GrantaServerApiRecordColor, Unset_Type]": return self._record_color @record_color.setter - def record_color( - self, record_color: "Union[GrantaServerApiRecordColor, Unset_Type]" - ) -> None: + def record_color(self, record_color: "Union[GrantaServerApiRecordColor, Unset_Type]") -> None: """Sets the record_color of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters @@ -295,9 +304,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiRecordsRecordHistoriesCreateRecordHistory - ): + if not isinstance(other, GrantaServerApiRecordsRecordHistoriesCreateRecordHistory): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py index 082d8b91..ddfbf7cd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -130,9 +144,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiRecordsRecordHistoriesMoveRecordHistory - ): + if not isinstance(other, GrantaServerApiRecordsRecordHistoriesMoveRecordHistory): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py index 5027b71e..c56e0c65 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_history.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,12 +110,10 @@ def __init__( """ self._is_folder: bool self._table: GrantaServerApiSchemaSlimEntitiesSlimTable - self._parent: Union[ - GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type - ] = Unset - self._record_versions: List[ - GrantaServerApiRecordsRecordVersionsSlimRecordVersion - ] + self._parent: Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type] = ( + Unset + ) + self._record_versions: List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] self._subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] self._guid: str @@ -170,9 +182,7 @@ def table(self, table: "GrantaServerApiSchemaSlimEntitiesSlimTable") -> None: self._table = table @property - def parent( - self, - ) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": + def parent(self) -> "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]": """Gets the parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Returns @@ -184,8 +194,7 @@ def parent( @parent.setter def parent( - self, - parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]", + self, parent: "Union[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, Unset_Type]" ) -> None: """Sets the parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. @@ -200,9 +209,7 @@ def parent( self._parent = parent @property - def record_versions( - self, - ) -> "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]": + def record_versions(self) -> "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]": """Gets the record_versions of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Returns @@ -214,8 +221,7 @@ def record_versions( @record_versions.setter def record_versions( - self, - record_versions: "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", + self, record_versions: "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]" ) -> None: """Sets the record_versions of this GrantaServerApiRecordsRecordHistoriesRecordHistory. @@ -244,9 +250,7 @@ def subsets(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]": return self._subsets @subsets.setter - def subsets( - self, subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]" - ) -> None: + def subsets(self, subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]") -> None: """Sets the subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py index 7745242b..e46a3361 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_record_property_inheritance_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py index 0221dc9c..03f4982c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_slim_record_history.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +137,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiRecordsRecordHistoriesSlimRecordHistory - ): + if not isinstance(other, GrantaServerApiRecordsRecordHistoriesSlimRecordHistory): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py index c789e35e..83bb07bd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_record_version.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -165,9 +179,7 @@ def __init__( self.guid = guid @property - def record_history( - self, - ) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": + def record_history(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": """Gets the record_history of this GrantaServerApiRecordsRecordVersionsRecordVersion. Returns @@ -330,14 +342,10 @@ def last_modified_by_user(self, last_modified_by_user: "str") -> None: """ # Field is not nullable if last_modified_by_user is None: - raise ValueError( - "Invalid value for 'last_modified_by_user', must not be 'None'" - ) + raise ValueError("Invalid value for 'last_modified_by_user', must not be 'None'") # Field is required if last_modified_by_user is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'last_modified_by_user', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'last_modified_by_user', must not be 'Unset'") self._last_modified_by_user = last_modified_by_user @property @@ -362,14 +370,10 @@ def last_modified_date(self, last_modified_date: "datetime") -> None: """ # Field is not nullable if last_modified_date is None: - raise ValueError( - "Invalid value for 'last_modified_date', must not be 'None'" - ) + raise ValueError("Invalid value for 'last_modified_date', must not be 'None'") # Field is required if last_modified_date is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'last_modified_date', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'last_modified_date', must not be 'Unset'") self._last_modified_date = last_modified_date @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py index e8a5b102..c5974874 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_versions_slim_record_version.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py index f7e7376f..7339e79b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -121,9 +135,7 @@ def __init__( axis_name: str, optional help_path: str, optional """ - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self._axis_name: Union[str, None, Unset_Type] = Unset self._help_path: Union[str, None, Unset_Type] = Unset self._about_attribute: Union[ @@ -147,9 +159,7 @@ def __init__( self.guid = guid @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaAttributesAttribute. Returns @@ -161,8 +171,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaAttributesAttribute. @@ -173,14 +182,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @property @@ -242,8 +247,7 @@ def about_attribute( @about_attribute.setter def about_attribute( - self, - about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", + self, about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesAttribute. @@ -269,9 +273,7 @@ def info(self) -> "GrantaServerApiSchemaAttributesAttributeAttributeInfo": return self._info @info.setter - def info( - self, info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo" - ) -> None: + def info(self, info: "GrantaServerApiSchemaAttributesAttributeAttributeInfo") -> None: """Sets the info of this GrantaServerApiSchemaAttributesAttribute. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py index ef2b8bb2..a2debb4c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_attribute_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -130,12 +144,8 @@ def __init__( List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type ] = Unset self._standard_names: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - self._primary_data_link_groups: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] - self._foreign_data_link_groups: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] + self._primary_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._foreign_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] self._primary_dynamic_link_groups: Union[ List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], None, Unset_Type ] = Unset @@ -321,14 +331,10 @@ def is_meta_attribute(self, is_meta_attribute: "bool") -> None: """ # Field is not nullable if is_meta_attribute is None: - raise ValueError( - "Invalid value for 'is_meta_attribute', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_meta_attribute', must not be 'None'") # Field is required if is_meta_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'is_meta_attribute', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'is_meta_attribute', must not be 'Unset'") self._is_meta_attribute = is_meta_attribute @property @@ -359,9 +365,7 @@ def ordered_meta_attributes( self._ordered_meta_attributes = ordered_meta_attributes @property - def standard_names( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def standard_names(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the standard_names of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -391,9 +395,7 @@ def standard_names( self._standard_names = standard_names @property - def primary_data_link_groups( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def primary_data_link_groups(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the primary_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -405,8 +407,7 @@ def primary_data_link_groups( @primary_data_link_groups.setter def primary_data_link_groups( - self, - primary_data_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, primary_data_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the primary_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. @@ -417,20 +418,14 @@ def primary_data_link_groups( """ # Field is not nullable if primary_data_link_groups is None: - raise ValueError( - "Invalid value for 'primary_data_link_groups', must not be 'None'" - ) + raise ValueError("Invalid value for 'primary_data_link_groups', must not be 'None'") # Field is required if primary_data_link_groups is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'primary_data_link_groups', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'primary_data_link_groups', must not be 'Unset'") self._primary_data_link_groups = primary_data_link_groups @property - def foreign_data_link_groups( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def foreign_data_link_groups(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the foreign_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -442,8 +437,7 @@ def foreign_data_link_groups( @foreign_data_link_groups.setter def foreign_data_link_groups( - self, - foreign_data_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, foreign_data_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the foreign_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. @@ -454,14 +448,10 @@ def foreign_data_link_groups( """ # Field is not nullable if foreign_data_link_groups is None: - raise ValueError( - "Invalid value for 'foreign_data_link_groups', must not be 'None'" - ) + raise ValueError("Invalid value for 'foreign_data_link_groups', must not be 'None'") # Field is required if foreign_data_link_groups is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'foreign_data_link_groups', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'foreign_data_link_groups', must not be 'Unset'") self._foreign_data_link_groups = foreign_data_link_groups @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_interpolation_method.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_interpolation_method.py index 867a1642..986e5b24 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_interpolation_method.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_interpolation_method.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_scale_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_scale_type.py index 06e01916..cee77a49 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_scale_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_scale_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_threshold_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_threshold_type.py index b3743fce..d5a7fd01 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_threshold_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_threshold_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py index f12faa60..6bd3c7d4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +142,7 @@ def has_validation_rules(self) -> "Union[bool, Unset_Type]": return self._has_validation_rules @has_validation_rules.setter - def has_validation_rules( - self, has_validation_rules: "Union[bool, Unset_Type]" - ) -> None: + def has_validation_rules(self, has_validation_rules: "Union[bool, Unset_Type]") -> None: """Sets the has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the attribute has any validation rules that were checked. @@ -141,9 +153,7 @@ def has_validation_rules( """ # Field is not nullable if has_validation_rules is None: - raise ValueError( - "Invalid value for 'has_validation_rules', must not be 'None'" - ) + raise ValueError("Invalid value for 'has_validation_rules', must not be 'None'") self._has_validation_rules = has_validation_rules @property @@ -192,9 +202,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesAttributeValidateResponse - ): + if not isinstance(other, GrantaServerApiSchemaAttributesAttributeValidateResponse): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py index 5a1b9dea..bfcd9e50 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attributes_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py index 9d68f754..f5e25105 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_attribute.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -112,9 +126,9 @@ def __init__( GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type ] = Unset self._help_path: Union[str, None, Unset_Type] = Unset - self._about_attribute: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._about_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self._name: str self._guid: Union[str, Unset_Type] = Unset @@ -155,9 +169,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property @@ -183,9 +195,7 @@ def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: self._help_path = help_path @property - def about_attribute( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def about_attribute(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns @@ -197,8 +207,7 @@ def about_attribute( @about_attribute.setter def about_attribute( - self, - about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. @@ -292,9 +301,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute - ): + if not isinstance(other, GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py index 5dafbc78..a87960b6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_date_time_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -156,8 +171,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py index a6ad1324..af2f3105 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -160,9 +175,7 @@ def discrete_type(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._discrete_type @discrete_type.setter - def discrete_type( - self, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity" - ) -> None: + def discrete_type(self, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: """Sets the discrete_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. Parameters @@ -226,8 +239,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py index 7ec5a89f..90212ac1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -162,9 +177,7 @@ def discrete_type(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._discrete_type @discrete_type.setter - def discrete_type( - self, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity" - ) -> None: + def discrete_type(self, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: """Sets the discrete_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. Parameters @@ -207,14 +220,10 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") # Field is required if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'Unset'") self._attribute_parameters = attribute_parameters @classmethod @@ -240,8 +249,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py index 24bcac5d..8a2f4202 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_discrete_functional_attribute_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,9 +110,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._parameter @parameter.setter - def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity" - ) -> None: + def parameter(self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py index 01d635b8..ef99ba5d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_file_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py index 06a6fd42..010cdfaf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -121,9 +136,7 @@ def __init__( help_path=help_path, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._axis_name: Union[str, None, Unset_Type] = Unset self._attribute_parameters: List[ GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter @@ -179,9 +192,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters @@ -243,14 +254,10 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") # Field is required if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'Unset'") self._attribute_parameters = attribute_parameters @property @@ -301,8 +308,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py index 804feb65..868bfe13 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_float_functional_attribute_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -92,9 +106,9 @@ def __init__( self._interpolation_method: Union[ GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type ] = Unset - self._scale_type: Union[ - GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type - ] = Unset + self._scale_type: Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] = ( + Unset + ) self.parameter = parameter if default_value is not Unset: @@ -116,9 +130,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._parameter @parameter.setter - def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity" - ) -> None: + def parameter(self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Parameters @@ -159,9 +171,7 @@ def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None @property def interpolation_method( self, - ) -> ( - "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]": """Gets the interpolation_method of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns @@ -185,15 +195,11 @@ def interpolation_method( """ # Field is not nullable if interpolation_method is None: - raise ValueError( - "Invalid value for 'interpolation_method', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_method', must not be 'None'") self._interpolation_method = interpolation_method @property - def scale_type( - self, - ) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": + def scale_type(self) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns @@ -205,8 +211,7 @@ def scale_type( @scale_type.setter def scale_type( - self, - scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]", + self, scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py index c5d858ba..228c6f4f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_hyperlink_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -156,8 +171,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py index ff61ed05..16582cba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_integer_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py index f9936e43..e3d768c0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_logical_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py index 3a55af18..5e7f974a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_long_text_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -156,8 +171,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py index 446a50d3..7415e23a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_maths_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -138,9 +153,7 @@ def __init__( help_path=help_path, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._attribute_parameters: Union[ List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type ] = Unset @@ -211,9 +224,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters @@ -292,9 +303,7 @@ def allow_extrapolation(self) -> "Union[bool, Unset_Type]": return self._allow_extrapolation @allow_extrapolation.setter - def allow_extrapolation( - self, allow_extrapolation: "Union[bool, Unset_Type]" - ) -> None: + def allow_extrapolation(self, allow_extrapolation: "Union[bool, Unset_Type]") -> None: """Sets the allow_extrapolation of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters @@ -304,9 +313,7 @@ def allow_extrapolation( """ # Field is not nullable if allow_extrapolation is None: - raise ValueError( - "Invalid value for 'allow_extrapolation', must not be 'None'" - ) + raise ValueError("Invalid value for 'allow_extrapolation', must not be 'None'") self._allow_extrapolation = allow_extrapolation @property @@ -409,9 +416,7 @@ def allow_anonymous_expressions( """ # Field is not nullable if allow_anonymous_expressions is None: - raise ValueError( - "Invalid value for 'allow_anonymous_expressions', must not be 'None'" - ) + raise ValueError("Invalid value for 'allow_anonymous_expressions', must not be 'None'") self._allow_anonymous_expressions = allow_anonymous_expressions @classmethod @@ -437,8 +442,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py index c0804cf2..fdbf7b5a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_picture_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py index 0c30fdbc..cff9983f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_point_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -122,9 +137,7 @@ def __init__( ) self._type: str self._is_multi_valued: Union[bool, Unset_Type] = Unset - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._axis_name: Union[str, None, Unset_Type] = Unset self._attribute_parameters: Union[ List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type @@ -205,9 +218,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py index 6ada5c17..53710a9f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_range_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -112,9 +127,7 @@ def __init__( help_path=help_path, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._axis_name: Union[str, None, Unset_Type] = Unset self.type = type @@ -163,9 +176,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py index 283c7b45..89b8363c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_short_text_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -113,9 +128,7 @@ def __init__( ) self._type: str self._is_unique: Union[bool, Unset_Type] = Unset - self._data_rule: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._data_rule: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.type = type if is_unique is not Unset: @@ -179,9 +192,7 @@ def is_unique(self, is_unique: "Union[bool, Unset_Type]") -> None: self._is_unique = is_unique @property - def data_rule( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def data_rule(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Returns @@ -193,8 +204,7 @@ def data_rule( @data_rule.setter def data_rule( - self, - data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. @@ -231,8 +241,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute, + other, GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py index cc24dcbf..90ef9618 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_create_attributes_create_tabular_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_create_attributes_create_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,15 +144,13 @@ def __init__( self._display_summary_row_inline: Union[bool, Unset_Type] = Unset self._hide_unlinked_rows: Union[bool, Unset_Type] = Unset self._tabular_columns: Union[ - List[ - GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn - ], + List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn], None, Unset_Type, ] = Unset - self._target: Union[ - GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type - ] = Unset + self._target: Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type] = ( + Unset + ) self.type = type if display_full_table is not Unset: @@ -201,9 +214,7 @@ def display_full_table(self, display_full_table: "Union[bool, Unset_Type]") -> N """ # Field is not nullable if display_full_table is None: - raise ValueError( - "Invalid value for 'display_full_table', must not be 'None'" - ) + raise ValueError("Invalid value for 'display_full_table', must not be 'None'") self._display_full_table = display_full_table @property @@ -230,9 +241,7 @@ def display_summary_row_inline( """ # Field is not nullable if display_summary_row_inline is None: - raise ValueError( - "Invalid value for 'display_summary_row_inline', must not be 'None'" - ) + raise ValueError("Invalid value for 'display_summary_row_inline', must not be 'None'") self._display_summary_row_inline = display_summary_row_inline @property @@ -257,9 +266,7 @@ def hide_unlinked_rows(self, hide_unlinked_rows: "Union[bool, Unset_Type]") -> N """ # Field is not nullable if hide_unlinked_rows is None: - raise ValueError( - "Invalid value for 'hide_unlinked_rows', must not be 'None'" - ) + raise ValueError("Invalid value for 'hide_unlinked_rows', must not be 'None'") self._hide_unlinked_rows = hide_unlinked_rows @property @@ -290,9 +297,7 @@ def tabular_columns( self._tabular_columns = tabular_columns @property - def target( - self, - ) -> "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]": + def target(self) -> "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]": """Gets the target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns @@ -304,8 +309,7 @@ def target( @target.setter def target( - self, - target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]", + self, target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]" ) -> None: """Sets the target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py index a1b487b0..9219a12a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_date_time_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesDateTimeAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesDateTimeAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py index 67be4d48..ca7197e7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesDiscreteAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesDiscreteAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py index bcdc273e..d6a65aed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -222,14 +237,10 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") # Field is required if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'Unset'") self._attribute_parameters = attribute_parameters @classmethod @@ -254,9 +265,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute - ): + if not isinstance(other, GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py index 6484e3ff..361f3740 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -75,9 +89,7 @@ def __init__( default_value: float, optional parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional """ - self._parameter: Union[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type - ] = Unset + self._parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] = Unset self._default_value: Union[float, None, Unset_Type] = Unset if parameter is not Unset: @@ -86,9 +98,7 @@ def __init__( self.default_value = default_value @property - def parameter( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": + def parameter(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Returns @@ -100,8 +110,7 @@ def parameter( @parameter.setter def parameter( - self, - parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", + self, parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py index e5796345..56504d81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_file_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesFileAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesFileAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py index 14c74c10..278cbef6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -184,9 +199,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. Parameters @@ -226,14 +239,10 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") # Field is required if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'Unset'") self._attribute_parameters = attribute_parameters @property @@ -286,9 +295,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesFloatFunctionalAttribute - ): + if not isinstance(other, GrantaServerApiSchemaAttributesFloatFunctionalAttribute): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py index f98f70d4..426c06d5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -85,16 +99,14 @@ def __init__( parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional """ - self._parameter: Union[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type - ] = Unset + self._parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] = Unset self._default_value: Union[float, None, Unset_Type] = Unset self._interpolation_method: Union[ GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type ] = Unset - self._scale_type: Union[ - GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type - ] = Unset + self._scale_type: Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] = ( + Unset + ) if parameter is not Unset: self.parameter = parameter @@ -106,9 +118,7 @@ def __init__( self.scale_type = scale_type @property - def parameter( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": + def parameter(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns @@ -120,8 +130,7 @@ def parameter( @parameter.setter def parameter( - self, - parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", + self, parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. @@ -160,9 +169,7 @@ def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None @property def interpolation_method( self, - ) -> ( - "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]": """Gets the interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns @@ -186,15 +193,11 @@ def interpolation_method( """ # Field is not nullable if interpolation_method is None: - raise ValueError( - "Invalid value for 'interpolation_method', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_method', must not be 'None'") self._interpolation_method = interpolation_method @property - def scale_type( - self, - ) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": + def scale_type(self) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns @@ -206,8 +209,7 @@ def scale_type( @scale_type.setter def scale_type( - self, - scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]", + self, scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. @@ -243,9 +245,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter - ): + if not isinstance(other, GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py index a3139f7a..77a707ed 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_hyperlink_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesHyperlinkAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesHyperlinkAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py index c193cfc0..e0af02a0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_integer_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesIntegerAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesIntegerAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py index e25d2c11..25072308 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_logical_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesLogicalAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesLogicalAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py index 16ce817d..e3badb46 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_long_text_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesLongTextAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesLongTextAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py index b334162b..538a9b9d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_content.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,9 +110,7 @@ def __init__( self._curve_label: Union[str, None, Unset_Type] = Unset self._transpose_axes: bool self._use_logarithmic_scale: bool - self._expression: Union[ - GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type - ] = Unset + self._expression: Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type] = Unset self._free_parameter: Union[ GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type ] = Unset @@ -186,20 +198,14 @@ def use_logarithmic_scale(self, use_logarithmic_scale: "bool") -> None: """ # Field is not nullable if use_logarithmic_scale is None: - raise ValueError( - "Invalid value for 'use_logarithmic_scale', must not be 'None'" - ) + raise ValueError("Invalid value for 'use_logarithmic_scale', must not be 'None'") # Field is required if use_logarithmic_scale is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'use_logarithmic_scale', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'use_logarithmic_scale', must not be 'Unset'") self._use_logarithmic_scale = use_logarithmic_scale @property - def expression( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type]": + def expression(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type]": """Gets the expression of this GrantaServerApiSchemaAttributesMathsContent. Returns @@ -211,8 +217,7 @@ def expression( @expression.setter def expression( - self, - expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type]", + self, expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimExpression, Unset_Type]" ) -> None: """Sets the expression of this GrantaServerApiSchemaAttributesMathsContent. @@ -241,8 +246,7 @@ def free_parameter( @free_parameter.setter def free_parameter( - self, - free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", + self, free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" ) -> None: """Sets the free_parameter of this GrantaServerApiSchemaAttributesMathsContent. @@ -257,9 +261,7 @@ def free_parameter( self._free_parameter = free_parameter @property - def parameter_contents( - self, - ) -> "List[GrantaServerApiSchemaParametersParameterContent]": + def parameter_contents(self) -> "List[GrantaServerApiSchemaParametersParameterContent]": """Gets the parameter_contents of this GrantaServerApiSchemaAttributesMathsContent. Returns @@ -271,8 +273,7 @@ def parameter_contents( @parameter_contents.setter def parameter_contents( - self, - parameter_contents: "List[GrantaServerApiSchemaParametersParameterContent]", + self, parameter_contents: "List[GrantaServerApiSchemaParametersParameterContent]" ) -> None: """Sets the parameter_contents of this GrantaServerApiSchemaAttributesMathsContent. @@ -283,14 +284,10 @@ def parameter_contents( """ # Field is not nullable if parameter_contents is None: - raise ValueError( - "Invalid value for 'parameter_contents', must not be 'None'" - ) + raise ValueError("Invalid value for 'parameter_contents', must not be 'None'") # Field is required if parameter_contents is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'parameter_contents', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'parameter_contents', must not be 'Unset'") self._parameter_contents = parameter_contents @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py index c25f4e2b..819835ad 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -155,9 +170,7 @@ def __init__( ) self._type: str self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset - self._attribute_parameters: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] + self._attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] self._expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] self._allow_extrapolation: bool self._is_range: bool @@ -216,9 +229,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Parameters @@ -232,9 +243,7 @@ def unit( self._unit = unit @property - def attribute_parameters( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def attribute_parameters(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Returns @@ -246,8 +255,7 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( - self, - attribute_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, attribute_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. @@ -258,14 +266,10 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") # Field is required if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'Unset'") self._attribute_parameters = attribute_parameters @property @@ -320,14 +324,10 @@ def allow_extrapolation(self, allow_extrapolation: "bool") -> None: """ # Field is not nullable if allow_extrapolation is None: - raise ValueError( - "Invalid value for 'allow_extrapolation', must not be 'None'" - ) + raise ValueError("Invalid value for 'allow_extrapolation', must not be 'None'") # Field is required if allow_extrapolation is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'allow_extrapolation', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'allow_extrapolation', must not be 'Unset'") self._allow_extrapolation = allow_extrapolation @property @@ -370,9 +370,7 @@ def allow_all_compatible_expressions(self) -> "bool": return self._allow_all_compatible_expressions @allow_all_compatible_expressions.setter - def allow_all_compatible_expressions( - self, allow_all_compatible_expressions: "bool" - ) -> None: + def allow_all_compatible_expressions(self, allow_all_compatible_expressions: "bool") -> None: """Sets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Parameters @@ -414,14 +412,10 @@ def allow_anonymous_expressions(self, allow_anonymous_expressions: "bool") -> No """ # Field is not nullable if allow_anonymous_expressions is None: - raise ValueError( - "Invalid value for 'allow_anonymous_expressions', must not be 'None'" - ) + raise ValueError("Invalid value for 'allow_anonymous_expressions', must not be 'None'") # Field is required if allow_anonymous_expressions is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'allow_anonymous_expressions', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'allow_anonymous_expressions', must not be 'Unset'") self._allow_anonymous_expressions = allow_anonymous_expressions @property @@ -476,9 +470,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesMathsFunctionalAttribute - ): + if not isinstance(other, GrantaServerApiSchemaAttributesMathsFunctionalAttribute): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py index fd31f1df..d1b18dee 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_picture_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesPictureAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesPictureAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py index 749addfe..3ab4cb01 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesPointAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesPointAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -134,9 +147,7 @@ def __init__( self._type: str self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self._is_multi_valued: bool - self._attribute_parameters: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] + self._attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] self.type = type if unit is not Unset: @@ -184,9 +195,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesPointAttribute. Parameters @@ -228,9 +237,7 @@ def is_multi_valued(self, is_multi_valued: "bool") -> None: self._is_multi_valued = is_multi_valued @property - def attribute_parameters( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def attribute_parameters(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. Returns @@ -242,8 +249,7 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( - self, - attribute_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, attribute_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. @@ -254,14 +260,10 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") # Field is required if attribute_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'Unset'") self._attribute_parameters = attribute_parameters @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py index 022cbf3e..401e9ccc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_range_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesRangeAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesRangeAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -169,9 +182,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesRangeAttribute. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py index 30682c7f..aab198e7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesShortTextAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesShortTextAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -128,9 +141,7 @@ def __init__( ) self._type: str self._is_unique: bool - self._data_rule: Union[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type - ] = Unset + self._data_rule: Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type] = Unset self.type = type self.is_unique = is_unique @@ -196,9 +207,7 @@ def is_unique(self, is_unique: "bool") -> None: self._is_unique = is_unique @property - def data_rule( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": + def data_rule(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]": """Gets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. Returns @@ -210,8 +219,7 @@ def data_rule( @data_rule.setter def data_rule( - self, - data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", + self, data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py index c32045f6..87550770 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaAttributesTabularAttribute( - GrantaServerApiSchemaAttributesAttribute -): +class GrantaServerApiSchemaAttributesTabularAttribute(GrantaServerApiSchemaAttributesAttribute): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -143,9 +156,9 @@ def __init__( self._display_full_table: bool self._display_summary_row_inline: bool self._hide_unlinked_rows: bool - self._target: Union[ - GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type - ] = Unset + self._target: Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type] = ( + Unset + ) self._tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] self.type = type @@ -206,14 +219,10 @@ def display_full_table(self, display_full_table: "bool") -> None: """ # Field is not nullable if display_full_table is None: - raise ValueError( - "Invalid value for 'display_full_table', must not be 'None'" - ) + raise ValueError("Invalid value for 'display_full_table', must not be 'None'") # Field is required if display_full_table is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'display_full_table', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'display_full_table', must not be 'Unset'") self._display_full_table = display_full_table @property @@ -238,14 +247,10 @@ def display_summary_row_inline(self, display_summary_row_inline: "bool") -> None """ # Field is not nullable if display_summary_row_inline is None: - raise ValueError( - "Invalid value for 'display_summary_row_inline', must not be 'None'" - ) + raise ValueError("Invalid value for 'display_summary_row_inline', must not be 'None'") # Field is required if display_summary_row_inline is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'display_summary_row_inline', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'display_summary_row_inline', must not be 'Unset'") self._display_summary_row_inline = display_summary_row_inline @property @@ -270,20 +275,14 @@ def hide_unlinked_rows(self, hide_unlinked_rows: "bool") -> None: """ # Field is not nullable if hide_unlinked_rows is None: - raise ValueError( - "Invalid value for 'hide_unlinked_rows', must not be 'None'" - ) + raise ValueError("Invalid value for 'hide_unlinked_rows', must not be 'None'") # Field is required if hide_unlinked_rows is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'hide_unlinked_rows', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'hide_unlinked_rows', must not be 'Unset'") self._hide_unlinked_rows = hide_unlinked_rows @property - def target( - self, - ) -> "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]": + def target(self) -> "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]": """Gets the target of this GrantaServerApiSchemaAttributesTabularAttribute. Returns @@ -295,8 +294,7 @@ def target( @target.setter def target( - self, - target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]", + self, target: "Union[GrantaServerApiSchemaAttributesTabularAttributeTarget, Unset_Type]" ) -> None: """Sets the target of this GrantaServerApiSchemaAttributesTabularAttribute. @@ -311,9 +309,7 @@ def target( self._target = target @property - def tabular_columns( - self, - ) -> "List[GrantaServerApiSchemaTabularColumnsTabularColumn]": + def tabular_columns(self) -> "List[GrantaServerApiSchemaTabularColumnsTabularColumn]": """Gets the tabular_columns of this GrantaServerApiSchemaAttributesTabularAttribute. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py index f47a9d71..94e2c920 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_tabular_attribute_target.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -107,9 +121,7 @@ def target_database_guid(self) -> "Union[str, Unset_Type]": return self._target_database_guid @target_database_guid.setter - def target_database_guid( - self, target_database_guid: "Union[str, Unset_Type]" - ) -> None: + def target_database_guid(self, target_database_guid: "Union[str, Unset_Type]") -> None: """Sets the target_database_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters @@ -119,9 +131,7 @@ def target_database_guid( """ # Field is not nullable if target_database_guid is None: - raise ValueError( - "Invalid value for 'target_database_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'target_database_guid', must not be 'None'") self._target_database_guid = target_database_guid @property @@ -148,9 +158,7 @@ def target_database_version_guid( """ # Field is not nullable if target_database_version_guid is None: - raise ValueError( - "Invalid value for 'target_database_version_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'target_database_version_guid', must not be 'None'") self._target_database_version_guid = target_database_version_guid @property @@ -175,9 +183,7 @@ def target_table_guid(self, target_table_guid: "Union[str, Unset_Type]") -> None """ # Field is not nullable if target_table_guid is None: - raise ValueError( - "Invalid value for 'target_table_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'target_table_guid', must not be 'None'") self._target_table_guid = target_table_guid @property @@ -192,9 +198,7 @@ def target_attribute_guid(self) -> "Union[str, Unset_Type]": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid( - self, target_attribute_guid: "Union[str, Unset_Type]" - ) -> None: + def target_attribute_guid(self, target_attribute_guid: "Union[str, Unset_Type]") -> None: """Sets the target_attribute_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters @@ -204,9 +208,7 @@ def target_attribute_guid( """ # Field is not nullable if target_attribute_guid is None: - raise ValueError( - "Invalid value for 'target_attribute_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'target_attribute_guid', must not be 'None'") self._target_attribute_guid = target_attribute_guid @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py index e58c09df..90c4be8f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -117,9 +131,9 @@ def __init__( ] = Unset self._axis_name: Union[str, None, Unset_Type] = Unset self._help_path: Union[str, None, Unset_Type] = Unset - self._about_attribute: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._about_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self._name: Union[str, Unset_Type] = Unset self._guid: Union[str, Unset_Type] = Unset @@ -163,9 +177,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property @@ -213,9 +225,7 @@ def help_path(self, help_path: "Union[str, None, Unset_Type]") -> None: self._help_path = help_path @property - def about_attribute( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def about_attribute(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns @@ -227,8 +237,7 @@ def about_attribute( @about_attribute.setter def about_attribute( - self, - about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. @@ -319,9 +328,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute - ): + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py index 3b7e4946..2e20f877 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -161,8 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py index 9f0d9e30..97f44f6e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -193,8 +208,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py index 3a26b928..04a0674f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -179,9 +194,7 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") self._attribute_parameters = attribute_parameters @classmethod @@ -207,8 +220,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py index 01b478e7..aeaecc53 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -77,9 +91,7 @@ def __init__( default_value: float, optional parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ - self._parameter: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._default_value: Union[float, None, Unset_Type] = Unset if parameter is not Unset: @@ -88,9 +100,7 @@ def __init__( self.default_value = default_value @property - def parameter( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def parameter(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Returns @@ -102,8 +112,7 @@ def parameter( @parameter.setter def parameter( - self, - parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py index 0c1ea7a2..ff93eef3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py index 185f91ed..5c0b812c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -122,9 +137,7 @@ def __init__( name=name, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._attribute_parameters: Union[ List[ GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter @@ -181,9 +194,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Parameters @@ -223,9 +234,7 @@ def attribute_parameters( """ # Field is not nullable if attribute_parameters is None: - raise ValueError( - "Invalid value for 'attribute_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_parameters', must not be 'None'") self._attribute_parameters = attribute_parameters @property @@ -276,8 +285,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py index c7d1662e..d284da44 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -91,9 +105,9 @@ def __init__( self._interpolation_method: Union[ GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type ] = Unset - self._scale_type: Union[ - GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type - ] = Unset + self._scale_type: Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type] = ( + Unset + ) if parameter_guid is not Unset: self.parameter_guid = parameter_guid @@ -154,9 +168,7 @@ def default_value(self, default_value: "Union[float, None, Unset_Type]") -> None @property def interpolation_method( self, - ) -> ( - "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaAttributesAttributeInterpolationMethod, Unset_Type]": """Gets the interpolation_method of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns @@ -180,15 +192,11 @@ def interpolation_method( """ # Field is not nullable if interpolation_method is None: - raise ValueError( - "Invalid value for 'interpolation_method', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_method', must not be 'None'") self._interpolation_method = interpolation_method @property - def scale_type( - self, - ) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": + def scale_type(self) -> "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns @@ -200,8 +208,7 @@ def scale_type( @scale_type.setter def scale_type( - self, - scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]", + self, scale_type: "Union[GrantaServerApiSchemaAttributesAttributeScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py index 22028ea3..493988bd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -161,8 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py index 7a4f3659..2cc78853 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py index bf8ec72d..40385a94 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py index da4972d8..1ff87bf7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -161,8 +176,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py index 6996ca1d..e06ee276 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_content.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,12 +110,8 @@ def __init__( self._curve_label: Union[str, None, Unset_Type] = Unset self._transpose_axes: Union[bool, Unset_Type] = Unset self._use_logarithmic_scale: Union[bool, Unset_Type] = Unset - self._expression: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset - self._free_parameter: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._expression: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset + self._free_parameter: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._parameter_contents: Union[ List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type ] = Unset @@ -178,9 +188,7 @@ def use_logarithmic_scale(self) -> "Union[bool, Unset_Type]": return self._use_logarithmic_scale @use_logarithmic_scale.setter - def use_logarithmic_scale( - self, use_logarithmic_scale: "Union[bool, Unset_Type]" - ) -> None: + def use_logarithmic_scale(self, use_logarithmic_scale: "Union[bool, Unset_Type]") -> None: """Sets the use_logarithmic_scale of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters @@ -190,15 +198,11 @@ def use_logarithmic_scale( """ # Field is not nullable if use_logarithmic_scale is None: - raise ValueError( - "Invalid value for 'use_logarithmic_scale', must not be 'None'" - ) + raise ValueError("Invalid value for 'use_logarithmic_scale', must not be 'None'") self._use_logarithmic_scale = use_logarithmic_scale @property - def expression( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def expression(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -210,8 +214,7 @@ def expression( @expression.setter def expression( - self, - expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, expression: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. @@ -226,9 +229,7 @@ def expression( self._expression = expression @property - def free_parameter( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def free_parameter(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -240,8 +241,7 @@ def free_parameter( @free_parameter.setter def free_parameter( - self, - free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, free_parameter: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. @@ -258,9 +258,7 @@ def free_parameter( @property def parameter_contents( self, - ) -> ( - "Union[List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiSchemaParametersUpdateParameterContent], Unset_Type]": """Gets the parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -284,9 +282,7 @@ def parameter_contents( """ # Field is not nullable if parameter_contents is None: - raise ValueError( - "Invalid value for 'parameter_contents', must not be 'None'" - ) + raise ValueError("Invalid value for 'parameter_contents', must not be 'None'") self._parameter_contents = parameter_contents @classmethod @@ -311,9 +307,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent - ): + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py index 6a9768a4..3bb1c59a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -144,9 +159,7 @@ def __init__( name=name, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._attribute_parameters: Union[ List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type ] = Unset @@ -156,8 +169,7 @@ def __init__( self._allow_extrapolation: Union[bool, Unset_Type] = Unset self._is_range: Union[bool, Unset_Type] = Unset self._default_content: Union[ - GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, - Unset_Type, + GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent, Unset_Type ] = Unset self._allow_all_compatible_expressions: Union[bool, Unset_Type] = Unset self._allow_anonymous_expressions: Union[bool, Unset_Type] = Unset @@ -220,9 +232,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters @@ -301,9 +311,7 @@ def allow_extrapolation(self) -> "Union[bool, Unset_Type]": return self._allow_extrapolation @allow_extrapolation.setter - def allow_extrapolation( - self, allow_extrapolation: "Union[bool, Unset_Type]" - ) -> None: + def allow_extrapolation(self, allow_extrapolation: "Union[bool, Unset_Type]") -> None: """Sets the allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters @@ -313,9 +321,7 @@ def allow_extrapolation( """ # Field is not nullable if allow_extrapolation is None: - raise ValueError( - "Invalid value for 'allow_extrapolation', must not be 'None'" - ) + raise ValueError("Invalid value for 'allow_extrapolation', must not be 'None'") self._allow_extrapolation = allow_extrapolation @property @@ -426,9 +432,7 @@ def allow_anonymous_expressions( """ # Field is not nullable if allow_anonymous_expressions is None: - raise ValueError( - "Invalid value for 'allow_anonymous_expressions', must not be 'None'" - ) + raise ValueError("Invalid value for 'allow_anonymous_expressions', must not be 'None'") self._allow_anonymous_expressions = allow_anonymous_expressions @classmethod @@ -454,8 +458,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py index eaed1f9a..444e6e2d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py index 839a066a..c399fc28 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -122,9 +137,7 @@ def __init__( name=name, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._is_multi_valued: Union[bool, Unset_Type] = Unset self._attribute_parameters: Union[ List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type @@ -178,9 +191,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py index 3adf4e91..6bd9101f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -113,9 +128,7 @@ def __init__( name=name, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.type = type if unit is not Unset: @@ -161,9 +174,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py index 95e279c6..040222c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -118,9 +133,7 @@ def __init__( ) self._type: str self._is_unique: Union[bool, Unset_Type] = Unset - self._data_rule: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._data_rule: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.type = type if is_unique is not Unset: @@ -184,9 +197,7 @@ def is_unique(self, is_unique: "Union[bool, Unset_Type]") -> None: self._is_unique = is_unique @property - def data_rule( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def data_rule(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Returns @@ -198,8 +209,7 @@ def data_rule( @data_rule.setter def data_rule( - self, - data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, data_rule: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. @@ -236,8 +246,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute, + other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py index 50ea200a..cb2f7616 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import ( # noqa: F401 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -129,9 +144,7 @@ def __init__( self._display_summary_row_inline: Union[bool, Unset_Type] = Unset self._hide_unlinked_rows: Union[bool, Unset_Type] = Unset self._tabular_columns: Union[ - List[ - GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn - ], + List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn], None, Unset_Type, ] = Unset @@ -196,9 +209,7 @@ def display_full_table(self, display_full_table: "Union[bool, Unset_Type]") -> N """ # Field is not nullable if display_full_table is None: - raise ValueError( - "Invalid value for 'display_full_table', must not be 'None'" - ) + raise ValueError("Invalid value for 'display_full_table', must not be 'None'") self._display_full_table = display_full_table @property @@ -225,9 +236,7 @@ def display_summary_row_inline( """ # Field is not nullable if display_summary_row_inline is None: - raise ValueError( - "Invalid value for 'display_summary_row_inline', must not be 'None'" - ) + raise ValueError("Invalid value for 'display_summary_row_inline', must not be 'None'") self._display_summary_row_inline = display_summary_row_inline @property @@ -252,9 +261,7 @@ def hide_unlinked_rows(self, hide_unlinked_rows: "Union[bool, Unset_Type]") -> N """ # Field is not nullable if hide_unlinked_rows is None: - raise ValueError( - "Invalid value for 'hide_unlinked_rows', must not be 'None'" - ) + raise ValueError("Invalid value for 'hide_unlinked_rows', must not be 'None'") self._hide_unlinked_rows = hide_unlinked_rows @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py index 877812d4..9fdf7ced 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -118,9 +132,7 @@ def record_history_guid(self) -> "Union[str, None, Unset_Type]": return self._record_history_guid @record_history_guid.setter - def record_history_guid( - self, record_history_guid: "Union[str, None, Unset_Type]" - ) -> None: + def record_history_guid(self, record_history_guid: "Union[str, None, Unset_Type]") -> None: """Sets the record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. The record you want to check the value against to see if the value has changed as well as being valid @@ -153,9 +165,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaAttributesValidateAttributeRequest - ): + if not isinstance(other, GrantaServerApiSchemaAttributesValidateAttributeRequest): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py index 4aa9a3ca..ae86521a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py index fd86d9dc..481524b3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -76,9 +90,7 @@ def __init__( self.configurations = configurations @property - def configurations( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]": + def configurations(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]": """Gets the configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py index 0cc8b59a..981e9a46 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -218,9 +232,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaConfigurationsCreateConfiguration - ): + if not isinstance(other, GrantaServerApiSchemaConfigurationsCreateConfiguration): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py index 51bebb7a..bc9efa65 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -214,9 +228,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaConfigurationsUpdateConfiguration - ): + if not isinstance(other, GrantaServerApiSchemaConfigurationsUpdateConfiguration): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py index 2b4e8988..b26141ef 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -106,9 +120,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaConstantsConstant. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py index e027ca59..830cfacb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py index 07f47053..11aebaad 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py index bd9e026d..b5d3d6d4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py index a405912e..aca42ac5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_create_data_rule.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -142,14 +156,10 @@ def regular_expression(self, regular_expression: "str") -> None: """ # Field is not nullable if regular_expression is None: - raise ValueError( - "Invalid value for 'regular_expression', must not be 'None'" - ) + raise ValueError("Invalid value for 'regular_expression', must not be 'None'") # Field is required if regular_expression is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'regular_expression', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'regular_expression', must not be 'Unset'") self._regular_expression = regular_expression @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py index 409c533b..8b82dd0e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rule.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -149,20 +163,14 @@ def regular_expression(self, regular_expression: "str") -> None: """ # Field is not nullable if regular_expression is None: - raise ValueError( - "Invalid value for 'regular_expression', must not be 'None'" - ) + raise ValueError("Invalid value for 'regular_expression', must not be 'None'") # Field is required if regular_expression is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'regular_expression', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'regular_expression', must not be 'Unset'") self._regular_expression = regular_expression @property - def used_by_attributes( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def used_by_attributes(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the used_by_attributes of this GrantaServerApiSchemaDataRulesDataRule. Returns @@ -174,8 +182,7 @@ def used_by_attributes( @used_by_attributes.setter def used_by_attributes( - self, - used_by_attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, used_by_attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the used_by_attributes of this GrantaServerApiSchemaDataRulesDataRule. @@ -186,14 +193,10 @@ def used_by_attributes( """ # Field is not nullable if used_by_attributes is None: - raise ValueError( - "Invalid value for 'used_by_attributes', must not be 'None'" - ) + raise ValueError("Invalid value for 'used_by_attributes', must not be 'None'") # Field is required if used_by_attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'used_by_attributes', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'used_by_attributes', must not be 'Unset'") self._used_by_attributes = used_by_attributes @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py index f1758e6d..a29a88c4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_data_rules_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,17 +85,15 @@ def __init__( ---------- data_rules: List[GrantaServerApiSchemaDataRulesDataRule], optional """ - self._data_rules: Union[ - List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type - ] = Unset + self._data_rules: Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type] = ( + Unset + ) if data_rules is not Unset: self.data_rules = data_rules @property - def data_rules( - self, - ) -> "Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type]": + def data_rules(self) -> "Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type]": """Gets the data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. Returns @@ -93,8 +105,7 @@ def data_rules( @data_rules.setter def data_rules( - self, - data_rules: "Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type]", + self, data_rules: "Union[List[GrantaServerApiSchemaDataRulesDataRule], None, Unset_Type]" ) -> None: """Sets the data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py index 409e3564..0b6f038f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_update_data_rule.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -142,9 +156,7 @@ def regular_expression(self, regular_expression: "Union[str, Unset_Type]") -> No """ # Field is not nullable if regular_expression is None: - raise ValueError( - "Invalid value for 'regular_expression', must not be 'None'" - ) + raise ValueError("Invalid value for 'regular_expression', must not be 'None'") self._regular_expression = regular_expression @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py index 2c2c3837..2d4d7782 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -275,9 +289,7 @@ def is_access_controlled(self) -> "Union[bool, None, Unset_Type]": return self._is_access_controlled @is_access_controlled.setter - def is_access_controlled( - self, is_access_controlled: "Union[bool, None, Unset_Type]" - ) -> None: + def is_access_controlled(self, is_access_controlled: "Union[bool, None, Unset_Type]") -> None: """Sets the is_access_controlled of this GrantaServerApiSchemaDatabase. Parameters @@ -455,9 +467,7 @@ def index_up_to_date(self) -> "Union[bool, None, Unset_Type]": return self._index_up_to_date @index_up_to_date.setter - def index_up_to_date( - self, index_up_to_date: "Union[bool, None, Unset_Type]" - ) -> None: + def index_up_to_date(self, index_up_to_date: "Union[bool, None, Unset_Type]") -> None: """Sets the index_up_to_date of this GrantaServerApiSchemaDatabase. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py index 63471d00..6cef703a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_databases_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py index 0d53dfa6..973baa11 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_create_discrete_type.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py index c839fb83..35fab242 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_type.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py index b9799eb7..25049570 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_discrete_types_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +95,7 @@ def __init__( @property def discrete_types( self, - ) -> ( - "Union[List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiSchemaDiscreteTypesDiscreteType], None, Unset_Type]": """Gets the discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py index 07be4d10..c88e7c51 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_types_update_discrete_type.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py index f223f98f..65b6256e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_create_discrete_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -155,9 +169,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue - ): + if not isinstance(other, GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py index 8ad80e18..6dacf6d0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py index 545aeccd..e68066c1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_discrete_values_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py index f7f019dc..d13bc64a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_replace_discrete_values_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -72,9 +86,7 @@ def __init__( discrete_values: List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], optional """ self._discrete_values: Union[ - List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], - None, - Unset_Type, + List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue], None, Unset_Type ] = Unset if discrete_values is not Unset: @@ -129,9 +141,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo - ): + if not isinstance(other, GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py index 828f7f78..c457cc31 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_discrete_values_update_discrete_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -153,9 +167,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue - ): + if not isinstance(other, GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py index e3c8de1b..6557db1c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_create_expression.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -84,9 +98,7 @@ def __init__( unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ self._value: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._name: str self._guid: Union[str, Unset_Type] = Unset @@ -137,9 +149,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsCreateExpression. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py index 9dd97d01..bde0220c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expression.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -100,15 +114,9 @@ def __init__( """ self._value: str self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset - self._attribute_dependencies: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] - self._constant_dependencies: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] - self._parameter_dependencies: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] + self._attribute_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._constant_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + self._parameter_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] self._name: str self._guid: str @@ -161,9 +169,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsExpression. Parameters @@ -177,9 +183,7 @@ def unit( self._unit = unit @property - def attribute_dependencies( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def attribute_dependencies(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the attribute_dependencies of this GrantaServerApiSchemaExpressionsExpression. Returns @@ -191,8 +195,7 @@ def attribute_dependencies( @attribute_dependencies.setter def attribute_dependencies( - self, - attribute_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, attribute_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the attribute_dependencies of this GrantaServerApiSchemaExpressionsExpression. @@ -203,20 +206,14 @@ def attribute_dependencies( """ # Field is not nullable if attribute_dependencies is None: - raise ValueError( - "Invalid value for 'attribute_dependencies', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_dependencies', must not be 'None'") # Field is required if attribute_dependencies is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_dependencies', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_dependencies', must not be 'Unset'") self._attribute_dependencies = attribute_dependencies @property - def constant_dependencies( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def constant_dependencies(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the constant_dependencies of this GrantaServerApiSchemaExpressionsExpression. Returns @@ -228,8 +225,7 @@ def constant_dependencies( @constant_dependencies.setter def constant_dependencies( - self, - constant_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, constant_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the constant_dependencies of this GrantaServerApiSchemaExpressionsExpression. @@ -240,20 +236,14 @@ def constant_dependencies( """ # Field is not nullable if constant_dependencies is None: - raise ValueError( - "Invalid value for 'constant_dependencies', must not be 'None'" - ) + raise ValueError("Invalid value for 'constant_dependencies', must not be 'None'") # Field is required if constant_dependencies is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'constant_dependencies', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'constant_dependencies', must not be 'Unset'") self._constant_dependencies = constant_dependencies @property - def parameter_dependencies( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def parameter_dependencies(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameter_dependencies of this GrantaServerApiSchemaExpressionsExpression. Returns @@ -265,8 +255,7 @@ def parameter_dependencies( @parameter_dependencies.setter def parameter_dependencies( - self, - parameter_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, parameter_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the parameter_dependencies of this GrantaServerApiSchemaExpressionsExpression. @@ -277,14 +266,10 @@ def parameter_dependencies( """ # Field is not nullable if parameter_dependencies is None: - raise ValueError( - "Invalid value for 'parameter_dependencies', must not be 'None'" - ) + raise ValueError("Invalid value for 'parameter_dependencies', must not be 'None'") # Field is required if parameter_dependencies is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'parameter_dependencies', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'parameter_dependencies', must not be 'Unset'") self._parameter_dependencies = parameter_dependencies @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py index 53a9ae8d..925cfc30 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_expressions_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +95,7 @@ def __init__( @property def expressions( self, - ) -> ( - "Union[List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimExpression], None, Unset_Type]": """Gets the expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py index 86027b9b..cd7a5499 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_expressions_update_expression.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -84,9 +98,7 @@ def __init__( value: str, optional """ self._value: Union[str, Unset_Type] = Unset - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._name: Union[str, Unset_Type] = Unset self._guid: Union[str, Unset_Type] = Unset @@ -136,9 +148,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py index 27153854..b2c451e4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py index 632ade14..65c6a8ee 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_exporter_refetch_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py index 263e09f1..d93dd09d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py index d07358bc..866e272f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,17 +85,15 @@ def __init__( ---------- files: List[GrantaServerApiSchemaSlimEntitiesSlimFile], optional """ - self._files: Union[ - List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type - ] = Unset + self._files: Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type] = ( + Unset + ) if files is not Unset: self.files = files @property - def files( - self, - ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type]": + def files(self) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type]": """Gets the files of this GrantaServerApiSchemaFilesFilesInfo. Returns @@ -93,8 +105,7 @@ def files( @files.setter def files( - self, - files: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type]", + self, files: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimFile], None, Unset_Type]" ) -> None: """Sets the files of this GrantaServerApiSchemaFilesFilesInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py index 4de8ac48..e708172a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py index 0dde496d..8e254f61 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,17 +85,13 @@ def __init__( ---------- folders: List[GrantaServerApiSchemaFilesFolder], optional """ - self._folders: Union[ - List[GrantaServerApiSchemaFilesFolder], None, Unset_Type - ] = Unset + self._folders: Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type] = Unset if folders is not Unset: self.folders = folders @property - def folders( - self, - ) -> "Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type]": + def folders(self) -> "Union[List[GrantaServerApiSchemaFilesFolder], None, Unset_Type]": """Gets the folders of this GrantaServerApiSchemaFilesFoldersInfo. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py index 62d439d4..04ba01cf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_file.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py index f8044a80..f9711436 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py index 8a726de1..09e88c31 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_file.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py index 7824850f..f32fc2cb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py index f51ba211..6bebe76d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py index dea8900f..637dfba5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_create_layout_section.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py index 22f6cbe3..7928e19a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_full_layout_section.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_section import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_section import ( # noqa: F401 GrantaServerApiSchemaLayoutsLayoutSection, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaLayoutsFullLayoutSection( - GrantaServerApiSchemaLayoutsLayoutSection -): +class GrantaServerApiSchemaLayoutsFullLayoutSection(GrantaServerApiSchemaLayoutsLayoutSection): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -121,14 +134,10 @@ def section_detail_type(self, section_detail_type: "str") -> None: """ # Field is not nullable if section_detail_type is None: - raise ValueError( - "Invalid value for 'section_detail_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'section_detail_type', must not be 'None'") # Field is required if section_detail_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'section_detail_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'section_detail_type', must not be 'Unset'") self._section_detail_type = section_detail_type @property @@ -143,9 +152,7 @@ def section_items(self) -> "List[GrantaServerApiSchemaLayoutsLayoutItem]": return self._section_items @section_items.setter - def section_items( - self, section_items: "List[GrantaServerApiSchemaLayoutsLayoutItem]" - ) -> None: + def section_items(self, section_items: "List[GrantaServerApiSchemaLayoutsLayoutItem]") -> None: """Sets the section_items of this GrantaServerApiSchemaLayoutsFullLayoutSection. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py index f980d9df..bab7a223 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -105,9 +119,7 @@ def sections(self) -> "List[GrantaServerApiSchemaLayoutsLayoutSection]": return self._sections @sections.setter - def sections( - self, sections: "List[GrantaServerApiSchemaLayoutsLayoutSection]" - ) -> None: + def sections(self, sections: "List[GrantaServerApiSchemaLayoutsLayoutSection]") -> None: """Sets the sections of this GrantaServerApiSchemaLayoutsLayout. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py index 9fa9e384..c06afae5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_attribute_item.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_item import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_item import ( # noqa: F401 GrantaServerApiSchemaLayoutsLayoutItem, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaLayoutsLayoutAttributeItem( - GrantaServerApiSchemaLayoutsLayoutItem -): +class GrantaServerApiSchemaLayoutsLayoutAttributeItem(GrantaServerApiSchemaLayoutsLayoutItem): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -110,9 +123,7 @@ def __init__( meta_attributes: List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], optional tabular_columns: List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], optional """ - super().__init__( - guid=guid, name=name, underlying_entity_guid=underlying_entity_guid - ) + super().__init__(guid=guid, name=name, underlying_entity_guid=underlying_entity_guid) self._item_type: str self._attribute_type: GrantaServerApiAttributeType self._required: bool @@ -248,9 +259,7 @@ def read_only(self, read_only: "bool") -> None: @property def meta_attributes( self, - ) -> ( - "Union[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem], None, Unset_Type]": """Gets the meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Returns @@ -277,9 +286,7 @@ def meta_attributes( @property def tabular_columns( self, - ) -> ( - "Union[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn], None, Unset_Type]": """Gets the tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py index 922fed67..ac005135 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -114,14 +128,10 @@ def underlying_entity_guid(self, underlying_entity_guid: "str") -> None: """ # Field is not nullable if underlying_entity_guid is None: - raise ValueError( - "Invalid value for 'underlying_entity_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'underlying_entity_guid', must not be 'None'") # Field is required if underlying_entity_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'underlying_entity_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'underlying_entity_guid', must not be 'Unset'") self._underlying_entity_guid = underlying_entity_guid @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_link_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_link_type.py index 01b7f4bf..7b20a659 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_link_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_link_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_type.py index df74377b..73c5b9ff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py index 9397919b..cc54634c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_link_item.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_item import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_item import ( # noqa: F401 GrantaServerApiSchemaLayoutsLayoutItem, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaLayoutsLayoutLinkItem( - GrantaServerApiSchemaLayoutsLayoutItem -): +class GrantaServerApiSchemaLayoutsLayoutLinkItem(GrantaServerApiSchemaLayoutsLayoutItem): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -113,18 +126,14 @@ def __init__( target_database: str, optional target_database_version: str, optional """ - super().__init__( - guid=guid, name=name, underlying_entity_guid=underlying_entity_guid - ) + super().__init__(guid=guid, name=name, underlying_entity_guid=underlying_entity_guid) self._item_type: str self._link_type: GrantaServerApiSchemaLayoutsLayoutItemLinkType self._target_database: Union[str, None, Unset_Type] = Unset self._target_database_version: Union[str, None, Unset_Type] = Unset self._target_table: str self._forwards: bool - self._next_link: Union[ - GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type - ] = Unset + self._next_link: Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type] = Unset self.item_type = item_type self.link_type = link_type @@ -177,9 +186,7 @@ def link_type(self) -> "GrantaServerApiSchemaLayoutsLayoutItemLinkType": return self._link_type @link_type.setter - def link_type( - self, link_type: "GrantaServerApiSchemaLayoutsLayoutItemLinkType" - ) -> None: + def link_type(self, link_type: "GrantaServerApiSchemaLayoutsLayoutItemLinkType") -> None: """Sets the link_type of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Parameters @@ -298,9 +305,7 @@ def forwards(self, forwards: "bool") -> None: self._forwards = forwards @property - def next_link( - self, - ) -> "Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type]": + def next_link(self) -> "Union[GrantaServerApiSchemaLayoutsLayoutLinkItem, Unset_Type]": """Gets the next_link of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py index 4027fa6f..f2cdee52 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section_detail_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section_detail_type.py index 184b8e5f..4537df33 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section_detail_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section_detail_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py index f14d91ab..057b5585 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_sections_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py index f2be45ba..d23dd0e6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -145,14 +159,10 @@ def tabular_column_guid(self, tabular_column_guid: "str") -> None: """ # Field is not nullable if tabular_column_guid is None: - raise ValueError( - "Invalid value for 'tabular_column_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'tabular_column_guid', must not be 'None'") # Field is required if tabular_column_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'tabular_column_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'tabular_column_guid', must not be 'Unset'") self._tabular_column_guid = tabular_column_guid @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py index 33fdb490..acbfa58d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layouts_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -93,8 +107,7 @@ def layouts( @layouts.setter def layouts( - self, - layouts: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type]", + self, layouts: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimLayout], None, Unset_Type]" ) -> None: """Sets the layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py index 71667488..1d42251f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_item.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( # noqa: F401 GrantaServerApiSchemaLayoutsNewLayoutItem, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -149,14 +164,10 @@ def association_chain_name(self, association_chain_name: "str") -> None: """ # Field is not nullable if association_chain_name is None: - raise ValueError( - "Invalid value for 'association_chain_name', must not be 'None'" - ) + raise ValueError("Invalid value for 'association_chain_name', must not be 'None'") # Field is required if association_chain_name is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'association_chain_name', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'association_chain_name', must not be 'Unset'") self._association_chain_name = association_chain_name @property @@ -186,14 +197,10 @@ def association_chain_links( """ # Field is not nullable if association_chain_links is None: - raise ValueError( - "Invalid value for 'association_chain_links', must not be 'None'" - ) + raise ValueError("Invalid value for 'association_chain_links', must not be 'None'") # Field is required if association_chain_links is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'association_chain_links', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'association_chain_links', must not be 'Unset'") self._association_chain_links = association_chain_links @classmethod @@ -218,9 +225,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem - ): + if not isinstance(other, GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py index 47f91705..1b16d7d9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -133,9 +147,7 @@ def source_database_version_guid(self, source_database_version_guid: "str") -> N """ # Field is not nullable if source_database_version_guid is None: - raise ValueError( - "Invalid value for 'source_database_version_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'source_database_version_guid', must not be 'None'") # Field is required if source_database_version_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] raise ValueError( @@ -165,14 +177,10 @@ def tabular_attribute_guid(self, tabular_attribute_guid: "str") -> None: """ # Field is not nullable if tabular_attribute_guid is None: - raise ValueError( - "Invalid value for 'tabular_attribute_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'tabular_attribute_guid', must not be 'None'") # Field is required if tabular_attribute_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'tabular_attribute_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'tabular_attribute_guid', must not be 'Unset'") self._tabular_attribute_guid = tabular_attribute_guid @classmethod @@ -197,9 +205,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink - ): + if not isinstance(other, GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py index cf9b2eec..e2a99235 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_attribute_item.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( # noqa: F401 GrantaServerApiSchemaLayoutsNewLayoutItem, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaLayoutsNewLayoutAttributeItem( - GrantaServerApiSchemaLayoutsNewLayoutItem -): +class GrantaServerApiSchemaLayoutsNewLayoutAttributeItem(GrantaServerApiSchemaLayoutsNewLayoutItem): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py index f86f0e96..33907e60 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_cross_database_link_item.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( # noqa: F401 GrantaServerApiSchemaLayoutsNewLayoutItem, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -151,14 +166,10 @@ def source_database_guid(self, source_database_guid: "str") -> None: """ # Field is not nullable if source_database_guid is None: - raise ValueError( - "Invalid value for 'source_database_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'source_database_guid', must not be 'None'") # Field is required if source_database_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'source_database_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'source_database_guid', must not be 'Unset'") self._source_database_guid = source_database_guid @property @@ -183,14 +194,10 @@ def source_table_guid(self, source_table_guid: "str") -> None: """ # Field is not nullable if source_table_guid is None: - raise ValueError( - "Invalid value for 'source_table_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'source_table_guid', must not be 'None'") # Field is required if source_table_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'source_table_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'source_table_guid', must not be 'Unset'") self._source_table_guid = source_table_guid @property @@ -243,9 +250,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem - ): + if not isinstance(other, GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py index 44baa116..87a4d2cb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item_type.py index 82d3a1c6..322f2225 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py index cc17c7aa..1ad70f8f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_record_link_item.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( # noqa: F401 GrantaServerApiSchemaLayoutsNewLayoutItem, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py index 222b66c5..dd56d82b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_smart_link_item.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_new_layout_item import ( # noqa: F401 GrantaServerApiSchemaLayoutsNewLayoutItem, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem( - GrantaServerApiSchemaLayoutsNewLayoutItem -): +class GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem(GrantaServerApiSchemaLayoutsNewLayoutItem): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py index 5d1a58ac..6bd4a4ef 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_reorder_sections_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py index dbfe7645..968ff9ae 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py index 5bde9124..7c689a8f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_continuous_range.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py index 450dc6d5..25be5d1d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter import ( # noqa: F401 GrantaServerApiSchemaParametersCreateParameter, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -109,9 +124,7 @@ def __init__( self.type = type @property - def values( - self, - ) -> "List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]": + def values(self) -> "List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]": """Gets the values of this GrantaServerApiSchemaParametersCreateDiscreteParameter. Returns @@ -123,8 +136,7 @@ def values( @values.setter def values( - self, - values: "List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]", + self, values: "List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]" ) -> None: """Sets the values of this GrantaServerApiSchemaParametersCreateDiscreteParameter. @@ -191,9 +203,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersCreateDiscreteParameter - ): + if not isinstance(other, GrantaServerApiSchemaParametersCreateDiscreteParameter): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py index 8a3cbb7e..219cb6b7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_discrete_parameter_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter_value import ( # noqa: F401 GrantaServerApiSchemaParametersCreateParameterValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -167,9 +182,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersCreateDiscreteParameterValue - ): + if not isinstance(other, GrantaServerApiSchemaParametersCreateDiscreteParameterValue): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py index 3ce066ba..3061505b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter import ( # noqa: F401 GrantaServerApiSchemaParametersCreateParameter, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,13 +138,9 @@ def __init__( ) self._type: str self._is_restricted: bool - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._values: List[GrantaServerApiSchemaParametersCreateNumericParameterValue] - self._interpolation_type: ( - GrantaServerApiSchemaParametersParameterInterpolationType - ) + self._interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType self._scale_type: GrantaServerApiSchemaParametersParameterScaleType self.type = type @@ -208,9 +219,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaParametersCreateNumericParameter. Parameters @@ -224,9 +233,7 @@ def unit( self._unit = unit @property - def values( - self, - ) -> "List[GrantaServerApiSchemaParametersCreateNumericParameterValue]": + def values(self) -> "List[GrantaServerApiSchemaParametersCreateNumericParameterValue]": """Gets the values of this GrantaServerApiSchemaParametersCreateNumericParameter. Returns @@ -256,9 +263,7 @@ def values( self._values = values @property - def interpolation_type( - self, - ) -> "GrantaServerApiSchemaParametersParameterInterpolationType": + def interpolation_type(self) -> "GrantaServerApiSchemaParametersParameterInterpolationType": """Gets the interpolation_type of this GrantaServerApiSchemaParametersCreateNumericParameter. Returns @@ -270,8 +275,7 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( - self, - interpolation_type: "GrantaServerApiSchemaParametersParameterInterpolationType", + self, interpolation_type: "GrantaServerApiSchemaParametersParameterInterpolationType" ) -> None: """Sets the interpolation_type of this GrantaServerApiSchemaParametersCreateNumericParameter. @@ -282,14 +286,10 @@ def interpolation_type( """ # Field is not nullable if interpolation_type is None: - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'None'") # Field is required if interpolation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'Unset'") self._interpolation_type = interpolation_type @property @@ -304,9 +304,7 @@ def scale_type(self) -> "GrantaServerApiSchemaParametersParameterScaleType": return self._scale_type @scale_type.setter - def scale_type( - self, scale_type: "GrantaServerApiSchemaParametersParameterScaleType" - ) -> None: + def scale_type(self, scale_type: "GrantaServerApiSchemaParametersParameterScaleType") -> None: """Sets the scale_type of this GrantaServerApiSchemaParametersCreateNumericParameter. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py index 973dcf29..08d84c63 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_numeric_parameter_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_create_parameter_value import ( # noqa: F401 GrantaServerApiSchemaParametersCreateParameterValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -196,9 +211,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersCreateNumericParameterValue - ): + if not isinstance(other, GrantaServerApiSchemaParametersCreateNumericParameterValue): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py index e7e6593f..63a039a3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -134,9 +148,7 @@ def default_parameter_value_index(self) -> "int": return self._default_parameter_value_index @default_parameter_value_index.setter - def default_parameter_value_index( - self, default_parameter_value_index: "int" - ) -> None: + def default_parameter_value_index(self, default_parameter_value_index: "int") -> None: """Sets the default_parameter_value_index of this GrantaServerApiSchemaParametersCreateParameter. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py index ce9d71eb..ecf89f9e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_create_parameter_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py index 07d41f4a..906a7d28 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter import ( # noqa: F401 GrantaServerApiSchemaParametersParameter, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaParametersDiscreteParameter( - GrantaServerApiSchemaParametersParameter -): +class GrantaServerApiSchemaParametersDiscreteParameter(GrantaServerApiSchemaParametersParameter): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -153,9 +166,7 @@ def values(self) -> "List[GrantaServerApiSchemaParametersDiscreteParameterValue] return self._values @values.setter - def values( - self, values: "List[GrantaServerApiSchemaParametersDiscreteParameterValue]" - ) -> None: + def values(self, values: "List[GrantaServerApiSchemaParametersDiscreteParameterValue]") -> None: """Sets the values of this GrantaServerApiSchemaParametersDiscreteParameter. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py index 176024b9..cc03653e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_content.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_content import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_content import ( # noqa: F401 GrantaServerApiSchemaParametersParameterContent, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -144,8 +159,7 @@ def parameter_value( @parameter_value.setter def parameter_value( - self, - parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", + self, parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" ) -> None: """Sets the parameter_value of this GrantaServerApiSchemaParametersDiscreteParameterContent. @@ -211,9 +225,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersDiscreteParameterContent - ): + if not isinstance(other, GrantaServerApiSchemaParametersDiscreteParameterContent): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py index 9507647a..04a01b36 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_parameter_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_value import ( # noqa: F401 GrantaServerApiSchemaParametersParameterValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py index 1d33b7d3..f6b8eb2d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_discrete_range.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -76,9 +90,7 @@ def __init__( self.parameter_values = parameter_values @property - def parameter_values( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def parameter_values(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameter_values of this GrantaServerApiSchemaParametersDiscreteRange. Returns @@ -104,9 +116,7 @@ def parameter_values( raise ValueError("Invalid value for 'parameter_values', must not be 'None'") # Field is required if parameter_values is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'parameter_values', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'parameter_values', must not be 'Unset'") self._parameter_values = parameter_values @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py index 2b348eee..43b766b3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter import ( # noqa: F401 GrantaServerApiSchemaParametersParameter, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaParametersNumericParameter( - GrantaServerApiSchemaParametersParameter -): +class GrantaServerApiSchemaParametersNumericParameter(GrantaServerApiSchemaParametersParameter): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -130,9 +143,7 @@ def __init__( self._is_restricted: bool self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self._values: List[GrantaServerApiSchemaParametersNumericParameterValue] - self._interpolation_type: ( - GrantaServerApiSchemaParametersParameterInterpolationType - ) + self._interpolation_type: GrantaServerApiSchemaParametersParameterInterpolationType self._scale_type: GrantaServerApiSchemaParametersParameterScaleType self.type = type @@ -211,9 +222,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaParametersNumericParameter. Parameters @@ -238,9 +247,7 @@ def values(self) -> "List[GrantaServerApiSchemaParametersNumericParameterValue]" return self._values @values.setter - def values( - self, values: "List[GrantaServerApiSchemaParametersNumericParameterValue]" - ) -> None: + def values(self, values: "List[GrantaServerApiSchemaParametersNumericParameterValue]") -> None: """Sets the values of this GrantaServerApiSchemaParametersNumericParameter. Parameters @@ -257,9 +264,7 @@ def values( self._values = values @property - def interpolation_type( - self, - ) -> "GrantaServerApiSchemaParametersParameterInterpolationType": + def interpolation_type(self) -> "GrantaServerApiSchemaParametersParameterInterpolationType": """Gets the interpolation_type of this GrantaServerApiSchemaParametersNumericParameter. Returns @@ -271,8 +276,7 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( - self, - interpolation_type: "GrantaServerApiSchemaParametersParameterInterpolationType", + self, interpolation_type: "GrantaServerApiSchemaParametersParameterInterpolationType" ) -> None: """Sets the interpolation_type of this GrantaServerApiSchemaParametersNumericParameter. @@ -283,14 +287,10 @@ def interpolation_type( """ # Field is not nullable if interpolation_type is None: - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'None'") # Field is required if interpolation_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'Unset'") self._interpolation_type = interpolation_type @property @@ -305,9 +305,7 @@ def scale_type(self) -> "GrantaServerApiSchemaParametersParameterScaleType": return self._scale_type @scale_type.setter - def scale_type( - self, scale_type: "GrantaServerApiSchemaParametersParameterScaleType" - ) -> None: + def scale_type(self, scale_type: "GrantaServerApiSchemaParametersParameterScaleType") -> None: """Sets the scale_type of this GrantaServerApiSchemaParametersNumericParameter. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py index 32f5e9f3..2d06e07c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_content.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_content import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_content import ( # noqa: F401 GrantaServerApiSchemaParametersParameterContent, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -200,9 +215,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersNumericParameterContent - ): + if not isinstance(other, GrantaServerApiSchemaParametersNumericParameterContent): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py index d6aa15ef..9e1e5d47 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_numeric_parameter_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_parameter_value import ( # noqa: F401 GrantaServerApiSchemaParametersParameterValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py index 392019bb..d60074a7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -149,9 +163,7 @@ def default_parameter_value_guid(self, default_parameter_value_guid: "str") -> N """ # Field is not nullable if default_parameter_value_guid is None: - raise ValueError( - "Invalid value for 'default_parameter_value_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_parameter_value_guid', must not be 'None'") # Field is required if default_parameter_value_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] raise ValueError( diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py index a28317ba..ecd58a9c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_content.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +108,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": return self._parameter @parameter.setter - def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" - ) -> None: + def parameter(self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity") -> None: """Sets the parameter of this GrantaServerApiSchemaParametersParameterContent. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_interpolation_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_interpolation_type.py index e6af293d..6ee22354 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_interpolation_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_interpolation_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_scale_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_scale_type.py index 9bbbe4e0..27ada241 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_scale_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_scale_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_type.py index 2ef8a57c..4a6321ee 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py index 9300ce30..6c4407e4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value_type.py index b50a1b98..8ff8b49d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter_value_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py index ff9ef1e0..1d2d66a8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameters_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -93,8 +107,7 @@ def parameters( @parameters.setter def parameters( - self, - parameters: "Union[List[GrantaServerApiSchemaParametersParameter], None, Unset_Type]", + self, parameters: "Union[List[GrantaServerApiSchemaParametersParameter], None, Unset_Type]" ) -> None: """Sets the parameters of this GrantaServerApiSchemaParametersParametersInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py index 472d034c..c1e82d56 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_continuous_range.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py index 0c8869cb..d0f94832 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import ( # noqa: F401 GrantaServerApiSchemaParametersUpdateParameter, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -150,9 +165,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersUpdateDiscreteParameter - ): + if not isinstance(other, GrantaServerApiSchemaParametersUpdateDiscreteParameter): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py index 11e6cd5e..d8fd9f47 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_content.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_content import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_content import ( # noqa: F401 GrantaServerApiSchemaParametersUpdateParameterContent, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -91,9 +106,9 @@ def __init__( """ super().__init__(parameter=parameter) self._type: str - self._parameter_value: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._parameter_value: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self._parameter_range: Union[ GrantaServerApiSchemaParametersUpdateDiscreteRange, Unset_Type ] = Unset @@ -133,9 +148,7 @@ def type(self, type: "str") -> None: self._type = type @property - def parameter_value( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def parameter_value(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. Returns @@ -147,8 +160,7 @@ def parameter_value( @parameter_value.setter def parameter_value( - self, - parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, parameter_value: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. @@ -214,9 +226,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersUpdateDiscreteParameterContent - ): + if not isinstance(other, GrantaServerApiSchemaParametersUpdateDiscreteParameterContent): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py index f45eb18f..c2d5585e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_value import ( # noqa: F401 GrantaServerApiSchemaParametersUpdateParameterValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -165,9 +180,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersUpdateDiscreteParameterValue - ): + if not isinstance(other, GrantaServerApiSchemaParametersUpdateDiscreteParameterValue): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py index 5c30ae0b..ffb7c552 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_range.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -102,9 +116,7 @@ def parameter_values( raise ValueError("Invalid value for 'parameter_values', must not be 'None'") # Field is required if parameter_values is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'parameter_values', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'parameter_values', must not be 'Unset'") self._parameter_values = parameter_values @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py index babae3b3..fe2a07b4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import ( # noqa: F401 GrantaServerApiSchemaParametersUpdateParameter, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -113,15 +128,13 @@ def __init__( name=name, ) self._type: str - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self._interpolation_type: Union[ GrantaServerApiSchemaParametersParameterInterpolationType, Unset_Type ] = Unset - self._scale_type: Union[ - GrantaServerApiSchemaParametersParameterScaleType, Unset_Type - ] = Unset + self._scale_type: Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type] = ( + Unset + ) self.type = type if unit is not Unset: @@ -171,9 +184,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. Parameters @@ -213,15 +224,11 @@ def interpolation_type( """ # Field is not nullable if interpolation_type is None: - raise ValueError( - "Invalid value for 'interpolation_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'interpolation_type', must not be 'None'") self._interpolation_type = interpolation_type @property - def scale_type( - self, - ) -> "Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type]": + def scale_type(self) -> "Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type]": """Gets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. Returns @@ -233,8 +240,7 @@ def scale_type( @scale_type.setter def scale_type( - self, - scale_type: "Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type]", + self, scale_type: "Union[GrantaServerApiSchemaParametersParameterScaleType, Unset_Type]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py index ecc0a6a1..8a6b95ff 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_content.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_content import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_content import ( # noqa: F401 GrantaServerApiSchemaParametersUpdateParameterContent, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -203,9 +218,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersUpdateNumericParameterContent - ): + if not isinstance(other, GrantaServerApiSchemaParametersUpdateNumericParameterContent): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py index b2df66e8..e2ead7b2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter_value import ( # noqa: F401 GrantaServerApiSchemaParametersUpdateParameterValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -194,9 +209,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaParametersUpdateNumericParameterValue - ): + if not isinstance(other, GrantaServerApiSchemaParametersUpdateNumericParameterValue): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py index b3772770..aee6be09 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -148,9 +162,7 @@ def default_parameter_value_guid( """ # Field is not nullable if default_parameter_value_guid is None: - raise ValueError( - "Invalid value for 'default_parameter_value_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_parameter_value_guid', must not be 'None'") self._default_parameter_value_guid = default_parameter_value_guid @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py index 82231069..b85f6011 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_content.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +108,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._parameter @parameter.setter - def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity" - ) -> None: + def parameter(self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: """Sets the parameter of this GrantaServerApiSchemaParametersUpdateParameterContent. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py index 2a1f20ba..e0ce3368 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py index 869f84b3..c163ca1c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_create_profile_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py index 4a0ea898..f69acc81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -162,9 +176,7 @@ def subset_fallback_hint(self) -> "Union[str, None, Unset_Type]": return self._subset_fallback_hint @subset_fallback_hint.setter - def subset_fallback_hint( - self, subset_fallback_hint: "Union[str, None, Unset_Type]" - ) -> None: + def subset_fallback_hint(self, subset_fallback_hint: "Union[str, None, Unset_Type]") -> None: """Sets the subset_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -208,9 +220,7 @@ def layout_fallback_hint(self) -> "Union[str, None, Unset_Type]": return self._layout_fallback_hint @layout_fallback_hint.setter - def layout_fallback_hint( - self, layout_fallback_hint: "Union[str, None, Unset_Type]" - ) -> None: + def layout_fallback_hint(self, layout_fallback_hint: "Union[str, None, Unset_Type]") -> None: """Sets the layout_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -334,9 +344,7 @@ def table_fallback_hint(self) -> "Union[str, None, Unset_Type]": return self._table_fallback_hint @table_fallback_hint.setter - def table_fallback_hint( - self, table_fallback_hint: "Union[str, None, Unset_Type]" - ) -> None: + def table_fallback_hint(self, table_fallback_hint: "Union[str, None, Unset_Type]") -> None: """Sets the table_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py index 7eee2105..ce61e4bd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_profile_tables_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py index 299223b5..33022a8a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profile_tables_update_profile_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py index 5bb3fb0f..384d75ca 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_all_profiles_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -79,9 +93,9 @@ def __init__( self._profiles: Union[ List[GrantaServerApiSchemaSlimEntitiesSlimProfile], None, Unset_Type ] = Unset - self._default_profile: Union[ - GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type - ] = Unset + self._default_profile: Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type] = ( + Unset + ) if profiles is not Unset: self.profiles = profiles @@ -116,9 +130,7 @@ def profiles( self._profiles = profiles @property - def default_profile( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type]": + def default_profile(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type]": """Gets the default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. Returns @@ -130,8 +142,7 @@ def default_profile( @default_profile.setter def default_profile( - self, - default_profile: "Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type]", + self, default_profile: "Union[GrantaServerApiSchemaSlimEntitiesSlimProfile, Unset_Type]" ) -> None: """Sets the default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py index c18320dd..310f5a28 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_create_profile.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py index df589d3d..e7d294cf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_profile.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -166,9 +180,7 @@ def homepage_url(self, homepage_url: "Union[str, None, Unset_Type]") -> None: self._homepage_url = homepage_url @property - def profile_tables( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]": + def profile_tables(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]": """Gets the profile_tables of this GrantaServerApiSchemaProfilesProfile. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py index 953e18b0..50b0f000 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_all_profiles_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -103,8 +117,7 @@ def profiles( @profiles.setter def profiles( - self, - profiles: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]", + self, profiles: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type]" ) -> None: """Sets the profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py index 5e1846a2..794c3fb6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_default_profile.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py index c3a9a3e0..7fdc73e4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_profiles_update_profile.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py index d1bea564..6852c45d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -103,8 +117,7 @@ def attribute_source( @attribute_source.setter def attribute_source( - self, - attribute_source: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]", + self, attribute_source: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]" ) -> None: """Sets the attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. @@ -133,8 +146,7 @@ def attribute_target( @attribute_target.setter def attribute_target( - self, - attribute_target: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]", + self, attribute_target: "Union[GrantaServerApiSchemaSlimEntitiesSlimAttribute, Unset_Type]" ) -> None: """Sets the attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. @@ -170,9 +182,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py index a56c7582..e3c871f7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_attribute_link_pair.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -101,14 +115,10 @@ def attribute_source_guid(self, attribute_source_guid: "str") -> None: """ # Field is not nullable if attribute_source_guid is None: - raise ValueError( - "Invalid value for 'attribute_source_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_source_guid', must not be 'None'") # Field is required if attribute_source_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_source_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_source_guid', must not be 'Unset'") self._attribute_source_guid = attribute_source_guid @property @@ -133,14 +143,10 @@ def attribute_target_guid(self, attribute_target_guid: "str") -> None: """ # Field is not nullable if attribute_target_guid is None: - raise ValueError( - "Invalid value for 'attribute_target_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_target_guid', must not be 'None'") # Field is required if attribute_target_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_target_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_target_guid', must not be 'Unset'") self._attribute_target_guid = attribute_target_guid @classmethod @@ -165,9 +171,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py index c411d1c1..6a210f4f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_cross_database_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +109,7 @@ def __init__( include_indirect_links: bool, optional type: str """ - super().__init__( - link_target=link_target, name=name, reverse_name=reverse_name, guid=guid - ) + super().__init__(link_target=link_target, name=name, reverse_name=reverse_name, guid=guid) self._type: str self._include_indirect_links: Union[bool, Unset_Type] = Unset @@ -144,9 +157,7 @@ def include_indirect_links(self) -> "Union[bool, Unset_Type]": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links( - self, include_indirect_links: "Union[bool, Unset_Type]" - ) -> None: + def include_indirect_links(self, include_indirect_links: "Union[bool, Unset_Type]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. Parameters @@ -156,9 +167,7 @@ def include_indirect_links( """ # Field is not nullable if include_indirect_links is None: - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'None'") self._include_indirect_links = include_indirect_links @classmethod @@ -184,8 +193,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup, + other, GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py index fb62f37a..51f0a260 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_dynamic_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -105,17 +120,13 @@ def __init__( referential_integrity_model: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, optional type: str """ - super().__init__( - link_target=link_target, name=name, reverse_name=reverse_name, guid=guid - ) + super().__init__(link_target=link_target, name=name, reverse_name=reverse_name, guid=guid) self._type: str self._forbid_orphans: Union[bool, Unset_Type] = Unset self._referential_integrity_model: Union[ GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type ] = Unset - self._attribute_pairs: List[ - GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair - ] + self._attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] self.type = type if forbid_orphans is not Unset: @@ -204,9 +215,7 @@ def referential_integrity_model( """ # Field is not nullable if referential_integrity_model is None: - raise ValueError( - "Invalid value for 'referential_integrity_model', must not be 'None'" - ) + raise ValueError("Invalid value for 'referential_integrity_model', must not be 'None'") self._referential_integrity_model = referential_integrity_model @property @@ -224,8 +233,7 @@ def attribute_pairs( @attribute_pairs.setter def attribute_pairs( - self, - attribute_pairs: "List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]", + self, attribute_pairs: "List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]" ) -> None: """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. @@ -264,9 +272,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py index 4e49fd20..5ad5678b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_record_link_group.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -114,9 +128,7 @@ def link_target(self) -> "GrantaServerApiSchemaRecordLinkGroupsLinkTarget": return self._link_target @link_target.setter - def link_target( - self, link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget" - ) -> None: + def link_target(self, link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget") -> None: """Sets the link_target of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. Parameters @@ -240,9 +252,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py index 8c7e1833..0f7474a8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_create_static_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_create_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +109,7 @@ def __init__( include_indirect_links: bool, optional type: str """ - super().__init__( - link_target=link_target, name=name, reverse_name=reverse_name, guid=guid - ) + super().__init__(link_target=link_target, name=name, reverse_name=reverse_name, guid=guid) self._type: str self._include_indirect_links: Union[bool, Unset_Type] = Unset @@ -144,9 +157,7 @@ def include_indirect_links(self) -> "Union[bool, Unset_Type]": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links( - self, include_indirect_links: "Union[bool, Unset_Type]" - ) -> None: + def include_indirect_links(self, include_indirect_links: "Union[bool, Unset_Type]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. Parameters @@ -156,9 +167,7 @@ def include_indirect_links( """ # Field is not nullable if include_indirect_links is None: - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'None'") self._include_indirect_links = include_indirect_links @classmethod @@ -183,9 +192,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py index c678fef6..9df86de7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -171,14 +186,10 @@ def include_indirect_links(self, include_indirect_links: "bool") -> None: """ # Field is not nullable if include_indirect_links is None: - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'None'") # Field is required if include_indirect_links is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'Unset'") self._include_indirect_links = include_indirect_links @classmethod @@ -203,9 +214,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py index 4511658c..967d776e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -131,9 +146,7 @@ def __init__( self._referential_integrity_model: ( GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel ) - self._attribute_pairs: List[ - GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair - ] + self._attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] self.type = type self.forbid_orphans = forbid_orphans @@ -223,20 +236,14 @@ def referential_integrity_model( """ # Field is not nullable if referential_integrity_model is None: - raise ValueError( - "Invalid value for 'referential_integrity_model', must not be 'None'" - ) + raise ValueError("Invalid value for 'referential_integrity_model', must not be 'None'") # Field is required if referential_integrity_model is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'referential_integrity_model', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'referential_integrity_model', must not be 'Unset'") self._referential_integrity_model = referential_integrity_model @property - def attribute_pairs( - self, - ) -> "List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]": + def attribute_pairs(self) -> "List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]": """Gets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. Returns @@ -248,8 +255,7 @@ def attribute_pairs( @attribute_pairs.setter def attribute_pairs( - self, - attribute_pairs: "List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]", + self, attribute_pairs: "List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]" ) -> None: """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. @@ -288,9 +294,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py index 1d493455..bfe2b645 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -94,9 +108,7 @@ def link_source(self) -> "GrantaServerApiSchemaRecordLinkGroupsLinkTarget": return self._link_source @link_source.setter - def link_source( - self, link_source: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget" - ) -> None: + def link_source(self, link_source: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget") -> None: """Sets the link_source of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. Parameters @@ -124,9 +136,7 @@ def link_target(self) -> "GrantaServerApiSchemaRecordLinkGroupsLinkTarget": return self._link_target @link_target.setter - def link_target( - self, link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget" - ) -> None: + def link_target(self, link_target: "GrantaServerApiSchemaRecordLinkGroupsLinkTarget") -> None: """Sets the link_target of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py index 9bb855ea..cc5822a1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -122,9 +136,7 @@ def database_version_guid(self) -> "Union[str, None, Unset_Type]": return self._database_version_guid @database_version_guid.setter - def database_version_guid( - self, database_version_guid: "Union[str, None, Unset_Type]" - ) -> None: + def database_version_guid(self, database_version_guid: "Union[str, None, Unset_Type]") -> None: """Sets the database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py index 2deb372a..91ae84b8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -133,9 +147,7 @@ def link_info(self) -> "GrantaServerApiSchemaRecordLinkGroupsLinkInfo": return self._link_info @link_info.setter - def link_info( - self, link_info: "GrantaServerApiSchemaRecordLinkGroupsLinkInfo" - ) -> None: + def link_info(self, link_info: "GrantaServerApiSchemaRecordLinkGroupsLinkInfo") -> None: """Sets the link_info of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group_type.py index f536f03c..d35e87a7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py index 5be91b05..12218d19 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -127,9 +141,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_referential_integrity_model.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_referential_integrity_model.py index 564f5c81..f03ae21f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_referential_integrity_model.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_referential_integrity_model.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py index 6a634fae..1b13ed03 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -171,14 +186,10 @@ def include_indirect_links(self, include_indirect_links: "bool") -> None: """ # Field is not nullable if include_indirect_links is None: - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'None'") # Field is required if include_indirect_links is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'Unset'") self._include_indirect_links = include_indirect_links @classmethod @@ -203,9 +214,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py index a5d73225..0df23d10 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -110,9 +125,7 @@ def include_indirect_links(self) -> "Union[bool, Unset_Type]": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links( - self, include_indirect_links: "Union[bool, Unset_Type]" - ) -> None: + def include_indirect_links(self, include_indirect_links: "Union[bool, Unset_Type]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. Parameters @@ -122,9 +135,7 @@ def include_indirect_links( """ # Field is not nullable if include_indirect_links is None: - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'None'") self._include_indirect_links = include_indirect_links @property @@ -178,8 +189,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup, + other, GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py index c654c831..ea929a2e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -107,8 +122,7 @@ def __init__( GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, Unset_Type ] = Unset self._attribute_pairs: Union[ - List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], - Unset_Type, + List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair], Unset_Type ] = Unset self._type: str @@ -172,9 +186,7 @@ def referential_integrity_model( """ # Field is not nullable if referential_integrity_model is None: - raise ValueError( - "Invalid value for 'referential_integrity_model', must not be 'None'" - ) + raise ValueError("Invalid value for 'referential_integrity_model', must not be 'None'") self._referential_integrity_model = referential_integrity_model @property @@ -257,9 +269,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py index a2248ee4..619855a8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -198,9 +212,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py index e9a64385..de0dbc3b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import ( # noqa: F401 GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -110,9 +125,7 @@ def include_indirect_links(self) -> "Union[bool, Unset_Type]": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links( - self, include_indirect_links: "Union[bool, Unset_Type]" - ) -> None: + def include_indirect_links(self, include_indirect_links: "Union[bool, Unset_Type]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. Parameters @@ -122,9 +135,7 @@ def include_indirect_links( """ # Field is not nullable if include_indirect_links is None: - raise ValueError( - "Invalid value for 'include_indirect_links', must not be 'None'" - ) + raise ValueError("Invalid value for 'include_indirect_links', must not be 'None'") self._include_indirect_links = include_indirect_links @property @@ -177,9 +188,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup - ): + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py index ba8bfc3c..41c4bb2b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_attribute.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -146,8 +160,7 @@ def about_attribute( @about_attribute.setter def about_attribute( - self, - about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]", + self, about_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, Unset_Type]" ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py index fd3a8c8d..370d7160 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py index b7447f49..4666caf4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_constant.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py index d1d28258..9458e0d7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -308,9 +322,7 @@ def index_up_to_date(self) -> "Union[bool, None, Unset_Type]": return self._index_up_to_date @index_up_to_date.setter - def index_up_to_date( - self, index_up_to_date: "Union[bool, None, Unset_Type]" - ) -> None: + def index_up_to_date(self, index_up_to_date: "Union[bool, None, Unset_Type]") -> None: """Sets the index_up_to_date of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py index c1c48158..ec8e7ddc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_entity.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py index 3600d2dd..ea5f7f8c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_expression.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py index 85841bbc..07f81957 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py index 89e35180..e558b63a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py index 393a3cd3..09132de3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_layout_section.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_section import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_layouts_layout_section import ( # noqa: F401 GrantaServerApiSchemaLayoutsLayoutSection, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaSlimEntitiesSlimLayoutSection( - GrantaServerApiSchemaLayoutsLayoutSection -): +class GrantaServerApiSchemaSlimEntitiesSlimLayoutSection(GrantaServerApiSchemaLayoutsLayoutSection): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -113,14 +126,10 @@ def section_detail_type(self, section_detail_type: "str") -> None: """ # Field is not nullable if section_detail_type is None: - raise ValueError( - "Invalid value for 'section_detail_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'section_detail_type', must not be 'None'") # Field is required if section_detail_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'section_detail_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'section_detail_type', must not be 'Unset'") self._section_detail_type = section_detail_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py index 3d3faa0d..3f053e51 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_named_entity.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py index 6a223fa5..0d795941 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_objects.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py index 96b7944a..6325a463 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py index 8b12add5..a2642a85 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_profile_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -214,9 +228,7 @@ def table_fallback_hint(self) -> "Union[str, None, Unset_Type]": return self._table_fallback_hint @table_fallback_hint.setter - def table_fallback_hint( - self, table_fallback_hint: "Union[str, None, Unset_Type]" - ) -> None: + def table_fallback_hint(self, table_fallback_hint: "Union[str, None, Unset_Type]") -> None: """Sets the table_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py index 30a9a041..081a3274 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -147,9 +161,7 @@ def type(self) -> "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType": return self._type @type.setter - def type( - self, type: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType" - ) -> None: + def type(self, type: "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType") -> None: """Sets the type of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py index c0c3f362..b301e516 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_subset.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py index 2f9e87a0..453a6c4e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -131,14 +145,10 @@ def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: """ # Field is not nullable if is_hidden_from_browse is None: - raise ValueError( - "Invalid value for 'is_hidden_from_browse', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_browse', must not be 'None'") # Field is required if is_hidden_from_browse is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'is_hidden_from_browse', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'is_hidden_from_browse', must not be 'Unset'") self._is_hidden_from_browse = is_hidden_from_browse @property @@ -163,14 +173,10 @@ def is_hidden_from_search(self, is_hidden_from_search: "bool") -> None: """ # Field is not nullable if is_hidden_from_search is None: - raise ValueError( - "Invalid value for 'is_hidden_from_search', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_search', must not be 'None'") # Field is required if is_hidden_from_search is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'is_hidden_from_search', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'is_hidden_from_search', must not be 'Unset'") self._is_hidden_from_search = is_hidden_from_search @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py index 591cadb4..445eeb06 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py index 332ca980..5ae0897f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_unit_system.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py index cbe38eb8..53da04c7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_create_standard_name.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -116,9 +130,7 @@ def __init__( if mapped_record_link_groups is not Unset: self.mapped_record_link_groups = mapped_record_link_groups if mapped_cross_database_record_link_groups is not Unset: - self.mapped_cross_database_record_link_groups = ( - mapped_cross_database_record_link_groups - ) + self.mapped_cross_database_record_link_groups = mapped_cross_database_record_link_groups self.name = name if guid is not Unset: self.guid = guid @@ -229,9 +241,7 @@ def mapped_cross_database_record_link_groups( mapped_cross_database_record_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ - self._mapped_cross_database_record_link_groups = ( - mapped_cross_database_record_link_groups - ) + self._mapped_cross_database_record_link_groups = mapped_cross_database_record_link_groups @property def name(self) -> "str": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py index 6bef27a7..64669dc0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_name.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,9 +110,7 @@ def __init__( """ self._mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] self._mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] - self._mapped_record_link_groups: List[ - GrantaServerApiSchemaSlimEntitiesSlimNamedEntity - ] + self._mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] self._mapped_cross_database_record_link_groups: List[ GrantaServerApiSchemaSlimEntitiesSlimNamedEntity ] @@ -108,16 +120,12 @@ def __init__( self.mapped_attributes = mapped_attributes self.mapped_parameters = mapped_parameters self.mapped_record_link_groups = mapped_record_link_groups - self.mapped_cross_database_record_link_groups = ( - mapped_cross_database_record_link_groups - ) + self.mapped_cross_database_record_link_groups = mapped_cross_database_record_link_groups self.name = name self.guid = guid @property - def mapped_attributes( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def mapped_attributes(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the mapped_attributes of this GrantaServerApiSchemaStandardNamesStandardName. Returns @@ -129,8 +137,7 @@ def mapped_attributes( @mapped_attributes.setter def mapped_attributes( - self, - mapped_attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, mapped_attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the mapped_attributes of this GrantaServerApiSchemaStandardNamesStandardName. @@ -141,20 +148,14 @@ def mapped_attributes( """ # Field is not nullable if mapped_attributes is None: - raise ValueError( - "Invalid value for 'mapped_attributes', must not be 'None'" - ) + raise ValueError("Invalid value for 'mapped_attributes', must not be 'None'") # Field is required if mapped_attributes is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'mapped_attributes', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'mapped_attributes', must not be 'Unset'") self._mapped_attributes = mapped_attributes @property - def mapped_parameters( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def mapped_parameters(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the mapped_parameters of this GrantaServerApiSchemaStandardNamesStandardName. Returns @@ -166,8 +167,7 @@ def mapped_parameters( @mapped_parameters.setter def mapped_parameters( - self, - mapped_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, mapped_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the mapped_parameters of this GrantaServerApiSchemaStandardNamesStandardName. @@ -178,20 +178,14 @@ def mapped_parameters( """ # Field is not nullable if mapped_parameters is None: - raise ValueError( - "Invalid value for 'mapped_parameters', must not be 'None'" - ) + raise ValueError("Invalid value for 'mapped_parameters', must not be 'None'") # Field is required if mapped_parameters is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'mapped_parameters', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'mapped_parameters', must not be 'Unset'") self._mapped_parameters = mapped_parameters @property - def mapped_record_link_groups( - self, - ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def mapped_record_link_groups(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. Returns @@ -203,8 +197,7 @@ def mapped_record_link_groups( @mapped_record_link_groups.setter def mapped_record_link_groups( - self, - mapped_record_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + self, mapped_record_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. @@ -215,14 +208,10 @@ def mapped_record_link_groups( """ # Field is not nullable if mapped_record_link_groups is None: - raise ValueError( - "Invalid value for 'mapped_record_link_groups', must not be 'None'" - ) + raise ValueError("Invalid value for 'mapped_record_link_groups', must not be 'None'") # Field is required if mapped_record_link_groups is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'mapped_record_link_groups', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'mapped_record_link_groups', must not be 'Unset'") self._mapped_record_link_groups = mapped_record_link_groups @property @@ -260,9 +249,7 @@ def mapped_cross_database_record_link_groups( raise ValueError( "Invalid value for 'mapped_cross_database_record_link_groups', must not be 'Unset'" ) - self._mapped_cross_database_record_link_groups = ( - mapped_cross_database_record_link_groups - ) + self._mapped_cross_database_record_link_groups = mapped_cross_database_record_link_groups @property def name(self) -> "str": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py index 052a7bb9..a4ef685e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_standard_names_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +95,7 @@ def __init__( @property def standard_names( self, - ) -> ( - "Union[List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiSchemaStandardNamesStandardName], None, Unset_Type]": """Gets the standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py index c0f7c3af..10dd430d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_standard_names_update_standard_name.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -116,9 +130,7 @@ def __init__( if mapped_record_link_groups is not Unset: self.mapped_record_link_groups = mapped_record_link_groups if mapped_cross_database_record_link_groups is not Unset: - self.mapped_cross_database_record_link_groups = ( - mapped_cross_database_record_link_groups - ) + self.mapped_cross_database_record_link_groups = mapped_cross_database_record_link_groups if name is not Unset: self.name = name if guid is not Unset: @@ -230,9 +242,7 @@ def mapped_cross_database_record_link_groups( mapped_cross_database_record_link_groups: Union[List[GrantaServerApiSchemaSlimEntitiesSlimEntity], None, Unset_Type] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ - self._mapped_cross_database_record_link_groups = ( - mapped_cross_database_record_link_groups - ) + self._mapped_cross_database_record_link_groups = mapped_cross_database_record_link_groups @property def name(self) -> "Union[str, Unset_Type]": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py index 9af10497..1f1a2297 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -102,14 +116,10 @@ def record_history_guid(self, record_history_guid: "str") -> None: """ # Field is not nullable if record_history_guid is None: - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'None'") # Field is required if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'Unset'") self._record_history_guid = record_history_guid @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py index 5025291a..ca28dd42 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_create_subset.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -79,9 +93,9 @@ def __init__( associated_layout: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional guid: str, optional """ - self._associated_layout: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._associated_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self._name: str self._guid: Union[str, Unset_Type] = Unset @@ -92,9 +106,7 @@ def __init__( self.guid = guid @property - def associated_layout( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def associated_layout(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. Returns @@ -106,8 +118,7 @@ def associated_layout( @associated_layout.setter def associated_layout( - self, - associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. @@ -118,9 +129,7 @@ def associated_layout( """ # Field is not nullable if associated_layout is None: - raise ValueError( - "Invalid value for 'associated_layout', must not be 'None'" - ) + raise ValueError("Invalid value for 'associated_layout', must not be 'None'") self._associated_layout = associated_layout @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py index 2f3fb74e..e051a1e6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -95,14 +109,10 @@ def record_history_guid(self, record_history_guid: "str") -> None: """ # Field is not nullable if record_history_guid is None: - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'None'") # Field is required if record_history_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'record_history_guid', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'record_history_guid', must not be 'Unset'") self._record_history_guid = record_history_guid @classmethod @@ -127,9 +137,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset - ): + if not isinstance(other, GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py index 51372d18..08dacc9d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subset.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -83,9 +97,9 @@ def __init__( name: str associated_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional """ - self._associated_layout: Union[ - GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type - ] = Unset + self._associated_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type] = ( + Unset + ) self._display_names: Dict[str, str] self._name: str self._guid: str @@ -97,9 +111,7 @@ def __init__( self.guid = guid @property - def associated_layout( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]": + def associated_layout(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsSubset. Returns @@ -111,8 +123,7 @@ def associated_layout( @associated_layout.setter def associated_layout( - self, - associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]", + self, associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]" ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsSubset. @@ -123,9 +134,7 @@ def associated_layout( """ # Field is not nullable if associated_layout is None: - raise ValueError( - "Invalid value for 'associated_layout', must not be 'None'" - ) + raise ValueError("Invalid value for 'associated_layout', must not be 'None'") self._associated_layout = associated_layout @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py index b129dc75..2b204c3b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_subsets_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -93,8 +107,7 @@ def subsets( @subsets.setter def subsets( - self, - subsets: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type]", + self, subsets: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimSubset], None, Unset_Type]" ) -> None: """Sets the subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py index aed56d06..041f995e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_update_subset.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -79,9 +93,9 @@ def __init__( guid: str, optional name: str, optional """ - self._associated_layout: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._associated_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self._name: Union[str, Unset_Type] = Unset self._guid: Union[str, Unset_Type] = Unset @@ -93,9 +107,7 @@ def __init__( self.guid = guid @property - def associated_layout( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def associated_layout(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. Returns @@ -107,8 +119,7 @@ def associated_layout( @associated_layout.setter def associated_layout( - self, - associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, associated_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. @@ -119,9 +130,7 @@ def associated_layout( """ # Field is not nullable if associated_layout is None: - raise ValueError( - "Invalid value for 'associated_layout', must not be 'None'" - ) + raise ValueError("Invalid value for 'associated_layout', must not be 'None'") self._associated_layout = associated_layout @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py index 042575f0..0ba6a7ae 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_create_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -106,9 +120,7 @@ def is_hidden_from_browse(self) -> "Union[bool, Unset_Type]": return self._is_hidden_from_browse @is_hidden_from_browse.setter - def is_hidden_from_browse( - self, is_hidden_from_browse: "Union[bool, Unset_Type]" - ) -> None: + def is_hidden_from_browse(self, is_hidden_from_browse: "Union[bool, Unset_Type]") -> None: """Sets the is_hidden_from_browse of this GrantaServerApiSchemaTablesCreateTable. Parameters @@ -118,9 +130,7 @@ def is_hidden_from_browse( """ # Field is not nullable if is_hidden_from_browse is None: - raise ValueError( - "Invalid value for 'is_hidden_from_browse', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_browse', must not be 'None'") self._is_hidden_from_browse = is_hidden_from_browse @property @@ -135,9 +145,7 @@ def is_hidden_from_search(self) -> "Union[bool, Unset_Type]": return self._is_hidden_from_search @is_hidden_from_search.setter - def is_hidden_from_search( - self, is_hidden_from_search: "Union[bool, Unset_Type]" - ) -> None: + def is_hidden_from_search(self, is_hidden_from_search: "Union[bool, Unset_Type]") -> None: """Sets the is_hidden_from_search of this GrantaServerApiSchemaTablesCreateTable. Parameters @@ -147,9 +155,7 @@ def is_hidden_from_search( """ # Field is not nullable if is_hidden_from_search is None: - raise ValueError( - "Invalid value for 'is_hidden_from_search', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_search', must not be 'None'") self._is_hidden_from_search = is_hidden_from_search @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py index 3214ef4e..690cdb65 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -119,13 +133,9 @@ def __init__( default_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional default_subset: GrantaServerApiSchemaSlimEntitiesSlimSubset, optional """ - self._default_subset: Union[ - GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type - ] = Unset + self._default_subset: Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type] = Unset self._subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] - self._default_layout: Union[ - GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type - ] = Unset + self._default_layout: Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type] = Unset self._layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] self._version_state: GrantaServerApiVersionState self._is_hidden_from_browse: bool @@ -152,9 +162,7 @@ def __init__( self.guid = guid @property - def default_subset( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]": + def default_subset(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]": """Gets the default_subset of this GrantaServerApiSchemaTablesTable. Returns @@ -166,8 +174,7 @@ def default_subset( @default_subset.setter def default_subset( - self, - default_subset: "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]", + self, default_subset: "Union[GrantaServerApiSchemaSlimEntitiesSlimSubset, Unset_Type]" ) -> None: """Sets the default_subset of this GrantaServerApiSchemaTablesTable. @@ -193,9 +200,7 @@ def subsets(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]": return self._subsets @subsets.setter - def subsets( - self, subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]" - ) -> None: + def subsets(self, subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]") -> None: """Sets the subsets of this GrantaServerApiSchemaTablesTable. Parameters @@ -212,9 +217,7 @@ def subsets( self._subsets = subsets @property - def default_layout( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]": + def default_layout(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]": """Gets the default_layout of this GrantaServerApiSchemaTablesTable. Returns @@ -226,8 +229,7 @@ def default_layout( @default_layout.setter def default_layout( - self, - default_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]", + self, default_layout: "Union[GrantaServerApiSchemaSlimEntitiesSlimLayout, Unset_Type]" ) -> None: """Sets the default_layout of this GrantaServerApiSchemaTablesTable. @@ -253,9 +255,7 @@ def layouts(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]": return self._layouts @layouts.setter - def layouts( - self, layouts: "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]" - ) -> None: + def layouts(self, layouts: "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]") -> None: """Sets the layouts of this GrantaServerApiSchemaTablesTable. Parameters @@ -321,14 +321,10 @@ def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: """ # Field is not nullable if is_hidden_from_browse is None: - raise ValueError( - "Invalid value for 'is_hidden_from_browse', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_browse', must not be 'None'") # Field is required if is_hidden_from_browse is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'is_hidden_from_browse', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'is_hidden_from_browse', must not be 'Unset'") self._is_hidden_from_browse = is_hidden_from_browse @property @@ -353,14 +349,10 @@ def is_hidden_from_search(self, is_hidden_from_search: "bool") -> None: """ # Field is not nullable if is_hidden_from_search is None: - raise ValueError( - "Invalid value for 'is_hidden_from_search', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_search', must not be 'None'") # Field is required if is_hidden_from_search is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'is_hidden_from_search', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'is_hidden_from_search', must not be 'Unset'") self._is_hidden_from_search = is_hidden_from_search @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py index 4e571215..58eec9dd 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_tables_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,17 +85,15 @@ def __init__( ---------- tables: List[GrantaServerApiSchemaSlimEntitiesSlimTable], optional """ - self._tables: Union[ - List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type - ] = Unset + self._tables: Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type] = ( + Unset + ) if tables is not Unset: self.tables = tables @property - def tables( - self, - ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type]": + def tables(self) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type]": """Gets the tables of this GrantaServerApiSchemaTablesTablesInfo. Returns @@ -93,8 +105,7 @@ def tables( @tables.setter def tables( - self, - tables: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type]", + self, tables: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimTable], None, Unset_Type]" ) -> None: """Sets the tables of this GrantaServerApiSchemaTablesTablesInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py index 07f82af2..ef272450 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_update_table.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -121,9 +135,7 @@ def is_hidden_from_browse(self) -> "Union[bool, Unset_Type]": return self._is_hidden_from_browse @is_hidden_from_browse.setter - def is_hidden_from_browse( - self, is_hidden_from_browse: "Union[bool, Unset_Type]" - ) -> None: + def is_hidden_from_browse(self, is_hidden_from_browse: "Union[bool, Unset_Type]") -> None: """Sets the is_hidden_from_browse of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -133,9 +145,7 @@ def is_hidden_from_browse( """ # Field is not nullable if is_hidden_from_browse is None: - raise ValueError( - "Invalid value for 'is_hidden_from_browse', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_browse', must not be 'None'") self._is_hidden_from_browse = is_hidden_from_browse @property @@ -150,9 +160,7 @@ def is_hidden_from_search(self) -> "Union[bool, Unset_Type]": return self._is_hidden_from_search @is_hidden_from_search.setter - def is_hidden_from_search( - self, is_hidden_from_search: "Union[bool, Unset_Type]" - ) -> None: + def is_hidden_from_search(self, is_hidden_from_search: "Union[bool, Unset_Type]") -> None: """Sets the is_hidden_from_search of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -162,9 +170,7 @@ def is_hidden_from_search( """ # Field is not nullable if is_hidden_from_search is None: - raise ValueError( - "Invalid value for 'is_hidden_from_search', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_hidden_from_search', must not be 'None'") self._is_hidden_from_search = is_hidden_from_search @property @@ -179,9 +185,7 @@ def default_subset_guid(self) -> "Union[str, None, Unset_Type]": return self._default_subset_guid @default_subset_guid.setter - def default_subset_guid( - self, default_subset_guid: "Union[str, None, Unset_Type]" - ) -> None: + def default_subset_guid(self, default_subset_guid: "Union[str, None, Unset_Type]") -> None: """Sets the default_subset_guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -203,9 +207,7 @@ def default_layout_guid(self) -> "Union[str, None, Unset_Type]": return self._default_layout_guid @default_layout_guid.setter - def default_layout_guid( - self, default_layout_guid: "Union[str, None, Unset_Type]" - ) -> None: + def default_layout_guid(self, default_layout_guid: "Union[str, None, Unset_Type]") -> None: """Sets the default_layout_guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py index f97e44cd..5b6bcccf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_attribute_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -178,9 +193,7 @@ def linked_attribute( raise ValueError("Invalid value for 'linked_attribute', must not be 'None'") # Field is required if linked_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'linked_attribute', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'linked_attribute', must not be 'Unset'") self._linked_attribute = linked_attribute @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py index 79a6822d..f433f29d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_column_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -163,9 +178,7 @@ def linked_column(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._linked_column @linked_column.setter - def linked_column( - self, linked_column: "GrantaServerApiSchemaSlimEntitiesSlimEntity" - ) -> None: + def linked_column(self, linked_column: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: """Sets the linked_column of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnTabularColumn. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py index 2e675d12..c9474e45 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_linked_record_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py index 149465a9..ba1bd847 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_date_time_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py index e8a3dd86..a0d495f5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_discrete_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -188,9 +203,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property @@ -205,9 +218,7 @@ def discrete_type(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._discrete_type @discrete_type.setter - def discrete_type( - self, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity" - ) -> None: + def discrete_type(self, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: """Sets the discrete_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py index 4cf02062..f40b7d36 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_file_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py index 8e834f12..9ce27e89 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_hyperlink_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py index 3de2d89e..53128cbb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_integer_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py index 10f1f23e..2001a9be 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_logical_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py index 9f858c97..2b886426 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_long_text_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py index d8f71f64..aa5646c7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_picture_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py index 8cc160de..94e71451 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_point_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def __init__( self._default_threshold_type: Union[ GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type ] = Unset - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.column_type = column_type if default_threshold_type is not Unset: @@ -191,9 +204,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property @@ -208,9 +219,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py index d53e498c..87b07bf1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_range_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def __init__( self._default_threshold_type: Union[ GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type ] = Unset - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.column_type = column_type if default_threshold_type is not Unset: @@ -191,9 +204,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property @@ -208,9 +219,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py index 24932f9d..6b260100 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_local_short_text_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py index fd6b1b63..433edf2f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_create_tabular_columns_create_tabular_column.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn( - ModelBase -): +class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -180,9 +192,7 @@ def summary_row_enabled(self) -> "Union[bool, Unset_Type]": return self._summary_row_enabled @summary_row_enabled.setter - def summary_row_enabled( - self, summary_row_enabled: "Union[bool, Unset_Type]" - ) -> None: + def summary_row_enabled(self, summary_row_enabled: "Union[bool, Unset_Type]") -> None: """Sets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters @@ -192,9 +202,7 @@ def summary_row_enabled( """ # Field is not nullable if summary_row_enabled is None: - raise ValueError( - "Invalid value for 'summary_row_enabled', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_row_enabled', must not be 'None'") self._summary_row_enabled = summary_row_enabled @property @@ -209,9 +217,7 @@ def summary_row_text(self) -> "Union[str, None, Unset_Type]": return self._summary_row_text @summary_row_text.setter - def summary_row_text( - self, summary_row_text: "Union[str, None, Unset_Type]" - ) -> None: + def summary_row_text(self, summary_row_text: "Union[str, None, Unset_Type]") -> None: """Sets the summary_row_text of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters @@ -224,9 +230,7 @@ def summary_row_text( @property def roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -256,9 +260,7 @@ def roll_up_type( @property def summary_row_roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -282,9 +284,7 @@ def summary_row_roll_up_type( """ # Field is not nullable if summary_row_roll_up_type is None: - raise ValueError( - "Invalid value for 'summary_row_roll_up_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_row_roll_up_type', must not be 'None'") self._summary_row_roll_up_type = summary_row_roll_up_type @property @@ -368,8 +368,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn, + other, GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py index aca83e35..21073855 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_attribute_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -183,9 +198,7 @@ def linked_attribute( raise ValueError("Invalid value for 'linked_attribute', must not be 'None'") # Field is required if linked_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'linked_attribute', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'linked_attribute', must not be 'Unset'") self._linked_attribute = linked_attribute @classmethod @@ -210,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py index 45f2c9c8..aaaf70d3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_column_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -190,9 +205,7 @@ def linked_attribute( raise ValueError("Invalid value for 'linked_attribute', must not be 'None'") # Field is required if linked_attribute is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'linked_attribute', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'linked_attribute', must not be 'Unset'") self._linked_attribute = linked_attribute @property @@ -247,9 +260,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py index c80bf58e..33e1adf3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_linked_record_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -170,9 +185,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py index a129a237..6dba0e14 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py index d9311581..461c67bc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +143,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity self.column_type = column_type @@ -166,9 +179,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. Returns @@ -180,8 +191,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. @@ -192,14 +202,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @property @@ -254,9 +260,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py index 59deba3d..a6c83dcf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py index 9bc03867..be458156 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py index 68f84812..596f7429 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py index a9b658d6..c97e2da0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py index 657507bc..727dcc9e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py index ea4ff6c2..df47669e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py index 65d6d993..a684e6a3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +143,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.column_type = column_type @@ -167,9 +180,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. Returns @@ -181,8 +192,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. @@ -193,14 +203,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @property @@ -215,9 +221,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. Parameters @@ -252,9 +256,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py index 96e0e5d8..dcd97b0c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +143,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type] = Unset self.column_type = column_type @@ -167,9 +180,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. Returns @@ -181,8 +192,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. @@ -193,14 +203,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @property @@ -215,9 +221,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimUnit, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. Parameters @@ -252,9 +256,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py index 42f25ae6..3884cd81 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -123,9 +138,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._default_threshold_type: ( - GrantaServerApiSchemaAttributesAttributeThresholdType - ) + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -159,9 +172,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def default_threshold_type( - self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + def default_threshold_type(self) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. Returns @@ -173,8 +184,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( - self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + self, default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType" ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. @@ -185,14 +195,10 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") # Field is required if default_threshold_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'Unset'") self._default_threshold_type = default_threshold_type @classmethod @@ -217,9 +223,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py index 78bafcb2..c3493ed7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -124,9 +138,7 @@ def __init__( self._summary_row_enabled: bool self._summary_row_text: str self._roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - self._summary_row_roll_up_type: ( - GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType - ) + self._summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType self._display_names: Dict[str, str] self._name: str self._guid: str @@ -190,14 +202,10 @@ def summary_row_enabled(self, summary_row_enabled: "bool") -> None: """ # Field is not nullable if summary_row_enabled is None: - raise ValueError( - "Invalid value for 'summary_row_enabled', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_row_enabled', must not be 'None'") # Field is required if summary_row_enabled is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'summary_row_enabled', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'summary_row_enabled', must not be 'Unset'") self._summary_row_enabled = summary_row_enabled @property @@ -225,15 +233,11 @@ def summary_row_text(self, summary_row_text: "str") -> None: raise ValueError("Invalid value for 'summary_row_text', must not be 'None'") # Field is required if summary_row_text is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'summary_row_text', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'summary_row_text', must not be 'Unset'") self._summary_row_text = summary_row_text @property - def roll_up_type( - self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + def roll_up_type(self) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": """Gets the roll_up_type of this GrantaServerApiSchemaTabularColumnsTabularColumn. Returns @@ -277,8 +281,7 @@ def summary_row_roll_up_type( @summary_row_roll_up_type.setter def summary_row_roll_up_type( - self, - summary_row_roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", + self, summary_row_roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType" ) -> None: """Sets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsTabularColumn. @@ -289,14 +292,10 @@ def summary_row_roll_up_type( """ # Field is not nullable if summary_row_roll_up_type is None: - raise ValueError( - "Invalid value for 'summary_row_roll_up_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_row_roll_up_type', must not be 'None'") # Field is required if summary_row_roll_up_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'summary_row_roll_up_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'summary_row_roll_up_type', must not be 'Unset'") self._summary_row_roll_up_type = summary_row_roll_up_type @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_dto_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_dto_type.py index 3ab9e1bd..cd8fd907 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_dto_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_dto_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_roll_up_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_roll_up_type.py index 4910a4ba..1893936e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_roll_up_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_roll_up_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py index 067e5cf2..780a46a9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_unavailable_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -170,9 +185,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn - ): + if not isinstance(other, GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py index 7c2d9dcf..dc084304 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_attribute_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -118,9 +133,9 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._linked_attribute: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._linked_attribute: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( + Unset + ) self.column_type = column_type if linked_attribute is not Unset: @@ -155,9 +170,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def linked_attribute( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def linked_attribute(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. Returns @@ -169,8 +182,7 @@ def linked_attribute( @linked_attribute.setter def linked_attribute( - self, - linked_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, linked_attribute: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py index 8503b013..956770b5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_column_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -118,9 +133,7 @@ def __init__( summary_row_text=summary_row_text, ) self._column_type: str - self._linked_column: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._linked_column: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.column_type = column_type if linked_column is not Unset: @@ -155,9 +168,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def linked_column( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def linked_column(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. Returns @@ -169,8 +180,7 @@ def linked_column( @linked_column.setter def linked_column( - self, - linked_column: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, linked_column: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py index 73549c7e..5212b2f5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_linked_record_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py index d4a45906..6f5ac3cf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_date_time_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py index 3f407368..ffa3bcea 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_discrete_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def __init__( self._default_threshold_type: Union[ GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type ] = Unset - self._discrete_type: Union[ - GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type - ] = Unset + self._discrete_type: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.column_type = column_type if default_threshold_type is not Unset: @@ -191,15 +204,11 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property - def discrete_type( - self, - ) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": + def discrete_type(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]": """Gets the discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. Returns @@ -211,8 +220,7 @@ def discrete_type( @discrete_type.setter def discrete_type( - self, - discrete_type: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]", + self, discrete_type: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" ) -> None: """Sets the discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py index 7c50fa46..0048be28 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_file_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py index 078cce4e..d9294ef4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_hyperlink_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py index 4ae84434..c3179b60 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_integer_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py index 95e32c63..d7618c10 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_logical_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py index faf685ca..7595258e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_long_text_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py index ce042304..8107eb2b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_picture_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py index 2cf6db38..b5918bdb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_point_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def __init__( self._default_threshold_type: Union[ GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type ] = Unset - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.column_type = column_type if default_threshold_type is not Unset: @@ -191,9 +204,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property @@ -208,9 +219,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py index 677ba453..796822db 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_range_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -126,9 +141,7 @@ def __init__( self._default_threshold_type: Union[ GrantaServerApiSchemaAttributesAttributeThresholdType, Unset_Type ] = Unset - self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = ( - Unset - ) + self._unit: Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type] = Unset self.column_type = column_type if default_threshold_type is not Unset: @@ -191,9 +204,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @property @@ -208,9 +219,7 @@ def unit(self) -> "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type return self._unit @unit.setter - def unit( - self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]" - ) -> None: + def unit(self, unit: "Union[GrantaServerApiSchemaSlimEntitiesSlimEntity, Unset_Type]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py index 39fee28f..366627d4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_local_short_text_tabular_column.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( # noqa: F401 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -181,9 +196,7 @@ def default_threshold_type( """ # Field is not nullable if default_threshold_type is None: - raise ValueError( - "Invalid value for 'default_threshold_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'default_threshold_type', must not be 'None'") self._default_threshold_type = default_threshold_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py index c169f194..b516412e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_update_tabular_columns_update_tabular_column.py @@ -1,36 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn( - ModelBase -): +class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -181,9 +193,7 @@ def summary_row_enabled(self) -> "Union[bool, Unset_Type]": return self._summary_row_enabled @summary_row_enabled.setter - def summary_row_enabled( - self, summary_row_enabled: "Union[bool, Unset_Type]" - ) -> None: + def summary_row_enabled(self, summary_row_enabled: "Union[bool, Unset_Type]") -> None: """Sets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters @@ -193,9 +203,7 @@ def summary_row_enabled( """ # Field is not nullable if summary_row_enabled is None: - raise ValueError( - "Invalid value for 'summary_row_enabled', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_row_enabled', must not be 'None'") self._summary_row_enabled = summary_row_enabled @property @@ -210,9 +218,7 @@ def summary_row_text(self) -> "Union[str, None, Unset_Type]": return self._summary_row_text @summary_row_text.setter - def summary_row_text( - self, summary_row_text: "Union[str, None, Unset_Type]" - ) -> None: + def summary_row_text(self, summary_row_text: "Union[str, None, Unset_Type]") -> None: """Sets the summary_row_text of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters @@ -225,9 +231,7 @@ def summary_row_text( @property def roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -257,9 +261,7 @@ def roll_up_type( @property def summary_row_roll_up_type( self, - ) -> ( - "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]" - ): + ) -> "Union[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType, Unset_Type]": """Gets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -283,9 +285,7 @@ def summary_row_roll_up_type( """ # Field is not nullable if summary_row_roll_up_type is None: - raise ValueError( - "Invalid value for 'summary_row_roll_up_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'summary_row_roll_up_type', must not be 'None'") self._summary_row_roll_up_type = summary_row_roll_up_type @property @@ -366,8 +366,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, - GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn, + other, GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py index ed2884d6..fc94fab5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py index cb70891a..c8270f1f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_create_unit_system.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py index 9d7cfcd1..c97a6fdc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py index 5c10fade..2ebe18eb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalent.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -157,9 +171,7 @@ def equivalent_unit(self) -> "GrantaServerApiSchemaUnitsUnit": return self._equivalent_unit @equivalent_unit.setter - def equivalent_unit( - self, equivalent_unit: "GrantaServerApiSchemaUnitsUnit" - ) -> None: + def equivalent_unit(self, equivalent_unit: "GrantaServerApiSchemaUnitsUnit") -> None: """Sets the equivalent_unit of this GrantaServerApiSchemaUnitsUnitEquivalent. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py index d3cf7db8..00fd35eb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_equivalents_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py index 7764f24a..10ab3250 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_mapping.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -122,9 +136,7 @@ def equivalent_unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._equivalent_unit @equivalent_unit.setter - def equivalent_unit( - self, equivalent_unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit" - ) -> None: + def equivalent_unit(self, equivalent_unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: """Sets the equivalent_unit of this GrantaServerApiSchemaUnitsUnitMapping. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py index 25649519..0d2fccb7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_system.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -105,9 +119,7 @@ def unit_mappings(self) -> "List[GrantaServerApiSchemaUnitsUnitMapping]": return self._unit_mappings @unit_mappings.setter - def unit_mappings( - self, unit_mappings: "List[GrantaServerApiSchemaUnitsUnitMapping]" - ) -> None: + def unit_mappings(self, unit_mappings: "List[GrantaServerApiSchemaUnitsUnitMapping]") -> None: """Sets the unit_mappings of this GrantaServerApiSchemaUnitsUnitSystem. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py index 28976c8b..4ccb2ca8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_systems_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +95,7 @@ def __init__( @property def unit_systems( self, - ) -> ( - "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type]" - ): + ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem], None, Unset_Type]": """Gets the unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py index 2a2997c8..134e43aa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_unit_usage.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py index 14aaf9cb..eec895e8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_units_info.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -71,17 +85,15 @@ def __init__( ---------- units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit], optional """ - self._units: Union[ - List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type - ] = Unset + self._units: Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type] = ( + Unset + ) if units is not Unset: self.units = units @property - def units( - self, - ) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type]": + def units(self) -> "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type]": """Gets the units of this GrantaServerApiSchemaUnitsUnitsInfo. Returns @@ -93,8 +105,7 @@ def units( @units.setter def units( - self, - units: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type]", + self, units: "Union[List[GrantaServerApiSchemaSlimEntitiesSlimUnit], None, Unset_Type]" ) -> None: """Sets the units of this GrantaServerApiSchemaUnitsUnitsInfo. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py index b271e11c..ba5c35f6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py index 2723266b..2bd9cd46 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py index a5dbc085..cd606f7e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py index 7c0c8b10..5a0fc461 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -172,9 +187,7 @@ def is_meta_attribute(self, is_meta_attribute: "Union[bool, Unset_Type]") -> Non """ # Field is not nullable if is_meta_attribute is None: - raise ValueError( - "Invalid value for 'is_meta_attribute', must not be 'None'" - ) + raise ValueError("Invalid value for 'is_meta_attribute', must not be 'None'") self._is_meta_attribute = is_meta_attribute @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py index b5ed4c18..af8c97b1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_exists_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( # noqa: F401 GrantaServerApiSearchAttributeCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchAttributeExistsCriterion( - GrantaServerApiSearchAttributeCriterion -): +class GrantaServerApiSearchAttributeExistsCriterion(GrantaServerApiSearchAttributeCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -99,9 +112,7 @@ def __init__( super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._inner_criterion: Union[ - GrantaServerApiSearchDatumExistsCriterion, Unset_Type - ] = Unset + self._inner_criterion: Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type] = Unset self._attribute_criterion_type: str if inner_criterion is not Unset: @@ -109,9 +120,7 @@ def __init__( self.attribute_criterion_type = attribute_criterion_type @property - def inner_criterion( - self, - ) -> "Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type]": + def inner_criterion(self) -> "Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. Returns @@ -123,8 +132,7 @@ def inner_criterion( @inner_criterion.setter def inner_criterion( - self, - inner_criterion: "Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type]", + self, inner_criterion: "Union[GrantaServerApiSearchDatumExistsCriterion, Unset_Type]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. @@ -160,14 +168,10 @@ def attribute_criterion_type(self, attribute_criterion_type: "str") -> None: """ # Field is not nullable if attribute_criterion_type is None: - raise ValueError( - "Invalid value for 'attribute_criterion_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_criterion_type', must not be 'None'") # Field is required if attribute_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_criterion_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_criterion_type', must not be 'Unset'") self._attribute_criterion_type = attribute_criterion_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py index a04036b1..4c1d1afe 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_matches_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( # noqa: F401 GrantaServerApiSearchAttributeCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchAttributeMatchesCriterion( - GrantaServerApiSearchAttributeCriterion -): +class GrantaServerApiSearchAttributeMatchesCriterion(GrantaServerApiSearchAttributeCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -99,9 +112,7 @@ def __init__( super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._inner_criterion: Union[ - GrantaServerApiSearchDatumCriterion, Unset_Type - ] = Unset + self._inner_criterion: Union[GrantaServerApiSearchDatumCriterion, Unset_Type] = Unset self._attribute_criterion_type: str if inner_criterion is not Unset: @@ -109,9 +120,7 @@ def __init__( self.attribute_criterion_type = attribute_criterion_type @property - def inner_criterion( - self, - ) -> "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]": + def inner_criterion(self) -> "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiSearchAttributeMatchesCriterion. Returns @@ -159,14 +168,10 @@ def attribute_criterion_type(self, attribute_criterion_type: "str") -> None: """ # Field is not nullable if attribute_criterion_type is None: - raise ValueError( - "Invalid value for 'attribute_criterion_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_criterion_type', must not be 'None'") # Field is required if attribute_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_criterion_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_criterion_type', must not be 'Unset'") self._attribute_criterion_type = attribute_criterion_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py index c9f76cc3..10f7d55f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_not_applicable_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_attribute_criterion import ( # noqa: F401 GrantaServerApiSearchAttributeCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchAttributeNotApplicableCriterion( - GrantaServerApiSearchAttributeCriterion -): +class GrantaServerApiSearchAttributeNotApplicableCriterion(GrantaServerApiSearchAttributeCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -119,14 +132,10 @@ def attribute_criterion_type(self, attribute_criterion_type: "str") -> None: """ # Field is not nullable if attribute_criterion_type is None: - raise ValueError( - "Invalid value for 'attribute_criterion_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'attribute_criterion_type', must not be 'None'") # Field is required if attribute_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'attribute_criterion_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'attribute_criterion_type', must not be 'Unset'") self._attribute_criterion_type = attribute_criterion_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py index 2b98c816..4b0d314e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( # noqa: F401 GrantaServerApiSearchSortCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -195,9 +210,7 @@ def sort_type(self) -> "Union[GrantaServerApiSearchSortType, Unset_Type]": return self._sort_type @sort_type.setter - def sort_type( - self, sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]" - ) -> None: + def sort_type(self, sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]") -> None: """Sets the sort_type of this GrantaServerApiSearchAttributeSortCriterion. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py index ab377e7b..28ae7a60 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boolean_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -91,9 +106,7 @@ def __init__( super().__init__() self._all: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] = Unset self._any: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] = Unset - self.__none: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] = ( - Unset - ) + self.__none: Union[List[GrantaServerApiSearchCriterion], None, Unset_Type] = Unset self._type: str if all is not Unset: @@ -117,9 +130,7 @@ def all(self) -> "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" return self._all @all.setter - def all( - self, all: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" - ) -> None: + def all(self, all: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]") -> None: """Sets the all of this GrantaServerApiSearchBooleanCriterion. Only records that match all of these criteria are returned. @@ -143,9 +154,7 @@ def any(self) -> "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" return self._any @any.setter - def any( - self, any: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" - ) -> None: + def any(self, any: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]") -> None: """Sets the any of this GrantaServerApiSearchBooleanCriterion. Only results that match any of these criteria are returned. @@ -169,9 +178,7 @@ def _none(self) -> "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type return self.__none @_none.setter - def _none( - self, _none: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]" - ) -> None: + def _none(self, _none: "Union[List[GrantaServerApiSearchCriterion], None, Unset_Type]") -> None: """Sets the _none of this GrantaServerApiSearchBooleanCriterion. Only results that match none of these criteria are returned. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py index 140e70dc..d21871b5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py index 1d112b02..bceb91a3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py index 9b1935f8..2bd56935 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py index d17e8f7a..9790a255 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py index d4db88d0..26a3adae 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py index 1de010c3..aeb998ac 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py index 97e97ccf..5482b792 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_range_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -196,8 +211,7 @@ def constraints( @constraints.setter def constraints( - self, - constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", + self, constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" ) -> None: """Sets the constraints of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Optional unit string. If not included, the gte and lte values are assumed to be in database units. @@ -231,9 +245,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion - ): + if not isinstance(other, GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py index 90a68ba6..887f1d99 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -117,9 +132,7 @@ def any_identities(self) -> "Union[List[int], None, Unset_Type]": return self._any_identities @any_identities.setter - def any_identities( - self, any_identities: "Union[List[int], None, Unset_Type]" - ) -> None: + def any_identities(self, any_identities: "Union[List[int], None, Unset_Type]") -> None: """Sets the any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type identities @@ -198,8 +211,7 @@ def constraints( @constraints.setter def constraints( - self, - constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", + self, constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" ) -> None: """Sets the constraints of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. @@ -233,9 +245,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion - ): + if not isinstance(other, GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py index ec38b4ec..0fc698b4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchDiscreteGuidDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchDiscreteGuidDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py index 63e4dce5..5153c401 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchDiscreteGuidValuesDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchDiscreteGuidValuesDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py index 11afe722..a02bd2e3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchDiscreteIdentityDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchDiscreteIdentityDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py index e2fed336..dea67590 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_values_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -222,9 +237,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion - ): + if not isinstance(other, GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py index 4900a84e..2d707ed5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_name_constraint.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( # noqa: F401 GrantaServerApiSearchParameterConstraint, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py index 80ae3955..219492da 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_parameter_value_constraint.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( # noqa: F401 GrantaServerApiSearchParameterConstraint, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py index 447b202c..7284ca11 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_range_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchDiscreteRangeDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchDiscreteRangeDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py index a257c6cd..6dc4df8a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchDiscreteTextDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchDiscreteTextDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -86,9 +99,7 @@ def __init__( """ super().__init__() self._value: Union[str, None, Unset_Type] = Unset - self._text_match_behavior: Union[ - GrantaServerApiSearchTextMatchBehavior, Unset_Type - ] = Unset + self._text_match_behavior: Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] = Unset self._type: str if value is not Unset: @@ -120,9 +131,7 @@ def value(self, value: "Union[str, None, Unset_Type]") -> None: self._value = value @property - def text_match_behavior( - self, - ) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": + def text_match_behavior(self) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": """Gets the text_match_behavior of this GrantaServerApiSearchDiscreteTextDatumCriterion. Returns @@ -134,8 +143,7 @@ def text_match_behavior( @text_match_behavior.setter def text_match_behavior( - self, - text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]", + self, text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]" ) -> None: """Sets the text_match_behavior of this GrantaServerApiSearchDiscreteTextDatumCriterion. @@ -146,9 +154,7 @@ def text_match_behavior( """ # Field is not nullable if text_match_behavior is None: - raise ValueError( - "Invalid value for 'text_match_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'text_match_behavior', must not be 'None'") self._text_match_behavior = text_match_behavior @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py index 85a644c4..68d2d25e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchDiscreteTextValuesDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchDiscreteTextValuesDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -96,9 +109,7 @@ def __init__( self._all: Union[List[str], None, Unset_Type] = Unset self._any: Union[List[str], None, Unset_Type] = Unset self.__none: Union[List[str], None, Unset_Type] = Unset - self._text_match_behavior: Union[ - GrantaServerApiSearchTextMatchBehavior, Unset_Type - ] = Unset + self._text_match_behavior: Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] = Unset self._type: str if all is not Unset: @@ -178,9 +189,7 @@ def _none(self, _none: "Union[List[str], None, Unset_Type]") -> None: self.__none = _none @property - def text_match_behavior( - self, - ) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": + def text_match_behavior(self) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": """Gets the text_match_behavior of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns @@ -192,8 +201,7 @@ def text_match_behavior( @text_match_behavior.setter def text_match_behavior( - self, - text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]", + self, text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]" ) -> None: """Sets the text_match_behavior of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. @@ -204,9 +212,7 @@ def text_match_behavior( """ # Field is not nullable if text_match_behavior is None: - raise ValueError( - "Invalid value for 'text_match_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'text_match_behavior', must not be 'None'") self._text_match_behavior = text_match_behavior @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py index b994fb41..c23ecf0b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_double_sorting_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( # noqa: F401 GrantaServerApiSearchSortingValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py index e755ba33..3bdcaeef 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py index ab408747..cfdd1d79 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchFloatFunctionalDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchFloatFunctionalDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -196,8 +209,7 @@ def constraints( @constraints.setter def constraints( - self, - constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", + self, constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" ) -> None: """Sets the constraints of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py index 91e44974..dd4d2e51 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_graph_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchFloatFunctionalGraphDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchFloatFunctionalGraphDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -216,9 +229,7 @@ def x_axis_parameter_guid(self) -> "Union[str, None, Unset_Type]": return self._x_axis_parameter_guid @x_axis_parameter_guid.setter - def x_axis_parameter_guid( - self, x_axis_parameter_guid: "Union[str, None, Unset_Type]" - ) -> None: + def x_axis_parameter_guid(self, x_axis_parameter_guid: "Union[str, None, Unset_Type]") -> None: """Sets the x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. @@ -242,9 +253,7 @@ def number_of_series_lte(self) -> "Union[int, None, Unset_Type]": return self._number_of_series_lte @number_of_series_lte.setter - def number_of_series_lte( - self, number_of_series_lte: "Union[int, None, Unset_Type]" - ) -> None: + def number_of_series_lte(self, number_of_series_lte: "Union[int, None, Unset_Type]") -> None: """Sets the number_of_series_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. @@ -268,9 +277,7 @@ def number_of_series_gte(self) -> "Union[int, None, Unset_Type]": return self._number_of_series_gte @number_of_series_gte.setter - def number_of_series_gte( - self, number_of_series_gte: "Union[int, None, Unset_Type]" - ) -> None: + def number_of_series_gte(self, number_of_series_gte: "Union[int, None, Unset_Type]") -> None: """Sets the number_of_series_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. @@ -370,9 +377,7 @@ def number_of_points_lte(self) -> "Union[int, None, Unset_Type]": return self._number_of_points_lte @number_of_points_lte.setter - def number_of_points_lte( - self, number_of_points_lte: "Union[int, None, Unset_Type]" - ) -> None: + def number_of_points_lte(self, number_of_points_lte: "Union[int, None, Unset_Type]") -> None: """Sets the number_of_points_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. @@ -396,9 +401,7 @@ def number_of_points_gte(self) -> "Union[int, None, Unset_Type]": return self._number_of_points_gte @number_of_points_gte.setter - def number_of_points_gte( - self, number_of_points_gte: "Union[int, None, Unset_Type]" - ) -> None: + def number_of_points_gte(self, number_of_points_gte: "Union[int, None, Unset_Type]") -> None: """Sets the number_of_points_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. @@ -455,9 +458,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchFloatFunctionalGraphDatumCriterion - ): + if not isinstance(other, GrantaServerApiSearchFloatFunctionalGraphDatumCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py index 6b9e06fc..93dd7734 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -175,9 +190,7 @@ def attributes(self) -> "Union[GrantaServerApiValueSpecifier, Unset_Type]": return self._attributes @attributes.setter - def attributes( - self, attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]" - ) -> None: + def attributes(self, attributes: "Union[GrantaServerApiValueSpecifier, Unset_Type]") -> None: """Sets the attributes of this GrantaServerApiSearchFreeTextCriterion. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py index 6cc99370..27992e08 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py index 1f13e129..957f5352 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -148,9 +162,7 @@ def search_index_up_to_date(self) -> "Union[bool, Unset_Type]": return self._search_index_up_to_date @search_index_up_to_date.setter - def search_index_up_to_date( - self, search_index_up_to_date: "Union[bool, Unset_Type]" - ) -> None: + def search_index_up_to_date(self, search_index_up_to_date: "Union[bool, Unset_Type]") -> None: """Sets the search_index_up_to_date of this GrantaServerApiSearchIndexStatus. Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed @@ -161,9 +173,7 @@ def search_index_up_to_date( """ # Field is not nullable if search_index_up_to_date is None: - raise ValueError( - "Invalid value for 'search_index_up_to_date', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_index_up_to_date', must not be 'None'") self._search_index_up_to_date = search_index_up_to_date @property @@ -205,9 +215,7 @@ def search_index_in_sync(self) -> "Union[bool, Unset_Type]": return self._search_index_in_sync @search_index_in_sync.setter - def search_index_in_sync( - self, search_index_in_sync: "Union[bool, Unset_Type]" - ) -> None: + def search_index_in_sync(self, search_index_in_sync: "Union[bool, Unset_Type]") -> None: """Sets the search_index_in_sync of this GrantaServerApiSearchIndexStatus. Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) @@ -218,9 +226,7 @@ def search_index_in_sync( """ # Field is not nullable if search_index_in_sync is None: - raise ValueError( - "Invalid value for 'search_index_in_sync', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_index_in_sync', must not be 'None'") self._search_index_in_sync = search_index_in_sync @property @@ -236,9 +242,7 @@ def search_index_location(self) -> "Union[str, None, Unset_Type]": return self._search_index_location @search_index_location.setter - def search_index_location( - self, search_index_location: "Union[str, None, Unset_Type]" - ) -> None: + def search_index_location(self, search_index_location: "Union[str, None, Unset_Type]") -> None: """Sets the search_index_location of this GrantaServerApiSearchIndexStatus. The location of the index. @@ -287,9 +291,7 @@ def disk_status(self) -> "Union[GrantaServerApiDiskStatus, Unset_Type]": return self._disk_status @disk_status.setter - def disk_status( - self, disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]" - ) -> None: + def disk_status(self, disk_status: "Union[GrantaServerApiDiskStatus, Unset_Type]") -> None: """Sets the disk_status of this GrantaServerApiSearchIndexStatus. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py index c00c077f..31d264b3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py index cfc58fd7..14b1889f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -127,18 +142,14 @@ def __init__( self._target_table_guid: Union[str, None, Unset_Type] = Unset self._target_database_key: Union[str, None, Unset_Type] = Unset self._local_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset - self._link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = ( - Unset - ) + self._link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = Unset self._indirect_links: Union[GrantaServerApiIndirectLinks, Unset_Type] = Unset self._search_in_reversed_direction: Union[bool, Unset_Type] = Unset self._target_attribute_identity: Union[int, None, Unset_Type] = Unset self._target_attribute_guid: Union[str, None, Unset_Type] = Unset self._inner_criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset self._type: str - self._local_rows_behavior: Union[ - GrantaServerApiSearchLocalRowsBehavior, Unset_Type - ] = Unset + self._local_rows_behavior: Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type] = Unset if target_table_identity is not Unset: self.target_table_identity = target_table_identity @@ -177,9 +188,7 @@ def target_table_identity(self) -> "Union[int, None, Unset_Type]": return self._target_table_identity @target_table_identity.setter - def target_table_identity( - self, target_table_identity: "Union[int, None, Unset_Type]" - ) -> None: + def target_table_identity(self, target_table_identity: "Union[int, None, Unset_Type]") -> None: """Sets the target_table_identity of this GrantaServerApiSearchLinkDatumCriterion. Table containing the linked records. The target table can be omitted; it is likely to improve performance if it is included. For tabular search, if either the target attribute or the target table is provided, they should both be provided. @@ -203,9 +212,7 @@ def target_table_guid(self) -> "Union[str, None, Unset_Type]": return self._target_table_guid @target_table_guid.setter - def target_table_guid( - self, target_table_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_table_guid(self, target_table_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. Table containing the linked records. The target table can be omitted; it is likely to improve performance if it is included. For tabular search, if either the target attribute or the target table is provided, they should both be provided. @@ -229,9 +236,7 @@ def target_database_key(self) -> "Union[str, None, Unset_Type]": return self._target_database_key @target_database_key.setter - def target_database_key( - self, target_database_key: "Union[str, None, Unset_Type]" - ) -> None: + def target_database_key(self, target_database_key: "Union[str, None, Unset_Type]") -> None: """Sets the target_database_key of this GrantaServerApiSearchLinkDatumCriterion. Database containing the linked records. For reverse cross database links, this is the database where the link is defined @@ -347,9 +352,7 @@ def search_in_reversed_direction( """ # Field is not nullable if search_in_reversed_direction is None: - raise ValueError( - "Invalid value for 'search_in_reversed_direction', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_in_reversed_direction', must not be 'None'") self._search_in_reversed_direction = search_in_reversed_direction @property @@ -391,9 +394,7 @@ def target_attribute_guid(self) -> "Union[str, None, Unset_Type]": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid( - self, target_attribute_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_attribute_guid(self, target_attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. /// The target attribute and table can both be omitted; it is likely to improve performance if they are included. If either the target attribute or the target table is provided, they should both be provided. Otherwise null. @@ -460,9 +461,7 @@ def type(self, type: "str") -> None: self._type = type @property - def local_rows_behavior( - self, - ) -> "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]": + def local_rows_behavior(self) -> "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]": """Gets the local_rows_behavior of this GrantaServerApiSearchLinkDatumCriterion. Returns @@ -474,8 +473,7 @@ def local_rows_behavior( @local_rows_behavior.setter def local_rows_behavior( - self, - local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]", + self, local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]" ) -> None: """Sets the local_rows_behavior of this GrantaServerApiSearchLinkDatumCriterion. @@ -486,9 +484,7 @@ def local_rows_behavior( """ # Field is not nullable if local_rows_behavior is None: - raise ValueError( - "Invalid value for 'local_rows_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'local_rows_behavior', must not be 'None'") self._local_rows_behavior = local_rows_behavior @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py index 77855c5f..10f51f89 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_exists_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 GrantaServerApiSearchDatumExistsCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchLinkExistsDatumCriterion( - GrantaServerApiSearchDatumExistsCriterion -): +class GrantaServerApiSearchLinkExistsDatumCriterion(GrantaServerApiSearchDatumExistsCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -118,14 +131,10 @@ def __init__( self._target_table_identity: Union[int, None, Unset_Type] = Unset self._target_table_guid: Union[str, None, Unset_Type] = Unset self._target_database_key: Union[str, None, Unset_Type] = Unset - self._link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = ( - Unset - ) + self._link_datum_type: Union[GrantaServerApiLinkAttributeType, Unset_Type] = Unset self._indirect_links: Union[GrantaServerApiIndirectLinks, Unset_Type] = Unset self._search_in_reversed_direction: Union[bool, Unset_Type] = Unset - self._local_rows_behavior: Union[ - GrantaServerApiSearchLocalRowsBehavior, Unset_Type - ] = Unset + self._local_rows_behavior: Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type] = Unset self._target_attribute_identity: Union[int, None, Unset_Type] = Unset self._target_attribute_guid: Union[str, None, Unset_Type] = Unset self._type: str @@ -163,9 +172,7 @@ def target_table_identity(self) -> "Union[int, None, Unset_Type]": return self._target_table_identity @target_table_identity.setter - def target_table_identity( - self, target_table_identity: "Union[int, None, Unset_Type]" - ) -> None: + def target_table_identity(self, target_table_identity: "Union[int, None, Unset_Type]") -> None: """Sets the target_table_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records @@ -189,9 +196,7 @@ def target_table_guid(self) -> "Union[str, None, Unset_Type]": return self._target_table_guid @target_table_guid.setter - def target_table_guid( - self, target_table_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_table_guid(self, target_table_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_table_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records @@ -215,9 +220,7 @@ def target_database_key(self) -> "Union[str, None, Unset_Type]": return self._target_database_key @target_database_key.setter - def target_database_key( - self, target_database_key: "Union[str, None, Unset_Type]" - ) -> None: + def target_database_key(self, target_database_key: "Union[str, None, Unset_Type]") -> None: """Sets the target_database_key of this GrantaServerApiSearchLinkExistsDatumCriterion. Database containing the linked records. For reverse cross database links, this is the database where the link is defined @@ -306,15 +309,11 @@ def search_in_reversed_direction( """ # Field is not nullable if search_in_reversed_direction is None: - raise ValueError( - "Invalid value for 'search_in_reversed_direction', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_in_reversed_direction', must not be 'None'") self._search_in_reversed_direction = search_in_reversed_direction @property - def local_rows_behavior( - self, - ) -> "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]": + def local_rows_behavior(self) -> "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]": """Gets the local_rows_behavior of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns @@ -326,8 +325,7 @@ def local_rows_behavior( @local_rows_behavior.setter def local_rows_behavior( - self, - local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]", + self, local_rows_behavior: "Union[GrantaServerApiSearchLocalRowsBehavior, Unset_Type]" ) -> None: """Sets the local_rows_behavior of this GrantaServerApiSearchLinkExistsDatumCriterion. @@ -338,9 +336,7 @@ def local_rows_behavior( """ # Field is not nullable if local_rows_behavior is None: - raise ValueError( - "Invalid value for 'local_rows_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'local_rows_behavior', must not be 'None'") self._local_rows_behavior = local_rows_behavior @property @@ -382,9 +378,7 @@ def target_attribute_guid(self) -> "Union[str, None, Unset_Type]": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid( - self, target_attribute_guid: "Union[str, None, Unset_Type]" - ) -> None: + def target_attribute_guid(self, target_attribute_guid: "Union[str, None, Unset_Type]") -> None: """Sets the target_attribute_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. Otherwise null. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behavior.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behavior.py index 6e5e514e..7e8e4360 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behavior.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_linking_value_match_behavior.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py index 272097bf..e70b6ea0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py index 04ee4524..44339bc5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( # noqa: F401 GrantaServerApiSearchLocalColumnCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchLocalColumnExistsCriterion( - GrantaServerApiSearchLocalColumnCriterion -): +class GrantaServerApiSearchLocalColumnExistsCriterion(GrantaServerApiSearchLocalColumnCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -111,9 +124,7 @@ def inner_criterion(self) -> "GrantaServerApiSearchDatumExistsCriterion": return self._inner_criterion @inner_criterion.setter - def inner_criterion( - self, inner_criterion: "GrantaServerApiSearchDatumExistsCriterion" - ) -> None: + def inner_criterion(self, inner_criterion: "GrantaServerApiSearchDatumExistsCriterion") -> None: """Sets the inner_criterion of this GrantaServerApiSearchLocalColumnExistsCriterion. Parameters @@ -151,14 +162,10 @@ def local_column_criterion_type(self, local_column_criterion_type: "str") -> Non """ # Field is not nullable if local_column_criterion_type is None: - raise ValueError( - "Invalid value for 'local_column_criterion_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'local_column_criterion_type', must not be 'None'") # Field is required if local_column_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'local_column_criterion_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'local_column_criterion_type', must not be 'Unset'") self._local_column_criterion_type = local_column_criterion_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py index 240d3d67..2945be6b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( # noqa: F401 GrantaServerApiSearchLocalColumnCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchLocalColumnMatchesCriterion( - GrantaServerApiSearchLocalColumnCriterion -): +class GrantaServerApiSearchLocalColumnMatchesCriterion(GrantaServerApiSearchLocalColumnCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -111,9 +124,7 @@ def inner_criterion(self) -> "GrantaServerApiSearchDatumCriterion": return self._inner_criterion @inner_criterion.setter - def inner_criterion( - self, inner_criterion: "GrantaServerApiSearchDatumCriterion" - ) -> None: + def inner_criterion(self, inner_criterion: "GrantaServerApiSearchDatumCriterion") -> None: """Sets the inner_criterion of this GrantaServerApiSearchLocalColumnMatchesCriterion. Parameters @@ -151,14 +162,10 @@ def local_column_criterion_type(self, local_column_criterion_type: "str") -> Non """ # Field is not nullable if local_column_criterion_type is None: - raise ValueError( - "Invalid value for 'local_column_criterion_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'local_column_criterion_type', must not be 'None'") # Field is required if local_column_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'local_column_criterion_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'local_column_criterion_type', must not be 'Unset'") self._local_column_criterion_type = local_column_criterion_type @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py index 95c189b1..493bc994 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( # noqa: F401 GrantaServerApiSearchLocalColumnCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -113,14 +128,10 @@ def local_column_criterion_type(self, local_column_criterion_type: "str") -> Non """ # Field is not nullable if local_column_criterion_type is None: - raise ValueError( - "Invalid value for 'local_column_criterion_type', must not be 'None'" - ) + raise ValueError("Invalid value for 'local_column_criterion_type', must not be 'None'") # Field is required if local_column_criterion_type is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'local_column_criterion_type', must not be 'Unset'" - ) + raise ValueError("Invalid value for 'local_column_criterion_type', must not be 'Unset'") self._local_column_criterion_type = local_column_criterion_type @classmethod @@ -145,9 +156,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchLocalColumnNotApplicableCriterion - ): + if not isinstance(other, GrantaServerApiSearchLocalColumnNotApplicableCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behavior.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behavior.py index 5547930b..7ebbe7d8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behavior.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_rows_behavior.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py index ddfbdcd7..28b02ab5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py index e48a81d6..7055c85c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_sorting_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( # noqa: F401 GrantaServerApiSearchSortingValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py index 266875e4..892e22ef 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py index c7e4336c..410b941e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchMathsFunctionalDatumCriterion( - GrantaServerApiSearchDatumCriterion -): +class GrantaServerApiSearchMathsFunctionalDatumCriterion(GrantaServerApiSearchDatumCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -196,8 +209,7 @@ def constraints( @constraints.setter def constraints( - self, - constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]", + self, constraints: "Union[List[GrantaServerApiSearchParameterConstraint], None, Unset_Type]" ) -> None: """Sets the constraints of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py index 8b3008a9..58b0e458 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_numeric_parameter_constraint.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_parameter_constraint import ( # noqa: F401 GrantaServerApiSearchParameterConstraint, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchNumericParameterConstraint( - GrantaServerApiSearchParameterConstraint -): +class GrantaServerApiSearchNumericParameterConstraint(GrantaServerApiSearchParameterConstraint): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -199,9 +212,7 @@ def interpolation_type(self) -> "Union[str, None, Unset_Type]": return self._interpolation_type @interpolation_type.setter - def interpolation_type( - self, interpolation_type: "Union[str, None, Unset_Type]" - ) -> None: + def interpolation_type(self, interpolation_type: "Union[str, None, Unset_Type]") -> None: """Sets the interpolation_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the interpolation type of the parameter. Can be Auto, None, Linear or CubicSpline @@ -224,9 +235,7 @@ def significant_figures(self) -> "Union[int, None, Unset_Type]": return self._significant_figures @significant_figures.setter - def significant_figures( - self, significant_figures: "Union[int, None, Unset_Type]" - ) -> None: + def significant_figures(self, significant_figures: "Union[int, None, Unset_Type]") -> None: """Sets the significant_figures of this GrantaServerApiSearchNumericParameterConstraint. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py index 6a0ca83d..2f609e42 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_paging_options.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -128,9 +142,7 @@ def keep_alive_in_minutes(self) -> "Union[int, None, Unset_Type]": return self._keep_alive_in_minutes @keep_alive_in_minutes.setter - def keep_alive_in_minutes( - self, keep_alive_in_minutes: "Union[int, None, Unset_Type]" - ) -> None: + def keep_alive_in_minutes(self, keep_alive_in_minutes: "Union[int, None, Unset_Type]") -> None: """Sets the keep_alive_in_minutes of this GrantaServerApiSearchPagingOptions. The length of time that the paginated search should be kept in memory diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py index 8169ebc5..2f43fe00 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_parameter_constraint.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -96,9 +110,7 @@ def parameter(self) -> "Union[GrantaServerApiObjectIdentifier, Unset_Type]": return self._parameter @parameter.setter - def parameter( - self, parameter: "Union[GrantaServerApiObjectIdentifier, Unset_Type]" - ) -> None: + def parameter(self, parameter: "Union[GrantaServerApiObjectIdentifier, Unset_Type]") -> None: """Sets the parameter of this GrantaServerApiSearchParameterConstraint. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py index 7b2c0681..72b7394a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py index ec7940c0..ea3f5c16 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py index 2efe5162..6abfd71c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py index 9f0ae84a..24f43d46 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -103,9 +118,7 @@ def ancestor_identity(self) -> "Union[int, None, Unset_Type]": return self._ancestor_identity @ancestor_identity.setter - def ancestor_identity( - self, ancestor_identity: "Union[int, None, Unset_Type]" - ) -> None: + def ancestor_identity(self, ancestor_identity: "Union[int, None, Unset_Type]") -> None: """Sets the ancestor_identity of this GrantaServerApiSearchRecordAncestorCriterion. Parameters @@ -127,9 +140,7 @@ def direct_parent_only(self) -> "Union[bool, None, Unset_Type]": return self._direct_parent_only @direct_parent_only.setter - def direct_parent_only( - self, direct_parent_only: "Union[bool, None, Unset_Type]" - ) -> None: + def direct_parent_only(self, direct_parent_only: "Union[bool, None, Unset_Type]") -> None: """Sets the direct_parent_only of this GrantaServerApiSearchRecordAncestorCriterion. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py index 513b9e40..31e53c55 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_ancestor_history_identities_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion( - GrantaServerApiSearchCriterion -): +class GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion(GrantaServerApiSearchCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -189,9 +202,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance( - other, GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion - ): + if not isinstance(other, GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py index e98e0791..c719073c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_list_member_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py index c33bf79a..91925380 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -84,12 +99,8 @@ def __init__( type: str """ super().__init__() - self.__property: Union[ - GrantaServerApiSearchSearchableRecordProperty, Unset_Type - ] = Unset - self._inner_criterion: Union[ - GrantaServerApiSearchDatumCriterion, Unset_Type - ] = Unset + self.__property: Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type] = Unset + self._inner_criterion: Union[GrantaServerApiSearchDatumCriterion, Unset_Type] = Unset self._type: str if _property is not Unset: @@ -99,9 +110,7 @@ def __init__( self.type = type @property - def _property( - self, - ) -> "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]": + def _property(self) -> "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]": """Gets the _property of this GrantaServerApiSearchRecordPropertyCriterion. Returns @@ -113,8 +122,7 @@ def _property( @_property.setter def _property( - self, - _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]", + self, _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]" ) -> None: """Sets the _property of this GrantaServerApiSearchRecordPropertyCriterion. @@ -129,9 +137,7 @@ def _property( self.__property = _property @property - def inner_criterion( - self, - ) -> "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]": + def inner_criterion(self) -> "Union[GrantaServerApiSearchDatumCriterion, Unset_Type]": """Gets the inner_criterion of this GrantaServerApiSearchRecordPropertyCriterion. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py index 887b2930..edd3f51d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( # noqa: F401 GrantaServerApiSearchSortCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchRecordPropertySortCriterion( - GrantaServerApiSearchSortCriterion -): +class GrantaServerApiSearchRecordPropertySortCriterion(GrantaServerApiSearchSortCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -90,9 +103,7 @@ def __init__( type: str """ super().__init__(sort_direction=sort_direction) - self.__property: Union[ - GrantaServerApiSearchSearchableRecordProperty, Unset_Type - ] = Unset + self.__property: Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type] = Unset self._sort_type: Union[GrantaServerApiSearchSortType, Unset_Type] = Unset self._type: str @@ -103,9 +114,7 @@ def __init__( self.type = type @property - def _property( - self, - ) -> "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]": + def _property(self) -> "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]": """Gets the _property of this GrantaServerApiSearchRecordPropertySortCriterion. Returns @@ -117,8 +126,7 @@ def _property( @_property.setter def _property( - self, - _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]", + self, _property: "Union[GrantaServerApiSearchSearchableRecordProperty, Unset_Type]" ) -> None: """Sets the _property of this GrantaServerApiSearchRecordPropertySortCriterion. @@ -144,9 +152,7 @@ def sort_type(self) -> "Union[GrantaServerApiSearchSortType, Unset_Type]": return self._sort_type @sort_type.setter - def sort_type( - self, sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]" - ) -> None: + def sort_type(self, sort_type: "Union[GrantaServerApiSearchSortType, Unset_Type]") -> None: """Sets the sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py index 329fa11f..500dc412 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_reference_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -192,9 +207,7 @@ def record_history_guid(self) -> "Union[str, None, Unset_Type]": return self._record_history_guid @record_history_guid.setter - def record_history_guid( - self, record_history_guid: "Union[str, None, Unset_Type]" - ) -> None: + def record_history_guid(self, record_history_guid: "Union[str, None, Unset_Type]") -> None: """Sets the record_history_guid of this GrantaServerApiSearchRecordReferenceCriterion. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py index 089fb3fe..476eb9e2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_subset_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py index 89047078..028e28f3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_relevance_sort_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sort_criterion import ( # noqa: F401 GrantaServerApiSearchSortCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py index d2fa0232..4d0256c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -82,12 +96,10 @@ def __init__( sort_criteria: List[GrantaServerApiSearchSortCriterion], optional """ self._criterion: Union[GrantaServerApiSearchCriterion, Unset_Type] = Unset - self._sort_criteria: Union[ - List[GrantaServerApiSearchSortCriterion], None, Unset_Type - ] = Unset - self._paging_options: Union[GrantaServerApiSearchPagingOptions, Unset_Type] = ( + self._sort_criteria: Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type] = ( Unset ) + self._paging_options: Union[GrantaServerApiSearchPagingOptions, Unset_Type] = Unset if criterion is not Unset: self.criterion = criterion @@ -108,9 +120,7 @@ def criterion(self) -> "Union[GrantaServerApiSearchCriterion, Unset_Type]": return self._criterion @criterion.setter - def criterion( - self, criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]" - ) -> None: + def criterion(self, criterion: "Union[GrantaServerApiSearchCriterion, Unset_Type]") -> None: """Sets the criterion of this GrantaServerApiSearchSearchRequest. Parameters @@ -124,9 +134,7 @@ def criterion( self._criterion = criterion @property - def sort_criteria( - self, - ) -> "Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type]": + def sort_criteria(self) -> "Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type]": """Gets the sort_criteria of this GrantaServerApiSearchSearchRequest. An optional set of attribute based sort criteria. If none are provided, the results will be sorted in descending relevance order. @@ -139,8 +147,7 @@ def sort_criteria( @sort_criteria.setter def sort_criteria( - self, - sort_criteria: "Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type]", + self, sort_criteria: "Union[List[GrantaServerApiSearchSortCriterion], None, Unset_Type]" ) -> None: """Sets the sort_criteria of this GrantaServerApiSearchSearchRequest. An optional set of attribute based sort criteria. If none are provided, the results will be sorted in descending relevance order. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py index 2cff643c..56b17291 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_response.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -81,9 +95,7 @@ def __init__( """ self._search_identifier: Union[str, None, Unset_Type] = Unset self._total_result_count: Union[int, Unset_Type] = Unset - self._results: Union[ - List[GrantaServerApiSearchSearchResult], None, Unset_Type - ] = Unset + self._results: Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type] = Unset if search_identifier is not Unset: self.search_identifier = search_identifier @@ -105,9 +117,7 @@ def search_identifier(self) -> "Union[str, None, Unset_Type]": return self._search_identifier @search_identifier.setter - def search_identifier( - self, search_identifier: "Union[str, None, Unset_Type]" - ) -> None: + def search_identifier(self, search_identifier: "Union[str, None, Unset_Type]") -> None: """Sets the search_identifier of this GrantaServerApiSearchSearchResponse. If the search request had paging options specified, this will return an identifier that can be used to get the rest of the results @@ -140,15 +150,11 @@ def total_result_count(self, total_result_count: "Union[int, Unset_Type]") -> No """ # Field is not nullable if total_result_count is None: - raise ValueError( - "Invalid value for 'total_result_count', must not be 'None'" - ) + raise ValueError("Invalid value for 'total_result_count', must not be 'None'") self._total_result_count = total_result_count @property - def results( - self, - ) -> "Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type]": + def results(self) -> "Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type]": """Gets the results of this GrantaServerApiSearchSearchResponse. Returns @@ -160,8 +166,7 @@ def results( @results.setter def results( - self, - results: "Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type]", + self, results: "Union[List[GrantaServerApiSearchSearchResult], None, Unset_Type]" ) -> None: """Sets the results of this GrantaServerApiSearchSearchResponse. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py index 0f74e027..88e5b337 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -152,9 +166,7 @@ def __init__( self._parent_identity: Union[int, None, Unset_Type] = Unset self._type: Union[GrantaServerApiRecordType, Unset_Type] = Unset self._score: Union[float, None, Unset_Type] = Unset - self._sorting_value: Union[GrantaServerApiSearchSortingValue, Unset_Type] = ( - Unset - ) + self._sorting_value: Union[GrantaServerApiSearchSortingValue, Unset_Type] = Unset if database_key is not Unset: self.database_key = database_key @@ -225,9 +237,7 @@ def record_history_identity(self) -> "Union[int, Unset_Type]": return self._record_history_identity @record_history_identity.setter - def record_history_identity( - self, record_history_identity: "Union[int, Unset_Type]" - ) -> None: + def record_history_identity(self, record_history_identity: "Union[int, Unset_Type]") -> None: """Sets the record_history_identity of this GrantaServerApiSearchSearchResult. Parameters @@ -237,9 +247,7 @@ def record_history_identity( """ # Field is not nullable if record_history_identity is None: - raise ValueError( - "Invalid value for 'record_history_identity', must not be 'None'" - ) + raise ValueError("Invalid value for 'record_history_identity', must not be 'None'") self._record_history_identity = record_history_identity @property @@ -279,9 +287,7 @@ def record_history_guid(self) -> "Union[str, None, Unset_Type]": return self._record_history_guid @record_history_guid.setter - def record_history_guid( - self, record_history_guid: "Union[str, None, Unset_Type]" - ) -> None: + def record_history_guid(self, record_history_guid: "Union[str, None, Unset_Type]") -> None: """Sets the record_history_guid of this GrantaServerApiSearchSearchResult. Parameters @@ -441,9 +447,7 @@ def cubic_spline_status(self) -> "Union[str, None, Unset_Type]": return self._cubic_spline_status @cubic_spline_status.setter - def cubic_spline_status( - self, cubic_spline_status: "Union[str, None, Unset_Type]" - ) -> None: + def cubic_spline_status(self, cubic_spline_status: "Union[str, None, Unset_Type]") -> None: """Sets the cubic_spline_status of this GrantaServerApiSearchSearchResult. Parameters @@ -465,9 +469,7 @@ def version_control_state(self) -> "Union[str, None, Unset_Type]": return self._version_control_state @version_control_state.setter - def version_control_state( - self, version_control_state: "Union[str, None, Unset_Type]" - ) -> None: + def version_control_state(self, version_control_state: "Union[str, None, Unset_Type]") -> None: """Sets the version_control_state of this GrantaServerApiSearchSearchResult. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py index f25e334b..809fba6e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_results_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py index c5e7dd47..c8a7d49c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_searchable_record_property.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py index a7f8598c..60fd3b2b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import ( # noqa: F401 GrantaServerApiSearchDatumCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -84,9 +99,7 @@ def __init__( """ super().__init__() self._value: Union[str, None, Unset_Type] = Unset - self._text_match_behavior: Union[ - GrantaServerApiSearchTextMatchBehavior, Unset_Type - ] = Unset + self._text_match_behavior: Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type] = Unset self._type: str if value is not Unset: @@ -118,9 +131,7 @@ def value(self, value: "Union[str, None, Unset_Type]") -> None: self._value = value @property - def text_match_behavior( - self, - ) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": + def text_match_behavior(self) -> "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]": """Gets the text_match_behavior of this GrantaServerApiSearchShortTextDatumCriterion. Returns @@ -132,8 +143,7 @@ def text_match_behavior( @text_match_behavior.setter def text_match_behavior( - self, - text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]", + self, text_match_behavior: "Union[GrantaServerApiSearchTextMatchBehavior, Unset_Type]" ) -> None: """Sets the text_match_behavior of this GrantaServerApiSearchShortTextDatumCriterion. @@ -144,9 +154,7 @@ def text_match_behavior( """ # Field is not nullable if text_match_behavior is None: - raise ValueError( - "Invalid value for 'text_match_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'text_match_behavior', must not be 'None'") self._text_match_behavior = text_match_behavior @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py index bf379b28..bc347584 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py @@ -1,39 +1,52 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 GrantaServerApiSearchDatumExistsCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * -class GrantaServerApiSearchSimpleDatumExistsCriterion( - GrantaServerApiSearchDatumExistsCriterion -): +class GrantaServerApiSearchSimpleDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py index ff9e0586..2d9f689b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_criterion.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -79,9 +93,7 @@ def __init__( ---------- sort_direction: GrantaServerApiSearchSortDirection, optional """ - self._sort_direction: Union[GrantaServerApiSearchSortDirection, Unset_Type] = ( - Unset - ) + self._sort_direction: Union[GrantaServerApiSearchSortDirection, Unset_Type] = Unset if sort_direction is not Unset: self.sort_direction = sort_direction diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_direction.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_direction.py index e3209795..3a18e332 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_direction.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_direction.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_type.py index 68082c03..e3fc5275 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py index abf6b136..3f82ea48 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sorting_value.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py index a1c4493b..c80b1f5a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_string_sorting_value.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_sorting_value import ( # noqa: F401 GrantaServerApiSearchSortingValue, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py index 6a98e8dd..b313f1ef 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_linking_value_criterion.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( # noqa: F401 GrantaServerApiSearchCriterion, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -144,9 +159,7 @@ def linking_value_match_behavior( """ # Field is not nullable if linking_value_match_behavior is None: - raise ValueError( - "Invalid value for 'linking_value_match_behavior', must not be 'None'" - ) + raise ValueError("Invalid value for 'linking_value_match_behavior', must not be 'None'") self._linking_value_match_behavior = linking_value_match_behavior @property diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behavior.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behavior.py index 747ee815..874997d8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behavior.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behavior.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py index c654c0b4..c654d0ba 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_create_search_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -76,9 +90,7 @@ def __init__( search_config: str, optional """ self._search_config: Union[str, None, Unset_Type] = Unset - self._detail: Union[ - GrantaServerApiSelectionSearchesSearchDetail, Unset_Type - ] = Unset + self._detail: Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type] = Unset if search_config is not Unset: self.search_config = search_config @@ -108,9 +120,7 @@ def search_config(self, search_config: "Union[str, None, Unset_Type]") -> None: self._search_config = search_config @property - def detail( - self, - ) -> "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]": + def detail(self) -> "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]": """Gets the detail of this GrantaServerApiSelectionSearchesCreateSearchRequest. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py index 8db66747..c033481a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_find_search_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py index 593fcc7c..f48b8747 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_save_search_request.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -76,9 +90,7 @@ def __init__( search_config: str, optional """ self._search_config: Union[str, None, Unset_Type] = Unset - self._detail: Union[ - GrantaServerApiSelectionSearchesSearchDetail, Unset_Type - ] = Unset + self._detail: Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type] = Unset if search_config is not Unset: self.search_config = search_config @@ -108,9 +120,7 @@ def search_config(self, search_config: "Union[str, None, Unset_Type]") -> None: self._search_config = search_config @property - def detail( - self, - ) -> "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]": + def detail(self) -> "Union[GrantaServerApiSelectionSearchesSearchDetail, Unset_Type]": """Gets the detail of this GrantaServerApiSelectionSearchesSaveSearchRequest. Returns diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py index 6effe4e9..e6916808 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_search_detail.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py index 0eb402a2..eea451d0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_selection_search.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -116,9 +130,7 @@ def __init__( self._name: Union[str, None, Unset_Type] = Unset self._description: Union[str, None, Unset_Type] = Unset self._notes: Union[str, None, Unset_Type] = Unset - self._current_user_access_info: Union[ - Dict[str, Dict[str, bool]], None, Unset_Type - ] = Unset + self._current_user_access_info: Union[Dict[str, Dict[str, bool]], None, Unset_Type] = Unset self._criteria: Union[str, None, Unset_Type] = Unset self._explore_config: Union[str, None, Unset_Type] = Unset self._created_timestamp: Union[datetime, Unset_Type] = Unset @@ -175,9 +187,7 @@ def search_identifier(self, search_identifier: "Union[str, Unset_Type]") -> None """ # Field is not nullable if search_identifier is None: - raise ValueError( - "Invalid value for 'search_identifier', must not be 'None'" - ) + raise ValueError("Invalid value for 'search_identifier', must not be 'None'") self._search_identifier = search_identifier @property @@ -247,9 +257,7 @@ def notes(self, notes: "Union[str, None, Unset_Type]") -> None: self._notes = notes @property - def current_user_access_info( - self, - ) -> "Union[Dict[str, Dict[str, bool]], None, Unset_Type]": + def current_user_access_info(self) -> "Union[Dict[str, Dict[str, bool]], None, Unset_Type]": """Gets the current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -261,8 +269,7 @@ def current_user_access_info( @current_user_access_info.setter def current_user_access_info( - self, - current_user_access_info: "Union[Dict[str, Dict[str, bool]], None, Unset_Type]", + self, current_user_access_info: "Union[Dict[str, Dict[str, bool]], None, Unset_Type]" ) -> None: """Sets the current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. @@ -329,9 +336,7 @@ def created_timestamp(self) -> "Union[datetime, Unset_Type]": return self._created_timestamp @created_timestamp.setter - def created_timestamp( - self, created_timestamp: "Union[datetime, Unset_Type]" - ) -> None: + def created_timestamp(self, created_timestamp: "Union[datetime, Unset_Type]") -> None: """Sets the created_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -341,9 +346,7 @@ def created_timestamp( """ # Field is not nullable if created_timestamp is None: - raise ValueError( - "Invalid value for 'created_timestamp', must not be 'None'" - ) + raise ValueError("Invalid value for 'created_timestamp', must not be 'None'") self._created_timestamp = created_timestamp @property @@ -373,9 +376,7 @@ def created_user_or_group( """ # Field is not nullable if created_user_or_group is None: - raise ValueError( - "Invalid value for 'created_user_or_group', must not be 'None'" - ) + raise ValueError("Invalid value for 'created_user_or_group', must not be 'None'") self._created_user_or_group = created_user_or_group @property @@ -402,9 +403,7 @@ def last_modified_timestamp( """ # Field is not nullable if last_modified_timestamp is None: - raise ValueError( - "Invalid value for 'last_modified_timestamp', must not be 'None'" - ) + raise ValueError("Invalid value for 'last_modified_timestamp', must not be 'None'") self._last_modified_timestamp = last_modified_timestamp @property @@ -434,9 +433,7 @@ def last_modified_user_or_group( """ # Field is not nullable if last_modified_user_or_group is None: - raise ValueError( - "Invalid value for 'last_modified_user_or_group', must not be 'None'" - ) + raise ValueError("Invalid value for 'last_modified_user_or_group', must not be 'None'") self._last_modified_user_or_group = last_modified_user_or_group @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py index 113ea779..51414ee7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_selection_searches_user_or_group.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py index 906258d7..8182f3a5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_specific_values_specifier.py @@ -1,33 +1,48 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 -from . import ModelBase, Unset, Unset_Type -from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( +from ansys.grantami.serverapi_openapi.models.granta_server_api_value_specifier import ( # noqa: F401 GrantaServerApiValueSpecifier, -) # noqa: F401 +) +from . import ModelBase, Unset, Unset_Type if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py index 656b175d..491cb82c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier_type.py index 888b3587..7267f79a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier_type.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_value_specifier_type.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_version_state.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_version_state.py index e32f7f07..4f009787 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_version_state.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_version_state.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py index 16df2d99..5924085f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/jobqueue_files_body.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py index 8a26d548..b6ee5c54 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py index b6a6a91d..14cb0b98 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_formatters_i_output_formatter.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_object_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_object_result.py index 888eded4..ad6fffa8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_object_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/microsoft_asp_net_core_mvc_object_result.py @@ -1,30 +1,44 @@ +# Copyright (C) 2023 - 2024 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, - Dict, - List, - Optional, - Union, -) # noqa: F401 +from typing import TYPE_CHECKING, Any, BinaryIO, Dict, List, Optional, Union # noqa: F401 from . import ModelBase, Unset, Unset_Type - if TYPE_CHECKING: from datetime import datetime import pathlib + from . import * @@ -167,9 +181,7 @@ def content_types(self) -> "Union[List[str], None, Unset_Type]": return self._content_types @content_types.setter - def content_types( - self, content_types: "Union[List[str], None, Unset_Type]" - ) -> None: + def content_types(self, content_types: "Union[List[str], None, Unset_Type]") -> None: """Sets the content_types of this MicrosoftAspNetCoreMvcObjectResult. Parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/system_net_http_status_code.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/system_net_http_status_code.py index 745ed227..97aedea8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/system_net_http_status_code.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/system_net_http_status_code.py @@ -1,10 +1,32 @@ +# Copyright (C) 2023 - 2024 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 """ diff --git a/ansys-grantami-serverapi-openapi/tests/__init__.py b/ansys-grantami-serverapi-openapi/tests/__init__.py index e69de29b..3bc3c8e5 100644 --- a/ansys-grantami-serverapi-openapi/tests/__init__.py +++ b/ansys-grantami-serverapi-openapi/tests/__init__.py @@ -0,0 +1,21 @@ +# Copyright (C) 2023 - 2024 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. diff --git a/ansys-grantami-serverapi-openapi/tests/conftest.py b/ansys-grantami-serverapi-openapi/tests/conftest.py index 0cbb06ca..5a5f2bcb 100644 --- a/ansys-grantami-serverapi-openapi/tests/conftest.py +++ b/ansys-grantami-serverapi-openapi/tests/conftest.py @@ -1,3 +1,25 @@ +# Copyright (C) 2023 - 2024 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. + # coding: utf-8 """ @@ -6,14 +28,14 @@ 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 ansys.grantami.serverapi_openapi.models as models +import ansys.openapi.common as auth import pytest import requests_mock -import ansys.openapi.common as auth -import ansys.grantami.serverapi_openapi.models as models @pytest.fixture(scope="session") diff --git a/ansys-grantami-serverapi-openapi/tests/test_discriminators.py b/ansys-grantami-serverapi-openapi/tests/test_discriminators.py index 88a96d63..9ea9d7bc 100644 --- a/ansys-grantami-serverapi-openapi/tests/test_discriminators.py +++ b/ansys-grantami-serverapi-openapi/tests/test_discriminators.py @@ -1,22 +1,40 @@ +# Copyright (C) 2023 - 2024 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. + from enum import Enum import types -import pytest -import ansys.grantami.serverapi_openapi.models as models +import ansys.grantami.serverapi_openapi.models as models +import pytest ALL_MODELS = { k: v for k, v in models.__dict__.items() - if isinstance(v, type) - and k not in ("ModelBase", "Unset_Type") - and not issubclass(v, Enum) + if isinstance(v, type) and k not in ("ModelBase", "Unset_Type") and not issubclass(v, Enum) } POLYMORPHIC_MODELS = { k: v for k, v in ALL_MODELS.items() if "discriminator_value_class_map" in v.__dict__ } -MONOMORPHIC_MODELS = { - k: v for k, v in ALL_MODELS.items() if k not in POLYMORPHIC_MODELS.keys() -} +MONOMORPHIC_MODELS = {k: v for k, v in ALL_MODELS.items() if k not in POLYMORPHIC_MODELS.keys()} @pytest.mark.parametrize("cls", ALL_MODELS.values()) diff --git a/ansys-grantami-serverapi-openapi/tests/test_general.py b/ansys-grantami-serverapi-openapi/tests/test_general.py index ced92dfb..7c5c569c 100644 --- a/ansys-grantami-serverapi-openapi/tests/test_general.py +++ b/ansys-grantami-serverapi-openapi/tests/test_general.py @@ -1,13 +1,34 @@ -import py_compile +# Copyright (C) 2023 - 2024 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. + from pathlib import Path +import py_compile + import pytest src_folder = Path(__file__) / "../../src" files = list(src_folder.rglob("*.py")) -@pytest.mark.parametrize( - "file", files, ids=[f.relative_to(src_folder).as_posix() for f in files] -) +@pytest.mark.parametrize("file", files, ids=[f.relative_to(src_folder).as_posix() for f in files]) def test_all_code_valid(file): py_compile.compile(file=file, doraise=True) From 3b72c24ea72d487bd3883586adba402da8ddf239 Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Thu, 18 Apr 2024 12:57:53 -0400 Subject: [PATCH 23/31] Configure PR labelling and auto-generated release notes (#178) --- .github/dependabot.yml | 3 ++ .github/labeler.yml | 20 ++++++++++ .github/release.yml | 23 +++++++++++ .github/workflows/build_and_test_library.yml | 1 + .github/workflows/label.yml | 41 ++++++++++++++++++++ 5 files changed, 88 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/release.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2d12f9a4..fd1fa53e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,6 +11,7 @@ updates: interval: "weekly" labels: - "maintenance" + - "dependencies" - package-ecosystem: "github-actions" directory: "/" @@ -18,6 +19,7 @@ updates: interval: "weekly" labels: - "maintenance" + - "dependencies" - package-ecosystem: "pip" # See documentation for possible values directory: "/ansys-grantami-serverapi-openapi/" # Location of package manifests @@ -25,3 +27,4 @@ updates: interval: "weekly" labels: - "maintenance" + - "dependencies" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..efdb35ce --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,20 @@ +api-definition: +- changed-files: + - any-glob-to-any-file: ['yaml/*'] +code-gen: +- changed-files: + - any-glob-to-any-file: ['pom.xml'] +documentation: +- changed-files: + - any-glob-to-any-file: ['doc/source/**/*', 'examples/**/*'] +enhancement: +- head-branch: ['^feat/'] +bug: +- head-branch: ['^fix/', '^patch/'] +maintenance: +- changed-files: + - any-glob-to-any-file: ['.github/**/*', '.flake8', 'pyproject.toml'] +- head-branch: ['^maint/', '^ci/', '^no-ci/'] +dependencies: +- changed-files: + - any-glob-to-any-file: ['poetry.lock'] \ No newline at end of file diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..fe796992 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,23 @@ +changelog: + exclude: + labels: + - dependencies + categories: + - title: "API Definition" + labels: + - api-definition + - title: "Code generation" + labels: + - code-gen + - title: "Features" + labels: + - enhancement + - title: "Bug fixes" + labels: + - bug + - title: "Maintenance" + labels: + - maintenance + - title: "Other changes" + labels: + - "*" \ No newline at end of file diff --git a/.github/workflows/build_and_test_library.yml b/.github/workflows/build_and_test_library.yml index 42e5928f..39455678 100644 --- a/.github/workflows/build_and_test_library.yml +++ b/.github/workflows/build_and_test_library.yml @@ -130,3 +130,4 @@ jobs: uses: softprops/action-gh-release@v1 with: files: ~/dist/ansys-grantami-serverapi-openapi-wheel/*.whl + generate_release_notes: true \ No newline at end of file diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 00000000..a0e721de --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,41 @@ +name: Labeler +on: + pull_request: + push: + branches: [ main ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + labeler: + name: Set labels + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + + - name: Label based on changed files + uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + commenter: + runs-on: ubuntu-latest + steps: + - name: Suggest to add labels + uses: peter-evans/create-or-update-comment@v4 + # Execute only when no labels have been applied to the pull request + if: toJSON(github.event.pull_request.labels.*.name) == '{}' + with: + issue-number: ${{ github.event.pull_request.number }} + body: | + Please add one of the following labels to add this contribution to the Release Notes :point_down: + - [api-definition](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Aapi-definition) + - [code-gen](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Acode-gen+) + - [enhancement](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Aenhancement+) + - [maintenance](https://github.com/ansys/ggrantami-serverapi-openapi/pulls?q=label%3Amaintenance+) + - [bug](https://github.com/ansys/ggrantami-serverapi-openapi/pulls?q=label%3Abug+) \ No newline at end of file From d267af24459be21a20fd9642907b385ee862e6b6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:00:38 +0100 Subject: [PATCH 24/31] Bump softprops/action-gh-release from 1 to 2 (#163) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/build_and_test_library.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test_library.yml b/.github/workflows/build_and_test_library.yml index 39455678..3f01a340 100644 --- a/.github/workflows/build_and_test_library.yml +++ b/.github/workflows/build_and_test_library.yml @@ -127,7 +127,7 @@ jobs: TWINE_REPOSITORY_URL: "https://upload.pypi.org/legacy/" - name: "Release to GitHub" - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: ~/dist/ansys-grantami-serverapi-openapi-wheel/*.whl generate_release_notes: true \ No newline at end of file From e9d3a9238a2695349eda598c7bb62e1e5a418a7a Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Fri, 19 Apr 2024 05:17:42 -0400 Subject: [PATCH 25/31] Fix typos in labelling workflow (#179) --- .github/workflows/label.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml index a0e721de..4a44868d 100644 --- a/.github/workflows/label.yml +++ b/.github/workflows/label.yml @@ -37,5 +37,5 @@ jobs: - [api-definition](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Aapi-definition) - [code-gen](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Acode-gen+) - [enhancement](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Aenhancement+) - - [maintenance](https://github.com/ansys/ggrantami-serverapi-openapi/pulls?q=label%3Amaintenance+) - - [bug](https://github.com/ansys/ggrantami-serverapi-openapi/pulls?q=label%3Abug+) \ No newline at end of file + - [maintenance](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Amaintenance+) + - [bug](https://github.com/ansys/grantami-serverapi-openapi/pulls?q=label%3Abug+) \ No newline at end of file From 9be6e924790160ca427bcc61494e2d80606f6b25 Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Fri, 19 Apr 2024 07:28:17 -0400 Subject: [PATCH 26/31] Update API to 24.2.1025 (#180) Co-authored-by: ludovicsteinbach --- .../pyproject.toml | 2 +- .../grantami/serverapi_openapi/__init__.py | 62 +- .../serverapi_openapi/api/search_api.py | 2 + .../serverapi_openapi/models/__init__.py | 62 +- .../granta_server_api_schema_database.py | 176 +- ..._api_schema_slim_entities_slim_database.py | 176 +- ...search_date_time_datum_exists_criterion.py | 152 + ...erver_api_search_datum_exists_criterion.py | 16 +- ..._search_discrete_datum_exists_criterion.py | 152 + ...crete_functional_datum_exists_criterion.py | 154 + ...api_search_file_datum_exists_criterion.py} | 16 +- ...float_functional_datum_exists_criterion.py | 154 + ...search_hyperlink_datum_exists_criterion.py | 152 + ...i_search_integer_datum_exists_criterion.py | 152 + ...i_search_logical_datum_exists_criterion.py | 152 + ...search_long_text_datum_exists_criterion.py | 152 + ...maths_functional_datum_exists_criterion.py | 154 + ...i_search_picture_datum_exists_criterion.py | 152 + ...api_search_point_datum_exists_criterion.py | 152 + ...api_search_range_datum_exists_criterion.py | 152 + ...earch_short_text_datum_exists_criterion.py | 152 + ...i_search_tabular_datum_exists_criterion.py | 152 + yaml/server-api.json | 29929 ++++++++++++++-- 23 files changed, 29201 insertions(+), 3374 deletions(-) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_datum_exists_criterion.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_search_simple_datum_exists_criterion.py => granta_server_api_search_file_datum_exists_criterion.py} (87%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_datum_exists_criterion.py diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 1a02ec89..28c03dac 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 = "3.0.0.dev236" +version = "3.0.0.dev240" 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 ab627c6e..1eb1c0b0 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 @@ -1650,10 +1650,19 @@ from .models.granta_server_api_search_date_time_datum_criterion import ( GrantaServerApiSearchDateTimeDatumCriterion, ) +from .models.granta_server_api_search_date_time_datum_exists_criterion import ( + GrantaServerApiSearchDateTimeDatumExistsCriterion, +) from .models.granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion from .models.granta_server_api_search_datum_exists_criterion import ( GrantaServerApiSearchDatumExistsCriterion, ) +from .models.granta_server_api_search_discrete_datum_exists_criterion import ( + GrantaServerApiSearchDiscreteDatumExistsCriterion, +) +from .models.granta_server_api_search_discrete_functional_datum_exists_criterion import ( + GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion, +) from .models.granta_server_api_search_discrete_functional_range_datum_criterion import ( GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion, ) @@ -1693,9 +1702,15 @@ from .models.granta_server_api_search_file_datum_criterion import ( GrantaServerApiSearchFileDatumCriterion, ) +from .models.granta_server_api_search_file_datum_exists_criterion import ( + GrantaServerApiSearchFileDatumExistsCriterion, +) from .models.granta_server_api_search_float_functional_datum_criterion import ( GrantaServerApiSearchFloatFunctionalDatumCriterion, ) +from .models.granta_server_api_search_float_functional_datum_exists_criterion import ( + GrantaServerApiSearchFloatFunctionalDatumExistsCriterion, +) from .models.granta_server_api_search_float_functional_graph_datum_criterion import ( GrantaServerApiSearchFloatFunctionalGraphDatumCriterion, ) @@ -1705,10 +1720,16 @@ from .models.granta_server_api_search_hyperlink_datum_criterion import ( GrantaServerApiSearchHyperlinkDatumCriterion, ) +from .models.granta_server_api_search_hyperlink_datum_exists_criterion import ( + GrantaServerApiSearchHyperlinkDatumExistsCriterion, +) from .models.granta_server_api_search_index_status import GrantaServerApiSearchIndexStatus from .models.granta_server_api_search_integer_datum_criterion import ( GrantaServerApiSearchIntegerDatumCriterion, ) +from .models.granta_server_api_search_integer_datum_exists_criterion import ( + GrantaServerApiSearchIntegerDatumExistsCriterion, +) from .models.granta_server_api_search_link_datum_criterion import ( GrantaServerApiSearchLinkDatumCriterion, ) @@ -1736,15 +1757,24 @@ from .models.granta_server_api_search_logical_datum_criterion import ( GrantaServerApiSearchLogicalDatumCriterion, ) +from .models.granta_server_api_search_logical_datum_exists_criterion import ( + GrantaServerApiSearchLogicalDatumExistsCriterion, +) from .models.granta_server_api_search_long_sorting_value import ( GrantaServerApiSearchLongSortingValue, ) from .models.granta_server_api_search_long_text_datum_criterion import ( GrantaServerApiSearchLongTextDatumCriterion, ) +from .models.granta_server_api_search_long_text_datum_exists_criterion import ( + GrantaServerApiSearchLongTextDatumExistsCriterion, +) from .models.granta_server_api_search_maths_functional_datum_criterion import ( GrantaServerApiSearchMathsFunctionalDatumCriterion, ) +from .models.granta_server_api_search_maths_functional_datum_exists_criterion import ( + GrantaServerApiSearchMathsFunctionalDatumExistsCriterion, +) from .models.granta_server_api_search_numeric_parameter_constraint import ( GrantaServerApiSearchNumericParameterConstraint, ) @@ -1755,12 +1785,21 @@ from .models.granta_server_api_search_picture_datum_criterion import ( GrantaServerApiSearchPictureDatumCriterion, ) +from .models.granta_server_api_search_picture_datum_exists_criterion import ( + GrantaServerApiSearchPictureDatumExistsCriterion, +) from .models.granta_server_api_search_point_datum_criterion import ( GrantaServerApiSearchPointDatumCriterion, ) +from .models.granta_server_api_search_point_datum_exists_criterion import ( + GrantaServerApiSearchPointDatumExistsCriterion, +) from .models.granta_server_api_search_range_datum_criterion import ( GrantaServerApiSearchRangeDatumCriterion, ) +from .models.granta_server_api_search_range_datum_exists_criterion import ( + GrantaServerApiSearchRangeDatumExistsCriterion, +) from .models.granta_server_api_search_record_ancestor_criterion import ( GrantaServerApiSearchRecordAncestorCriterion, ) @@ -1797,8 +1836,8 @@ from .models.granta_server_api_search_short_text_datum_criterion import ( GrantaServerApiSearchShortTextDatumCriterion, ) -from .models.granta_server_api_search_simple_datum_exists_criterion import ( - GrantaServerApiSearchSimpleDatumExistsCriterion, +from .models.granta_server_api_search_short_text_datum_exists_criterion import ( + GrantaServerApiSearchShortTextDatumExistsCriterion, ) from .models.granta_server_api_search_sort_criterion import GrantaServerApiSearchSortCriterion from .models.granta_server_api_search_sort_direction import GrantaServerApiSearchSortDirection @@ -1807,6 +1846,9 @@ from .models.granta_server_api_search_string_sorting_value import ( GrantaServerApiSearchStringSortingValue, ) +from .models.granta_server_api_search_tabular_datum_exists_criterion import ( + GrantaServerApiSearchTabularDatumExistsCriterion, +) from .models.granta_server_api_search_tabular_linking_value_criterion import ( GrantaServerApiSearchTabularLinkingValueCriterion, ) @@ -2459,8 +2501,11 @@ "GrantaServerApiSearchBoostByIdentity", "GrantaServerApiSearchCriterion", "GrantaServerApiSearchDateTimeDatumCriterion", + "GrantaServerApiSearchDateTimeDatumExistsCriterion", "GrantaServerApiSearchDatumCriterion", "GrantaServerApiSearchDatumExistsCriterion", + "GrantaServerApiSearchDiscreteDatumExistsCriterion", + "GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion", "GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion", "GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion", "GrantaServerApiSearchDiscreteGuidDatumCriterion", @@ -2474,12 +2519,16 @@ "GrantaServerApiSearchDiscreteTextValuesDatumCriterion", "GrantaServerApiSearchDoubleSortingValue", "GrantaServerApiSearchFileDatumCriterion", + "GrantaServerApiSearchFileDatumExistsCriterion", "GrantaServerApiSearchFloatFunctionalDatumCriterion", + "GrantaServerApiSearchFloatFunctionalDatumExistsCriterion", "GrantaServerApiSearchFloatFunctionalGraphDatumCriterion", "GrantaServerApiSearchFreeTextCriterion", "GrantaServerApiSearchHyperlinkDatumCriterion", + "GrantaServerApiSearchHyperlinkDatumExistsCriterion", "GrantaServerApiSearchIndexStatus", "GrantaServerApiSearchIntegerDatumCriterion", + "GrantaServerApiSearchIntegerDatumExistsCriterion", "GrantaServerApiSearchLinkDatumCriterion", "GrantaServerApiSearchLinkExistsDatumCriterion", "GrantaServerApiSearchLinkingValueMatchBehavior", @@ -2489,15 +2538,21 @@ "GrantaServerApiSearchLocalColumnNotApplicableCriterion", "GrantaServerApiSearchLocalRowsBehavior", "GrantaServerApiSearchLogicalDatumCriterion", + "GrantaServerApiSearchLogicalDatumExistsCriterion", "GrantaServerApiSearchLongSortingValue", "GrantaServerApiSearchLongTextDatumCriterion", + "GrantaServerApiSearchLongTextDatumExistsCriterion", "GrantaServerApiSearchMathsFunctionalDatumCriterion", + "GrantaServerApiSearchMathsFunctionalDatumExistsCriterion", "GrantaServerApiSearchNumericParameterConstraint", "GrantaServerApiSearchPagingOptions", "GrantaServerApiSearchParameterConstraint", "GrantaServerApiSearchPictureDatumCriterion", + "GrantaServerApiSearchPictureDatumExistsCriterion", "GrantaServerApiSearchPointDatumCriterion", + "GrantaServerApiSearchPointDatumExistsCriterion", "GrantaServerApiSearchRangeDatumCriterion", + "GrantaServerApiSearchRangeDatumExistsCriterion", "GrantaServerApiSearchRecordAncestorCriterion", "GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion", "GrantaServerApiSearchRecordListMemberCriterion", @@ -2512,12 +2567,13 @@ "GrantaServerApiSearchSearchResultsRequest", "GrantaServerApiSearchSearchableRecordProperty", "GrantaServerApiSearchShortTextDatumCriterion", - "GrantaServerApiSearchSimpleDatumExistsCriterion", + "GrantaServerApiSearchShortTextDatumExistsCriterion", "GrantaServerApiSearchSortCriterion", "GrantaServerApiSearchSortDirection", "GrantaServerApiSearchSortType", "GrantaServerApiSearchSortingValue", "GrantaServerApiSearchStringSortingValue", + "GrantaServerApiSearchTabularDatumExistsCriterion", "GrantaServerApiSearchTabularLinkingValueCriterion", "GrantaServerApiSearchTextMatchBehavior", "GrantaServerApiSelectionSearchesCreateSearchRequest", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py index 4d1caea2..6f407f57 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/search_api.py @@ -463,6 +463,7 @@ def _delete_search_results_with_http_info(self, search_identifier: "str", **kwar response_type_map: Dict[int, Optional[str]] = { 200: None, + 403: None, 404: None, } @@ -562,6 +563,7 @@ def _get_search_results_with_http_info( response_type_map: Dict[int, Optional[str]] = { 200: "GrantaServerApiSearchSearchResponse", + 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 eca27dbb..60c74063 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 @@ -1537,10 +1537,19 @@ from .granta_server_api_search_date_time_datum_criterion import ( GrantaServerApiSearchDateTimeDatumCriterion, ) +from .granta_server_api_search_date_time_datum_exists_criterion import ( + GrantaServerApiSearchDateTimeDatumExistsCriterion, +) from .granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion from .granta_server_api_search_datum_exists_criterion import ( GrantaServerApiSearchDatumExistsCriterion, ) +from .granta_server_api_search_discrete_datum_exists_criterion import ( + GrantaServerApiSearchDiscreteDatumExistsCriterion, +) +from .granta_server_api_search_discrete_functional_datum_exists_criterion import ( + GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion, +) from .granta_server_api_search_discrete_functional_range_datum_criterion import ( GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion, ) @@ -1576,9 +1585,15 @@ ) from .granta_server_api_search_double_sorting_value import GrantaServerApiSearchDoubleSortingValue from .granta_server_api_search_file_datum_criterion import GrantaServerApiSearchFileDatumCriterion +from .granta_server_api_search_file_datum_exists_criterion import ( + GrantaServerApiSearchFileDatumExistsCriterion, +) from .granta_server_api_search_float_functional_datum_criterion import ( GrantaServerApiSearchFloatFunctionalDatumCriterion, ) +from .granta_server_api_search_float_functional_datum_exists_criterion import ( + GrantaServerApiSearchFloatFunctionalDatumExistsCriterion, +) from .granta_server_api_search_float_functional_graph_datum_criterion import ( GrantaServerApiSearchFloatFunctionalGraphDatumCriterion, ) @@ -1586,10 +1601,16 @@ from .granta_server_api_search_hyperlink_datum_criterion import ( GrantaServerApiSearchHyperlinkDatumCriterion, ) +from .granta_server_api_search_hyperlink_datum_exists_criterion import ( + GrantaServerApiSearchHyperlinkDatumExistsCriterion, +) from .granta_server_api_search_index_status import GrantaServerApiSearchIndexStatus from .granta_server_api_search_integer_datum_criterion import ( GrantaServerApiSearchIntegerDatumCriterion, ) +from .granta_server_api_search_integer_datum_exists_criterion import ( + GrantaServerApiSearchIntegerDatumExistsCriterion, +) from .granta_server_api_search_link_datum_criterion import GrantaServerApiSearchLinkDatumCriterion from .granta_server_api_search_link_exists_datum_criterion import ( GrantaServerApiSearchLinkExistsDatumCriterion, @@ -1613,13 +1634,22 @@ from .granta_server_api_search_logical_datum_criterion import ( GrantaServerApiSearchLogicalDatumCriterion, ) +from .granta_server_api_search_logical_datum_exists_criterion import ( + GrantaServerApiSearchLogicalDatumExistsCriterion, +) from .granta_server_api_search_long_sorting_value import GrantaServerApiSearchLongSortingValue from .granta_server_api_search_long_text_datum_criterion import ( GrantaServerApiSearchLongTextDatumCriterion, ) +from .granta_server_api_search_long_text_datum_exists_criterion import ( + GrantaServerApiSearchLongTextDatumExistsCriterion, +) from .granta_server_api_search_maths_functional_datum_criterion import ( GrantaServerApiSearchMathsFunctionalDatumCriterion, ) +from .granta_server_api_search_maths_functional_datum_exists_criterion import ( + GrantaServerApiSearchMathsFunctionalDatumExistsCriterion, +) from .granta_server_api_search_numeric_parameter_constraint import ( GrantaServerApiSearchNumericParameterConstraint, ) @@ -1628,8 +1658,17 @@ from .granta_server_api_search_picture_datum_criterion import ( GrantaServerApiSearchPictureDatumCriterion, ) +from .granta_server_api_search_picture_datum_exists_criterion import ( + GrantaServerApiSearchPictureDatumExistsCriterion, +) from .granta_server_api_search_point_datum_criterion import GrantaServerApiSearchPointDatumCriterion +from .granta_server_api_search_point_datum_exists_criterion import ( + GrantaServerApiSearchPointDatumExistsCriterion, +) from .granta_server_api_search_range_datum_criterion import GrantaServerApiSearchRangeDatumCriterion +from .granta_server_api_search_range_datum_exists_criterion import ( + GrantaServerApiSearchRangeDatumExistsCriterion, +) from .granta_server_api_search_record_ancestor_criterion import ( GrantaServerApiSearchRecordAncestorCriterion, ) @@ -1666,14 +1705,17 @@ from .granta_server_api_search_short_text_datum_criterion import ( GrantaServerApiSearchShortTextDatumCriterion, ) -from .granta_server_api_search_simple_datum_exists_criterion import ( - GrantaServerApiSearchSimpleDatumExistsCriterion, +from .granta_server_api_search_short_text_datum_exists_criterion import ( + GrantaServerApiSearchShortTextDatumExistsCriterion, ) from .granta_server_api_search_sort_criterion import GrantaServerApiSearchSortCriterion from .granta_server_api_search_sort_direction import GrantaServerApiSearchSortDirection from .granta_server_api_search_sort_type import GrantaServerApiSearchSortType from .granta_server_api_search_sorting_value import GrantaServerApiSearchSortingValue from .granta_server_api_search_string_sorting_value import GrantaServerApiSearchStringSortingValue +from .granta_server_api_search_tabular_datum_exists_criterion import ( + GrantaServerApiSearchTabularDatumExistsCriterion, +) from .granta_server_api_search_tabular_linking_value_criterion import ( GrantaServerApiSearchTabularLinkingValueCriterion, ) @@ -2286,8 +2328,11 @@ "GrantaServerApiSearchBoostByIdentity", "GrantaServerApiSearchCriterion", "GrantaServerApiSearchDateTimeDatumCriterion", + "GrantaServerApiSearchDateTimeDatumExistsCriterion", "GrantaServerApiSearchDatumCriterion", "GrantaServerApiSearchDatumExistsCriterion", + "GrantaServerApiSearchDiscreteDatumExistsCriterion", + "GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion", "GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion", "GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion", "GrantaServerApiSearchDiscreteGuidDatumCriterion", @@ -2301,12 +2346,16 @@ "GrantaServerApiSearchDiscreteTextValuesDatumCriterion", "GrantaServerApiSearchDoubleSortingValue", "GrantaServerApiSearchFileDatumCriterion", + "GrantaServerApiSearchFileDatumExistsCriterion", "GrantaServerApiSearchFloatFunctionalDatumCriterion", + "GrantaServerApiSearchFloatFunctionalDatumExistsCriterion", "GrantaServerApiSearchFloatFunctionalGraphDatumCriterion", "GrantaServerApiSearchFreeTextCriterion", "GrantaServerApiSearchHyperlinkDatumCriterion", + "GrantaServerApiSearchHyperlinkDatumExistsCriterion", "GrantaServerApiSearchIndexStatus", "GrantaServerApiSearchIntegerDatumCriterion", + "GrantaServerApiSearchIntegerDatumExistsCriterion", "GrantaServerApiSearchLinkDatumCriterion", "GrantaServerApiSearchLinkExistsDatumCriterion", "GrantaServerApiSearchLinkingValueMatchBehavior", @@ -2316,15 +2365,21 @@ "GrantaServerApiSearchLocalColumnNotApplicableCriterion", "GrantaServerApiSearchLocalRowsBehavior", "GrantaServerApiSearchLogicalDatumCriterion", + "GrantaServerApiSearchLogicalDatumExistsCriterion", "GrantaServerApiSearchLongSortingValue", "GrantaServerApiSearchLongTextDatumCriterion", + "GrantaServerApiSearchLongTextDatumExistsCriterion", "GrantaServerApiSearchMathsFunctionalDatumCriterion", + "GrantaServerApiSearchMathsFunctionalDatumExistsCriterion", "GrantaServerApiSearchNumericParameterConstraint", "GrantaServerApiSearchPagingOptions", "GrantaServerApiSearchParameterConstraint", "GrantaServerApiSearchPictureDatumCriterion", + "GrantaServerApiSearchPictureDatumExistsCriterion", "GrantaServerApiSearchPointDatumCriterion", + "GrantaServerApiSearchPointDatumExistsCriterion", "GrantaServerApiSearchRangeDatumCriterion", + "GrantaServerApiSearchRangeDatumExistsCriterion", "GrantaServerApiSearchRecordAncestorCriterion", "GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion", "GrantaServerApiSearchRecordListMemberCriterion", @@ -2339,12 +2394,13 @@ "GrantaServerApiSearchSearchResultsRequest", "GrantaServerApiSearchSearchableRecordProperty", "GrantaServerApiSearchShortTextDatumCriterion", - "GrantaServerApiSearchSimpleDatumExistsCriterion", + "GrantaServerApiSearchShortTextDatumExistsCriterion", "GrantaServerApiSearchSortCriterion", "GrantaServerApiSearchSortDirection", "GrantaServerApiSearchSortType", "GrantaServerApiSearchSortingValue", "GrantaServerApiSearchStringSortingValue", + "GrantaServerApiSearchTabularDatumExistsCriterion", "GrantaServerApiSearchTabularLinkingValueCriterion", "GrantaServerApiSearchTextMatchBehavior", "GrantaServerApiSelectionSearchesCreateSearchRequest", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py index 2d4d7782..1c239956 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_database.py @@ -61,38 +61,38 @@ class GrantaServerApiSchemaDatabase(ModelBase): Name of the property used as discriminator for subtypes. """ swagger_types: Dict[str, str] = { - "guid": "str", "is_locked": "bool", "is_read_only": "bool", "key": "str", - "name": "str", "status": "GrantaServerApiDatabaseStatus", "author": "str", "company": "str", "currency_code": "str", + "guid": "str", "index_in_sync": "bool", "index_out_of_date_duration": "str", "index_up_to_date": "bool", "is_access_controlled": "bool", + "name": "str", "notes": "str", "schema_version": "str", "version_guid": "str", } attribute_map: Dict[str, str] = { - "guid": "guid", "is_locked": "isLocked", "is_read_only": "isReadOnly", "key": "key", - "name": "name", "status": "status", "author": "author", "company": "company", "currency_code": "currencyCode", + "guid": "guid", "index_in_sync": "indexInSync", "index_out_of_date_duration": "indexOutOfDateDuration", "index_up_to_date": "indexUpToDate", "is_access_controlled": "isAccessControlled", + "name": "name", "notes": "notes", "schema_version": "schemaVersion", "version_guid": "versionGuid", @@ -107,19 +107,19 @@ class GrantaServerApiSchemaDatabase(ModelBase): def __init__( self, *, - guid: "str", is_locked: "bool", is_read_only: "bool", key: "str", - name: "str", status: "GrantaServerApiDatabaseStatus", author: "Union[str, None, Unset_Type]" = Unset, company: "Union[str, None, Unset_Type]" = Unset, currency_code: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, None, Unset_Type]" = Unset, index_in_sync: "Union[bool, None, Unset_Type]" = Unset, index_out_of_date_duration: "Union[str, None, Unset_Type]" = Unset, index_up_to_date: "Union[bool, None, Unset_Type]" = Unset, is_access_controlled: "Union[bool, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, notes: "Union[str, None, Unset_Type]" = Unset, schema_version: "Union[str, None, Unset_Type]" = Unset, version_guid: "Union[str, None, Unset_Type]" = Unset, @@ -128,19 +128,19 @@ def __init__( Parameters ---------- - guid: str is_locked: bool is_read_only: bool key: str - name: str status: GrantaServerApiDatabaseStatus author: str, optional company: str, optional currency_code: str, optional + guid: str, optional index_in_sync: bool, optional index_out_of_date_duration: str, optional index_up_to_date: bool, optional is_access_controlled: bool, optional + name: str, optional notes: str, optional schema_version: str, optional version_guid: str, optional @@ -151,16 +151,16 @@ def __init__( self._currency_code: Union[str, None, Unset_Type] = Unset self._is_access_controlled: Union[bool, None, Unset_Type] = Unset self._key: str - self._version_guid: Union[str, None, Unset_Type] = Unset self._status: GrantaServerApiDatabaseStatus self._is_read_only: bool self._is_locked: bool + self._name: Union[str, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._version_guid: Union[str, None, Unset_Type] = Unset self._index_in_sync: Union[bool, None, Unset_Type] = Unset self._index_up_to_date: Union[bool, None, Unset_Type] = Unset self._index_out_of_date_duration: Union[str, None, Unset_Type] = Unset self._schema_version: Union[str, None, Unset_Type] = Unset - self._name: str - self._guid: str if author is not Unset: self.author = author @@ -173,11 +173,15 @@ def __init__( if is_access_controlled is not Unset: self.is_access_controlled = is_access_controlled self.key = key - if version_guid is not Unset: - self.version_guid = version_guid self.status = status self.is_read_only = is_read_only self.is_locked = is_locked + if name is not Unset: + self.name = name + if guid is not Unset: + self.guid = guid + if version_guid is not Unset: + self.version_guid = version_guid if index_in_sync is not Unset: self.index_in_sync = index_in_sync if index_up_to_date is not Unset: @@ -186,8 +190,6 @@ def __init__( self.index_out_of_date_duration = index_out_of_date_duration if schema_version is not Unset: self.schema_version = schema_version - self.name = name - self.guid = guid @property def author(self) -> "Union[str, None, Unset_Type]": @@ -327,28 +329,6 @@ def key(self, key: "str") -> None: raise ValueError("Invalid value for 'key', must not be 'Unset'") self._key = key - @property - def version_guid(self) -> "Union[str, None, Unset_Type]": - """Gets the version_guid of this GrantaServerApiSchemaDatabase. - - Returns - ------- - Union[str, None, Unset_Type] - The version_guid of this GrantaServerApiSchemaDatabase. - """ - return self._version_guid - - @version_guid.setter - def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: - """Sets the version_guid of this GrantaServerApiSchemaDatabase. - - Parameters - ---------- - version_guid: Union[str, None, Unset_Type] - The version_guid of this GrantaServerApiSchemaDatabase. - """ - self._version_guid = version_guid - @property def status(self) -> "GrantaServerApiDatabaseStatus": """Gets the status of this GrantaServerApiSchemaDatabase. @@ -433,6 +413,72 @@ def is_locked(self, is_locked: "bool") -> None: raise ValueError("Invalid value for 'is_locked', must not be 'Unset'") self._is_locked = is_locked + @property + def name(self) -> "Union[str, None, Unset_Type]": + """Gets the name of this GrantaServerApiSchemaDatabase. + + Returns + ------- + Union[str, None, Unset_Type] + The name of this GrantaServerApiSchemaDatabase. + """ + return self._name + + @name.setter + def name(self, name: "Union[str, None, Unset_Type]") -> None: + """Sets the name of this GrantaServerApiSchemaDatabase. + + Parameters + ---------- + name: Union[str, None, Unset_Type] + The name of this GrantaServerApiSchemaDatabase. + """ + self._name = name + + @property + def guid(self) -> "Union[str, None, Unset_Type]": + """Gets the guid of this GrantaServerApiSchemaDatabase. + + Returns + ------- + Union[str, None, Unset_Type] + The guid of this GrantaServerApiSchemaDatabase. + """ + return self._guid + + @guid.setter + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: + """Sets the guid of this GrantaServerApiSchemaDatabase. + + Parameters + ---------- + guid: Union[str, None, Unset_Type] + The guid of this GrantaServerApiSchemaDatabase. + """ + self._guid = guid + + @property + def version_guid(self) -> "Union[str, None, Unset_Type]": + """Gets the version_guid of this GrantaServerApiSchemaDatabase. + + Returns + ------- + Union[str, None, Unset_Type] + The version_guid of this GrantaServerApiSchemaDatabase. + """ + return self._version_guid + + @version_guid.setter + def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: + """Sets the version_guid of this GrantaServerApiSchemaDatabase. + + Parameters + ---------- + version_guid: Union[str, None, Unset_Type] + The version_guid of this GrantaServerApiSchemaDatabase. + """ + self._version_guid = version_guid + @property def index_in_sync(self) -> "Union[bool, None, Unset_Type]": """Gets the index_in_sync of this GrantaServerApiSchemaDatabase. @@ -523,62 +569,6 @@ def schema_version(self, schema_version: "Union[str, None, Unset_Type]") -> None """ self._schema_version = schema_version - @property - def name(self) -> "str": - """Gets the name of this GrantaServerApiSchemaDatabase. - - Returns - ------- - str - The name of this GrantaServerApiSchemaDatabase. - """ - return self._name - - @name.setter - def name(self, name: "str") -> None: - """Sets the name of this GrantaServerApiSchemaDatabase. - - Parameters - ---------- - name: str - The name of this GrantaServerApiSchemaDatabase. - """ - # Field is not nullable - if name is None: - raise ValueError("Invalid value for 'name', must not be 'None'") - # Field is required - if name is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError("Invalid value for 'name', must not be 'Unset'") - self._name = name - - @property - def guid(self) -> "str": - """Gets the guid of this GrantaServerApiSchemaDatabase. - - Returns - ------- - str - The guid of this GrantaServerApiSchemaDatabase. - """ - return self._guid - - @guid.setter - def guid(self, guid: "str") -> None: - """Sets the guid of this GrantaServerApiSchemaDatabase. - - Parameters - ---------- - guid: str - The guid of this GrantaServerApiSchemaDatabase. - """ - # Field is not nullable - if guid is None: - raise ValueError("Invalid value for 'guid', must not be 'None'") - # Field is required - if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError("Invalid value for 'guid', must not be 'Unset'") - 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. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py index 9458e0d7..db1a8589 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_database.py @@ -61,29 +61,29 @@ class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): Name of the property used as discriminator for subtypes. """ swagger_types: Dict[str, str] = { - "guid": "str", "is_locked": "bool", "is_read_only": "bool", "key": "str", - "name": "str", "status": "GrantaServerApiDatabaseStatus", + "guid": "str", "index_in_sync": "bool", "index_out_of_date_duration": "str", "index_up_to_date": "bool", + "name": "str", "schema_version": "str", "version_guid": "str", } attribute_map: Dict[str, str] = { - "guid": "guid", "is_locked": "isLocked", "is_read_only": "isReadOnly", "key": "key", - "name": "name", "status": "status", + "guid": "guid", "index_in_sync": "indexInSync", "index_out_of_date_duration": "indexOutOfDateDuration", "index_up_to_date": "indexUpToDate", + "name": "name", "schema_version": "schemaVersion", "version_guid": "versionGuid", } @@ -97,15 +97,15 @@ class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): def __init__( self, *, - guid: "str", is_locked: "bool", is_read_only: "bool", key: "str", - name: "str", status: "GrantaServerApiDatabaseStatus", + guid: "Union[str, None, Unset_Type]" = Unset, index_in_sync: "Union[bool, None, Unset_Type]" = Unset, index_out_of_date_duration: "Union[str, None, Unset_Type]" = Unset, index_up_to_date: "Union[bool, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, schema_version: "Union[str, None, Unset_Type]" = Unset, version_guid: "Union[str, None, Unset_Type]" = Unset, ) -> None: @@ -113,36 +113,40 @@ def __init__( Parameters ---------- - guid: str is_locked: bool is_read_only: bool key: str - name: str status: GrantaServerApiDatabaseStatus + guid: str, optional index_in_sync: bool, optional index_out_of_date_duration: str, optional index_up_to_date: bool, optional + name: str, optional schema_version: str, optional version_guid: str, optional """ self._key: str - self._version_guid: Union[str, None, Unset_Type] = Unset self._status: GrantaServerApiDatabaseStatus self._is_read_only: bool self._is_locked: bool + self._name: Union[str, None, Unset_Type] = Unset + self._guid: Union[str, None, Unset_Type] = Unset + self._version_guid: Union[str, None, Unset_Type] = Unset self._index_in_sync: Union[bool, None, Unset_Type] = Unset self._index_up_to_date: Union[bool, None, Unset_Type] = Unset self._index_out_of_date_duration: Union[str, None, Unset_Type] = Unset self._schema_version: Union[str, None, Unset_Type] = Unset - self._name: str - self._guid: str self.key = key - if version_guid is not Unset: - self.version_guid = version_guid self.status = status self.is_read_only = is_read_only self.is_locked = is_locked + if name is not Unset: + self.name = name + if guid is not Unset: + self.guid = guid + if version_guid is not Unset: + self.version_guid = version_guid if index_in_sync is not Unset: self.index_in_sync = index_in_sync if index_up_to_date is not Unset: @@ -151,8 +155,6 @@ def __init__( self.index_out_of_date_duration = index_out_of_date_duration if schema_version is not Unset: self.schema_version = schema_version - self.name = name - self.guid = guid @property def key(self) -> "str": @@ -182,28 +184,6 @@ def key(self, key: "str") -> None: raise ValueError("Invalid value for 'key', must not be 'Unset'") self._key = key - @property - def version_guid(self) -> "Union[str, None, Unset_Type]": - """Gets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - - Returns - ------- - Union[str, None, Unset_Type] - The version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - """ - return self._version_guid - - @version_guid.setter - def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: - """Sets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - - Parameters - ---------- - version_guid: Union[str, None, Unset_Type] - The version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - """ - self._version_guid = version_guid - @property def status(self) -> "GrantaServerApiDatabaseStatus": """Gets the status of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. @@ -288,6 +268,72 @@ def is_locked(self, is_locked: "bool") -> None: raise ValueError("Invalid value for 'is_locked', must not be 'Unset'") self._is_locked = is_locked + @property + def name(self) -> "Union[str, None, Unset_Type]": + """Gets the name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + + Returns + ------- + Union[str, None, Unset_Type] + The name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + """ + return self._name + + @name.setter + def name(self, name: "Union[str, None, Unset_Type]") -> None: + """Sets the name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + + Parameters + ---------- + name: Union[str, None, Unset_Type] + The name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + """ + self._name = name + + @property + def guid(self) -> "Union[str, None, Unset_Type]": + """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + + Returns + ------- + Union[str, None, Unset_Type] + The guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + """ + return self._guid + + @guid.setter + def guid(self, guid: "Union[str, None, Unset_Type]") -> None: + """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + + Parameters + ---------- + guid: Union[str, None, Unset_Type] + The guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + """ + self._guid = guid + + @property + def version_guid(self) -> "Union[str, None, Unset_Type]": + """Gets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + + Returns + ------- + Union[str, None, Unset_Type] + The version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + """ + return self._version_guid + + @version_guid.setter + def version_guid(self, version_guid: "Union[str, None, Unset_Type]") -> None: + """Sets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + + Parameters + ---------- + version_guid: Union[str, None, Unset_Type] + The version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. + """ + self._version_guid = version_guid + @property def index_in_sync(self) -> "Union[bool, None, Unset_Type]": """Gets the index_in_sync of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. @@ -378,62 +424,6 @@ def schema_version(self, schema_version: "Union[str, None, Unset_Type]") -> None """ self._schema_version = schema_version - @property - def name(self) -> "str": - """Gets the name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - - Returns - ------- - str - The name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - """ - return self._name - - @name.setter - def name(self, name: "str") -> None: - """Sets the name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - - Parameters - ---------- - name: str - The name of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - """ - # Field is not nullable - if name is None: - raise ValueError("Invalid value for 'name', must not be 'None'") - # Field is required - if name is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError("Invalid value for 'name', must not be 'Unset'") - self._name = name - - @property - def guid(self) -> "str": - """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - - Returns - ------- - str - The guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - """ - return self._guid - - @guid.setter - def guid(self, guid: "str") -> None: - """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - - Parameters - ---------- - guid: str - The guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. - """ - # Field is not nullable - if guid is None: - raise ValueError("Invalid value for 'guid', must not be 'None'") - # Field is required - if guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError("Invalid value for 'guid', must not be 'Unset'") - 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. diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_exists_criterion.py new file mode 100644 index 00000000..616a272a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_date_time_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchDateTimeDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "dateTime", + ) -> None: + """GrantaServerApiSearchDateTimeDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchDateTimeDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchDateTimeDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchDateTimeDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchDateTimeDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchDateTimeDatumExistsCriterion): + 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/granta_server_api_search_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py index aeb998ac..ab9698a1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_exists_criterion.py @@ -69,8 +69,22 @@ class GrantaServerApiSearchDatumExistsCriterion(ModelBase): subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { + "integer".lower(): "#/components/schemas/GrantaServerApiSearchIntegerDatumExistsCriterion", + "point".lower(): "#/components/schemas/GrantaServerApiSearchPointDatumExistsCriterion", + "range".lower(): "#/components/schemas/GrantaServerApiSearchRangeDatumExistsCriterion", + "logical".lower(): "#/components/schemas/GrantaServerApiSearchLogicalDatumExistsCriterion", + "shortText".lower(): "#/components/schemas/GrantaServerApiSearchShortTextDatumExistsCriterion", + "longText".lower(): "#/components/schemas/GrantaServerApiSearchLongTextDatumExistsCriterion", + "dateTime".lower(): "#/components/schemas/GrantaServerApiSearchDateTimeDatumExistsCriterion", + "discrete".lower(): "#/components/schemas/GrantaServerApiSearchDiscreteDatumExistsCriterion", + "hyperlink".lower(): "#/components/schemas/GrantaServerApiSearchHyperlinkDatumExistsCriterion", + "file".lower(): "#/components/schemas/GrantaServerApiSearchFileDatumExistsCriterion", + "picture".lower(): "#/components/schemas/GrantaServerApiSearchPictureDatumExistsCriterion", "link".lower(): "#/components/schemas/GrantaServerApiSearchLinkExistsDatumCriterion", - "type".lower(): "#/components/schemas/GrantaServerApiSearchSimpleDatumExistsCriterion", + "floatFunctional".lower(): "#/components/schemas/GrantaServerApiSearchFloatFunctionalDatumExistsCriterion", + "discreteFunctional".lower(): "#/components/schemas/GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion", + "mathsFunctional".lower(): "#/components/schemas/GrantaServerApiSearchMathsFunctionalDatumExistsCriterion", + "tabular".lower(): "#/components/schemas/GrantaServerApiSearchTabularDatumExistsCriterion", } discriminator: Optional[str] = "type" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_datum_exists_criterion.py new file mode 100644 index 00000000..ce732502 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchDiscreteDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "discrete", + ) -> None: + """GrantaServerApiSearchDiscreteDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchDiscreteDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchDiscreteDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchDiscreteDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchDiscreteDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchDiscreteDatumExistsCriterion): + 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/granta_server_api_search_discrete_functional_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_datum_exists_criterion.py new file mode 100644 index 00000000..86761e4a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_datum_exists_criterion.py @@ -0,0 +1,154 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion( + GrantaServerApiSearchDatumExistsCriterion +): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "discreteFunctional", + ) -> None: + """GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion): + 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/granta_server_api_search_simple_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_exists_criterion.py similarity index 87% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_exists_criterion.py index bc347584..4e01f816 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_simple_datum_exists_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_file_datum_exists_criterion.py @@ -46,7 +46,7 @@ from . import * -class GrantaServerApiSearchSimpleDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): +class GrantaServerApiSearchFileDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -79,9 +79,9 @@ class GrantaServerApiSearchSimpleDatumExistsCriterion(GrantaServerApiSearchDatum def __init__( self, *, - type: "str" = "type", + type: "str" = "file", ) -> None: - """GrantaServerApiSearchSimpleDatumExistsCriterion - a model defined in Swagger + """GrantaServerApiSearchFileDatumExistsCriterion - a model defined in Swagger Parameters ---------- @@ -94,23 +94,23 @@ def __init__( @property def type(self) -> "str": - """Gets the type of this GrantaServerApiSearchSimpleDatumExistsCriterion. + """Gets the type of this GrantaServerApiSearchFileDatumExistsCriterion. Returns ------- str - The type of this GrantaServerApiSearchSimpleDatumExistsCriterion. + The type of this GrantaServerApiSearchFileDatumExistsCriterion. """ return self._type @type.setter def type(self, type: "str") -> None: - """Sets the type of this GrantaServerApiSearchSimpleDatumExistsCriterion. + """Sets the type of this GrantaServerApiSearchFileDatumExistsCriterion. Parameters ---------- type: str - The type of this GrantaServerApiSearchSimpleDatumExistsCriterion. + The type of this GrantaServerApiSearchFileDatumExistsCriterion. """ # Field is not nullable if type is None: @@ -142,7 +142,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiSearchSimpleDatumExistsCriterion): + if not isinstance(other, GrantaServerApiSearchFileDatumExistsCriterion): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_exists_criterion.py new file mode 100644 index 00000000..0297cd74 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_float_functional_datum_exists_criterion.py @@ -0,0 +1,154 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchFloatFunctionalDatumExistsCriterion( + GrantaServerApiSearchDatumExistsCriterion +): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "floatFunctional", + ) -> None: + """GrantaServerApiSearchFloatFunctionalDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchFloatFunctionalDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchFloatFunctionalDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchFloatFunctionalDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchFloatFunctionalDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchFloatFunctionalDatumExistsCriterion): + 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/granta_server_api_search_hyperlink_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_exists_criterion.py new file mode 100644 index 00000000..0cdfd4c5 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_hyperlink_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchHyperlinkDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "hyperlink", + ) -> None: + """GrantaServerApiSearchHyperlinkDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchHyperlinkDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchHyperlinkDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchHyperlinkDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchHyperlinkDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchHyperlinkDatumExistsCriterion): + 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/granta_server_api_search_integer_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_exists_criterion.py new file mode 100644 index 00000000..ff61705d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_integer_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchIntegerDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "integer", + ) -> None: + """GrantaServerApiSearchIntegerDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchIntegerDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchIntegerDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchIntegerDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchIntegerDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchIntegerDatumExistsCriterion): + 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/granta_server_api_search_logical_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_exists_criterion.py new file mode 100644 index 00000000..38b4b19d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_logical_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchLogicalDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "logical", + ) -> None: + """GrantaServerApiSearchLogicalDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchLogicalDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchLogicalDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchLogicalDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchLogicalDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchLogicalDatumExistsCriterion): + 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/granta_server_api_search_long_text_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_exists_criterion.py new file mode 100644 index 00000000..bbb05460 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_long_text_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchLongTextDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "longText", + ) -> None: + """GrantaServerApiSearchLongTextDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchLongTextDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchLongTextDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchLongTextDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchLongTextDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchLongTextDatumExistsCriterion): + 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/granta_server_api_search_maths_functional_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_exists_criterion.py new file mode 100644 index 00000000..e829dfa6 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_maths_functional_datum_exists_criterion.py @@ -0,0 +1,154 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchMathsFunctionalDatumExistsCriterion( + GrantaServerApiSearchDatumExistsCriterion +): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "mathsFunctional", + ) -> None: + """GrantaServerApiSearchMathsFunctionalDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchMathsFunctionalDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchMathsFunctionalDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchMathsFunctionalDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchMathsFunctionalDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchMathsFunctionalDatumExistsCriterion): + 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/granta_server_api_search_picture_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_exists_criterion.py new file mode 100644 index 00000000..6764d881 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_picture_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchPictureDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "picture", + ) -> None: + """GrantaServerApiSearchPictureDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchPictureDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchPictureDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchPictureDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchPictureDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchPictureDatumExistsCriterion): + 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/granta_server_api_search_point_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_exists_criterion.py new file mode 100644 index 00000000..da1c8d75 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_point_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchPointDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "point", + ) -> None: + """GrantaServerApiSearchPointDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchPointDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchPointDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchPointDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchPointDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchPointDatumExistsCriterion): + 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/granta_server_api_search_range_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_exists_criterion.py new file mode 100644 index 00000000..a3f6f148 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_range_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchRangeDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "range", + ) -> None: + """GrantaServerApiSearchRangeDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchRangeDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchRangeDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchRangeDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchRangeDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchRangeDatumExistsCriterion): + 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/granta_server_api_search_short_text_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_exists_criterion.py new file mode 100644 index 00000000..975e9754 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchShortTextDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "shortText", + ) -> None: + """GrantaServerApiSearchShortTextDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchShortTextDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchShortTextDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchShortTextDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchShortTextDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchShortTextDatumExistsCriterion): + 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/granta_server_api_search_tabular_datum_exists_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_datum_exists_criterion.py new file mode 100644 index 00000000..cb6e9fd6 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_tabular_datum_exists_criterion.py @@ -0,0 +1,152 @@ +# Copyright (C) 2023 - 2024 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, Dict, List, Optional, Union # noqa: F401 + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_exists_criterion import ( # noqa: F401 + GrantaServerApiSearchDatumExistsCriterion, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GrantaServerApiSearchTabularDatumExistsCriterion(GrantaServerApiSearchDatumExistsCriterion): + """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] = { + "type": "str", + } + + attribute_map: Dict[str, str] = { + "type": "type", + } + + subtype_mapping: Dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + type: "str" = "tabular", + ) -> None: + """GrantaServerApiSearchTabularDatumExistsCriterion - a model defined in Swagger + + Parameters + ---------- + type: str + """ + super().__init__() + self._type: str + + self.type = type + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchTabularDatumExistsCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchTabularDatumExistsCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchTabularDatumExistsCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchTabularDatumExistsCriterion. + """ + # Field is not nullable + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + # Field is required + if type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'type', must not be 'Unset'") + self._type = 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, GrantaServerApiSearchTabularDatumExistsCriterion): + 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/yaml/server-api.json b/yaml/server-api.json index b49aa321..8723a23f 100644 --- a/yaml/server-api.json +++ b/yaml/server-api.json @@ -62,45 +62,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 97": { + "Example 1": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 98": { + "Example 2": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 99": { + "Example 3": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 100": { + "Example 4": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 101": { + "Example 5": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "3fb56d34-c3d1-45bc-a885-e78c045d1c80", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 102": { + "Example 6": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "72449991-467e-4b17-9945-dd33427c60e1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 103": { + "Example 7": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "295bcaff-2902-4e24-bca5-797922f38209", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 104": { + "Example 8": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -109,45 +282,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 97": { + "Example 1": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 98": { + "Example 2": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 99": { + "Example 3": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 100": { + "Example 4": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 101": { + "Example 5": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "3fb56d34-c3d1-45bc-a885-e78c045d1c80", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 102": { + "Example 6": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "72449991-467e-4b17-9945-dd33427c60e1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 103": { + "Example 7": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "295bcaff-2902-4e24-bca5-797922f38209", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 104": { + "Example 8": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -156,45 +502,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 97": { + "Example 1": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 98": { + "Example 2": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 99": { + "Example 3": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 100": { + "Example 4": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 101": { + "Example 5": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "3fb56d34-c3d1-45bc-a885-e78c045d1c80", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 102": { + "Example 6": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "72449991-467e-4b17-9945-dd33427c60e1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 103": { + "Example 7": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "295bcaff-2902-4e24-bca5-797922f38209", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 104": { + "Example 8": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -203,45 +722,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 97": { + "Example 1": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 98": { + "Example 2": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 99": { + "Example 3": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 100": { + "Example 4": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 101": { + "Example 5": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"435619ff-8019-42f4-94ae-7e4f25ecfbc4","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "3fb56d34-c3d1-45bc-a885-e78c045d1c80", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 102": { + "Example 6": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6b8443d3-3b5f-4764-8867-391c47b4b281","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "72449991-467e-4b17-9945-dd33427c60e1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 103": { + "Example 7": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"fe126a9b-156e-4bf1-b6c7-0aab78f35776","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "295bcaff-2902-4e24-bca5-797922f38209", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 104": { + "Example 8": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } } @@ -331,45 +1023,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 105": { + "Example 9": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 106": { + "Example 10": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 107": { + "Example 11": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 108": { + "Example 12": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 109": { + "Example 13": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "ab2ac632-d51a-4496-9585-02c770e4bbbd", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 110": { + "Example 14": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "38c1b064-b43e-4582-81a5-5ce649dcaf7d", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 111": { + "Example 15": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "289f8d1c-aff9-4aa0-a503-ae25884618c9", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 112": { + "Example 16": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -378,45 +1243,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 105": { + "Example 9": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 106": { + "Example 10": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 107": { + "Example 11": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 108": { + "Example 12": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 109": { + "Example 13": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "ab2ac632-d51a-4496-9585-02c770e4bbbd", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 110": { + "Example 14": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "38c1b064-b43e-4582-81a5-5ce649dcaf7d", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 111": { + "Example 15": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "289f8d1c-aff9-4aa0-a503-ae25884618c9", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 112": { + "Example 16": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -425,45 +1463,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 105": { + "Example 9": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 106": { + "Example 10": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 107": { + "Example 11": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 108": { + "Example 12": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 109": { + "Example 13": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "ab2ac632-d51a-4496-9585-02c770e4bbbd", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 110": { + "Example 14": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "38c1b064-b43e-4582-81a5-5ce649dcaf7d", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 111": { + "Example 15": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "289f8d1c-aff9-4aa0-a503-ae25884618c9", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 112": { + "Example 16": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -472,45 +1683,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 105": { + "Example 9": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 106": { + "Example 10": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 107": { + "Example 11": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 108": { + "Example 12": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 109": { + "Example 13": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"5ba462e0-6a8d-45df-a1e8-b0e192d4cadb","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "ab2ac632-d51a-4496-9585-02c770e4bbbd", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 110": { + "Example 14": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"535420ec-c38a-4cd1-8daf-b7157af1e739","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "38c1b064-b43e-4582-81a5-5ce649dcaf7d", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 111": { + "Example 15": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"7d790dc0-7a7a-49f7-bc41-9b46f024526e","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "289f8d1c-aff9-4aa0-a503-ae25884618c9", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 112": { + "Example 16": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } } @@ -591,45 +1975,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 113": { + "Example 17": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 114": { + "Example 18": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 115": { + "Example 19": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 116": { + "Example 20": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 117": { + "Example 21": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1a2b097b-ba9e-4c3d-a63c-a24df1bc20f4", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 118": { + "Example 22": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "e1a5c5d3-0d3a-4096-ba91-0129f2df19aa", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 119": { + "Example 23": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "fa958e8c-8718-4a6b-bea6-933cb06d66dc", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 120": { + "Example 24": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -638,45 +2195,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 113": { + "Example 17": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 114": { + "Example 18": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 115": { + "Example 19": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 116": { + "Example 20": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 117": { + "Example 21": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1a2b097b-ba9e-4c3d-a63c-a24df1bc20f4", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 118": { + "Example 22": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "e1a5c5d3-0d3a-4096-ba91-0129f2df19aa", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 119": { + "Example 23": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "fa958e8c-8718-4a6b-bea6-933cb06d66dc", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 120": { + "Example 24": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -685,45 +2415,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 113": { + "Example 17": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 114": { + "Example 18": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 115": { + "Example 19": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 116": { + "Example 20": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 117": { + "Example 21": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1a2b097b-ba9e-4c3d-a63c-a24df1bc20f4", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 118": { + "Example 22": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "e1a5c5d3-0d3a-4096-ba91-0129f2df19aa", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 119": { + "Example 23": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "fa958e8c-8718-4a6b-bea6-933cb06d66dc", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 120": { + "Example 24": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -732,45 +2635,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 113": { + "Example 17": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 114": { + "Example 18": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 115": { + "Example 19": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 116": { + "Example 20": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 117": { + "Example 21": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"2ef4340a-640c-4de7-9fba-07b60fb1b050","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1a2b097b-ba9e-4c3d-a63c-a24df1bc20f4", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 118": { + "Example 22": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"62641a1f-077e-42e1-89b1-96b7529e20a8","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "e1a5c5d3-0d3a-4096-ba91-0129f2df19aa", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 119": { + "Example 23": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"6e0137c1-ff9a-46d5-b8a8-2a42863ba287","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "fa958e8c-8718-4a6b-bea6-933cb06d66dc", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 120": { + "Example 24": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } } @@ -827,45 +2903,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 122": { + "Example 26": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 123": { + "Example 27": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 124": { + "Example 28": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 125": { + "Example 29": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1db380a4-c60c-41d4-827d-fc735870d454", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 126": { + "Example 30": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "f60d08c8-c623-40a4-96b3-50f2ab0bfbd1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 127": { + "Example 31": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "c1c353e5-3392-4e4c-8998-43e245aeb7d1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 128": { + "Example 32": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -874,45 +3123,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 122": { + "Example 26": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 123": { + "Example 27": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 124": { + "Example 28": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 125": { + "Example 29": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1db380a4-c60c-41d4-827d-fc735870d454", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 126": { + "Example 30": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "f60d08c8-c623-40a4-96b3-50f2ab0bfbd1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 127": { + "Example 31": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "c1c353e5-3392-4e4c-8998-43e245aeb7d1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 128": { + "Example 32": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -921,45 +3343,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 122": { + "Example 26": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 123": { + "Example 27": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 124": { + "Example 28": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 125": { + "Example 29": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1db380a4-c60c-41d4-827d-fc735870d454", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 126": { + "Example 30": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "f60d08c8-c623-40a4-96b3-50f2ab0bfbd1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 127": { + "Example 31": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "c1c353e5-3392-4e4c-8998-43e245aeb7d1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 128": { + "Example 32": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } }, @@ -968,45 +3563,218 @@ "$ref": "#/components/schemas/GrantaServerApiAggregationsAggregationsRequest" }, "examples": { - "Example 121": { + "Example 25": { "summary": "Attribute exists aggregation", "description": "Simple aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute.", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"exists","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "exists", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 122": { + "Example 26": { "summary": "Numeric attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 8965 (Counter). Returns the count of records with a value for this attribute, along with its minimum and maximum values", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"type":"integer"},"identity":8965,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "type": "integer" + }, + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 123": { + "Example 27": { "summary": "Text attribute value aggregation", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns the count of records with a value for this attribute, along with a list of its 10 most common terms", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 124": { + "Example 28": { "summary": "Text attribute value aggregation with prefix", "description": "Aggregation in MI_TRAINING on an integer attribute with identity 10907 (CAS Number). Returns a list of the 10 most common terms in this attribute that start with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"st","type":"shortText"},"identity":10907,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "st", + "type": "shortText" + }, + "identity": 10907, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } }, - "Example 125": { + "Example 29": { "summary": "Free text aggregation", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in all attributes and tabular local columns that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"d8125972-ee2a-4839-af9c-9c2ba90f3ae8","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "1db380a4-c60c-41d4-827d-fc735870d454", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + } + ] + } }, - "Example 126": { + "Example 30": { "summary": "Free text aggregation on specific attributes", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in the attributes -4 (record name), -7 (short name) and 10907 (CAS Number) that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f55e9877-eaae-449e-9da3-2cb90474ffda","numberOfTerms":10,"prefix":"st","attributes":{"identities":[-4,-7,10907],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "f60d08c8-c623-40a4-96b3-50f2ab0bfbd1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "identities": [ + -4, + -7, + 10907 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "type": "text" + } + ] + } }, - "Example 127": { + "Example 31": { "summary": "Free text aggregation with excluded tabular columns", "description": "Aggregation in MI_TRAINING that returns a list of the 10 most common terms in tabular local columns excluding 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table that begin with the characters 'st' (case insensitive)", - "value": {"criterion":{"all":[],"any":[],"none":[],"type":"boolean"},"aggregationCriteria":[{"criterionGuid":"f54e28df-441b-4e1b-8718-a40228c3991a","numberOfTerms":10,"prefix":"st","attributes":{"filterOn":"none"},"localColumns":{"excludedIdentities":[],"excludedGuids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"exclude"},"type":"text"}]} + "value": { + "criterion": { + "all": [], + "any": [], + "none": [], + "type": "boolean" + }, + "aggregationCriteria": [ + { + "criterionGuid": "c1c353e5-3392-4e4c-8998-43e245aeb7d1", + "numberOfTerms": 10, + "prefix": "st", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "excludedIdentities": [], + "excludedGuids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "exclude" + }, + "type": "text" + } + ] + } }, - "Example 128": { + "Example 32": { "summary": "Aggregation with query", "description": "Aggregation in MI_TRAINING on a discrete attribute with identity 5876 (Rating), that only returns the common terms in records that also match the search criterion that the picture attribute 5872 (Issue Date) exists", - "value": {"criterion":{"innerCriterion":{"type":"dateTime"},"attributeCriterionType":"exists","identity":5872,"isMetaAttribute":false,"type":"attribute"},"aggregationCriteria":[{"attributeAggregationCriterionType":"value","innerCriterion":{"numberOfTerms":10,"prefix":"","type":"discreteText"},"identity":5876,"isMetaAttribute":false,"type":"attribute"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "dateTime" + }, + "attributeCriterionType": "exists", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + "aggregationCriteria": [ + { + "attributeAggregationCriterionType": "value", + "innerCriterion": { + "numberOfTerms": 10, + "prefix": "", + "type": "discreteText" + }, + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ] + } } } } @@ -1125,15 +3893,23 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 25": { + "Example 1": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } }, - "Example 26": { + "Example 2": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } } } } @@ -1222,15 +3998,23 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 27": { + "Example 3": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } }, - "Example 28": { + "Example 4": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } } } } @@ -1319,15 +4103,23 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 29": { + "Example 5": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } }, - "Example 30": { + "Example 6": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } } } } @@ -1407,15 +4199,23 @@ "$ref": "#/components/schemas/GrantaServerApiDataDatum" }, "examples": { - "Example 31": { + "Example 7": { "summary": "Integer datum.", "description": "Example response for an integer datum with a value of 7.", - "value": {"datumType":"integer","value":7,"notApplicable":"applicable"} + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } }, - "Example 32": { + "Example 8": { "summary": "Logical datum.", "description": "Example response for a logical datum with a value of 'true'", - "value": {"datumType":"logical","value":true,"notApplicable":"applicable"} + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } } } } @@ -2517,70 +5317,460 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 40": { + "Example 1": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "00000144-0001-4fff-8fff-dd92ffff0000" + }, + { + "attributeType": "simple", + "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" + } + ], + "recordProperties": [ + "fullName", + "recordColor" + ], + "recordHistoryIdentities": [ + 8925, + 11331 + ] + } }, - "Example 41": { + "Example 2": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 42": { + "Example 3": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 43": { + "Example 4": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": true, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120738 + ] + } }, - "Example 44": { + "Example 5": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "include", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 45": { + "Example 6": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "exclude", + "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120483 + ] + } }, - "Example 46": { + "Example 7": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "dynamicLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 121939 + ] + } }, - "Example 47": { + "Example 8": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 48": { + "Example 9": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "rollUpType": "mean", + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 49": { + "Example 10": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 50": { + "Example 11": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 51": { + "Example 12": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + } + ], + "linkedRecordsExportBehavior": { + "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", + "linkedRecordsCriterion": { + "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", + "type": "subset" + } + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 52": { + "Example 13": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "summaryRollUpType": "listDistinct", + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" + } + ], + "linkedRecordsExportBehavior": { + "summaryRollUpType": "listDistinct" + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } } } }, @@ -2589,70 +5779,460 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 40": { + "Example 1": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "00000144-0001-4fff-8fff-dd92ffff0000" + }, + { + "attributeType": "simple", + "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" + } + ], + "recordProperties": [ + "fullName", + "recordColor" + ], + "recordHistoryIdentities": [ + 8925, + 11331 + ] + } }, - "Example 41": { + "Example 2": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 42": { + "Example 3": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 43": { + "Example 4": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": true, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120738 + ] + } }, - "Example 44": { + "Example 5": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "include", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 45": { + "Example 6": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "exclude", + "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120483 + ] + } }, - "Example 46": { + "Example 7": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "dynamicLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 121939 + ] + } }, - "Example 47": { + "Example 8": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 48": { + "Example 9": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "rollUpType": "mean", + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 49": { + "Example 10": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 50": { + "Example 11": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 51": { + "Example 12": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + } + ], + "linkedRecordsExportBehavior": { + "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", + "linkedRecordsCriterion": { + "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", + "type": "subset" + } + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 52": { + "Example 13": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "summaryRollUpType": "listDistinct", + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" + } + ], + "linkedRecordsExportBehavior": { + "summaryRollUpType": "listDistinct" + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } } } }, @@ -2661,70 +6241,460 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 40": { + "Example 1": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "00000144-0001-4fff-8fff-dd92ffff0000" + }, + { + "attributeType": "simple", + "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" + } + ], + "recordProperties": [ + "fullName", + "recordColor" + ], + "recordHistoryIdentities": [ + 8925, + 11331 + ] + } }, - "Example 41": { + "Example 2": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 42": { + "Example 3": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 43": { + "Example 4": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": true, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120738 + ] + } }, - "Example 44": { + "Example 5": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "include", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 45": { + "Example 6": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "exclude", + "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120483 + ] + } }, - "Example 46": { + "Example 7": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "dynamicLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 121939 + ] + } }, - "Example 47": { + "Example 8": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 48": { + "Example 9": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "rollUpType": "mean", + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 49": { + "Example 10": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 50": { + "Example 11": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 51": { + "Example 12": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + } + ], + "linkedRecordsExportBehavior": { + "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", + "linkedRecordsCriterion": { + "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", + "type": "subset" + } + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 52": { + "Example 13": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "summaryRollUpType": "listDistinct", + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" + } + ], + "linkedRecordsExportBehavior": { + "summaryRollUpType": "listDistinct" + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } } } }, @@ -2733,70 +6703,460 @@ "$ref": "#/components/schemas/GrantaServerApiDataExportDataExportRequest" }, "examples": { - "Example 40": { + "Example 1": { "summary": "Data Export", "description": "This example demonstrates how to export data for attributes 'Shape factor' and 'Young's modulus' from the 'MaterialUniverse' records 'Alumino Silicate - 1720' and '250 Maraging Steel' in database 'MI Training'.", - "value": {"attributes":[{"attributeType":"simple","guid":"00000144-0001-4fff-8fff-dd92ffff0000"},{"attributeType":"simple","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"}],"recordProperties":["fullName","recordColor"],"recordHistoryIdentities":[8925,11331]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "00000144-0001-4fff-8fff-dd92ffff0000" + }, + { + "attributeType": "simple", + "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" + } + ], + "recordProperties": [ + "fullName", + "recordColor" + ], + "recordHistoryIdentities": [ + 8925, + 11331 + ] + } }, - "Example 41": { + "Example 2": { "summary": "Linked Records Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 42": { + "Example 3": { "summary": "Linked Records Export - no target specified", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. This export does not specify the target of the link group (database, table), so the one defined in the schema will be used as default instead.", - "value": {"attributes":[{"localData":[],"attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 43": { + "Example 4": { "summary": "Linked Records Export - In Reversed Direction", "description": "This example demonstrates how to export linked records from the 'Tensile Test Data' record 'MTS-615721' in database 'MI Training', following the record link group 'Metals Pedigree', which is the reverse of link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"ad27baf0-42e9-4136-bc96-9dbbf116e265","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":true,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120738]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "ad27baf0-42e9-4136-bc96-9dbbf116e265", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": true, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120738 + ] + } }, - "Example 44": { + "Example 5": { "summary": "Linked Records Export - include indirect links", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data' including indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"include","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "include", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 45": { + "Example 6": { "summary": "Linked Records Export - exclude indirect links", "description": "This example demonstrates how to export linked records from the 'Tensile Statistical Data' record '300°F' in database 'MI Training', following the record link group 'Design Data' excluding indirectly linked records. By default the behavior of indirect links is inherited from the link definition.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"exclude","guid":"0aa93d4c-1393-4cf5-b172-3855349ef42c"}],"recordProperties":["fullName"],"recordHistoryIdentities":[120483]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "exclude", + "guid": "0aa93d4c-1393-4cf5-b172-3855349ef42c" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 120483 + ] + } }, - "Example 46": { + "Example 7": { "summary": "Linked Records Export - Dynamic Link", "description": "This example demonstrates how to export linked records from the 'Composite Pedigree' record 'LBU14' in database 'MI Training', following the dynamic record link group 'Tensile Test Data'.", - "value": {"attributes":[{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"dynamicLink","exportInReversedDirection":false,"recordProperties":["fullName"],"indirectLinksBehavior":"fromLinkDefinition","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"}],"recordProperties":["fullName"],"recordHistoryIdentities":[121939]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "dynamicLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName" + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 121939 + ] + } }, - "Example 47": { + "Example 8": { "summary": "Linked Data Export", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' and 'Test Temperature'.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 48": { + "Example 9": { "summary": "Linked Data Export - Rollup", "description": "This example demonstrates how to export linked records from the 'Metals Pedigree' record 'Batch 921' in database 'MI Training', following the record link group 'Tensile Test Data'. It includes the linked records' full name and color, and data for attributes 'Young's Modulus (11-axis)' with 'Mean' rollup and 'Test Temperature' with 'Max' rollup.", - "value": {"attributes":[{"attributeType":"simple","guid":"a93a36c1-78d6-4254-b245-c7445d1038da"},{"localData":[],"targetTableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","attributeType":"link","linkAttributeType":"recordLink","exportInReversedDirection":false,"recordProperties":["fullName","recordColor"],"attributes":[{"rollUpType":"mean","attributeType":"simple","guid":"086c31a6-b047-4ee1-bdb7-ce66ea9e9b46"},{"rollUpType":"max","attributeType":"simple","guid":"b3503337-8287-4946-b312-2100fb51779d"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"ac20ee4d-9ad2-4e39-91bc-668b0570904f"}],"recordProperties":["tableName","fullName"],"recordHistoryIdentities":[120139]} + "value": { + "attributes": [ + { + "attributeType": "simple", + "guid": "a93a36c1-78d6-4254-b245-c7445d1038da" + }, + { + "localData": [], + "targetTableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "attributeType": "link", + "linkAttributeType": "recordLink", + "exportInReversedDirection": false, + "recordProperties": [ + "fullName", + "recordColor" + ], + "attributes": [ + { + "rollUpType": "mean", + "attributeType": "simple", + "guid": "086c31a6-b047-4ee1-bdb7-ce66ea9e9b46" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "b3503337-8287-4946-b312-2100fb51779d" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "ac20ee4d-9ad2-4e39-91bc-668b0570904f" + } + ], + "recordProperties": [ + "tableName", + "fullName" + ], + "recordHistoryIdentities": [ + 120139 + ] + } }, - "Example 49": { + "Example 10": { "summary": "Tabular Data Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 50": { + "Example 11": { "summary": "Tabular Data Export - no target specified", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It includes the local column 'Amount', the linked attribute 'Chemical name' (in the 'Restricted substances' table), and the linked column 'Effective date' from the 'Legislations restricting its use' tabular attribute. This export does not specify the tabular targets (database, table and attribute), so the ones defined in the schema will be used as defaults instead.", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"localData":[],"attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"b48b1749-63e3-4233-8c4d-8d5857442955"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"}],"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "localData": [], + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "b48b1749-63e3-4233-8c4d-8d5857442955" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } + ], + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 51": { + "Example 12": { "summary": "Tabular Data Filtered Export", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.Only rows where there is a linked record in the 'All Substances' subset will be returned ", - "value": {"attributes":[{"localData":[{"attributeType":"simple","guid":"089b6f3e-02bb-4f66-ab9e-0e6961f4d69e"}],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"}],"linkedRecordsExportBehavior":{"tabularRowBehavior":"onlyRowsWithVisibleLinkedRecords","linkedRecordsCriterion":{"subsetGuid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9","type":"subset"}},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [ + { + "attributeType": "simple", + "guid": "089b6f3e-02bb-4f66-ab9e-0e6961f4d69e" + } + ], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + } + ], + "linkedRecordsExportBehavior": { + "tabularRowBehavior": "onlyRowsWithVisibleLinkedRecords", + "linkedRecordsCriterion": { + "subsetGuid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9", + "type": "subset" + } + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } }, - "Example 52": { + "Example 13": { "summary": "Tabular Data With Summary Row and Tabular Rollup", "description": "This example demonstrates how to export tabular data from the 'Material Universe' record 'Barium silicate' in database 'MI Training', from the tabular attribute 'Restricted substances associated with this material'.It will include a tabular rollup of the maximum of the 'SVHC under REACH', and a summary row of the linked records and their chemical names", - "value": {"attributes":[{"localData":[],"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","attributeType":"link","linkAttributeType":"tabularAttribute","exportInReversedDirection":false,"attributes":[{"summaryRollUpType":"listDistinct","attributeType":"simple","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},{"rollUpType":"max","attributeType":"simple","guid":"ed238f84-fe8f-4cdc-a07d-82d358462b32"}],"linkedRecordsExportBehavior":{"summaryRollUpType":"listDistinct"},"indirectLinksBehavior":"fromLinkDefinition","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}],"recordProperties":["fullName"],"recordHistoryIdentities":[8930]} + "value": { + "attributes": [ + { + "localData": [], + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "attributeType": "link", + "linkAttributeType": "tabularAttribute", + "exportInReversedDirection": false, + "attributes": [ + { + "summaryRollUpType": "listDistinct", + "attributeType": "simple", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + { + "rollUpType": "max", + "attributeType": "simple", + "guid": "ed238f84-fe8f-4cdc-a07d-82d358462b32" + } + ], + "linkedRecordsExportBehavior": { + "summaryRollUpType": "listDistinct" + }, + "indirectLinksBehavior": "fromLinkDefinition", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ], + "recordProperties": [ + "fullName" + ], + "recordHistoryIdentities": [ + 8930 + ] + } } } } @@ -4198,15 +8558,24 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 7": { + "Example 1": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["MI BoM Analyzer"]} + "value": { + "appNames": [ + "MI BoM Analyzer" + ] + } }, - "Example 8": { + "Example 2": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["RS Reports","Sustainability Analytics"]} + "value": { + "appNames": [ + "RS Reports", + "Sustainability Analytics" + ] + } } } }, @@ -4215,15 +8584,24 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 7": { + "Example 1": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["MI BoM Analyzer"]} + "value": { + "appNames": [ + "MI BoM Analyzer" + ] + } }, - "Example 8": { + "Example 2": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["RS Reports","Sustainability Analytics"]} + "value": { + "appNames": [ + "RS Reports", + "Sustainability Analytics" + ] + } } } }, @@ -4232,15 +8610,24 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 7": { + "Example 1": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["MI BoM Analyzer"]} + "value": { + "appNames": [ + "MI BoM Analyzer" + ] + } }, - "Example 8": { + "Example 2": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["RS Reports","Sustainability Analytics"]} + "value": { + "appNames": [ + "RS Reports", + "Sustainability Analytics" + ] + } } } }, @@ -4249,15 +8636,24 @@ "$ref": "#/components/schemas/GrantaServerApiAppNameLicenseCheckoutRequest" }, "examples": { - "Example 7": { + "Example 1": { "summary": "License request", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses required to use BoM Analyzer are checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["MI BoM Analyzer"]} + "value": { + "appNames": [ + "MI BoM Analyzer" + ] + } }, - "Example 8": { + "Example 2": { "summary": "License request with multiple application names", "description": "This example demonstrates a request to the endpoint to check if the relevant licenses for each application name have been checked out. This endpoint currently does not support all application names and unsupported names will not be returned in the response.", - "value": {"appNames":["RS Reports","Sustainability Analytics"]} + "value": { + "appNames": [ + "RS Reports", + "Sustainability Analytics" + ] + } } } } @@ -4761,15 +9157,27 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } }, - "Example 8": { + "Example 2": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } } } }, @@ -4778,15 +9186,27 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } }, - "Example 8": { + "Example 2": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } } } }, @@ -4795,15 +9215,27 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } }, - "Example 8": { + "Example 2": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } } } }, @@ -4812,15 +9244,27 @@ "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Update the name of list", "description": "Update the name of a list", - "value": {"name":"new name","published":false,"awaitingApproval":false,"internalUse":false} + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } }, - "Example 8": { + "Example 2": { "summary": "Update everything for a list", "description": "Update everything for a list", - "value": {"name":"new name","description":"new description","notes":"new notes","published":false,"awaitingApproval":true,"internalUse":true} + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } } } } @@ -5660,7 +10104,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + } } } }, @@ -5728,7 +10199,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + } } } }, @@ -5771,30 +10269,60 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordType":"record","name":"New Record Name"} + "value": { + "recordType": "record", + "name": "New Record Name" + } }, - "Example 17": { + "Example 2": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} + "value": { + "recordType": "record", + "name": "Alumino Silicate - 1756", + "shortName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } }, - "Example 18": { + "Example 3": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "545ed643-d9a3-4b68-9d4e-c5b59b7b0e8f" + } }, - "Example 19": { + "Example 4": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordColor": "lime" + } }, - "Example 20": { + "Example 5": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "recordType": "generic", + "name": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } } } }, @@ -5803,30 +10331,60 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordType":"record","name":"New Record Name"} + "value": { + "recordType": "record", + "name": "New Record Name" + } }, - "Example 17": { + "Example 2": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} + "value": { + "recordType": "record", + "name": "Alumino Silicate - 1756", + "shortName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } }, - "Example 18": { + "Example 3": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "545ed643-d9a3-4b68-9d4e-c5b59b7b0e8f" + } }, - "Example 19": { + "Example 4": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordColor": "lime" + } }, - "Example 20": { + "Example 5": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "recordType": "generic", + "name": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } } } }, @@ -5835,30 +10393,60 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordType":"record","name":"New Record Name"} + "value": { + "recordType": "record", + "name": "New Record Name" + } }, - "Example 17": { + "Example 2": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} + "value": { + "recordType": "record", + "name": "Alumino Silicate - 1756", + "shortName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } }, - "Example 18": { + "Example 3": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "545ed643-d9a3-4b68-9d4e-c5b59b7b0e8f" + } }, - "Example 19": { + "Example 4": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordColor": "lime" + } }, - "Example 20": { + "Example 5": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "recordType": "generic", + "name": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } } } }, @@ -5867,30 +10455,60 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Record History", "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordType":"record","name":"New Record Name"} + "value": { + "recordType": "record", + "name": "New Record Name" + } }, - "Example 17": { + "Example 2": { "summary": "Record History with Tree Name and Parent", "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"record","name":"Alumino Silicate - 1756","shortName":"1756","parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"}} + "value": { + "recordType": "record", + "name": "Alumino Silicate - 1756", + "shortName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } }, - "Example 18": { + "Example 3": { "summary": "Record History for a 'folder' with specified guid", "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"guid":"a5d9f937-06a4-4965-b6c5-c3d7ce86209f"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "545ed643-d9a3-4b68-9d4e-c5b59b7b0e8f" + } }, - "Example 19": { + "Example 4": { "summary": "Record History with specified color", "description": "This example demonstrates how to create a new 'folder' with a specified color under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"folder","name":"Borosilicate","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordColor":"lime"} + "value": { + "recordType": "folder", + "name": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordColor": "lime" + } }, - "Example 20": { + "Example 5": { "summary": "Record History for a 'generic'", "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"recordType":"generic","name":"Soda-zinc","parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "recordType": "generic", + "name": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } } } } @@ -5904,7 +10522,29 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"New Alumino Silicate Record","guid":"e1f05761-0b01-4d05-9d4d-cb3d45bc52d4"}],"subsets":[],"guid":"03824261-9af1-4644-949b-731257444f6c"} + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "New Alumino Silicate Record", + "guid": "849e2fb3-10d4-43fe-888a-7c82a134ee10" + } + ], + "subsets": [], + "guid": "05f77df0-5f46-4ec8-84c8-c1dda0265b95" + } } } }, @@ -5962,12 +10602,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 14": { + "Example 2": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5979,12 +10623,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 14": { + "Example 2": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -5996,12 +10644,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 14": { + "Example 2": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6013,12 +10665,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 14": { + "Example 2": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6035,7 +10691,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + } } } }, @@ -6047,25 +10730,70 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 31": { + "Example 1": { "summary": "New parent is not a folder.", - "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} + "value": { + "message": "Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } }, - "Example 32": { + "Example 2": { "summary": "New parent is not in the same table.", - "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} + "value": { + "message": "Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } }, - "Example 33": { + "Example 3": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", - "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} + "value": { + "message": "Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } }, - "Example 34": { + "Example 4": { "summary": "New parent is withdrawn.", - "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} + "value": { + "message": "Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } }, - "Example 35": { + "Example 5": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", - "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} + "value": { + "message": "Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.", + "code": 400, + "errors": [ + { + "message": "New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.", + "reason": "ParentIsADescendant" + } + ] + } } } } @@ -6113,12 +10841,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 15": { + "Example 3": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 16": { + "Example 4": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6130,12 +10862,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 15": { + "Example 3": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 16": { + "Example 4": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6147,12 +10883,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 15": { + "Example 3": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 16": { + "Example 4": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6164,12 +10904,16 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" }, "examples": { - "Example 15": { + "Example 3": { "summary": "Move Record History", "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"}} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } }, - "Example 16": { + "Example 4": { "summary": "Move Record History to be directly under the Table.", "description": "In order to move an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", "value": {} @@ -6186,7 +10930,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"} + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + } } } }, @@ -6198,25 +10969,70 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" }, "examples": { - "Example 36": { + "Example 6": { "summary": "New parent is not a folder.", - "value": {"message":"Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} + "value": { + "message": "Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } }, - "Example 37": { + "Example 7": { "summary": "New parent is not in the same table.", - "value": {"message":"Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} + "value": { + "message": "Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } }, - "Example 38": { + "Example 8": { "summary": "The 'short name' of the record to be moved is not unique under the new parent.", - "value": {"message":"Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} + "value": { + "message": "Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } }, - "Example 39": { + "Example 9": { "summary": "New parent is withdrawn.", - "value": {"message":"Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} + "value": { + "message": "Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } }, - "Example 40": { + "Example 10": { "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", - "value": {"message":"Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.","code":400,"errors":[{"message":"New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.","reason":"ParentIsADescendant"}]} + "value": { + "message": "Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.", + "code": 400, + "errors": [ + { + "message": "New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.", + "reason": "ParentIsADescendant" + } + ] + } } } } @@ -6273,20 +11089,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 20": { + "Example 2": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 21": { + "Example 3": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } }, @@ -6295,20 +11125,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 20": { + "Example 2": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 21": { + "Example 3": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } }, @@ -6317,20 +11161,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 20": { + "Example 2": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 21": { + "Example 3": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } }, @@ -6339,20 +11197,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 20": { + "Example 2": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 21": { + "Example 3": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } } @@ -6366,7 +11238,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"9c879223-cedf-4977-9bb7-0cf6759b5c0c"} + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "14eb1b3d-ac79-479f-a399-9679e624e8d9" + } } } }, @@ -6378,21 +11277,57 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 25": { + "Example 1": { "summary": "New parent is not a folder.", - "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} + "value": { + "message": "Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } }, - "Example 26": { + "Example 2": { "summary": "New parent is not in the same table.", - "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} + "value": { + "message": "Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } }, - "Example 27": { + "Example 3": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", - "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} + "value": { + "message": "Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } }, - "Example 28": { + "Example 4": { "summary": "New parent is withdrawn.", - "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} + "value": { + "message": "Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } } } } @@ -6440,20 +11375,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 22": { + "Example 4": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 23": { + "Example 5": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 24": { + "Example 6": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } }, @@ -6462,20 +11411,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 22": { + "Example 4": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 23": { + "Example 5": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 24": { + "Example 6": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } }, @@ -6484,20 +11447,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 22": { + "Example 4": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 23": { + "Example 5": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 24": { + "Example 6": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } }, @@ -6506,20 +11483,34 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" }, "examples": { - "Example 22": { + "Example 4": { "summary": "Copy Record History - no name change - add new record to the new parent's subsets", "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromParent"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromParent" + } }, - "Example 23": { + "Example 5": { "summary": "Copy Record History - with name change - add new record to the original record's subsets", "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"newParent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"subsetOption":"fromOriginalRecord","newShortName":"Short name for new record"} + "value": { + "newParent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "subsetOption": "fromOriginalRecord", + "newShortName": "Short name for new record" + } }, - "Example 24": { + "Example 6": { "summary": "Copy Record History to be directly under the Table - don't copy any subsets.", "description": "In order to copy an existing record history to be at the top of the 'record tree' i.e directly under the 'Table' then do not specify the 'NewParent' property.", - "value": {"subsetOption":"none","newShortName":"Short name for new record"} + "value": { + "subsetOption": "none", + "newShortName": "Short name for new record" + } } } } @@ -6533,7 +11524,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" }, - "example": {"isFolder":false,"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"parent":{"guid":"f92315e2-f836-4c2e-aba1-6d8a1a49e8a3"},"recordVersions":[{"versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"}],"subsets":[{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"}],"guid":"3d5dea2e-5010-4fe7-9b33-363cd6e5f965"} + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "9a4db73f-b53d-41fd-9c8f-2d7b3384030b" + } } } }, @@ -6545,21 +11563,57 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" }, "examples": { - "Example 29": { + "Example 5": { "summary": "New parent is not a folder.", - "value": {"message":"Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.","code":400,"errors":[{"message":"New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.","reason":"ParentNotAFolder"}]} + "value": { + "message": "Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } }, - "Example 30": { + "Example 6": { "summary": "New parent is not in the same table.", - "value": {"message":"Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.","code":400,"errors":[{"message":"New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.","reason":"ParentNotInSameTable"}]} + "value": { + "message": "Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } }, - "Example 31": { + "Example 7": { "summary": "The 'short name' of the record to be copied is not unique under the new parent.", - "value": {"message":"Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.","code":400,"errors":[{"message":"A record with the short name 'Sheet' already exists in the parent folder.","reason":"ShortNameExistsInFolder"}]} + "value": { + "message": "Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } }, - "Example 32": { + "Example 8": { "summary": "New parent is withdrawn.", - "value": {"message":"Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.","code":400,"errors":[{"message":"New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.","reason":"ParentIsWithdrawn"}]} + "value": { + "message": "Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } } } } @@ -6641,7 +11695,30 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": { + "recordHistory": { + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Alumino silicate - 1720", + "recordColor": "fuchsia", + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } } } }, @@ -6709,7 +11786,30 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": { + "recordHistory": { + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Alumino silicate - 1720", + "recordColor": "fuchsia", + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } } } }, @@ -6795,7 +11895,30 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"ba22491d-b470-42cf-80d7-531ff81b1583"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Alumino silicate - 1720","recordColor":"fuchsia","versionNumber":1,"versionState":"unversioned","name":"Alumino silicate - 1720","guid":"00000026-000e-4fff-8fff-dd92ffff0000"} + "example": { + "recordHistory": { + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Alumino silicate - 1720", + "recordColor": "fuchsia", + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } } } }, @@ -6912,7 +12035,30 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"released","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": { + "recordHistory": { + "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Arsenic trioxide [1327-53-3]", + "recordColor": "red", + "versionNumber": 1, + "versionState": "released", + "name": "Arsenic trioxide [1327-53-3]", + "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" + } } } }, @@ -6924,18 +12070,46 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Invalid version state.", "description": "Only unreleased record versions can be released.", - "value": {"message":"Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} + "value": { + "message": "Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Released'.", + "reason": "invalidVersionState", + "versionState": "released" + } + ] + } }, - "Example 11": { + "Example 2": { "summary": "Table is not version controlled.", - "value": {"message":"Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} + "value": { + "message": "Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } }, - "Example 12": { + "Example 3": { "summary": "Parent is not released.", - "value": {"message":"Cannot release record version 'efa34b75-3e92-4a8d-a65e-5373f7a03c25'.","code":400,"errors":[{"message":"Tree parent is not in a valid state to perform this operation.","reason":"invalidParentState"}]} + "value": { + "message": "Cannot release record version '510452d1-cdb8-4982-b3eb-df015ce7e5c8'.", + "code": 400, + "errors": [ + { + "message": "Tree parent is not in a valid state to perform this operation.", + "reason": "invalidParentState" + } + ] + } } } } @@ -7002,7 +12176,30 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": { + "recordHistory": { + "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Arsenic trioxide [1327-53-3]", + "recordColor": "red", + "versionNumber": 2, + "versionState": "unreleased", + "name": "Arsenic trioxide [1327-53-3]", + "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" + } } } }, @@ -7014,18 +12211,52 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlGetModifiableRecordVersionControlException" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Invalid version state.", "description": "A new version can only be created from the latest released or withdrawn record version.", - "value": {"message":"Cannot create a new version from the record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Superseded'.","reason":"invalidVersionState","versionState":"superseded"}]} + "value": { + "message": "Cannot create a new version from the record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Superseded'.", + "reason": "invalidVersionState", + "versionState": "superseded" + } + ] + } }, - "Example 11": { + "Example 2": { "summary": "Table is not version controlled.", - "value": {"message":"Cannot create a new version from the record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} + "value": { + "message": "Cannot create a new version from the record version '00000026-000e-4fff-8fff-dd92ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } }, - "Example 12": { + "Example 3": { "summary": "Record version is not the latest version.", - "value": {"message":"Cannot create a new version from the record version 'fb7b51d6-1795-46e6-b0a3-868c94a2db38'.","code":400,"errors":[{"message":"There is a newer version.","reason":"notTheLatestVersion","newerVersion":{"versionNumber":2,"versionState":"unreleased","name":"Arsenic trioxide [1327-53-3] - new version","guid":"c97fba0d-0f3c-46db-b9ad-cb932b723fa4"}}]} + "value": { + "message": "Cannot create a new version from the record version '64d212f8-fbc0-4313-8c8d-90f454cb37e7'.", + "code": 400, + "errors": [ + { + "message": "There is a newer version.", + "reason": "notTheLatestVersion", + "newerVersion": { + "versionNumber": 2, + "versionState": "unreleased", + "name": "Arsenic trioxide [1327-53-3] - new version", + "guid": "11c22419-d452-4b41-aa0d-b2075c078039" + } + } + ] + } } } } @@ -7092,7 +12323,30 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" }, - "example": {"recordHistory":{"guid":"0a0a07f6-20d8-4292-a275-a7385398d8a2"},"table":{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"},"databaseKey":"MI_TRAINING","createdByUser":"A User","createdDate":"2018-01-01T00:00:00-05:00","lastModifiedByUser":"A User","lastModifiedDate":"2018-01-02T00:00:00-05:00","recordType":"record","shortName":"Arsenic trioxide [1327-53-3]","recordColor":"red","versionNumber":1,"versionState":"withdrawn","name":"Arsenic trioxide [1327-53-3]","guid":"e1a72a7e-155e-47f9-b6c9-285fd5d3288a"} + "example": { + "recordHistory": { + "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Arsenic trioxide [1327-53-3]", + "recordColor": "red", + "versionNumber": 1, + "versionState": "withdrawn", + "name": "Arsenic trioxide [1327-53-3]", + "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" + } } } }, @@ -7104,14 +12358,33 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Invalid version state.", "description": "Only released record versions can be withdrawn.", - "value": {"message":"Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.","code":400,"errors":[{"message":"Invalid version state 'Unreleased'.","reason":"invalidVersionState","versionState":"unreleased"}]} + "value": { + "message": "Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Unreleased'.", + "reason": "invalidVersionState", + "versionState": "unreleased" + } + ] + } }, - "Example 8": { + "Example 2": { "summary": "Table is not version controlled.", - "value": {"message":"Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} + "value": { + "message": "Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } } } } @@ -7242,125 +12515,342 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 73": { + "Example 1": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date" + } }, - "Example 74": { + "Example 2": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date (guid)", + "guid": "5e4c899c-aa59-4c30-881a-4dec4bd90236" + } }, - "Example 75": { + "Example 3": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": false, + "defaultThresholdType": "isOneOf", + "name": "Used material type" + } }, - "Example 76": { + "Example 4": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": true, + "defaultThresholdType": "isOneOf", + "name": "Appropriate material types" + } }, - "Example 77": { + "Example 5": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} + "value": { + "type": "file", + "defaultThresholdType": "exists", + "name": "Details PDF" + } }, - "Example 78": { + "Example 6": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} + "value": { + "type": "hyperlink", + "defaultThresholdType": "exists", + "name": "Supplier website" + } }, - "Example 79": { + "Example 7": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} + "value": { + "type": "integer", + "isUnique": false, + "defaultThresholdType": "atLeast", + "name": "Number of batches" + } }, - "Example 80": { + "Example 8": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} + "value": { + "type": "integer", + "isUnique": true, + "defaultThresholdType": "atLeast", + "name": "Batch ID Number" + } }, - "Example 81": { + "Example 9": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} + "value": { + "type": "logical", + "defaultThresholdType": "equal", + "name": "Inspected" + } }, - "Example 82": { + "Example 10": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} + "value": { + "type": "longText", + "defaultThresholdType": "exists", + "name": "Long Description" + } }, - "Example 83": { + "Example 11": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} + "value": { + "type": "picture", + "defaultThresholdType": "exists", + "name": "Photo" + } }, - "Example 84": { + "Example 12": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} + "value": { + "type": "point", + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "name": "My Shape factor" + } }, - "Example 85": { + "Example 13": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} + "value": { + "type": "point", + "isMultiValued": false, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Mass" + } }, - "Example 86": { + "Example 14": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} + "value": { + "type": "point", + "isMultiValued": true, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Observed masses" + } }, - "Example 87": { + "Example 15": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "defaultThresholdType": "atLeast", + "name": "Max ratio" + } }, - "Example 88": { + "Example 16": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} + "value": { + "type": "range", + "defaultThresholdType": "atLeast", + "name": "Average permeability" + } }, - "Example 89": { + "Example 17": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} + "value": { + "type": "range", + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Boiling point" + } }, - "Example 90": { + "Example 18": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "name": "Label" + } }, - "Example 91": { + "Example 19": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} + "value": { + "type": "shortText", + "isUnique": true, + "defaultThresholdType": "exists", + "name": "Serial number" + } }, - "Example 92": { + "Example 20": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "aboutAttribute": { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + "name": "Short Label" + } }, - "Example 93": { + "Example 21": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} + "value": { + "type": "floatFunctional", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + } + ], + "isRange": true, + "defaultThresholdType": "atLeast", + "name": "Electrical resistance with temperature" + } }, - "Example 94": { + "Example 22": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} + "value": { + "type": "discreteFunctional", + "discreteType": { + "guid": "0000000c-0006-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ], + "defaultThresholdType": "equal", + "name": "Environmental resistance" + } }, - "Example 95": { + "Example 23": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} + "value": { + "type": "mathsFunctional", + "unit": { + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + ], + "expressions": [ + { + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } + ], + "allowExtrapolation": false, + "isRange": false, + "allowAllCompatibleExpressions": false, + "allowAnonymousExpressions": false, + "defaultThresholdType": "equal", + "name": "Fatigue strength model" + } }, - "Example 96": { + "Example 24": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": true, + "hideUnlinkedRows": true, + "tabularColumns": [ + { + "columnType": "localLogical", + "defaultThresholdType": "contains", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Comments" + }, + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Substance" + }, + { + "columnType": "linkedColumn", + "linkedColumn": { + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "min", + "summaryRowRollUpType": "list", + "name": "Rating" + } + ], + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "defaultThresholdType": "exists", + "name": "Restricted Substances" + } } } }, @@ -7369,125 +12859,342 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 73": { + "Example 1": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date" + } }, - "Example 74": { + "Example 2": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date (guid)", + "guid": "5e4c899c-aa59-4c30-881a-4dec4bd90236" + } }, - "Example 75": { + "Example 3": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": false, + "defaultThresholdType": "isOneOf", + "name": "Used material type" + } }, - "Example 76": { + "Example 4": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": true, + "defaultThresholdType": "isOneOf", + "name": "Appropriate material types" + } }, - "Example 77": { + "Example 5": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} + "value": { + "type": "file", + "defaultThresholdType": "exists", + "name": "Details PDF" + } }, - "Example 78": { + "Example 6": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} + "value": { + "type": "hyperlink", + "defaultThresholdType": "exists", + "name": "Supplier website" + } }, - "Example 79": { + "Example 7": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} + "value": { + "type": "integer", + "isUnique": false, + "defaultThresholdType": "atLeast", + "name": "Number of batches" + } }, - "Example 80": { + "Example 8": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} + "value": { + "type": "integer", + "isUnique": true, + "defaultThresholdType": "atLeast", + "name": "Batch ID Number" + } }, - "Example 81": { + "Example 9": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} + "value": { + "type": "logical", + "defaultThresholdType": "equal", + "name": "Inspected" + } }, - "Example 82": { + "Example 10": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} + "value": { + "type": "longText", + "defaultThresholdType": "exists", + "name": "Long Description" + } }, - "Example 83": { + "Example 11": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} + "value": { + "type": "picture", + "defaultThresholdType": "exists", + "name": "Photo" + } }, - "Example 84": { + "Example 12": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} + "value": { + "type": "point", + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "name": "My Shape factor" + } }, - "Example 85": { + "Example 13": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} + "value": { + "type": "point", + "isMultiValued": false, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Mass" + } }, - "Example 86": { + "Example 14": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} + "value": { + "type": "point", + "isMultiValued": true, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Observed masses" + } }, - "Example 87": { + "Example 15": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "defaultThresholdType": "atLeast", + "name": "Max ratio" + } }, - "Example 88": { + "Example 16": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} + "value": { + "type": "range", + "defaultThresholdType": "atLeast", + "name": "Average permeability" + } }, - "Example 89": { + "Example 17": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} + "value": { + "type": "range", + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Boiling point" + } }, - "Example 90": { + "Example 18": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "name": "Label" + } }, - "Example 91": { + "Example 19": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} + "value": { + "type": "shortText", + "isUnique": true, + "defaultThresholdType": "exists", + "name": "Serial number" + } }, - "Example 92": { + "Example 20": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "aboutAttribute": { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + "name": "Short Label" + } }, - "Example 93": { + "Example 21": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} + "value": { + "type": "floatFunctional", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + } + ], + "isRange": true, + "defaultThresholdType": "atLeast", + "name": "Electrical resistance with temperature" + } }, - "Example 94": { + "Example 22": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} + "value": { + "type": "discreteFunctional", + "discreteType": { + "guid": "0000000c-0006-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ], + "defaultThresholdType": "equal", + "name": "Environmental resistance" + } }, - "Example 95": { + "Example 23": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} + "value": { + "type": "mathsFunctional", + "unit": { + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + ], + "expressions": [ + { + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } + ], + "allowExtrapolation": false, + "isRange": false, + "allowAllCompatibleExpressions": false, + "allowAnonymousExpressions": false, + "defaultThresholdType": "equal", + "name": "Fatigue strength model" + } }, - "Example 96": { + "Example 24": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": true, + "hideUnlinkedRows": true, + "tabularColumns": [ + { + "columnType": "localLogical", + "defaultThresholdType": "contains", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Comments" + }, + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Substance" + }, + { + "columnType": "linkedColumn", + "linkedColumn": { + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "min", + "summaryRowRollUpType": "list", + "name": "Rating" + } + ], + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "defaultThresholdType": "exists", + "name": "Restricted Substances" + } } } }, @@ -7496,125 +13203,342 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 73": { + "Example 1": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date" + } }, - "Example 74": { + "Example 2": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date (guid)", + "guid": "5e4c899c-aa59-4c30-881a-4dec4bd90236" + } }, - "Example 75": { + "Example 3": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": false, + "defaultThresholdType": "isOneOf", + "name": "Used material type" + } }, - "Example 76": { + "Example 4": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": true, + "defaultThresholdType": "isOneOf", + "name": "Appropriate material types" + } }, - "Example 77": { + "Example 5": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} + "value": { + "type": "file", + "defaultThresholdType": "exists", + "name": "Details PDF" + } }, - "Example 78": { + "Example 6": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} + "value": { + "type": "hyperlink", + "defaultThresholdType": "exists", + "name": "Supplier website" + } }, - "Example 79": { + "Example 7": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} + "value": { + "type": "integer", + "isUnique": false, + "defaultThresholdType": "atLeast", + "name": "Number of batches" + } }, - "Example 80": { + "Example 8": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} + "value": { + "type": "integer", + "isUnique": true, + "defaultThresholdType": "atLeast", + "name": "Batch ID Number" + } }, - "Example 81": { + "Example 9": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} + "value": { + "type": "logical", + "defaultThresholdType": "equal", + "name": "Inspected" + } }, - "Example 82": { + "Example 10": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} + "value": { + "type": "longText", + "defaultThresholdType": "exists", + "name": "Long Description" + } }, - "Example 83": { + "Example 11": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} + "value": { + "type": "picture", + "defaultThresholdType": "exists", + "name": "Photo" + } }, - "Example 84": { + "Example 12": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} + "value": { + "type": "point", + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "name": "My Shape factor" + } }, - "Example 85": { + "Example 13": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} + "value": { + "type": "point", + "isMultiValued": false, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Mass" + } }, - "Example 86": { + "Example 14": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} + "value": { + "type": "point", + "isMultiValued": true, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Observed masses" + } }, - "Example 87": { + "Example 15": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "defaultThresholdType": "atLeast", + "name": "Max ratio" + } }, - "Example 88": { + "Example 16": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} + "value": { + "type": "range", + "defaultThresholdType": "atLeast", + "name": "Average permeability" + } }, - "Example 89": { + "Example 17": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} + "value": { + "type": "range", + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Boiling point" + } }, - "Example 90": { + "Example 18": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "name": "Label" + } }, - "Example 91": { + "Example 19": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} + "value": { + "type": "shortText", + "isUnique": true, + "defaultThresholdType": "exists", + "name": "Serial number" + } }, - "Example 92": { + "Example 20": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "aboutAttribute": { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + "name": "Short Label" + } }, - "Example 93": { + "Example 21": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} + "value": { + "type": "floatFunctional", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + } + ], + "isRange": true, + "defaultThresholdType": "atLeast", + "name": "Electrical resistance with temperature" + } }, - "Example 94": { + "Example 22": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} + "value": { + "type": "discreteFunctional", + "discreteType": { + "guid": "0000000c-0006-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ], + "defaultThresholdType": "equal", + "name": "Environmental resistance" + } }, - "Example 95": { + "Example 23": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} + "value": { + "type": "mathsFunctional", + "unit": { + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + ], + "expressions": [ + { + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } + ], + "allowExtrapolation": false, + "isRange": false, + "allowAllCompatibleExpressions": false, + "allowAnonymousExpressions": false, + "defaultThresholdType": "equal", + "name": "Fatigue strength model" + } }, - "Example 96": { + "Example 24": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": true, + "hideUnlinkedRows": true, + "tabularColumns": [ + { + "columnType": "localLogical", + "defaultThresholdType": "contains", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Comments" + }, + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Substance" + }, + { + "columnType": "linkedColumn", + "linkedColumn": { + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "min", + "summaryRowRollUpType": "list", + "name": "Rating" + } + ], + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "defaultThresholdType": "exists", + "name": "Restricted Substances" + } } } }, @@ -7623,125 +13547,342 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute" }, "examples": { - "Example 73": { + "Example 1": { "summary": "Date-time attribute", "description": "This example demonstrates how to create a new date-time attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date" + } }, - "Example 74": { + "Example 2": { "summary": "Date-time attribute with guid", "description": "This example demonstrates how to create a new date-time attribute with a specified guid for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The same thing can be done for all attribute types.", - "value": {"type":"dateTime","defaultThresholdType":"atMost","name":"Delivery date (guid)","guid":"e801c52a-7c94-41ae-a458-ba1c3de0fc17"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atMost", + "name": "Delivery date (guid)", + "guid": "5e4c899c-aa59-4c30-881a-4dec4bd90236" + } }, - "Example 75": { + "Example 3": { "summary": "Discrete attribute - simple", "description": "This example demonstrates how to create a new discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":false,"defaultThresholdType":"isOneOf","name":"Used material type"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": false, + "defaultThresholdType": "isOneOf", + "name": "Used material type" + } }, - "Example 76": { + "Example 4": { "summary": "Discrete attribute - multi-valued", "description": "This example demonstrates how to create a multi-valued discrete attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000), using the 'Material type' discrete type, from the MI_Training database. You can change the attribute back to a single-valued one as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","discreteType":{"guid":"2ba638a6-b807-4480-a388-f1b5637489b2"},"isMultiValued":true,"defaultThresholdType":"isOneOf","name":"Appropriate material types"} + "value": { + "type": "discrete", + "discreteType": { + "guid": "2ba638a6-b807-4480-a388-f1b5637489b2" + }, + "isMultiValued": true, + "defaultThresholdType": "isOneOf", + "name": "Appropriate material types" + } }, - "Example 77": { + "Example 5": { "summary": "File attribute", "description": "This example demonstrates how to create a new file attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"file","defaultThresholdType":"exists","name":"Details PDF"} + "value": { + "type": "file", + "defaultThresholdType": "exists", + "name": "Details PDF" + } }, - "Example 78": { + "Example 6": { "summary": "Hyperlink attribute", "description": "This example demonstrates how to create a new hyperlink attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"hyperlink","defaultThresholdType":"exists","name":"Supplier website"} + "value": { + "type": "hyperlink", + "defaultThresholdType": "exists", + "name": "Supplier website" + } }, - "Example 79": { + "Example 7": { "summary": "Integer attribute", "description": "This example demonstrates how to create a new integer attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":false,"defaultThresholdType":"atLeast","name":"Number of batches"} + "value": { + "type": "integer", + "isUnique": false, + "defaultThresholdType": "atLeast", + "name": "Number of batches" + } }, - "Example 80": { + "Example 8": { "summary": "Integer attribute - unique", "description": "This example demonstrates how to create a new integer attribute which is constrained to have unique values for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"integer","isUnique":true,"defaultThresholdType":"atLeast","name":"Batch ID Number"} + "value": { + "type": "integer", + "isUnique": true, + "defaultThresholdType": "atLeast", + "name": "Batch ID Number" + } }, - "Example 81": { + "Example 9": { "summary": "Logical attribute", "description": "This example demonstrates how to create a new logical attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"logical","defaultThresholdType":"equal","name":"Inspected"} + "value": { + "type": "logical", + "defaultThresholdType": "equal", + "name": "Inspected" + } }, - "Example 82": { + "Example 10": { "summary": "Long text attribute", "description": "This example demonstrates how to create a new long text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"longText","defaultThresholdType":"exists","name":"Long Description"} + "value": { + "type": "longText", + "defaultThresholdType": "exists", + "name": "Long Description" + } }, - "Example 83": { + "Example 11": { "summary": "Picture attribute", "description": "This example demonstrates how to create a new picture attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"picture","defaultThresholdType":"exists","name":"Photo"} + "value": { + "type": "picture", + "defaultThresholdType": "exists", + "name": "Photo" + } }, - "Example 84": { + "Example 12": { "summary": "Point attribute - simple unitless", "description": "This example demonstrates how to create a new point attribute to represent a unitless single-valued property for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"defaultThresholdType":"atLeast","name":"My Shape factor"} + "value": { + "type": "point", + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "name": "My Shape factor" + } }, - "Example 85": { + "Example 13": { "summary": "Point attribute - simple with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a single-valued property with the unit of 'kg' from the MI_Training database.", - "value": {"type":"point","isMultiValued":false,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Mass"} + "value": { + "type": "point", + "isMultiValued": false, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Mass" + } }, - "Example 86": { + "Example 14": { "summary": "Point attribute - multi-valued with unit", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a multi-valued property with the unit of 'kg' from the MI_Training database. You can later change the attribute back to single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Observed masses"} + "value": { + "type": "point", + "isMultiValued": true, + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Observed masses" + } }, - "Example 87": { + "Example 15": { "summary": "Point attribute - multi-valued with parameters", "description": "This example demonstrates how to create a new point attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a parameterized multi-valued property. In this case, a unitless property with 'Temperature' parameter from the the MI_Training database", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"defaultThresholdType":"atLeast","name":"Max ratio"} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "defaultThresholdType": "atLeast", + "name": "Max ratio" + } }, - "Example 88": { + "Example 16": { "summary": "Range attribute - unitless", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = {MiTraining.MaterialUniverseTableGuid}) from the MI_Training database to represent a unitless range value.", - "value": {"type":"range","defaultThresholdType":"atLeast","name":"Average permeability"} + "value": { + "type": "range", + "defaultThresholdType": "atLeast", + "name": "Average permeability" + } }, - "Example 89": { + "Example 17": { "summary": "Range attribute - with unit", "description": "This example demonstrates how to create a new range attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) to represent a range value with the unit 'K' from the MI_Training database.", - "value": {"type":"range","unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","name":"Boiling point"} + "value": { + "type": "range", + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "name": "Boiling point" + } }, - "Example 90": { + "Example 18": { "summary": "Short text attribute", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","name":"Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "name": "Label" + } }, - "Example 91": { + "Example 19": { "summary": "Short text attribute - unique", "description": "This example demonstrates how to create a new short text attribute for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database which is constrained to be unique.", - "value": {"type":"shortText","isUnique":true,"defaultThresholdType":"exists","name":"Serial number"} + "value": { + "type": "shortText", + "isUnique": true, + "defaultThresholdType": "exists", + "name": "Serial number" + } }, - "Example 92": { + "Example 20": { "summary": "Short text meta-attribute", "description": "This example demonstrates how to create a short text meta-attribute for the existing 'EPS Value' attribute in the MaterialUniverse (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) table of the MI_Training database. Any attribute type can be used for meta-attributes.", - "value": {"type":"shortText","isUnique":false,"defaultThresholdType":"exists","aboutAttribute":{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},"name":"Short Label"} + "value": { + "type": "shortText", + "isUnique": false, + "defaultThresholdType": "exists", + "aboutAttribute": { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + "name": "Short Label" + } }, - "Example 93": { + "Example 21": { "summary": "Float functional attribute", "description": "This example demonstrates how to create a new float functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"floatFunctional","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},"defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"}],"isRange":true,"defaultThresholdType":"atLeast","name":"Electrical resistance with temperature"} + "value": { + "type": "floatFunctional", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + } + ], + "isRange": true, + "defaultThresholdType": "atLeast", + "name": "Electrical resistance with temperature" + } }, - "Example 94": { + "Example 22": { "summary": "Discrete functional attribute", "description": "This example demonstrates how to create a new discrete functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"discreteFunctional","discreteType":{"guid":"0000000c-0006-4fff-8fff-0000ffff0000"},"attributeParameters":[{"parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}],"defaultThresholdType":"equal","name":"Environmental resistance"} + "value": { + "type": "discreteFunctional", + "discreteType": { + "guid": "0000000c-0006-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ], + "defaultThresholdType": "equal", + "name": "Environmental resistance" + } }, - "Example 95": { + "Example 23": { "summary": "Maths functional attribute", "description": "This example demonstrates how to create a new maths functional attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"mathsFunctional","unit":{"guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"expressions":[{"guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}],"allowExtrapolation":false,"isRange":false,"allowAllCompatibleExpressions":false,"allowAnonymousExpressions":false,"defaultThresholdType":"equal","name":"Fatigue strength model"} + "value": { + "type": "mathsFunctional", + "unit": { + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + ], + "expressions": [ + { + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } + ], + "allowExtrapolation": false, + "isRange": false, + "allowAllCompatibleExpressions": false, + "allowAnonymousExpressions": false, + "defaultThresholdType": "equal", + "name": "Fatigue strength model" + } }, - "Example 96": { + "Example 24": { "summary": "Tabular attribute", "description": "This example demonstrates how to create a new tabular attribute for the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":true,"hideUnlinkedRows":true,"tabularColumns":[{"columnType":"localLogical","defaultThresholdType":"contains","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","name":"Comments"},{"columnType":"linkedAttribute","linkedAttribute":{"guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"list","summaryRowRollUpType":"list","name":"Substance"},{"columnType":"linkedColumn","linkedColumn":{"guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":true,"summaryRowEnabled":true,"rollUpType":"min","summaryRowRollUpType":"list","name":"Rating"}],"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"defaultThresholdType":"exists","name":"Restricted Substances"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": true, + "hideUnlinkedRows": true, + "tabularColumns": [ + { + "columnType": "localLogical", + "defaultThresholdType": "contains", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Comments" + }, + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "name": "Substance" + }, + { + "columnType": "linkedColumn", + "linkedColumn": { + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": true, + "summaryRowEnabled": true, + "rollUpType": "min", + "summaryRowRollUpType": "list", + "name": "Rating" + } + ], + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "defaultThresholdType": "exists", + "name": "Restricted Substances" + } } } } @@ -7756,25 +13897,198 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 65": { + "Example 5": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "DAT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Casting Date", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": { + "fr": "Casting Date French Display Name" + }, + "name": "Casting Date", + "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" + } }, - "Example 66": { + "Example 6": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "discrete", + "discreteType": { + "name": "MU Durability", + "guid": "00000083-0006-4fff-8fff-0000ffff0000" + }, + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "helpPath": "html/attributenotes/metals.html", + "info": { + "typeCode": "DCT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Metals", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Metals", + "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 67": { + "Example 7": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"8805fc79-ee58-4f92-8e33-2323d63a916b"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "range", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "RNG", + "chartable": true, + "expressionable": true, + "linkable": true, + "extendedName": "Tensile strength", + "isMetaAttribute": false, + "orderedMetaAttributes": [ + { + "name": "Tensile strength [Notes]", + "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" + } + ], + "standardNames": [ + { + "name": "Tensile strength", + "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [ + { + "name": "Source of data (MaterialUniverse)", + "guid": "4469ba23-0b2d-45f0-9873-0bdd4dd4e5a9" + } + ], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 68": { + "Example 8": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": false, + "hideUnlinkedRows": true, + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "type": "shortText", + "name": "Chemical name", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Substance name", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "localRange", + "defaultThresholdType": "atLeast", + "unit": { + "symbol": "%", + "guid": "00000005-0013-4fff-8fff-0000ffff0000" + }, + "showAsLink": false, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Amount", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "linkedColumn", + "linkedAttribute": { + "type": "link", + "name": "Legislations restricting its use", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + }, + "linkedColumn": { + "name": "Legislation rating", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "EH&S rating", + "rollUpType": "list", + "summaryRowRollUpType": "min", + "displayNames": {}, + "name": "Legislation rating", + "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + } + ], + "defaultThresholdType": "exists", + "info": { + "typeCode": "TABL", + "chartable": false, + "expressionable": false, + "linkable": false, + "extendedName": "Restricted substances associated with this material", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "standardNames": [ + { + "name": "Restricted substances in this item", + "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Restricted substances associated with this material", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } } } } @@ -7860,25 +14174,198 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "DAT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Casting Date", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": { + "fr": "Casting Date French Display Name" + }, + "name": "Casting Date", + "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" + } }, - "Example 14": { + "Example 2": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "discrete", + "discreteType": { + "name": "MU Durability", + "guid": "00000083-0006-4fff-8fff-0000ffff0000" + }, + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "helpPath": "html/attributenotes/metals.html", + "info": { + "typeCode": "DCT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Metals", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Metals", + "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 15": { + "Example 3": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"60aa67e1-1b7c-449d-a312-12388245a947"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "range", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "RNG", + "chartable": true, + "expressionable": true, + "linkable": true, + "extendedName": "Tensile strength", + "isMetaAttribute": false, + "orderedMetaAttributes": [ + { + "name": "Tensile strength [Notes]", + "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" + } + ], + "standardNames": [ + { + "name": "Tensile strength", + "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [ + { + "name": "Source of data (MaterialUniverse)", + "guid": "bc2e1f97-be92-4a24-aefa-f864bebf197c" + } + ], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 16": { + "Example 4": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": false, + "hideUnlinkedRows": true, + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "type": "shortText", + "name": "Chemical name", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Substance name", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "localRange", + "defaultThresholdType": "atLeast", + "unit": { + "symbol": "%", + "guid": "00000005-0013-4fff-8fff-0000ffff0000" + }, + "showAsLink": false, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Amount", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "linkedColumn", + "linkedAttribute": { + "type": "link", + "name": "Legislations restricting its use", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + }, + "linkedColumn": { + "name": "Legislation rating", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "EH&S rating", + "rollUpType": "list", + "summaryRowRollUpType": "min", + "displayNames": {}, + "name": "Legislation rating", + "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + } + ], + "defaultThresholdType": "exists", + "info": { + "typeCode": "TABL", + "chartable": false, + "expressionable": false, + "linkable": false, + "extendedName": "Restricted substances associated with this material", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "standardNames": [ + { + "name": "Restricted substances in this item", + "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Restricted substances associated with this material", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } } } } @@ -7930,75 +14417,235 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 43": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","name":"Metals (updated)"} + "value": { + "type": "discrete", + "name": "Metals (updated)" + } }, - "Example 44": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} + "value": { + "type": "discrete", + "guid": "12345678-0013-4fff-8fff-0000ffff0000" + } }, - "Example 45": { + "Example 3": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} + "value": { + "type": "discrete", + "helpPath": "html/attributenotes/metals.html" + } }, - "Example 46": { + "Example 4": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","defaultThresholdType":"equal"} + "value": { + "type": "discrete", + "defaultThresholdType": "equal" + } }, - "Example 47": { + "Example 5": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","isMultiValued":true} + "value": { + "type": "discrete", + "isMultiValued": true + } }, - "Example 48": { + "Example 6": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true} + "value": { + "type": "shortText", + "isUnique": true + } }, - "Example 49": { + "Example 7": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true} + "value": { + "type": "point", + "isMultiValued": true + } }, - "Example 50": { + "Example 8": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ] + } }, - "Example 51": { + "Example 9": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} + "value": { + "type": "range", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + } + } }, - "Example 52": { + "Example 10": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} + "value": { + "type": "shortText", + "isUnique": true, + "name": "Grain size (updated)" + } }, - "Example 53": { + "Example 11": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} + "value": { + "type": "shortText", + "aboutAttribute": { + "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + } }, - "Example 54": { + "Example 12": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} + "value": { + "type": "floatFunctional", + "attributeParameters": [ + { + "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + }, + { + "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", + "interpolationMethod": "linear", + "scaleType": "logarithmic" + }, + { + "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", + "interpolationMethod": "none", + "scaleType": "linear" + } + ] + } }, - "Example 55": { + "Example 13": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} + "value": { + "type": "mathsFunctional", + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + ], + "defaultContent": { + "curveLabel": "Updated curve label", + "transposeAxes": true, + "useLogarithmicScale": true, + "freeParameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + }, + "parameterContents": [ + { + "type": "numeric", + "value": 15.0, + "parameterRange": { + "lowValue": 5.0, + "highValue": 100.0 + }, + "parameter": { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "numeric", + "parameterRange": { + "lowValue": -2.0 + }, + "parameter": { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "discrete", + "parameterRange": { + "parameterValues": [ + { + "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" + }, + { + "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" + } + ] + }, + "parameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + } + ] + } + } }, - "Example 56": { + "Example 14": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} + "value": { + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "All Legislation Names", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" + }, + { + "columnType": "linkedAttribute", + "showAsLink": true, + "summaryRowEnabled": false, + "rollUpType": "min", + "summaryRowRollUpType": "listDistinct", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" + }, + { + "columnType": "localPoint", + "defaultThresholdType": "exists", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" + } + ], + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } } } }, @@ -8007,75 +14654,235 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 43": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","name":"Metals (updated)"} + "value": { + "type": "discrete", + "name": "Metals (updated)" + } }, - "Example 44": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} + "value": { + "type": "discrete", + "guid": "12345678-0013-4fff-8fff-0000ffff0000" + } }, - "Example 45": { + "Example 3": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} + "value": { + "type": "discrete", + "helpPath": "html/attributenotes/metals.html" + } }, - "Example 46": { + "Example 4": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","defaultThresholdType":"equal"} + "value": { + "type": "discrete", + "defaultThresholdType": "equal" + } }, - "Example 47": { + "Example 5": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","isMultiValued":true} + "value": { + "type": "discrete", + "isMultiValued": true + } }, - "Example 48": { + "Example 6": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true} + "value": { + "type": "shortText", + "isUnique": true + } }, - "Example 49": { + "Example 7": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true} + "value": { + "type": "point", + "isMultiValued": true + } }, - "Example 50": { + "Example 8": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ] + } }, - "Example 51": { + "Example 9": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} + "value": { + "type": "range", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + } + } }, - "Example 52": { + "Example 10": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} + "value": { + "type": "shortText", + "isUnique": true, + "name": "Grain size (updated)" + } }, - "Example 53": { + "Example 11": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} + "value": { + "type": "shortText", + "aboutAttribute": { + "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + } }, - "Example 54": { + "Example 12": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} + "value": { + "type": "floatFunctional", + "attributeParameters": [ + { + "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + }, + { + "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", + "interpolationMethod": "linear", + "scaleType": "logarithmic" + }, + { + "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", + "interpolationMethod": "none", + "scaleType": "linear" + } + ] + } }, - "Example 55": { + "Example 13": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} + "value": { + "type": "mathsFunctional", + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + ], + "defaultContent": { + "curveLabel": "Updated curve label", + "transposeAxes": true, + "useLogarithmicScale": true, + "freeParameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + }, + "parameterContents": [ + { + "type": "numeric", + "value": 15.0, + "parameterRange": { + "lowValue": 5.0, + "highValue": 100.0 + }, + "parameter": { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "numeric", + "parameterRange": { + "lowValue": -2.0 + }, + "parameter": { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "discrete", + "parameterRange": { + "parameterValues": [ + { + "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" + }, + { + "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" + } + ] + }, + "parameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + } + ] + } + } }, - "Example 56": { + "Example 14": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} + "value": { + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "All Legislation Names", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" + }, + { + "columnType": "linkedAttribute", + "showAsLink": true, + "summaryRowEnabled": false, + "rollUpType": "min", + "summaryRowRollUpType": "listDistinct", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" + }, + { + "columnType": "localPoint", + "defaultThresholdType": "exists", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" + } + ], + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } } } }, @@ -8084,75 +14891,235 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 43": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","name":"Metals (updated)"} + "value": { + "type": "discrete", + "name": "Metals (updated)" + } }, - "Example 44": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} + "value": { + "type": "discrete", + "guid": "12345678-0013-4fff-8fff-0000ffff0000" + } }, - "Example 45": { + "Example 3": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} + "value": { + "type": "discrete", + "helpPath": "html/attributenotes/metals.html" + } }, - "Example 46": { + "Example 4": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","defaultThresholdType":"equal"} + "value": { + "type": "discrete", + "defaultThresholdType": "equal" + } }, - "Example 47": { + "Example 5": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","isMultiValued":true} + "value": { + "type": "discrete", + "isMultiValued": true + } }, - "Example 48": { + "Example 6": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true} + "value": { + "type": "shortText", + "isUnique": true + } }, - "Example 49": { + "Example 7": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true} + "value": { + "type": "point", + "isMultiValued": true + } }, - "Example 50": { + "Example 8": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ] + } }, - "Example 51": { + "Example 9": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} + "value": { + "type": "range", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + } + } }, - "Example 52": { + "Example 10": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} + "value": { + "type": "shortText", + "isUnique": true, + "name": "Grain size (updated)" + } }, - "Example 53": { + "Example 11": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} + "value": { + "type": "shortText", + "aboutAttribute": { + "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + } }, - "Example 54": { + "Example 12": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} + "value": { + "type": "floatFunctional", + "attributeParameters": [ + { + "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + }, + { + "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", + "interpolationMethod": "linear", + "scaleType": "logarithmic" + }, + { + "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", + "interpolationMethod": "none", + "scaleType": "linear" + } + ] + } }, - "Example 55": { + "Example 13": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} + "value": { + "type": "mathsFunctional", + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + ], + "defaultContent": { + "curveLabel": "Updated curve label", + "transposeAxes": true, + "useLogarithmicScale": true, + "freeParameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + }, + "parameterContents": [ + { + "type": "numeric", + "value": 15.0, + "parameterRange": { + "lowValue": 5.0, + "highValue": 100.0 + }, + "parameter": { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "numeric", + "parameterRange": { + "lowValue": -2.0 + }, + "parameter": { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "discrete", + "parameterRange": { + "parameterValues": [ + { + "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" + }, + { + "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" + } + ] + }, + "parameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + } + ] + } + } }, - "Example 56": { + "Example 14": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} + "value": { + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "All Legislation Names", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" + }, + { + "columnType": "linkedAttribute", + "showAsLink": true, + "summaryRowEnabled": false, + "rollUpType": "min", + "summaryRowRollUpType": "listDistinct", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" + }, + { + "columnType": "localPoint", + "defaultThresholdType": "exists", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" + } + ], + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } } } }, @@ -8161,75 +15128,235 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 43": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","name":"Metals (updated)"} + "value": { + "type": "discrete", + "name": "Metals (updated)" + } }, - "Example 44": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Melting point' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000d-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","guid":"12345678-0013-4fff-8fff-0000ffff0000"} + "value": { + "type": "discrete", + "guid": "12345678-0013-4fff-8fff-0000ffff0000" + } }, - "Example 45": { + "Example 3": { "summary": "Update help path", "description": "This example demonstrates how to update the 'HelpPath' property of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","helpPath":"html/attributenotes/metals.html"} + "value": { + "type": "discrete", + "helpPath": "html/attributenotes/metals.html" + } }, - "Example 46": { + "Example 4": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000).", - "value": {"type":"discrete","defaultThresholdType":"equal"} + "value": { + "type": "discrete", + "defaultThresholdType": "equal" + } }, - "Example 47": { + "Example 5": { "summary": "Make discrete multi-valued", "description": "This example demonstrates how to update the 'Metals' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 0000000b-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. You can similarly turn a multi-valued discrete attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"discrete","isMultiValued":true} + "value": { + "type": "discrete", + "isMultiValued": true + } }, - "Example 48": { + "Example 6": { "summary": "Make short text unique", "description": "This example demonstrates how to update the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and make it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true} + "value": { + "type": "shortText", + "isUnique": true + } }, - "Example 49": { + "Example 7": { "summary": "Make point multi-valued", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true} + "value": { + "type": "point", + "isMultiValued": true + } }, - "Example 50": { + "Example 8": { "summary": "Make point multi-valued with parameter", "description": "This example demonstrates how to update the 'Shape factor' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000144-0001-4fff-8fff-dd92ffff0000) and make it multi-valued with 'Temperature' as a parameter. Note that this won't work if the attribute is used in a dynamic link group index, expressions, X-Y charts or as linked attribute tabular column.You can similarly turn a multi-valued point attribute into a single-valued as long as there is no multi-valued data already existing.", - "value": {"type":"point","isMultiValued":true,"attributeParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}]} + "value": { + "type": "point", + "isMultiValued": true, + "attributeParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ] + } }, - "Example 51": { + "Example 9": { "summary": "Update unit", "description": "This example demonstrates how to update the unit of the 'Reserves' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000088-0001-4fff-8fff-dd92ffff0000). We will change the unit from 'tonnes' to 'kg'", - "value": {"type":"range","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"}} + "value": { + "type": "range", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + } + } }, - "Example 52": { + "Example 10": { "summary": "Update multiple properties", "description": "This example demonstrates that it is possible to change multiple attribute properties at once by updating the name of the 'Grain size' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 000000aa-0001-4fff-8fff-dd92ffff0000) and also making it unique. This will work as long as there is no pre-existing data which violates the constraint.", - "value": {"type":"shortText","isUnique":true,"name":"Grain size (updated)"} + "value": { + "type": "shortText", + "isUnique": true, + "name": "Grain size (updated)" + } }, - "Example 53": { + "Example 11": { "summary": "Turn an attribute into a meta-attribute", "description": "This example demonstrates how to turn an existing attribute into a meta-attribute of another attribute. We make the short text 'Color' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; attributeGuid = 00000169-0001-4fff-8fff-dd92ffff0000) become a meta-attribute of 'ISO name' short text attribute (guid = 000002cf-0001-4fff-8fff-dd92ffff0000).Note that if an attribute already had meta-attribute, it cannot be made a meta-attribute. Also, you cannot add a meta-attribute to another meta-attribute.", - "value": {"type":"shortText","aboutAttribute":{"guid":"000002cf-0001-4fff-8fff-dd92ffff0000"}} + "value": { + "type": "shortText", + "aboutAttribute": { + "guid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + } }, - "Example 54": { + "Example 12": { "summary": "Add multiple parameters", "description": "This example demonstrates how to update the 'Tensile strength with temperature' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '00000002-0001-4fff-8fff-dd92ffff0000') and add multiple parameters to it.", - "value": {"type":"floatFunctional","attributeParameters":[{"parameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","defaultValue":5.0,"interpolationMethod":"auto","scaleType":"notSet"},{"parameterGuid":"00000005-000a-4fff-8fff-0000ffff0000","interpolationMethod":"linear","scaleType":"logarithmic"},{"parameterGuid":"7a6ccb7b-8a47-4cab-8203-c741d476560f","interpolationMethod":"none","scaleType":"linear"}]} + "value": { + "type": "floatFunctional", + "attributeParameters": [ + { + "parameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "defaultValue": 5.0, + "interpolationMethod": "auto", + "scaleType": "notSet" + }, + { + "parameterGuid": "00000005-000a-4fff-8fff-0000ffff0000", + "interpolationMethod": "linear", + "scaleType": "logarithmic" + }, + { + "parameterGuid": "7a6ccb7b-8a47-4cab-8203-c741d476560f", + "interpolationMethod": "none", + "scaleType": "linear" + } + ] + } }, - "Example 55": { + "Example 13": { "summary": "Add additional parameter and set default content for Maths Functional Attribute", "description": "This example demonstrates how to update the 'Fatigue strength model (stress range)' attribute from the 'MaterialUniverse' table from the MI_Training database (tableGuid = '0000dd92-0011-4fff-8fff-0000ffff0000'; attributeGuid = '745db76c-a991-41b6-9fd6-2e5f544f8ecb') by adding additional parameter to it and setting its default content.", - "value": {"type":"mathsFunctional","attributeParameters":[{"guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"guid":"00000004-000a-4fff-8fff-0000ffff0000"},{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}],"defaultContent":{"curveLabel":"Updated curve label","transposeAxes":true,"useLogarithmicScale":true,"freeParameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"},"parameterContents":[{"type":"numeric","value":15.0,"parameterRange":{"lowValue":5.0,"highValue":100.0},"parameter":{"guid":"00000007-000a-4fff-8fff-0000ffff0000"}},{"type":"numeric","parameterRange":{"lowValue":-2.0},"parameter":{"guid":"00000004-000a-4fff-8fff-0000ffff0000"}},{"type":"discrete","parameterRange":{"parameterValues":[{"guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"}]},"parameter":{"guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}}]}} + "value": { + "type": "mathsFunctional", + "attributeParameters": [ + { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + ], + "defaultContent": { + "curveLabel": "Updated curve label", + "transposeAxes": true, + "useLogarithmicScale": true, + "freeParameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + }, + "parameterContents": [ + { + "type": "numeric", + "value": 15.0, + "parameterRange": { + "lowValue": 5.0, + "highValue": 100.0 + }, + "parameter": { + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "numeric", + "parameterRange": { + "lowValue": -2.0 + }, + "parameter": { + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + }, + { + "type": "discrete", + "parameterRange": { + "parameterValues": [ + { + "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" + }, + { + "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" + } + ] + }, + "parameter": { + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + } + ] + } + } }, - "Example 56": { + "Example 14": { "summary": "Update tabular columns", "description": "This example demonstrates how to modify the tabular columns of the 'Legislations restricting its use' attribute from the 'Restricted Substances' table from the MI_Training database (tableGuid = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'; attributeGuid = 'c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc').", - "value": {"tabularColumns":[{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"All Legislation Names","rollUpType":"list","summaryRowRollUpType":"list","guid":"18eab50a-6c30-4a1d-9205-29878a6044bd"},{"columnType":"linkedAttribute","showAsLink":true,"summaryRowEnabled":false,"rollUpType":"min","summaryRowRollUpType":"listDistinct","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},{"columnType":"linkedAttribute","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"0a553cb4-13f2-447b-bc55-3e68e1008b51"},{"columnType":"localPoint","defaultThresholdType":"exists","showAsLink":false,"summaryRowEnabled":false,"rollUpType":"list","summaryRowRollUpType":"list","guid":"be3a1aa5-0b35-4d62-b512-a2923ed03e8d"}],"guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"} + "value": { + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "All Legislation Names", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "18eab50a-6c30-4a1d-9205-29878a6044bd" + }, + { + "columnType": "linkedAttribute", + "showAsLink": true, + "summaryRowEnabled": false, + "rollUpType": "min", + "summaryRowRollUpType": "listDistinct", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + { + "columnType": "linkedAttribute", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "0a553cb4-13f2-447b-bc55-3e68e1008b51" + }, + { + "columnType": "localPoint", + "defaultThresholdType": "exists", + "showAsLink": false, + "summaryRowEnabled": false, + "rollUpType": "list", + "summaryRowRollUpType": "list", + "guid": "be3a1aa5-0b35-4d62-b512-a2923ed03e8d" + } + ], + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + } } } } @@ -8244,25 +15371,198 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 69": { + "Example 9": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "DAT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Casting Date", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": { + "fr": "Casting Date French Display Name" + }, + "name": "Casting Date", + "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" + } }, - "Example 70": { + "Example 10": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "discrete", + "discreteType": { + "name": "MU Durability", + "guid": "00000083-0006-4fff-8fff-0000ffff0000" + }, + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "helpPath": "html/attributenotes/metals.html", + "info": { + "typeCode": "DCT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Metals", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Metals", + "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 71": { + "Example 11": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"d1c157e9-ee4f-4586-b7ca-05a229776071"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "range", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "RNG", + "chartable": true, + "expressionable": true, + "linkable": true, + "extendedName": "Tensile strength", + "isMetaAttribute": false, + "orderedMetaAttributes": [ + { + "name": "Tensile strength [Notes]", + "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" + } + ], + "standardNames": [ + { + "name": "Tensile strength", + "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [ + { + "name": "Source of data (MaterialUniverse)", + "guid": "07f416ed-e849-4ea9-8635-1abbc67f9996" + } + ], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 72": { + "Example 12": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": false, + "hideUnlinkedRows": true, + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "type": "shortText", + "name": "Chemical name", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Substance name", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "localRange", + "defaultThresholdType": "atLeast", + "unit": { + "symbol": "%", + "guid": "00000005-0013-4fff-8fff-0000ffff0000" + }, + "showAsLink": false, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Amount", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "linkedColumn", + "linkedAttribute": { + "type": "link", + "name": "Legislations restricting its use", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + }, + "linkedColumn": { + "name": "Legislation rating", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "EH&S rating", + "rollUpType": "list", + "summaryRowRollUpType": "min", + "displayNames": {}, + "name": "Legislation rating", + "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + } + ], + "defaultThresholdType": "exists", + "info": { + "typeCode": "TABL", + "chartable": false, + "expressionable": false, + "linkable": false, + "extendedName": "Restricted substances associated with this material", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "standardNames": [ + { + "name": "Restricted substances in this item", + "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Restricted substances associated with this material", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } } } } @@ -8321,7 +15621,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, - "example": {"message":"Cannot delete attribute 'Tensile strength' (GUID = '000000e3-0001-4fff-8fff-dd92ffff0000').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more expressions.","reason":"inUse","referencedByType":"expression","referencedBy":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]}]} + "example": { + "message": "Cannot delete attribute 'Tensile strength' (GUID = '000000e3-0001-4fff-8fff-dd92ffff0000').", + "code": 400, + "errors": [ + { + "message": "It is being used in version controlled data.", + "reason": "inUse", + "referencedByType": "versionControlledData" + }, + { + "message": "It is being used in one or more expressions.", + "reason": "inUse", + "referencedByType": "expression", + "referencedBy": [ + { + "name": "Fatigue Model", + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } + ] + } + ] + } } } }, @@ -8472,25 +15793,198 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 73": { + "Example 13": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "DAT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Casting Date", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": { + "fr": "Casting Date French Display Name" + }, + "name": "Casting Date", + "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" + } }, - "Example 74": { + "Example 14": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "discrete", + "discreteType": { + "name": "MU Durability", + "guid": "00000083-0006-4fff-8fff-0000ffff0000" + }, + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "helpPath": "html/attributenotes/metals.html", + "info": { + "typeCode": "DCT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Metals", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Metals", + "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 75": { + "Example 15": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"22e7f42e-aaac-4627-89e0-b3e18270fb73"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "range", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "RNG", + "chartable": true, + "expressionable": true, + "linkable": true, + "extendedName": "Tensile strength", + "isMetaAttribute": false, + "orderedMetaAttributes": [ + { + "name": "Tensile strength [Notes]", + "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" + } + ], + "standardNames": [ + { + "name": "Tensile strength", + "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [ + { + "name": "Source of data (MaterialUniverse)", + "guid": "14796077-8c87-4cd5-a14b-3762b18d0f5b" + } + ], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 76": { + "Example 16": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": false, + "hideUnlinkedRows": true, + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "type": "shortText", + "name": "Chemical name", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Substance name", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "localRange", + "defaultThresholdType": "atLeast", + "unit": { + "symbol": "%", + "guid": "00000005-0013-4fff-8fff-0000ffff0000" + }, + "showAsLink": false, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Amount", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "linkedColumn", + "linkedAttribute": { + "type": "link", + "name": "Legislations restricting its use", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + }, + "linkedColumn": { + "name": "Legislation rating", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "EH&S rating", + "rollUpType": "list", + "summaryRowRollUpType": "min", + "displayNames": {}, + "name": "Legislation rating", + "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + } + ], + "defaultThresholdType": "exists", + "info": { + "typeCode": "TABL", + "chartable": false, + "expressionable": false, + "linkable": false, + "extendedName": "Restricted substances associated with this material", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "standardNames": [ + { + "name": "Restricted substances in this item", + "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Restricted substances associated with this material", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } } } } @@ -8542,25 +16036,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","name":"Notes (flammability)"} + "value": { + "type": "longText", + "name": "Notes (flammability)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} + "value": { + "type": "longText", + "guid": "12345678-1234-4fff-8fff-0000ffff0000" + } }, - "Example 15": { + "Example 3": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","defaultThresholdType":"equal"} + "value": { + "type": "longText", + "defaultThresholdType": "equal" + } }, - "Example 16": { + "Example 4": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": {"type":"longText","aboutAttribute":null} + "value": { + "type": "longText", + "aboutAttribute": null + } } } }, @@ -8569,25 +16075,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","name":"Notes (flammability)"} + "value": { + "type": "longText", + "name": "Notes (flammability)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} + "value": { + "type": "longText", + "guid": "12345678-1234-4fff-8fff-0000ffff0000" + } }, - "Example 15": { + "Example 3": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","defaultThresholdType":"equal"} + "value": { + "type": "longText", + "defaultThresholdType": "equal" + } }, - "Example 16": { + "Example 4": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": {"type":"longText","aboutAttribute":null} + "value": { + "type": "longText", + "aboutAttribute": null + } } } }, @@ -8596,25 +16114,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","name":"Notes (flammability)"} + "value": { + "type": "longText", + "name": "Notes (flammability)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} + "value": { + "type": "longText", + "guid": "12345678-1234-4fff-8fff-0000ffff0000" + } }, - "Example 15": { + "Example 3": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","defaultThresholdType":"equal"} + "value": { + "type": "longText", + "defaultThresholdType": "equal" + } }, - "Example 16": { + "Example 4": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": {"type":"longText","aboutAttribute":null} + "value": { + "type": "longText", + "aboutAttribute": null + } } } }, @@ -8623,25 +16153,37 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","name":"Notes (flammability)"} + "value": { + "type": "longText", + "name": "Notes (flammability)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","guid":"12345678-1234-4fff-8fff-0000ffff0000"} + "value": { + "type": "longText", + "guid": "12345678-1234-4fff-8fff-0000ffff0000" + } }, - "Example 15": { + "Example 3": { "summary": "Update default threshold type", "description": "This example demonstrates how to update the default threshold type of the 'Notes' meta-attribute of the 'Flammability' attribute in the 'MaterialUniverse' table in the MI_Training database(tableGuid: 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid: 00000298-0001-4fff-8fff-dd92ffff0000)", - "value": {"type":"longText","defaultThresholdType":"equal"} + "value": { + "type": "longText", + "defaultThresholdType": "equal" + } }, - "Example 16": { + "Example 4": { "summary": "Turn a meta-attribute into an attribute", "description": "This example demonstrates how to turn an existing meta-attribute into an attribute by removing its 'aboutAttribute'. We make the short text 'Notes' meta-attribute of the 'Flammability' attribute from the 'MaterialUniverse' table (tableGuid = 0000dd92-0011-4fff-8fff-0000ffff0000; metaAttributeGuid = 00000298-0001-4fff-8fff-dd92ffff0000) become a standalone attribute.", - "value": {"type":"longText","aboutAttribute":null} + "value": { + "type": "longText", + "aboutAttribute": null + } } } } @@ -8656,25 +16198,198 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaAttributesAttribute" }, "examples": { - "Example 77": { + "Example 17": { "summary": "Date-time attribute", "description": "Example response for the date-time attribute 'Casting Date' in the 'Metals Pedigree' table of the 'MI Training database'.", - "value": {"type":"dateTime","defaultThresholdType":"atLeast","info":{"typeCode":"DAT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Casting Date","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{"fr":"Casting Date French Display Name"},"name":"Casting Date","guid":"fe9cbde6-756a-4b1d-a347-7d49e56ee90f"} + "value": { + "type": "dateTime", + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "DAT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Casting Date", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": { + "fr": "Casting Date French Display Name" + }, + "name": "Casting Date", + "guid": "fe9cbde6-756a-4b1d-a347-7d49e56ee90f" + } }, - "Example 78": { + "Example 18": { "summary": "Discrete attribute", "description": "Example response for the discrete attribute 'Metals' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"discrete","discreteType":{"name":"MU Durability","guid":"00000083-0006-4fff-8fff-0000ffff0000"},"isMultiValued":false,"defaultThresholdType":"atLeast","helpPath":"html/attributenotes/metals.html","info":{"typeCode":"DCT","chartable":false,"expressionable":false,"linkable":true,"extendedName":"Metals","isMetaAttribute":false,"orderedMetaAttributes":[],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "discrete", + "discreteType": { + "name": "MU Durability", + "guid": "00000083-0006-4fff-8fff-0000ffff0000" + }, + "isMultiValued": false, + "defaultThresholdType": "atLeast", + "helpPath": "html/attributenotes/metals.html", + "info": { + "typeCode": "DCT", + "chartable": false, + "expressionable": false, + "linkable": true, + "extendedName": "Metals", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Metals", + "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 79": { + "Example 19": { "summary": "Range attribute", "description": "Example response for the range attribute 'Tensile strength' in the 'Materials Universe' table of the 'MI Training database'.", - "value": {"type":"range","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"defaultThresholdType":"atLeast","info":{"typeCode":"RNG","chartable":true,"expressionable":true,"linkable":true,"extendedName":"Tensile strength","isMetaAttribute":false,"orderedMetaAttributes":[{"name":"Tensile strength [Notes]","guid":"8d7c8bb0-450f-4f9d-a717-ea4f5b56df74"}],"standardNames":[{"name":"Tensile strength","guid":"a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[{"name":"Source of data (MaterialUniverse)","guid":"e6fab379-2336-4407-813a-b3314bb5b8d9"}],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"} + "value": { + "type": "range", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "defaultThresholdType": "atLeast", + "info": { + "typeCode": "RNG", + "chartable": true, + "expressionable": true, + "linkable": true, + "extendedName": "Tensile strength", + "isMetaAttribute": false, + "orderedMetaAttributes": [ + { + "name": "Tensile strength [Notes]", + "guid": "8d7c8bb0-450f-4f9d-a717-ea4f5b56df74" + } + ], + "standardNames": [ + { + "name": "Tensile strength", + "guid": "a5a22baa-2245-4fb5-b0c9-2ddb48b5ffc8" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [ + { + "name": "Source of data (MaterialUniverse)", + "guid": "f8ade743-fbca-4ff1-890c-4f61e5686853" + } + ], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + } }, - "Example 80": { + "Example 20": { "summary": "Tabular attribute", "description": "Example response for the tabular attribute 'Restricted substances associated with this material' in the 'Materials Universe' table of the 'MI Training database'..", - "value": {"type":"link","displayFullTable":false,"displaySummaryRowInline":false,"hideUnlinkedRows":true,"target":{"targetDatabaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","targetDatabaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0"},"tabularColumns":[{"columnType":"linkedAttribute","linkedAttribute":{"type":"shortText","name":"Chemical name","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07"},"showAsLink":true,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Substance name","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"localRange","defaultThresholdType":"atLeast","unit":{"symbol":"%","guid":"00000005-0013-4fff-8fff-0000ffff0000"},"showAsLink":false,"summaryRowEnabled":false,"summaryRowText":"","rollUpType":"list","summaryRowRollUpType":"list","displayNames":{},"name":"Amount","guid":"fdbfaa62-61ff-43de-9ecb-3728ce83cb4e"},{"columnType":"linkedColumn","linkedAttribute":{"type":"link","name":"Legislations restricting its use","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc"},"linkedColumn":{"name":"Legislation rating","guid":"49a720bd-55c4-44a3-a10a-5ae3b69f3100"},"showAsLink":false,"summaryRowEnabled":true,"summaryRowText":"EH&S rating","rollUpType":"list","summaryRowRollUpType":"min","displayNames":{},"name":"Legislation rating","guid":"9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"}],"defaultThresholdType":"exists","info":{"typeCode":"TABL","chartable":false,"expressionable":false,"linkable":false,"extendedName":"Restricted substances associated with this material","isMetaAttribute":false,"orderedMetaAttributes":[],"standardNames":[{"name":"Restricted substances in this item","guid":"315d8839-ab9d-4b31-a27d-c128ebf34150"}],"primaryDataLinkGroups":[],"foreignDataLinkGroups":[],"primaryDynamicLinkGroups":[],"foreignDynamicLinkGroups":[]},"displayNames":{},"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"} + "value": { + "type": "link", + "displayFullTable": false, + "displaySummaryRowInline": false, + "hideUnlinkedRows": true, + "target": { + "targetDatabaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "targetDatabaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0" + }, + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "linkedAttribute": { + "type": "shortText", + "name": "Chemical name", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07" + }, + "showAsLink": true, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Substance name", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "localRange", + "defaultThresholdType": "atLeast", + "unit": { + "symbol": "%", + "guid": "00000005-0013-4fff-8fff-0000ffff0000" + }, + "showAsLink": false, + "summaryRowEnabled": false, + "summaryRowText": "", + "rollUpType": "list", + "summaryRowRollUpType": "list", + "displayNames": {}, + "name": "Amount", + "guid": "fdbfaa62-61ff-43de-9ecb-3728ce83cb4e" + }, + { + "columnType": "linkedColumn", + "linkedAttribute": { + "type": "link", + "name": "Legislations restricting its use", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc" + }, + "linkedColumn": { + "name": "Legislation rating", + "guid": "49a720bd-55c4-44a3-a10a-5ae3b69f3100" + }, + "showAsLink": false, + "summaryRowEnabled": true, + "summaryRowText": "EH&S rating", + "rollUpType": "list", + "summaryRowRollUpType": "min", + "displayNames": {}, + "name": "Legislation rating", + "guid": "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + } + ], + "defaultThresholdType": "exists", + "info": { + "typeCode": "TABL", + "chartable": false, + "expressionable": false, + "linkable": false, + "extendedName": "Restricted substances associated with this material", + "isMetaAttribute": false, + "orderedMetaAttributes": [], + "standardNames": [ + { + "name": "Restricted substances in this item", + "guid": "315d8839-ab9d-4b31-a27d-c128ebf34150" + } + ], + "primaryDataLinkGroups": [], + "foreignDataLinkGroups": [], + "primaryDynamicLinkGroups": [], + "foreignDynamicLinkGroups": [] + }, + "displayNames": {}, + "name": "Restricted substances associated with this material", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } } } } @@ -8733,7 +16448,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, - "example": {"message":"Cannot delete attribute 'Notes' (GUID = '56f9f0a2-a2b9-4cb5-88c0-d4a11df017a8').","code":400,"errors":[{"message":"It is being used in version controlled data.","reason":"inUse","referencedByType":"versionControlledData"},{"message":"It is being used in one or more search masks.","reason":"inUse","referencedByType":"searchMask","referencedBy":[{"name":"Search mask that searches in Notes","guid":"3e4cc3e0-f4bd-47e2-9729-956732691578"}]}]} + "example": { + "message": "Cannot delete attribute 'Notes' (GUID = '67686986-a773-4724-97d0-04f83871da79').", + "code": 400, + "errors": [ + { + "message": "It is being used in version controlled data.", + "reason": "inUse", + "referencedByType": "versionControlledData" + }, + { + "message": "It is being used in one or more search masks.", + "reason": "inUse", + "referencedByType": "searchMask", + "referencedBy": [ + { + "name": "Search mask that searches in Notes", + "guid": "776a428f-2fdf-405f-a236-320d566ae8ca" + } + ] + } + ] + } } } }, @@ -9028,7 +16764,14 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfigurationsInfo" }, - "example": {"configurations":[{"name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"}]} + "example": { + "configurations": [ + { + "name": "examples", + "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" + } + ] + } } } }, @@ -9074,15 +16817,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} + "value": { + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "00000000-0000-0000-0000-000000000000" + } }, - "Example 8": { + "Example 2": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} + "value": { + "description": "Basic configuration that can be used in explore.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "990c7e58-9c37-44e8-bbcf-93b74685d50a" + } } } }, @@ -9091,15 +16843,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} + "value": { + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "00000000-0000-0000-0000-000000000000" + } }, - "Example 8": { + "Example 2": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} + "value": { + "description": "Basic configuration that can be used in explore.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "990c7e58-9c37-44e8-bbcf-93b74685d50a" + } } } }, @@ -9108,15 +16869,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} + "value": { + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "00000000-0000-0000-0000-000000000000" + } }, - "Example 8": { + "Example 2": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} + "value": { + "description": "Basic configuration that can be used in explore.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "990c7e58-9c37-44e8-bbcf-93b74685d50a" + } } } }, @@ -9125,15 +16895,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsCreateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Configuration", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database.", - "value": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"00000000-0000-0000-0000-000000000000"} + "value": { + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "00000000-0000-0000-0000-000000000000" + } }, - "Example 8": { + "Example 2": { "summary": "Configuration with specified guid and description", "description": "This example demonstrates how to create a new Explore configuration for the MI_Training database with a specified guid and description. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"description":"Basic configuration that can be used in explore.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"basic configuration","guid":"339911a8-2e6f-496b-b2a7-d08b1e897179"} + "value": { + "description": "Basic configuration that can be used in explore.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "basic configuration", + "guid": "990c7e58-9c37-44e8-bbcf-93b74685d50a" + } } } } @@ -9147,7 +16926,11 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfiguration" }, - "example": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"} + "example": { + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "examples", + "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" + } } } }, @@ -9211,7 +16994,11 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfiguration" }, - "example": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"} + "example": { + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "examples", + "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" + } } } }, @@ -9266,15 +17053,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} + "value": { + "description": "Updated description for MI_Training Explore 'examples' configuration.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "examples (updated)", + "guid": "90ad6cc4-281f-4a2e-8d2b-3348749fdc35" + } }, - "Example 8": { + "Example 2": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": {"name":"examples (updated)"} + "value": { + "name": "examples (updated)" + } } } }, @@ -9283,15 +17077,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} + "value": { + "description": "Updated description for MI_Training Explore 'examples' configuration.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "examples (updated)", + "guid": "90ad6cc4-281f-4a2e-8d2b-3348749fdc35" + } }, - "Example 8": { + "Example 2": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": {"name":"examples (updated)"} + "value": { + "name": "examples (updated)" + } } } }, @@ -9300,15 +17101,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} + "value": { + "description": "Updated description for MI_Training Explore 'examples' configuration.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "examples (updated)", + "guid": "90ad6cc4-281f-4a2e-8d2b-3348749fdc35" + } }, - "Example 8": { + "Example 2": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": {"name":"examples (updated)"} + "value": { + "name": "examples (updated)" + } } } }, @@ -9317,15 +17125,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsUpdateConfiguration" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a configuration", "description": "This example shows how to update all properties of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"description":"Updated description for MI_Training Explore 'examples' configuration.","value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples (updated)","guid":"02b6fb5f-dd6c-4498-b5e0-1f7f8dd428b0"} + "value": { + "description": "Updated description for MI_Training Explore 'examples' configuration.", + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "examples (updated)", + "guid": "90ad6cc4-281f-4a2e-8d2b-3348749fdc35" + } }, - "Example 8": { + "Example 2": { "summary": "Update a name", "description": "This example shows how to update the 'Name' property of the Explore 'examples' configuration (guid = 997e8f58-bd2a-494f-9a99-18b3d395ad0a) from the MI_Training database.", - "value": {"name":"examples (updated)"} + "value": { + "name": "examples (updated)" + } } } } @@ -9339,7 +17154,11 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConfigurationsConfiguration" }, - "example": {"value":"{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}","name":"examples","guid":"997e8f58-bd2a-494f-9a99-18b3d395ad0a"} + "example": { + "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", + "name": "examples", + "guid": "997e8f58-bd2a-494f-9a99-18b3d395ad0a" + } } } }, @@ -9481,7 +17300,18 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstantsInfo" }, - "example": {"constants":[{"name":"PI","guid":"00000001-0004-4fff-8fff-0000ffff0000"},{"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"}]} + "example": { + "constants": [ + { + "name": "PI", + "guid": "00000001-0004-4fff-8fff-0000ffff0000" + }, + { + "name": "Speed of Light in Vacuum", + "guid": "0000000f-0004-4fff-8fff-0000ffff0000" + } + ] + } } } }, @@ -9515,20 +17345,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": {"value":0.0072973525693,"name":"fine-structure constant"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant" + } }, - "Example 11": { + "Example 2": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant (guid)", + "guid": "672592e0-5155-4933-9ea7-c86095f5432c" + } }, - "Example 12": { + "Example 3": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum (guid and unit)" + } } } }, @@ -9537,20 +17378,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": {"value":0.0072973525693,"name":"fine-structure constant"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant" + } }, - "Example 11": { + "Example 2": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant (guid)", + "guid": "672592e0-5155-4933-9ea7-c86095f5432c" + } }, - "Example 12": { + "Example 3": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum (guid and unit)" + } } } }, @@ -9559,20 +17411,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": {"value":0.0072973525693,"name":"fine-structure constant"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant" + } }, - "Example 11": { + "Example 2": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant (guid)", + "guid": "672592e0-5155-4933-9ea7-c86095f5432c" + } }, - "Example 12": { + "Example 3": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum (guid and unit)" + } } } }, @@ -9581,20 +17444,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsCreateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Constant", "description": "This example demonstrates how to create a new constant for the MI_Training database.", - "value": {"value":0.0072973525693,"name":"fine-structure constant"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant" + } }, - "Example 11": { + "Example 2": { "summary": "Constant with specified guid", "description": "This example demonstrates how to create a new constant for the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":0.0072973525693,"name":"fine-structure constant (guid)","guid":"81aeb74a-98ea-49f7-865f-a4d38f643869"} + "value": { + "value": 0.0072973525693, + "name": "fine-structure constant (guid)", + "guid": "672592e0-5155-4933-9ea7-c86095f5432c" + } }, - "Example 12": { + "Example 3": { "summary": "Constant with specified unit", "description": "This example demonstrates how to create a new constant with a specified unit 'ohm' from the MI_Training database.", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum (guid and unit)"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum (guid and unit)" + } } } } @@ -9608,7 +17482,15 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstant" }, - "example": {"unit":{"symbol":"m/s","guid":"00000097-0013-4fff-8fff-0000ffff0000"},"value":300000000.0,"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"} + "example": { + "unit": { + "symbol": "m/s", + "guid": "00000097-0013-4fff-8fff-0000ffff0000" + }, + "value": 300000000.0, + "name": "Speed of Light in Vacuum", + "guid": "0000000f-0004-4fff-8fff-0000ffff0000" + } } } }, @@ -9660,7 +17542,15 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstant" }, - "example": {"unit":{"symbol":"m/s","guid":"00000097-0013-4fff-8fff-0000ffff0000"},"value":300000000.0,"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"} + "example": { + "unit": { + "symbol": "m/s", + "guid": "00000097-0013-4fff-8fff-0000ffff0000" + }, + "value": 300000000.0, + "name": "Speed of Light in Vacuum", + "guid": "0000000f-0004-4fff-8fff-0000ffff0000" + } } } }, @@ -9704,20 +17594,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum", + "guid": "52cb8844-44f6-48d8-9c73-aa09261b337d" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"characteristic impedance of vacuum"} + "value": { + "name": "characteristic impedance of vacuum" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "guid": "73b8086d-19e3-4976-a7d9-52fcef9e57a3" + } } } }, @@ -9726,20 +17626,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum", + "guid": "52cb8844-44f6-48d8-9c73-aa09261b337d" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"characteristic impedance of vacuum"} + "value": { + "name": "characteristic impedance of vacuum" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "guid": "73b8086d-19e3-4976-a7d9-52fcef9e57a3" + } } } }, @@ -9748,20 +17658,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum", + "guid": "52cb8844-44f6-48d8-9c73-aa09261b337d" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"characteristic impedance of vacuum"} + "value": { + "name": "characteristic impedance of vacuum" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "guid": "73b8086d-19e3-4976-a7d9-52fcef9e57a3" + } } } }, @@ -9770,20 +17690,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsUpdateConstant" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a constant", "description": "This example shows how to update all properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","value":376.730313668,"name":"characteristic impedance of vacuum","guid":"7a5fd86a-7a07-4a4e-98c0-fdc5430bed22"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "value": 376.730313668, + "name": "characteristic impedance of vacuum", + "guid": "52cb8844-44f6-48d8-9c73-aa09261b337d" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example shows how to update the 'Name' property of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"characteristic impedance of vacuum"} + "value": { + "name": "characteristic impedance of vacuum" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid and unit", "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", - "value": {"unitGuid":"00000059-0013-4fff-8fff-0000ffff0000","guid":"24afcf37-4e77-4f8e-9bb4-1068703f72db"} + "value": { + "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", + "guid": "73b8086d-19e3-4976-a7d9-52fcef9e57a3" + } } } } @@ -9797,7 +17727,15 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaConstantsConstant" }, - "example": {"unit":{"symbol":"m/s","guid":"00000097-0013-4fff-8fff-0000ffff0000"},"value":300000000.0,"name":"Speed of Light in Vacuum","guid":"0000000f-0004-4fff-8fff-0000ffff0000"} + "example": { + "unit": { + "symbol": "m/s", + "guid": "00000097-0013-4fff-8fff-0000ffff0000" + }, + "value": 300000000.0, + "name": "Speed of Light in Vacuum", + "guid": "0000000f-0004-4fff-8fff-0000ffff0000" + } } } }, @@ -9847,7 +17785,23 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionConstantDeletionException" }, - "example": {"message":"Cannot delete constant 'PI' (GUID = '00000001-0004-4fff-8fff-0000ffff0000').","code":400,"errors":[{"message":"It is being used in one or more expressions.","reason":"inUse","referencedByType":"expression","referencedBy":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]}]} + "example": { + "message": "Cannot delete constant 'PI' (GUID = '00000001-0004-4fff-8fff-0000ffff0000').", + "code": 400, + "errors": [ + { + "message": "It is being used in one or more expressions.", + "reason": "inUse", + "referencedByType": "expression", + "referencedBy": [ + { + "name": "Fatigue Model", + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } + ] + } + ] + } } } }, @@ -9919,10 +17873,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} + "value": { + "description": "Only numeric digits are allowed.", + "regularExpression": "^[0-9]*$", + "name": "digits only" + } } } }, @@ -9931,10 +17889,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} + "value": { + "description": "Only numeric digits are allowed.", + "regularExpression": "^[0-9]*$", + "name": "digits only" + } } } }, @@ -9943,10 +17905,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} + "value": { + "description": "Only numeric digits are allowed.", + "regularExpression": "^[0-9]*$", + "name": "digits only" + } } } }, @@ -9955,10 +17921,14 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDataRulesCreateDataRule" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Data rule for attributes", "description": "This example demonstrates how to create a new data rule.", - "value": {"description":"Only numeric digits are allowed.","regularExpression":"^[0-9]*$","name":"digits only"} + "value": { + "description": "Only numeric digits are allowed.", + "regularExpression": "^[0-9]*$", + "name": "digits only" + } } } } @@ -10156,7 +18126,21 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaDatabasesInfo" }, - "example": {"databases":[{"key":"MI_Training","versionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","status":"Ok","isReadOnly":false,"isLocked":false,"indexInSync":true,"schemaVersion":"2022.08.18.01","name":"MI Training","guid":"43a43640-4919-428a-bac9-16efbc4ce6ed"}]} + "example": { + "databases": [ + { + "key": "MI_Training", + "status": "Ok", + "isReadOnly": false, + "isLocked": false, + "name": "MI Training", + "guid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "versionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "indexInSync": true, + "schemaVersion": "2022.08.18.01" + } + ] + } } } } @@ -10219,14 +18203,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} + "value": { + "author": "Ansys Granta Technical Training (Updated)", + "company": "ANSYS, Inc. (updated)", + "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", + "currencyCode": "PLN", + "versionGuid": "c4f8066c-ae88-4031-9528-eb577b95ca95", + "name": "MI Training (Updated)", + "guid": "5cb46f76-c9a1-4e49-88bc-f952508b72ec" + } }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)"} + "value": { + "author": "Ansys Granta Technical Training (Updated)" + } } } }, @@ -10235,14 +18229,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} + "value": { + "author": "Ansys Granta Technical Training (Updated)", + "company": "ANSYS, Inc. (updated)", + "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", + "currencyCode": "PLN", + "versionGuid": "c4f8066c-ae88-4031-9528-eb577b95ca95", + "name": "MI Training (Updated)", + "guid": "5cb46f76-c9a1-4e49-88bc-f952508b72ec" + } }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)"} + "value": { + "author": "Ansys Granta Technical Training (Updated)" + } } } }, @@ -10251,14 +18255,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} + "value": { + "author": "Ansys Granta Technical Training (Updated)", + "company": "ANSYS, Inc. (updated)", + "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", + "currencyCode": "PLN", + "versionGuid": "c4f8066c-ae88-4031-9528-eb577b95ca95", + "name": "MI Training (Updated)", + "guid": "5cb46f76-c9a1-4e49-88bc-f952508b72ec" + } }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)"} + "value": { + "author": "Ansys Granta Technical Training (Updated)" + } } } }, @@ -10267,14 +18281,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUpdateDatabase" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Update everything in a database", "description": "This example shows how to update all properties of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)","company":"ANSYS, Inc. (updated)","notes":"MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)","currencyCode":"PLN","versionGuid":"a8c6926c-9ee2-4a25-b822-db60a8949ad6","name":"MI Training (Updated)","guid":"6eabef99-0977-428e-8248-f1d69448bd98"} + "value": { + "author": "Ansys Granta Technical Training (Updated)", + "company": "ANSYS, Inc. (updated)", + "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", + "currencyCode": "PLN", + "versionGuid": "c4f8066c-ae88-4031-9528-eb577b95ca95", + "name": "MI Training (Updated)", + "guid": "5cb46f76-c9a1-4e49-88bc-f952508b72ec" + } }, "Update the author": { "summary": "This example shows how to update the 'Author' property of the MI_Training database.", - "value": {"author":"Ansys Granta Technical Training (Updated)"} + "value": { + "author": "Ansys Granta Technical Training (Updated)" + } } } } @@ -10444,15 +18468,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": {"isOrdered":true,"name":"Ordered Discrete Type"} + "value": { + "isOrdered": true, + "name": "Ordered Discrete Type" + } }, - "Example 8": { + "Example 2": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": {"isOrdered":false,"name":"Unordered Discrete Type"} + "value": { + "isOrdered": false, + "name": "Unordered Discrete Type" + } } } }, @@ -10461,15 +18491,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": {"isOrdered":true,"name":"Ordered Discrete Type"} + "value": { + "isOrdered": true, + "name": "Ordered Discrete Type" + } }, - "Example 8": { + "Example 2": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": {"isOrdered":false,"name":"Unordered Discrete Type"} + "value": { + "isOrdered": false, + "name": "Unordered Discrete Type" + } } } }, @@ -10478,15 +18514,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": {"isOrdered":true,"name":"Ordered Discrete Type"} + "value": { + "isOrdered": true, + "name": "Ordered Discrete Type" + } }, - "Example 8": { + "Example 2": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": {"isOrdered":false,"name":"Unordered Discrete Type"} + "value": { + "isOrdered": false, + "name": "Unordered Discrete Type" + } } } }, @@ -10495,15 +18537,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteTypesCreateDiscreteType" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Ordered Discrete Type", "description": "This example demonstrates how to create a new ordered discrete type for the MI_Training database.", - "value": {"isOrdered":true,"name":"Ordered Discrete Type"} + "value": { + "isOrdered": true, + "name": "Ordered Discrete Type" + } }, - "Example 8": { + "Example 2": { "summary": "Unordered Discrete Type", "description": "This example demonstrates how to create a new unordered discrete type for the MI_Training database.", - "value": {"isOrdered":false,"name":"Unordered Discrete Type"} + "value": { + "isOrdered": false, + "name": "Unordered Discrete Type" + } } } } @@ -10678,7 +18726,23 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException" }, - "example": {"message":"Cannot delete discrete type 'MU Durability' (GUID = '00000083-0006-4fff-8fff-0000ffff0000').","code":400,"errors":[{"message":"It is being used in one or more attributes.","reason":"inUse","referencedByType":"attribute","referencedBy":[{"name":"Metals","guid":"0000000b-0001-4fff-8fff-dd92ffff0000"}]}]} + "example": { + "message": "Cannot delete discrete type 'MU Durability' (GUID = '00000083-0006-4fff-8fff-0000ffff0000').", + "code": 400, + "errors": [ + { + "message": "It is being used in one or more attributes.", + "reason": "inUse", + "referencedByType": "attribute", + "referencedBy": [ + { + "name": "Metals", + "guid": "0000000b-0001-4fff-8fff-dd92ffff0000" + } + ] + } + ] + } } } }, @@ -10814,15 +18878,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": {"name":"New Discrete Value 1"} + "value": { + "name": "New Discrete Value 1" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} + "value": { + "name": "New Discrete Value 2", + "guid": "e08122e8-7582-40c6-ba8a-b6af5b50d937" + } } } }, @@ -10831,15 +18900,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": {"name":"New Discrete Value 1"} + "value": { + "name": "New Discrete Value 1" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} + "value": { + "name": "New Discrete Value 2", + "guid": "e08122e8-7582-40c6-ba8a-b6af5b50d937" + } } } }, @@ -10848,15 +18922,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": {"name":"New Discrete Value 1"} + "value": { + "name": "New Discrete Value 1" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} + "value": { + "name": "New Discrete Value 2", + "guid": "e08122e8-7582-40c6-ba8a-b6af5b50d937" + } } } }, @@ -10865,15 +18944,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Discrete Value", "description": "This example demonstrates how to create a new discrete value.", - "value": {"name":"New Discrete Value 1"} + "value": { + "name": "New Discrete Value 1" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete Value with Guid", "description": "This example demonstrates how to create a new discrete value with a specified guid value.", - "value": {"name":"New Discrete Value 2","guid":"b3420ef0-0871-4b69-876e-6492bbc6cb58"} + "value": { + "name": "New Discrete Value 2", + "guid": "e08122e8-7582-40c6-ba8a-b6af5b50d937" + } } } } @@ -11146,7 +19230,17 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionDiscreteValueDeletionException" }, - "example": {"message":"Cannot delete discrete value 'Unacceptable' (GUID = '00000583-0007-4fff-8fff-0083ffff0000').","code":400,"errors":[{"message":"It is being used in one or more data items.","reason":"inUse","referencedByType":"data"}]} + "example": { + "message": "Cannot delete discrete value 'Unacceptable' (GUID = '00000583-0007-4fff-8fff-0083ffff0000').", + "code": 400, + "errors": [ + { + "message": "It is being used in one or more data items.", + "reason": "inUse", + "referencedByType": "data" + } + ] + } } } }, @@ -11233,19 +19327,85 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"},{"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"MI_Training","guid":"19cc65a2-f8bf-4989-9859-e883756290de"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} + "example": { + "folders": [ + { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + }, + { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "MI_Training", + "guid": "19cc65a2-f8bf-4989-9859-e883756290de" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Ansys Workbench", + "guid": "92be9c31-7aff-4d96-8069-983390284391" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"},{"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"MI_Training","guid":"19cc65a2-f8bf-4989-9859-e883756290de"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} + "example": { + "folders": [ + { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + }, + { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "MI_Training", + "guid": "19cc65a2-f8bf-4989-9859-e883756290de" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Ansys Workbench", + "guid": "92be9c31-7aff-4d96-8069-983390284391" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"},{"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"MI_Training","guid":"19cc65a2-f8bf-4989-9859-e883756290de"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} + "example": { + "folders": [ + { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + }, + { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "MI_Training", + "guid": "19cc65a2-f8bf-4989-9859-e883756290de" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Ansys Workbench", + "guid": "92be9c31-7aff-4d96-8069-983390284391" + } + ] + } } } }, @@ -11277,10 +19437,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "New Folder" + } } } }, @@ -11289,10 +19452,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "New Folder" + } } } }, @@ -11301,10 +19467,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "New Folder" + } } } }, @@ -11313,10 +19482,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Exporter Folder", "description": "This example demonstrates how to create a new exporter folder under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"New Folder"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "New Folder" + } } } } @@ -11330,19 +19502,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -11383,19 +19564,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -11439,19 +19629,31 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"} + "example": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"} + "example": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"} + "example": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + } } } }, @@ -11492,15 +19694,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} + "value": { + "guid": "6357a2db-2c1e-415c-a749-9a551554c2c3" + } } } }, @@ -11509,15 +19715,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} + "value": { + "guid": "6357a2db-2c1e-415c-a749-9a551554c2c3" + } } } }, @@ -11526,15 +19736,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} + "value": { + "guid": "6357a2db-2c1e-415c-a749-9a551554c2c3" + } } } }, @@ -11543,15 +19757,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Exporter Folder", "description": "This example demonstrates how to rename an existing Exporter folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", - "value": {"guid":"4f7cd05b-8123-4cad-b4ba-c0ef7ff1004b"} + "value": { + "guid": "6357a2db-2c1e-415c-a749-9a551554c2c3" + } } } } @@ -11565,19 +19783,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -11664,19 +19891,58 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} + "example": { + "folders": [ + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Ansys Workbench", + "guid": "92be9c31-7aff-4d96-8069-983390284391" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} + "example": { + "folders": [ + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Ansys Workbench", + "guid": "92be9c31-7aff-4d96-8069-983390284391" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Abaqus","guid":"41aba877-8fe0-4295-bddb-6f8b270a40ff"},{"parentGuid":"19cc65a2-f8bf-4989-9859-e883756290de","name":"Ansys Workbench","guid":"92be9c31-7aff-4d96-8069-983390284391"}]} + "example": { + "folders": [ + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Abaqus", + "guid": "41aba877-8fe0-4295-bddb-6f8b270a40ff" + }, + { + "parentGuid": "19cc65a2-f8bf-4989-9859-e883756290de", + "name": "Ansys Workbench", + "guid": "92be9c31-7aff-4d96-8069-983390284391" + } + ] + } } } }, @@ -11769,10 +20035,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -11781,10 +20049,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -11793,10 +20063,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -11805,10 +20077,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter Folder", "description": "This example demonstrates how to move an existing exporter folder to be under the root 'Exporters' folder.", - "value": {"parentGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "parentGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } } @@ -11822,19 +20096,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -11884,19 +20167,52 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"c8ae6f6c-62fd-45b2-bf73-8643969a6008"},{"name":"no-transform.xslt","guid":"a52f9d12-4876-48da-9736-477862e70ea3"}]} + "example": { + "files": [ + { + "name": "exporter-1.exp", + "guid": "1e0c6757-2bbc-4508-b46c-3c70bfb5c280" + }, + { + "name": "no-transform.xslt", + "guid": "6f5c7770-2011-494b-a475-3fd3c452868b" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"c8ae6f6c-62fd-45b2-bf73-8643969a6008"},{"name":"no-transform.xslt","guid":"a52f9d12-4876-48da-9736-477862e70ea3"}]} + "example": { + "files": [ + { + "name": "exporter-1.exp", + "guid": "1e0c6757-2bbc-4508-b46c-3c70bfb5c280" + }, + { + "name": "no-transform.xslt", + "guid": "6f5c7770-2011-494b-a475-3fd3c452868b" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"exporter-1.exp","guid":"c8ae6f6c-62fd-45b2-bf73-8643969a6008"},{"name":"no-transform.xslt","guid":"a52f9d12-4876-48da-9736-477862e70ea3"}]} + "example": { + "files": [ + { + "name": "exporter-1.exp", + "guid": "1e0c6757-2bbc-4508-b46c-3c70bfb5c280" + }, + { + "name": "no-transform.xslt", + "guid": "6f5c7770-2011-494b-a475-3fd3c452868b" + } + ] + } } } }, @@ -11964,19 +20280,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"fee3e0c9-f36b-4bc4-93c6-d9e378b80a83"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "c77e77fd-a8ac-46d1-be4d-ca1f595f07b5" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"fee3e0c9-f36b-4bc4-93c6-d9e378b80a83"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "c77e77fd-a8ac-46d1-be4d-ca1f595f07b5" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"fee3e0c9-f36b-4bc4-93c6-d9e378b80a83"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "c77e77fd-a8ac-46d1-be4d-ca1f595f07b5" + } } } }, @@ -12035,19 +20375,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c046857a-2745-49ae-a221-e312d20d9cd3"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "0fe4a8b0-719d-4461-b0ea-070d74cb1746" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c046857a-2745-49ae-a221-e312d20d9cd3"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "0fe4a8b0-719d-4461-b0ea-070d74cb1746" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"c046857a-2745-49ae-a221-e312d20d9cd3"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "0fe4a8b0-719d-4461-b0ea-070d74cb1746" + } } } }, @@ -12097,20 +20461,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": {"description":"New description for Exporter file."} + "value": { + "description": "New description for Exporter file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} + "value": { + "guid": "485f4965-13b0-4510-acd9-292c7f11b63d" + } } } }, @@ -12119,20 +20489,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": {"description":"New description for Exporter file."} + "value": { + "description": "New description for Exporter file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} + "value": { + "guid": "485f4965-13b0-4510-acd9-292c7f11b63d" + } } } }, @@ -12141,20 +20517,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": {"description":"New description for Exporter file."} + "value": { + "description": "New description for Exporter file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} + "value": { + "guid": "485f4965-13b0-4510-acd9-292c7f11b63d" + } } } }, @@ -12163,20 +20545,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Exporter File", "description": "This example demonstrates how to rename an existing Exporter file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for an Exporter File", "description": "This example demonstrates how to change the description for an existing Exporter file.", - "value": {"description":"New description for Exporter file."} + "value": { + "description": "New description for Exporter file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", - "value": {"guid":"32006699-441e-414f-9d3f-fccbc5afac55"} + "value": { + "guid": "485f4965-13b0-4510-acd9-292c7f11b63d" + } } } } @@ -12190,19 +20578,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"9d28834d-dde5-4b7f-974b-635e7561e371"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "16e30ec6-1453-4740-955d-f04813d59798" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"9d28834d-dde5-4b7f-974b-635e7561e371"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "16e30ec6-1453-4740-955d-f04813d59798" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"9d28834d-dde5-4b7f-974b-635e7561e371"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "16e30ec6-1453-4740-955d-f04813d59798" + } } } }, @@ -12351,10 +20763,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -12363,10 +20777,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -12375,10 +20791,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -12387,10 +20805,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Exporter File", "description": "This example demonstrates how to move an existing Exporter file to be under the root 'Exporters' folder.", - "value": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "value": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } } @@ -12404,19 +20824,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b4a2d047-2842-4031-afd7-d9d2f703cd82"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "980376e1-a58a-4943-8108-7f678de8b92f" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b4a2d047-2842-4031-afd7-d9d2f703cd82"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "980376e1-a58a-4943-8108-7f678de8b92f" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"b4a2d047-2842-4031-afd7-d9d2f703cd82"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "980376e1-a58a-4943-8108-7f678de8b92f" + } } } }, @@ -12491,10 +20935,17 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpressionsInfo" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Get all expressions", "description": "This example demonstrates the response to getting all expressions from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": {"expressions":[{"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"}]} + "value": { + "expressions": [ + { + "name": "Fatigue Model", + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } + ] + } } } } @@ -12537,20 +20988,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression" + } }, - "Example 11": { + "Example 2": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression with specified guid", + "guid": "494234ac-12b8-4b3b-b659-a0346ec3450f" + } }, - "Example 12": { + "Example 3": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "name": "Simple expression with specified unit" + } } } }, @@ -12559,20 +21023,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression" + } }, - "Example 11": { + "Example 2": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression with specified guid", + "guid": "494234ac-12b8-4b3b-b659-a0346ec3450f" + } }, - "Example 12": { + "Example 3": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "name": "Simple expression with specified unit" + } } } }, @@ -12581,20 +21058,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression" + } }, - "Example 11": { + "Example 2": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression with specified guid", + "guid": "494234ac-12b8-4b3b-b659-a0346ec3450f" + } }, - "Example 12": { + "Example 3": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "name": "Simple expression with specified unit" + } } } }, @@ -12603,20 +21093,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsCreateExpression" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Expression", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression" + } }, - "Example 11": { + "Example 2": { "summary": "Expression with specified guid", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') in the MI_Training database with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","name":"Simple expression with specified guid","guid":"1d98195b-a52f-411b-9d80-812e431adddb"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "name": "Simple expression with specified guid", + "guid": "494234ac-12b8-4b3b-b659-a0346ec3450f" + } }, - "Example 12": { + "Example 3": { "summary": "Expression with specified unit", "description": "This example demonstrates how to create a new expression for 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified unit 'ohm' from the MI_Training database.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"00000059-0013-4fff-8fff-0000ffff0000"},"name":"Simple expression with specified unit"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "00000059-0013-4fff-8fff-0000ffff0000" + }, + "name": "Simple expression with specified unit" + } } } } @@ -12631,10 +21134,51 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 11": { + "Example 2": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} + "value": { + "value": "[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "attributeDependencies": [ + { + "name": "Young's modulus", + "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Fatigue strength at 10^7 cycles", + "guid": "0000010c-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Elongation", + "guid": "0000011a-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Yield strength (elastic limit)", + "guid": "0000011b-0001-4fff-8fff-dd92ffff0000" + } + ], + "constantDependencies": [], + "parameterDependencies": [ + { + "name": "Number of Cycles", + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "name": "Stress Ratio", + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + ], + "name": "Fatigue Model", + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } } } } @@ -12720,10 +21264,51 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} + "value": { + "value": "[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "attributeDependencies": [ + { + "name": "Young's modulus", + "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Fatigue strength at 10^7 cycles", + "guid": "0000010c-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Elongation", + "guid": "0000011a-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Yield strength (elastic limit)", + "guid": "0000011b-0001-4fff-8fff-dd92ffff0000" + } + ], + "constantDependencies": [], + "parameterDependencies": [ + { + "name": "Number of Cycles", + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "name": "Stress Ratio", + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + ], + "name": "Fatigue Model", + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } } } } @@ -12775,15 +21360,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "name": "Fatigue Model (Updated)", + "guid": "d7e14ba8-7811-4c5e-a6ef-6d6d2baf341a" + } }, - "Example 8": { + "Example 2": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Fatigue Model (Updated)"} + "value": { + "name": "Fatigue Model (Updated)" + } } } }, @@ -12792,15 +21386,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "name": "Fatigue Model (Updated)", + "guid": "d7e14ba8-7811-4c5e-a6ef-6d6d2baf341a" + } }, - "Example 8": { + "Example 2": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Fatigue Model (Updated)"} + "value": { + "name": "Fatigue Model (Updated)" + } } } }, @@ -12809,15 +21412,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "name": "Fatigue Model (Updated)", + "guid": "d7e14ba8-7811-4c5e-a6ef-6d6d2baf341a" + } }, - "Example 8": { + "Example 2": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Fatigue Model (Updated)"} + "value": { + "name": "Fatigue Model (Updated)" + } } } }, @@ -12826,15 +21438,24 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsUpdateExpression" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for an expression", "description": "This example demonstrates how to update all properties of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Unit will be set to kg.", - "value": {"value":"[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"name":"Fatigue Model (Updated)","guid":"c5195b07-89ff-49e1-b4d1-028661626f49"} + "value": { + "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "name": "Fatigue Model (Updated)", + "guid": "d7e14ba8-7811-4c5e-a6ef-6d6d2baf341a" + } }, - "Example 8": { + "Example 2": { "summary": "Rename expression", "description": "This example demonstrates how to update the 'Name' property of the 'Fatigue Model' expression (guid = 535074aa-216f-4f60-b13e-f5e8be72d05f) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Fatigue Model (Updated)"} + "value": { + "name": "Fatigue Model (Updated)" + } } } } @@ -12849,10 +21470,51 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaExpressionsExpression" }, "examples": { - "Example 12": { + "Example 3": { "summary": "Get expression", "description": "This example demonstrates the response to getting 'Fatigue Model' expression (GUID = '535074aa-216f-4f60-b13e-f5e8be72d05f') from 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from MI_Training database.", - "value": {"value":"[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))","unit":{"symbol":"MPa","guid":"0000002b-0013-4fff-8fff-0000ffff0000"},"attributeDependencies":[{"name":"Young's modulus","guid":"0000003f-0001-4fff-8fff-dd92ffff0000"},{"name":"Tensile strength","guid":"000000e3-0001-4fff-8fff-dd92ffff0000"},{"name":"Fatigue strength at 10^7 cycles","guid":"0000010c-0001-4fff-8fff-dd92ffff0000"},{"name":"Elongation","guid":"0000011a-0001-4fff-8fff-dd92ffff0000"},{"name":"Yield strength (elastic limit)","guid":"0000011b-0001-4fff-8fff-dd92ffff0000"}],"constantDependencies":[],"parameterDependencies":[{"name":"Number of Cycles","guid":"00000007-000a-4fff-8fff-0000ffff0000"},{"name":"Stress Ratio","guid":"00000004-000a-4fff-8fff-0000ffff0000"}],"name":"Fatigue Model","guid":"535074aa-216f-4f60-b13e-f5e8be72d05f"} + "value": { + "value": "[A:Tensile strength] / ((1 + [P:Stress Ratio]) / (1 - [P:Stress Ratio]) + [A:Tensile strength] / (([A:Tensile strength] * (1 + [A:Elongation] / 100) - [A:Yield strength (elastic limit)]) / (log(1 + mean([A:Elongation] / 100)) - [A:Yield strength (elastic limit)] / (1000 * [A:Young's modulus])) * log(1 + mean([A:Elongation] / 100)) * (2 * [P:Number of Cycles]) ^ -0.6 + [A:Tensile strength] * (1 + [A:Elongation] / 100) * (2 * [P:Number of Cycles]) ^ (log10(mean([A:Fatigue strength at 10^7 cycles] / ([A:Tensile strength] * (1 + [A:Elongation] / 100)))) / log10(20000000))))", + "unit": { + "symbol": "MPa", + "guid": "0000002b-0013-4fff-8fff-0000ffff0000" + }, + "attributeDependencies": [ + { + "name": "Young's modulus", + "guid": "0000003f-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Tensile strength", + "guid": "000000e3-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Fatigue strength at 10^7 cycles", + "guid": "0000010c-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Elongation", + "guid": "0000011a-0001-4fff-8fff-dd92ffff0000" + }, + { + "name": "Yield strength (elastic limit)", + "guid": "0000011b-0001-4fff-8fff-dd92ffff0000" + } + ], + "constantDependencies": [], + "parameterDependencies": [ + { + "name": "Number of Cycles", + "guid": "00000007-000a-4fff-8fff-0000ffff0000" + }, + { + "name": "Stress Ratio", + "guid": "00000004-000a-4fff-8fff-0000ffff0000" + } + ], + "name": "Fatigue Model", + "guid": "535074aa-216f-4f60-b13e-f5e8be72d05f" + } } } } @@ -12944,19 +21606,85 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"},{"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} + "example": { + "folders": [ + { + "name": "Help Pages", + "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + }, + { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "html", + "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "attributenotes", + "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "sciencenotes", + "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"},{"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} + "example": { + "folders": [ + { + "name": "Help Pages", + "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + }, + { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "html", + "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "attributenotes", + "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "sciencenotes", + "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"},{"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} + "example": { + "folders": [ + { + "name": "Help Pages", + "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + }, + { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "html", + "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "attributenotes", + "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "sciencenotes", + "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" + } + ] + } } } }, @@ -12988,10 +21716,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "New Folder" + } } } }, @@ -13000,10 +21731,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "New Folder" + } } } }, @@ -13012,10 +21746,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "New Folder" + } } } }, @@ -13024,10 +21761,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Help File Folder", "description": "This example demonstrates how to create a new help file folder under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"New Folder"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "New Folder" + } } } } @@ -13041,19 +21781,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -13094,19 +21843,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "example": { + "name": "Help Pages", + "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "example": { + "name": "Help Pages", + "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Help Pages","guid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "example": { + "name": "Help Pages", + "guid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } }, @@ -13150,19 +21908,31 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"} + "example": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "html", + "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"} + "example": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "html", + "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22","name":"html","guid":"99ff4816-15e9-42b9-9ac3-b60fce881e85"} + "example": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22", + "name": "html", + "guid": "99ff4816-15e9-42b9-9ac3-b60fce881e85" + } } } }, @@ -13203,15 +21973,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} + "value": { + "guid": "1897d27b-ce9f-4f2e-9a54-6915221748f5" + } } } }, @@ -13220,15 +21994,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} + "value": { + "guid": "1897d27b-ce9f-4f2e-9a54-6915221748f5" + } } } }, @@ -13237,15 +22015,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} + "value": { + "guid": "1897d27b-ce9f-4f2e-9a54-6915221748f5" + } } } }, @@ -13254,15 +22036,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Help File Folder", "description": "This example demonstrates how to rename an existing help file folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", - "value": {"guid":"81c6fd14-ff92-4442-80a7-2c03bced8e84"} + "value": { + "guid": "1897d27b-ce9f-4f2e-9a54-6915221748f5" + } } } } @@ -13276,19 +22062,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -13375,19 +22170,58 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} + "example": { + "folders": [ + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "attributenotes", + "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "sciencenotes", + "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} + "example": { + "folders": [ + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "attributenotes", + "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "sciencenotes", + "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"attributenotes","guid":"c7db2cff-69ef-479d-b7a6-d12cfe888a56"},{"parentGuid":"99ff4816-15e9-42b9-9ac3-b60fce881e85","name":"sciencenotes","guid":"38a6a798-4488-4c38-824e-0e41ce34932f"}]} + "example": { + "folders": [ + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "attributenotes", + "guid": "c7db2cff-69ef-479d-b7a6-d12cfe888a56" + }, + { + "parentGuid": "99ff4816-15e9-42b9-9ac3-b60fce881e85", + "name": "sciencenotes", + "guid": "38a6a798-4488-4c38-824e-0e41ce34932f" + } + ] + } } } }, @@ -13430,10 +22264,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } }, @@ -13442,10 +22278,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } }, @@ -13454,10 +22292,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } }, @@ -13466,10 +22306,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File Folder", "description": "This example demonstrates how to move an existing help file folder to be under the root 'Help Pages' folder.", - "value": {"parentGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "parentGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } } @@ -13483,19 +22325,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -13545,19 +22396,52 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"},{"name":"Atomic_volume.html","guid":"94574853-3cfe-41d9-be48-391883fa0ea9"}]} + "example": { + "files": [ + { + "name": "Abrasion_rate.html", + "guid": "fdfcb207-63f7-4a10-87a3-054587444056" + }, + { + "name": "Atomic_volume.html", + "guid": "94574853-3cfe-41d9-be48-391883fa0ea9" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"},{"name":"Atomic_volume.html","guid":"94574853-3cfe-41d9-be48-391883fa0ea9"}]} + "example": { + "files": [ + { + "name": "Abrasion_rate.html", + "guid": "fdfcb207-63f7-4a10-87a3-054587444056" + }, + { + "name": "Atomic_volume.html", + "guid": "94574853-3cfe-41d9-be48-391883fa0ea9" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"},{"name":"Atomic_volume.html","guid":"94574853-3cfe-41d9-be48-391883fa0ea9"}]} + "example": { + "files": [ + { + "name": "Abrasion_rate.html", + "guid": "fdfcb207-63f7-4a10-87a3-054587444056" + }, + { + "name": "Atomic_volume.html", + "guid": "94574853-3cfe-41d9-be48-391883fa0ea9" + } + ] + } } } }, @@ -13625,19 +22509,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3352fe04-6f74-4fe9-ab75-e8965491937d"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "24dc6df4-9b83-4054-8543-487da8b1cab8" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3352fe04-6f74-4fe9-ab75-e8965491937d"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "24dc6df4-9b83-4054-8543-487da8b1cab8" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"3352fe04-6f74-4fe9-ab75-e8965491937d"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "24dc6df4-9b83-4054-8543-487da8b1cab8" + } } } }, @@ -13696,19 +22604,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"cd34921a-67e6-43ff-adfe-3d36b6b3b5c7","description":"Description of Abrasion-rate file.","extension":"html","dataLength":5090,"path":"Help Pages\\html\\attributenotes\\en\\material","name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"} + "example": { + "folderGuid": "cd34921a-67e6-43ff-adfe-3d36b6b3b5c7", + "description": "Description of Abrasion-rate file.", + "extension": "html", + "dataLength": 5090, + "path": "Help Pages\\html\\attributenotes\\en\\material", + "name": "Abrasion_rate.html", + "guid": "fdfcb207-63f7-4a10-87a3-054587444056" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"cd34921a-67e6-43ff-adfe-3d36b6b3b5c7","description":"Description of Abrasion-rate file.","extension":"html","dataLength":5090,"path":"Help Pages\\html\\attributenotes\\en\\material","name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"} + "example": { + "folderGuid": "cd34921a-67e6-43ff-adfe-3d36b6b3b5c7", + "description": "Description of Abrasion-rate file.", + "extension": "html", + "dataLength": 5090, + "path": "Help Pages\\html\\attributenotes\\en\\material", + "name": "Abrasion_rate.html", + "guid": "fdfcb207-63f7-4a10-87a3-054587444056" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"cd34921a-67e6-43ff-adfe-3d36b6b3b5c7","description":"Description of Abrasion-rate file.","extension":"html","dataLength":5090,"path":"Help Pages\\html\\attributenotes\\en\\material","name":"Abrasion_rate.html","guid":"fdfcb207-63f7-4a10-87a3-054587444056"} + "example": { + "folderGuid": "cd34921a-67e6-43ff-adfe-3d36b6b3b5c7", + "description": "Description of Abrasion-rate file.", + "extension": "html", + "dataLength": 5090, + "path": "Help Pages\\html\\attributenotes\\en\\material", + "name": "Abrasion_rate.html", + "guid": "fdfcb207-63f7-4a10-87a3-054587444056" + } } } }, @@ -13758,20 +22690,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": {"description":"New description for help file."} + "value": { + "description": "New description for help file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} + "value": { + "guid": "d4ba7aea-d491-4ccd-b480-3e8bf390e311" + } } } }, @@ -13780,20 +22718,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": {"description":"New description for help file."} + "value": { + "description": "New description for help file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} + "value": { + "guid": "d4ba7aea-d491-4ccd-b480-3e8bf390e311" + } } } }, @@ -13802,20 +22746,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": {"description":"New description for help file."} + "value": { + "description": "New description for help file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} + "value": { + "guid": "d4ba7aea-d491-4ccd-b480-3e8bf390e311" + } } } }, @@ -13824,20 +22774,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Help File", "description": "This example demonstrates how to rename an existing help file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Help File", "description": "This example demonstrates how to change the description for an existing help file.", - "value": {"description":"New description for help file."} + "value": { + "description": "New description for help file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", - "value": {"guid":"c7d1545a-11dd-49dd-87b8-cdddd25abbbb"} + "value": { + "guid": "d4ba7aea-d491-4ccd-b480-3e8bf390e311" + } } } } @@ -13851,19 +22807,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"e4b4c9d0-4294-4f62-b6b0-dac5878b39c9"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "97fecdca-8f1b-4125-8eb1-66722c6747d3" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"e4b4c9d0-4294-4f62-b6b0-dac5878b39c9"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "97fecdca-8f1b-4125-8eb1-66722c6747d3" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"e4b4c9d0-4294-4f62-b6b0-dac5878b39c9"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "97fecdca-8f1b-4125-8eb1-66722c6747d3" + } } } }, @@ -14012,10 +22992,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } }, @@ -14024,10 +23006,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } }, @@ -14036,10 +23020,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } }, @@ -14048,10 +23034,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Help File", "description": "This example demonstrates how to move an existing help file to be under the root 'Help Pages' folder.", - "value": {"folderGuid":"e7dbba58-b963-4d1f-bbf4-c8436d00bf22"} + "value": { + "folderGuid": "e7dbba58-b963-4d1f-bbf4-c8436d00bf22" + } } } } @@ -14065,19 +23053,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"bdce48d9-768b-4231-872f-3c620208541c"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "bbe55a65-77e6-4e9f-997f-59a59be82631" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"bdce48d9-768b-4231-872f-3c620208541c"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "bbe55a65-77e6-4e9f-997f-59a59be82631" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"bdce48d9-768b-4231-872f-3c620208541c"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "bbe55a65-77e6-4e9f-997f-59a59be82631" + } } } }, @@ -14118,19 +23130,55 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"56fedf02-4e4f-4c8e-abfc-494830fd5622"}]} + "example": { + "folders": [ + { + "name": "Home Pages", + "guid": "c13eb185-2558-4b4a-8395-33c031663925" + }, + { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "4ea20645-5c56-433d-afac-4fd7b36477a0" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"56fedf02-4e4f-4c8e-abfc-494830fd5622"}]} + "example": { + "folders": [ + { + "name": "Home Pages", + "guid": "c13eb185-2558-4b4a-8395-33c031663925" + }, + { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "4ea20645-5c56-433d-afac-4fd7b36477a0" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"},{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"56fedf02-4e4f-4c8e-abfc-494830fd5622"}]} + "example": { + "folders": [ + { + "name": "Home Pages", + "guid": "c13eb185-2558-4b4a-8395-33c031663925" + }, + { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "4ea20645-5c56-433d-afac-4fd7b36477a0" + } + ] + } } } }, @@ -14162,10 +23210,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "New Folder" + } } } }, @@ -14174,10 +23225,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "New Folder" + } } } }, @@ -14186,10 +23240,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "New Folder" + } } } }, @@ -14198,10 +23255,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesCreateFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Home Page Folder", "description": "This example demonstrates how to create a new home page folder under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"New Folder"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "New Folder" + } } } } @@ -14215,19 +23275,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -14268,19 +23337,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"} + "example": { + "name": "Home Pages", + "guid": "c13eb185-2558-4b4a-8395-33c031663925" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"} + "example": { + "name": "Home Pages", + "guid": "c13eb185-2558-4b4a-8395-33c031663925" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Home Pages","guid":"c13eb185-2558-4b4a-8395-33c031663925"} + "example": { + "name": "Home Pages", + "guid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } }, @@ -14324,19 +23402,31 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e677728f-204e-4581-ba38-193c0554d823"} + "example": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "2b42699d-5ea1-4975-9366-60d161748fcb" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e677728f-204e-4581-ba38-193c0554d823"} + "example": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "2b42699d-5ea1-4975-9366-60d161748fcb" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"e677728f-204e-4581-ba38-193c0554d823"} + "example": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "2b42699d-5ea1-4975-9366-60d161748fcb" + } } } }, @@ -14377,15 +23467,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} + "value": { + "guid": "fd76f569-4bbe-4e9b-8e1e-89403490286a" + } } } }, @@ -14394,15 +23488,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} + "value": { + "guid": "fd76f569-4bbe-4e9b-8e1e-89403490286a" + } } } }, @@ -14411,15 +23509,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} + "value": { + "guid": "fd76f569-4bbe-4e9b-8e1e-89403490286a" + } } } }, @@ -14428,15 +23530,19 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFolder" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Rename Home Page Folder", "description": "This example demonstrates how to rename an existing home page folder.", - "value": {"name":"New Folder Name"} + "value": { + "name": "New Folder Name" + } }, - "Example 8": { + "Example 2": { "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", - "value": {"guid":"d8f19d62-3549-4595-a228-0636aa0e641d"} + "value": { + "guid": "fd76f569-4bbe-4e9b-8e1e-89403490286a" + } } } } @@ -14450,19 +23556,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -14549,19 +23664,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"1524a911-f7cd-45bc-a184-cff3a4658e17"}]} + "example": { + "folders": [ + { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "85378156-233e-4e6b-bbdc-094ebb4d1823" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"1524a911-f7cd-45bc-a184-cff3a4658e17"}]} + "example": { + "folders": [ + { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "85378156-233e-4e6b-bbdc-094ebb4d1823" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFoldersInfo" }, - "example": {"folders":[{"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925","name":"images","guid":"1524a911-f7cd-45bc-a184-cff3a4658e17"}]} + "example": { + "folders": [ + { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "name": "images", + "guid": "85378156-233e-4e6b-bbdc-094ebb4d1823" + } + ] + } } } }, @@ -14604,10 +23743,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } }, @@ -14616,10 +23757,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } }, @@ -14628,10 +23771,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } }, @@ -14640,10 +23785,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFolder" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page Folder", "description": "This example demonstrates how to move an existing home page folder to be under the root 'Home Pages' folder.", - "value": {"parentGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } } @@ -14657,19 +23804,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFolder" }, - "example": {"name":"Exporters","guid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44"} + "example": { + "name": "Exporters", + "guid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44" + } } } }, @@ -14719,19 +23875,52 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"81a89406-e547-439f-a3d8-e3928e41dfec"},{"name":"home-page-2.html","guid":"75595c67-e682-4267-96d9-33e9e9d6323c"}]} + "example": { + "files": [ + { + "name": "home-page-1.html", + "guid": "740f5be6-1e85-4fe4-a197-8eeca45c4a5b" + }, + { + "name": "home-page-2.html", + "guid": "5f0fc5ee-f3c7-4e38-9154-bfd1ffde61c1" + } + ] + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"81a89406-e547-439f-a3d8-e3928e41dfec"},{"name":"home-page-2.html","guid":"75595c67-e682-4267-96d9-33e9e9d6323c"}]} + "example": { + "files": [ + { + "name": "home-page-1.html", + "guid": "740f5be6-1e85-4fe4-a197-8eeca45c4a5b" + }, + { + "name": "home-page-2.html", + "guid": "5f0fc5ee-f3c7-4e38-9154-bfd1ffde61c1" + } + ] + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFilesInfo" }, - "example": {"files":[{"name":"home-page-1.html","guid":"81a89406-e547-439f-a3d8-e3928e41dfec"},{"name":"home-page-2.html","guid":"75595c67-e682-4267-96d9-33e9e9d6323c"}]} + "example": { + "files": [ + { + "name": "home-page-1.html", + "guid": "740f5be6-1e85-4fe4-a197-8eeca45c4a5b" + }, + { + "name": "home-page-2.html", + "guid": "5f0fc5ee-f3c7-4e38-9154-bfd1ffde61c1" + } + ] + } } } }, @@ -14799,19 +23988,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1a08682f-e2c2-4b17-a967-7f804ea86916"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "46e2ea6c-4504-42e8-8026-d9011de5f257" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1a08682f-e2c2-4b17-a967-7f804ea86916"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "46e2ea6c-4504-42e8-8026-d9011de5f257" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1a08682f-e2c2-4b17-a967-7f804ea86916"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "46e2ea6c-4504-42e8-8026-d9011de5f257" + } } } }, @@ -14870,19 +24083,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"bb2adfe8-3637-40af-8097-c2eacab65197"} + "example": { + "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "description": "Description of home page file.", + "extension": "html", + "dataLength": 12895, + "path": "HomePages", + "name": "home-page.html", + "guid": "3561fd89-480a-4cbf-87ae-ab54198c13a3" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"bb2adfe8-3637-40af-8097-c2eacab65197"} + "example": { + "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "description": "Description of home page file.", + "extension": "html", + "dataLength": 12895, + "path": "HomePages", + "name": "home-page.html", + "guid": "3561fd89-480a-4cbf-87ae-ab54198c13a3" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925","description":"Description of home page file.","extension":"html","dataLength":12895,"path":"HomePages","name":"home-page.html","guid":"bb2adfe8-3637-40af-8097-c2eacab65197"} + "example": { + "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925", + "description": "Description of home page file.", + "extension": "html", + "dataLength": 12895, + "path": "HomePages", + "name": "home-page.html", + "guid": "3561fd89-480a-4cbf-87ae-ab54198c13a3" + } } } }, @@ -14932,20 +24169,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": {"description":"New description for home page file."} + "value": { + "description": "New description for home page file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} + "value": { + "guid": "c69d8f23-edf0-4f8a-92de-c2b2b81b405f" + } } } }, @@ -14954,20 +24197,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": {"description":"New description for home page file."} + "value": { + "description": "New description for home page file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} + "value": { + "guid": "c69d8f23-edf0-4f8a-92de-c2b2b81b405f" + } } } }, @@ -14976,20 +24225,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": {"description":"New description for home page file."} + "value": { + "description": "New description for home page file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} + "value": { + "guid": "c69d8f23-edf0-4f8a-92de-c2b2b81b405f" + } } } }, @@ -14998,20 +24253,26 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesUpdateFile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Rename Home Page File", "description": "This example demonstrates how to rename an existing home page file.", - "value": {"name":"New File Name"} + "value": { + "name": "New File Name" + } }, - "Example 11": { + "Example 2": { "summary": "Modify the description for a Home Page File", "description": "This example demonstrates how to change the description for an existing home page file.", - "value": {"description":"New description for home page file."} + "value": { + "description": "New description for home page file." + } }, - "Example 12": { + "Example 3": { "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", - "value": {"guid":"5379d65b-0c37-4103-ab47-32ea8ddd5702"} + "value": { + "guid": "c69d8f23-edf0-4f8a-92de-c2b2b81b405f" + } } } } @@ -15025,19 +24286,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1b22cbc9-1872-4017-ac68-9aaf651809bf"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "242252c6-5747-466f-9c95-3cc0df509d87" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1b22cbc9-1872-4017-ac68-9aaf651809bf"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "242252c6-5747-466f-9c95-3cc0df509d87" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"1b22cbc9-1872-4017-ac68-9aaf651809bf"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "242252c6-5747-466f-9c95-3cc0df509d87" + } } } }, @@ -15186,10 +24471,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } }, @@ -15198,10 +24485,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } }, @@ -15210,10 +24499,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } }, @@ -15222,10 +24513,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaFilesMoveFile" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Move Home Page File", "description": "This example demonstrates how to move an existing home page file to be under the root 'Home Pages' folder.", - "value": {"folderGuid":"c13eb185-2558-4b4a-8395-33c031663925"} + "value": { + "folderGuid": "c13eb185-2558-4b4a-8395-33c031663925" + } } } } @@ -15239,19 +24532,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5310478e-f1e7-4c03-8063-4fa3f8797e64"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "b0c0d65e-00dc-4b74-ba28-775be31344a6" + } }, "application/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5310478e-f1e7-4c03-8063-4fa3f8797e64"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "b0c0d65e-00dc-4b74-ba28-775be31344a6" + } }, "text/json": { "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaFilesFileHeader" }, - "example": {"folderGuid":"c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44","description":"Description of exporter file.","extension":"exp","dataLength":12895,"path":"Exporters","name":"exporter-1.exp","guid":"5310478e-f1e7-4c03-8063-4fa3f8797e64"} + "example": { + "folderGuid": "c4e0bbbd-71b3-4bf7-ac6e-7ceeef058a44", + "description": "Description of exporter file.", + "extension": "exp", + "dataLength": 12895, + "path": "Exporters", + "name": "exporter-1.exp", + "guid": "b0c0d65e-00dc-4b74-ba28-775be31344a6" + } } } }, @@ -15342,15 +24659,111 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSectionsInfo" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Get 'slim' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to false, which is the default value.", - "value": {"layoutSections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} + "value": { + "layoutSections": [ + { + "sectionDetailType": "slim", + "displayNames": { + "en": "General Properties English Display Name", + "fr": "General Properties French Display Name" + }, + "name": "General Properties", + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Mechanical Properties English Display Name", + "fr": "Mechanical Properties French Display Name" + }, + "name": "Mechanical Properties", + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + } + ] + } }, - "Example 8": { + "Example 2": { "summary": "Get 'full' layout sections", "description": "This example demonstrates the response to getting the sections for a layout with the 'showFullDetail' parameter set to true.", - "value": {"layoutSections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"b8371b18-05c0-4e9d-9a70-60402c6d7459","name":"Price","guid":"d34bc175-09e5-4994-9938-9a8fece6c6e1"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"23dcaed8-4426-4e1b-8b4f-e5eaacdc638d","name":"Density","guid":"b4acce43-19c6-4faf-a1c8-a9ced7fbd60a"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"f302d607-6c76-48cf-ba3a-c9a3691cf304","name":"Young's modulus","guid":"d5f835b3-f215-4142-a0cb-eaae82de738b"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"045f9769-564f-4c63-bc0a-9cf8205d163e","name":"Tensile strength","guid":"528185e8-6dcf-4174-a7e2-8c90c9ada8b0"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"2aa1d9cd-0f6c-42ec-9d5f-62477962851d","name":"Shape factor","guid":"7cedcd2f-cf00-4837-976e-1ba58f720efe"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}]} + "value": { + "layoutSections": [ + { + "sectionDetailType": "full", + "sectionItems": [ + { + "itemType": "attribute", + "attributeType": "point", + "required": false, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "89f5028d-641a-42b9-9f2b-6b5aa616cd44", + "name": "Price", + "guid": "2f7a4549-74e1-4480-87e0-f7e397a3619f" + }, + { + "itemType": "attribute", + "attributeType": "point", + "required": false, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "8c54448c-edb3-452c-a64d-1236a88ad5e4", + "name": "Density", + "guid": "0cf13f87-e5dc-4331-89a0-c9c09792eb87" + } + ], + "displayNames": { + "en": "General Properties English Display Name", + "fr": "General Properties French Display Name" + }, + "name": "General Properties", + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "sectionDetailType": "full", + "sectionItems": [ + { + "itemType": "attribute", + "attributeType": "floatFunctional", + "required": true, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "78824248-32ad-4f75-89b2-695b3925a13f", + "name": "Young's modulus", + "guid": "2240d932-1240-43ce-aeec-d4faf8db36d6" + }, + { + "itemType": "attribute", + "attributeType": "range", + "required": true, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "3c7b5615-d849-477b-afe6-5dc20b36a0f5", + "name": "Tensile strength", + "guid": "99e35f84-af1f-4132-9e70-a02cdfc5a270" + }, + { + "itemType": "attribute", + "attributeType": "point", + "required": true, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "096f8079-f0ea-4708-93b3-0c59f7d10666", + "name": "Shape factor", + "guid": "07bdf999-6831-4248-ba88-67a08e2fb96e" + } + ], + "displayNames": { + "en": "Mechanical Properties English Display Name", + "fr": "Mechanical Properties French Display Name" + }, + "name": "Mechanical Properties", + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + } + ] + } } } } @@ -15402,15 +24815,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Additional Properties"} + "value": { + "name": "Additional Properties" + } }, - "Example 8": { + "Example 2": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} + "value": { + "name": "Additional Properties (Guid)", + "guid": "58be8b17-919b-4b0f-a007-ca59e4f61343" + } } } }, @@ -15419,15 +24837,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Additional Properties"} + "value": { + "name": "Additional Properties" + } }, - "Example 8": { + "Example 2": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} + "value": { + "name": "Additional Properties (Guid)", + "guid": "58be8b17-919b-4b0f-a007-ca59e4f61343" + } } } }, @@ -15436,15 +24859,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Additional Properties"} + "value": { + "name": "Additional Properties" + } }, - "Example 8": { + "Example 2": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} + "value": { + "name": "Additional Properties (Guid)", + "guid": "58be8b17-919b-4b0f-a007-ca59e4f61343" + } } } }, @@ -15453,15 +24881,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayoutSection" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout Section", "description": "This example demonstrates how to create a new layout section in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Additional Properties"} + "value": { + "name": "Additional Properties" + } }, - "Example 8": { + "Example 2": { "summary": "Layout Section with Guid", "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"Additional Properties (Guid)","guid":"0e8432a1-48fe-4016-8928-1e6c12af596d"} + "value": { + "name": "Additional Properties (Guid)", + "guid": "58be8b17-919b-4b0f-a007-ca59e4f61343" + } } } } @@ -15475,7 +24908,12 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayoutSection" }, - "example": {"sectionDetailType":"slim","displayNames":{},"name":"Additional Properties","guid":"4cf4fc08-95d9-44e1-b5ff-5d7fba32ac4b"} + "example": { + "sectionDetailType": "slim", + "displayNames": {}, + "name": "Additional Properties", + "guid": "9170e8b5-ad10-424b-99b9-61a5db3e76b1" + } } } }, @@ -15531,10 +24969,70 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} + "value": { + "layoutSections": [ + { + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + }, + { + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "guid": "07124fac-3100-444f-ad5b-385decd9539f" + }, + { + "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" + }, + { + "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" + }, + { + "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" + }, + { + "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" + }, + { + "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" + }, + { + "guid": "b175f578-cf61-4642-9b98-eda48578db1e" + }, + { + "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" + }, + { + "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" + }, + { + "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" + }, + { + "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" + }, + { + "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" + }, + { + "guid": "83ba3aad-cb2f-49df-89e5-091017087563" + }, + { + "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" + }, + { + "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" + }, + { + "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" + }, + { + "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" + } + ] + } } } }, @@ -15543,10 +25041,70 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} + "value": { + "layoutSections": [ + { + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + }, + { + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "guid": "07124fac-3100-444f-ad5b-385decd9539f" + }, + { + "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" + }, + { + "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" + }, + { + "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" + }, + { + "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" + }, + { + "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" + }, + { + "guid": "b175f578-cf61-4642-9b98-eda48578db1e" + }, + { + "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" + }, + { + "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" + }, + { + "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" + }, + { + "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" + }, + { + "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" + }, + { + "guid": "83ba3aad-cb2f-49df-89e5-091017087563" + }, + { + "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" + }, + { + "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" + }, + { + "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" + }, + { + "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" + } + ] + } } } }, @@ -15555,10 +25113,70 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} + "value": { + "layoutSections": [ + { + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + }, + { + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "guid": "07124fac-3100-444f-ad5b-385decd9539f" + }, + { + "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" + }, + { + "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" + }, + { + "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" + }, + { + "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" + }, + { + "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" + }, + { + "guid": "b175f578-cf61-4642-9b98-eda48578db1e" + }, + { + "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" + }, + { + "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" + }, + { + "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" + }, + { + "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" + }, + { + "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" + }, + { + "guid": "83ba3aad-cb2f-49df-89e5-091017087563" + }, + { + "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" + }, + { + "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" + }, + { + "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" + }, + { + "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" + } + ] + } } } }, @@ -15567,10 +25185,70 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsReorderSectionsInfo" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Reorder Layout Sections", "description": "This example demonstrates how to reorder sections in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"layoutSections":[{"guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} + "value": { + "layoutSections": [ + { + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + }, + { + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "guid": "07124fac-3100-444f-ad5b-385decd9539f" + }, + { + "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" + }, + { + "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" + }, + { + "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" + }, + { + "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" + }, + { + "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" + }, + { + "guid": "b175f578-cf61-4642-9b98-eda48578db1e" + }, + { + "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" + }, + { + "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" + }, + { + "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" + }, + { + "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" + }, + { + "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" + }, + { + "guid": "83ba3aad-cb2f-49df-89e5-091017087563" + }, + { + "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" + }, + { + "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" + }, + { + "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" + }, + { + "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" + } + ] + } } } } @@ -15584,7 +25262,190 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSectionsInfo" }, - "example": {"layoutSections":[{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"},{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Electrical Properties English Display Name","fr":"Electrical Properties French Display Name"},"name":"Electrical Properties","guid":"07124fac-3100-444f-ad5b-385decd9539f"},{"sectionDetailType":"slim","displayNames":{"en":"Composition Overview English Display Name","fr":"Composition Overview French Display Name"},"name":"Composition Overview","guid":"937e77fe-70ca-4e99-b013-f9186bce45d3"},{"sectionDetailType":"slim","displayNames":{"en":"Composition detail (metals, ceramics and glasses) English Display Name","fr":"Composition detail (metals, ceramics and glasses) French Display Name"},"name":"Composition detail (metals, ceramics and glasses)","guid":"6f610145-72f9-4c11-aa72-6cbe268e9238"},{"sectionDetailType":"slim","displayNames":{"en":"Restricted substances English Display Name","fr":"Restricted substances French Display Name"},"name":"Restricted substances","guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"sectionDetailType":"slim","displayNames":{"en":"Further Information English Display Name","fr":"Further Information French Display Name"},"name":"Further Information","guid":"6a5788ea-1a46-4806-a9d7-916a2eebb71c"},{"sectionDetailType":"slim","displayNames":{"en":"Restricted substances English Display Name","fr":"Restricted substances French Display Name"},"name":"Restricted substances","guid":"f2587e4f-36b4-4b75-8ecb-853e51adf3a5"},{"sectionDetailType":"slim","displayNames":{"en":"Notes English Display Name","fr":"Notes French Display Name"},"name":"Notes","guid":"e243499b-3369-45db-bf3e-3c0dbb82f57f"},{"sectionDetailType":"slim","displayNames":{"en":"Material recycling: energy, CO2 and recycle fraction English Display Name","fr":"Material recycling: energy, CO2 and recycle fraction French Display Name"},"name":"Material recycling: energy, CO2 and recycle fraction","guid":"b175f578-cf61-4642-9b98-eda48578db1e"},{"sectionDetailType":"slim","displayNames":{"en":"Material processing: CO2 footprint English Display Name","fr":"Material processing: CO2 footprint French Display Name"},"name":"Material processing: CO2 footprint","guid":"268854a1-1886-4bbf-b6aa-02aa64020fac"},{"sectionDetailType":"slim","displayNames":{"en":"Material processing: energy English Display Name","fr":"Material processing: energy French Display Name"},"name":"Material processing: energy","guid":"3bde950b-9320-439e-8e7a-cf12c54eb94d"},{"sectionDetailType":"slim","displayNames":{"en":"Eco-indicators for principal component English Display Name","fr":"Eco-indicators for principal component French Display Name"},"name":"Eco-indicators for principal component","guid":"3b829b2a-bfca-4531-9532-834eedcc0778"},{"sectionDetailType":"slim","displayNames":{"en":"Primary material production: energy, CO2 and water English Display Name","fr":"Primary material production: energy, CO2 and water French Display Name"},"name":"Primary material production: energy, CO2 and water","guid":"b9d84ce2-9435-4f22-9377-9db56fb80c53"},{"sectionDetailType":"slim","displayNames":{"en":"Geo-economic data for principal component English Display Name","fr":"Geo-economic data for principal component French Display Name"},"name":"Geo-economic data for principal component","guid":"3be73930-15a2-4dca-a818-3e18aa6081aa"},{"sectionDetailType":"slim","displayNames":{"en":"Durability: fluids and sunlight English Display Name","fr":"Durability: fluids and sunlight French Display Name"},"name":"Durability: fluids and sunlight","guid":"83ba3aad-cb2f-49df-89e5-091017087563"},{"sectionDetailType":"slim","displayNames":{"en":"Durability: flammability English Display Name","fr":"Durability: flammability French Display Name"},"name":"Durability: flammability","guid":"0c17f625-debe-4b6a-bcde-d60f3db571f5"},{"sectionDetailType":"slim","displayNames":{"en":"Optical properties English Display Name","fr":"Optical properties French Display Name"},"name":"Optical properties","guid":"461c81d8-ecb4-4675-a05d-2dfef747db71"},{"sectionDetailType":"slim","displayNames":{"en":"Thermal properties English Display Name","fr":"Thermal properties French Display Name"},"name":"Thermal properties","guid":"5b986b6d-ce14-48fd-b5a9-6286b9983954"},{"sectionDetailType":"slim","displayNames":{"en":"Bio-data English Display Name","fr":"Bio-data French Display Name"},"name":"Bio-data","guid":"d15a87a0-2880-4508-af1e-381a2aa9e831"}]} + "example": { + "layoutSections": [ + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Mechanical Properties English Display Name", + "fr": "Mechanical Properties French Display Name" + }, + "name": "Mechanical Properties", + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "General Properties English Display Name", + "fr": "General Properties French Display Name" + }, + "name": "General Properties", + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Electrical Properties English Display Name", + "fr": "Electrical Properties French Display Name" + }, + "name": "Electrical Properties", + "guid": "07124fac-3100-444f-ad5b-385decd9539f" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Composition Overview English Display Name", + "fr": "Composition Overview French Display Name" + }, + "name": "Composition Overview", + "guid": "937e77fe-70ca-4e99-b013-f9186bce45d3" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Composition detail (metals, ceramics and glasses) English Display Name", + "fr": "Composition detail (metals, ceramics and glasses) French Display Name" + }, + "name": "Composition detail (metals, ceramics and glasses)", + "guid": "6f610145-72f9-4c11-aa72-6cbe268e9238" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Restricted substances English Display Name", + "fr": "Restricted substances French Display Name" + }, + "name": "Restricted substances", + "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Further Information English Display Name", + "fr": "Further Information French Display Name" + }, + "name": "Further Information", + "guid": "6a5788ea-1a46-4806-a9d7-916a2eebb71c" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Restricted substances English Display Name", + "fr": "Restricted substances French Display Name" + }, + "name": "Restricted substances", + "guid": "f2587e4f-36b4-4b75-8ecb-853e51adf3a5" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Notes English Display Name", + "fr": "Notes French Display Name" + }, + "name": "Notes", + "guid": "e243499b-3369-45db-bf3e-3c0dbb82f57f" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Material recycling: energy, CO2 and recycle fraction English Display Name", + "fr": "Material recycling: energy, CO2 and recycle fraction French Display Name" + }, + "name": "Material recycling: energy, CO2 and recycle fraction", + "guid": "b175f578-cf61-4642-9b98-eda48578db1e" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Material processing: CO2 footprint English Display Name", + "fr": "Material processing: CO2 footprint French Display Name" + }, + "name": "Material processing: CO2 footprint", + "guid": "268854a1-1886-4bbf-b6aa-02aa64020fac" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Material processing: energy English Display Name", + "fr": "Material processing: energy French Display Name" + }, + "name": "Material processing: energy", + "guid": "3bde950b-9320-439e-8e7a-cf12c54eb94d" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Eco-indicators for principal component English Display Name", + "fr": "Eco-indicators for principal component French Display Name" + }, + "name": "Eco-indicators for principal component", + "guid": "3b829b2a-bfca-4531-9532-834eedcc0778" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Primary material production: energy, CO2 and water English Display Name", + "fr": "Primary material production: energy, CO2 and water French Display Name" + }, + "name": "Primary material production: energy, CO2 and water", + "guid": "b9d84ce2-9435-4f22-9377-9db56fb80c53" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Geo-economic data for principal component English Display Name", + "fr": "Geo-economic data for principal component French Display Name" + }, + "name": "Geo-economic data for principal component", + "guid": "3be73930-15a2-4dca-a818-3e18aa6081aa" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Durability: fluids and sunlight English Display Name", + "fr": "Durability: fluids and sunlight French Display Name" + }, + "name": "Durability: fluids and sunlight", + "guid": "83ba3aad-cb2f-49df-89e5-091017087563" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Durability: flammability English Display Name", + "fr": "Durability: flammability French Display Name" + }, + "name": "Durability: flammability", + "guid": "0c17f625-debe-4b6a-bcde-d60f3db571f5" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Optical properties English Display Name", + "fr": "Optical properties French Display Name" + }, + "name": "Optical properties", + "guid": "461c81d8-ecb4-4675-a05d-2dfef747db71" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Thermal properties English Display Name", + "fr": "Thermal properties French Display Name" + }, + "name": "Thermal properties", + "guid": "5b986b6d-ce14-48fd-b5a9-6286b9983954" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Bio-data English Display Name", + "fr": "Bio-data French Display Name" + }, + "name": "Bio-data", + "guid": "d15a87a0-2880-4508-af1e-381a2aa9e831" + } + ] + } } } }, @@ -15684,15 +25545,129 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutSection" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Get 'slim' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to false, which is the default value.", - "value": {"detailType":"slim","displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"0884f021-9aae-471d-bbbc-e5dc350f0f15"} + "value": { + "detailType": "slim", + "displayNames": { + "de": "Testing Information German Display Name", + "fr": "Testing Information French Display Name" + }, + "name": "Testing Information", + "guid": "c112d435-606b-4061-8b0f-4d6d783ee2f3" + } }, - "Example 8": { + "Example 2": { "summary": "Get 'full' layout section", "description": "This example demonstrates the response to getting a layout section with the 'showFullDetail' parameter set to true.", - "value": {"detailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"6d13ef13-419a-4a2a-a811-1d0accd602e5","name":"Form","guid":"2d8aa1ce-ed6d-4af8-86c2-3ca6dbbe6bb7"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeType":"longText","required":true,"readOnly":false,"underlyingEntityGuid":"3b51b6f5-9033-482a-842e-bebbd220f584","name":"Sources","guid":"922bbd36-84a0-4d7a-9601-79aa2a8bb2da"},{"itemType":"attribute","attributeType":"shortText","required":true,"readOnly":false,"underlyingEntityGuid":"7c55dd92-5ca1-42cb-b7a8-b07e9f35ffba","name":"Notes","guid":"015d40a2-056f-4f34-8da9-3fe4f3bae7f9"}],"underlyingEntityGuid":"913ef28e-3072-4fd5-afa7-fc4b9d61c812","name":"Chemical resistance","guid":"9d9bafcc-76a1-4db4-bdb1-4f8fd703c585"},{"itemType":"link","linkType":"recordLink","targetDatabase":"27464968-03e2-4bc4-a340-7ae7d97863c7","targetDatabaseVersion":"1fac547a-1944-4fcb-8ed0-10d6dc00beb4","targetTable":"b9ac9537-89fa-4fe6-ad20-30159ea1ac6a","forwards":true,"underlyingEntityGuid":"6245f184-8961-4fdd-bddf-b9233b1fa72d","name":"Material Pedigree","guid":"aaa6004f-aa2a-4724-9430-8a537021ca4f"},{"itemType":"attribute","attributeType":"link","required":false,"readOnly":false,"metaAttributes":[],"tabularColumns":[{"columnType":"linkedAttribute","tabularColumnGuid":"418468df-dd65-458a-9d35-9a6f8f51e1dd","name":"Offset Yield Stress","guid":"9609e958-4381-4d64-ae8b-cc2c90422d78"},{"columnType":"localShortText","tabularColumnGuid":"72ba816f-3a5a-474d-a421-0d3b862100bc","name":"Young's Modulus Notes","guid":"5f023328-b08c-461f-b3a5-f205bea0ca6c"}],"underlyingEntityGuid":"5fd202c2-d98c-45e8-8228-b3fc10315612","name":"Reference Characteristics","guid":"fbcfb6ba-44bb-489b-ae6c-7efc0a8843ce"},{"itemType":"link","linkType":"associationChain","targetDatabase":"27464968-03e2-4bc4-a340-7ae7d97863c7","targetDatabaseVersion":"1fac547a-1944-4fcb-8ed0-10d6dc00beb4","targetTable":"75eb8a13-9ee9-4099-8584-a9dbaa9e7fb6","forwards":true,"nextLink":{"itemType":"link","linkType":"associationChain","targetDatabase":"27464968-03e2-4bc4-a340-7ae7d97863c7","targetDatabaseVersion":"1fac547a-1944-4fcb-8ed0-10d6dc00beb4","targetTable":"6ee780b7-958c-42f0-855f-165b992a583e","forwards":false,"underlyingEntityGuid":"4d7f48cc-bd3e-4a46-b945-4fd5ded1ea7a","name":"Pedigree information","guid":"93e952c0-73fa-4308-b0fe-ccb03443b327"},"underlyingEntityGuid":"589d1b40-3a9d-4535-aefc-fd328b23ae75","name":"To Pedigree from Producers","guid":"dcce2dcc-9165-42bf-9d20-893e36cd4a54"}],"displayNames":{"de":"Testing Information German Display Name","fr":"Testing Information French Display Name"},"name":"Testing Information","guid":"03f2d003-bc25-45a1-88eb-84610774d324"} + "value": { + "detailType": "full", + "sectionItems": [ + { + "itemType": "attribute", + "attributeType": "shortText", + "required": true, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "e671733f-9d20-4b4d-aa31-db1c1932d3f7", + "name": "Form", + "guid": "2e2e82c9-c360-44ad-8427-1b4af0d0d847" + }, + { + "itemType": "attribute", + "attributeType": "point", + "required": true, + "readOnly": false, + "metaAttributes": [ + { + "itemType": "attribute", + "attributeType": "longText", + "required": true, + "readOnly": false, + "underlyingEntityGuid": "450f1b96-03cd-44b3-b0fa-c0c8092bd3cf", + "name": "Sources", + "guid": "81167ed7-b010-43df-b3ef-3375a15e10bb" + }, + { + "itemType": "attribute", + "attributeType": "shortText", + "required": true, + "readOnly": false, + "underlyingEntityGuid": "800b1594-d31a-4c4c-b4d0-b468307c4cde", + "name": "Notes", + "guid": "fb6baa15-9d2b-405d-9dad-d9b7ba70caed" + } + ], + "underlyingEntityGuid": "3c15f7c2-1784-4702-bb4d-8b22042cd674", + "name": "Chemical resistance", + "guid": "5cf97f76-638a-4672-8d17-2836ecad1a2b" + }, + { + "itemType": "link", + "linkType": "recordLink", + "targetDatabase": "6959abb1-a3f1-4999-aeed-233df9ea9efb", + "targetDatabaseVersion": "961c9dda-7e75-4b69-9f5c-1bf10d4cedc3", + "targetTable": "54c2f8a2-ff17-4f91-971d-f5dc0484b51c", + "forwards": true, + "underlyingEntityGuid": "f847da09-55bf-4f7e-bcad-5213f9982f2e", + "name": "Material Pedigree", + "guid": "ac82bfd9-92a9-4752-9810-992d68ba0b22" + }, + { + "itemType": "attribute", + "attributeType": "link", + "required": false, + "readOnly": false, + "metaAttributes": [], + "tabularColumns": [ + { + "columnType": "linkedAttribute", + "tabularColumnGuid": "a8552fa7-0861-414f-a6ef-5228ba47046d", + "name": "Offset Yield Stress", + "guid": "d985a7fc-869a-4018-9630-e923171ac0ab" + }, + { + "columnType": "localShortText", + "tabularColumnGuid": "56ff7a0d-0ecf-4f76-9c75-a5ce4b3890dc", + "name": "Young's Modulus Notes", + "guid": "3ee121a3-73a0-479d-aad8-1763b4be1b3d" + } + ], + "underlyingEntityGuid": "5d64b0e6-c64c-4f23-8a25-f4ec407ae909", + "name": "Reference Characteristics", + "guid": "e69e8c88-f8ee-4b6b-bae7-d93d4d550cb0" + }, + { + "itemType": "link", + "linkType": "associationChain", + "targetDatabase": "6959abb1-a3f1-4999-aeed-233df9ea9efb", + "targetDatabaseVersion": "961c9dda-7e75-4b69-9f5c-1bf10d4cedc3", + "targetTable": "e480ce92-6ee5-4143-8f8e-918522cd8afc", + "forwards": true, + "nextLink": { + "itemType": "link", + "linkType": "associationChain", + "targetDatabase": "6959abb1-a3f1-4999-aeed-233df9ea9efb", + "targetDatabaseVersion": "961c9dda-7e75-4b69-9f5c-1bf10d4cedc3", + "targetTable": "b6d17a66-a991-427f-b24a-5633c93b2ac5", + "forwards": false, + "underlyingEntityGuid": "6b6710d6-9ff0-46a1-8206-9d25f544406c", + "name": "Pedigree information", + "guid": "58c781be-54e8-4c7e-8818-ef561b3763eb" + }, + "underlyingEntityGuid": "e0712ca3-12cb-4cd4-b0e6-ab83243c4053", + "name": "To Pedigree from Producers", + "guid": "ee5654c7-9d32-4371-88d3-e70757ebf4a6" + } + ], + "displayNames": { + "de": "Testing Information German Display Name", + "fr": "Testing Information French Display Name" + }, + "name": "Testing Information", + "guid": "48133413-7e1c-4234-8a91-76c7eebb1e01" + } } } } @@ -15813,45 +25788,98 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 25": { + "Example 1": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" + } }, - "Example 26": { + "Example 2": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", + "required": true, + "readOnly": true + } }, - "Example 27": { + "Example 3": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} + "value": { + "itemType": "attribute", + "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", + "metaAttributes": [ + { + "itemType": "attribute", + "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", + "required": false, + "readOnly": false + } + ] + } }, - "Example 28": { + "Example 4": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} + "value": { + "itemType": "attribute", + "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "tabularColumnGuids": [ + "7b28a5fd-4972-40fc-8181-626586258bc3", + "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + ] + } }, - "Example 29": { + "Example 5": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} + "value": { + "itemType": "recordLink", + "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" + } }, - "Example 30": { + "Example 6": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} + "value": { + "itemType": "smartLink", + "forwards": true, + "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" + } }, - "Example 31": { + "Example 7": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} + "value": { + "itemType": "crossDatabaseLink", + "sourceDatabaseGuid": "34210c54-854f-4cbc-8d06-fccff35e926a", + "sourceTableGuid": "ba1c3c9f-d10a-4c36-93ab-464fdc56dd83", + "linkGroupGuid": "4f98eb28-207c-4a22-b28c-6ea7f53a32cf" + } }, - "Example 32": { + "Example 8": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} + "value": { + "itemType": "associationChain", + "associationChainName": "Name of association chain", + "associationChainLinks": [ + { + "forwards": true, + "sourceDatabaseVersionGuid": "b70111f7-748d-4363-a66c-477d40931bc8", + "tabularAttributeGuid": "93cc7ec4-9e68-488e-849b-c77d1d8fdb0a" + }, + { + "forwards": false, + "sourceDatabaseVersionGuid": "b8f36cfc-8b7c-4249-a386-1b5a10c3cbac", + "tabularAttributeGuid": "e3b0ea6c-611f-456d-b349-ef00fffcfabd" + } + ] + } } } }, @@ -15860,45 +25888,98 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 25": { + "Example 1": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" + } }, - "Example 26": { + "Example 2": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", + "required": true, + "readOnly": true + } }, - "Example 27": { + "Example 3": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} + "value": { + "itemType": "attribute", + "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", + "metaAttributes": [ + { + "itemType": "attribute", + "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", + "required": false, + "readOnly": false + } + ] + } }, - "Example 28": { + "Example 4": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} + "value": { + "itemType": "attribute", + "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "tabularColumnGuids": [ + "7b28a5fd-4972-40fc-8181-626586258bc3", + "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + ] + } }, - "Example 29": { + "Example 5": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} + "value": { + "itemType": "recordLink", + "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" + } }, - "Example 30": { + "Example 6": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} + "value": { + "itemType": "smartLink", + "forwards": true, + "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" + } }, - "Example 31": { + "Example 7": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} + "value": { + "itemType": "crossDatabaseLink", + "sourceDatabaseGuid": "34210c54-854f-4cbc-8d06-fccff35e926a", + "sourceTableGuid": "ba1c3c9f-d10a-4c36-93ab-464fdc56dd83", + "linkGroupGuid": "4f98eb28-207c-4a22-b28c-6ea7f53a32cf" + } }, - "Example 32": { + "Example 8": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} + "value": { + "itemType": "associationChain", + "associationChainName": "Name of association chain", + "associationChainLinks": [ + { + "forwards": true, + "sourceDatabaseVersionGuid": "b70111f7-748d-4363-a66c-477d40931bc8", + "tabularAttributeGuid": "93cc7ec4-9e68-488e-849b-c77d1d8fdb0a" + }, + { + "forwards": false, + "sourceDatabaseVersionGuid": "b8f36cfc-8b7c-4249-a386-1b5a10c3cbac", + "tabularAttributeGuid": "e3b0ea6c-611f-456d-b349-ef00fffcfabd" + } + ] + } } } }, @@ -15907,45 +25988,98 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 25": { + "Example 1": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" + } }, - "Example 26": { + "Example 2": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", + "required": true, + "readOnly": true + } }, - "Example 27": { + "Example 3": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} + "value": { + "itemType": "attribute", + "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", + "metaAttributes": [ + { + "itemType": "attribute", + "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", + "required": false, + "readOnly": false + } + ] + } }, - "Example 28": { + "Example 4": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} + "value": { + "itemType": "attribute", + "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "tabularColumnGuids": [ + "7b28a5fd-4972-40fc-8181-626586258bc3", + "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + ] + } }, - "Example 29": { + "Example 5": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} + "value": { + "itemType": "recordLink", + "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" + } }, - "Example 30": { + "Example 6": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} + "value": { + "itemType": "smartLink", + "forwards": true, + "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" + } }, - "Example 31": { + "Example 7": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} + "value": { + "itemType": "crossDatabaseLink", + "sourceDatabaseGuid": "34210c54-854f-4cbc-8d06-fccff35e926a", + "sourceTableGuid": "ba1c3c9f-d10a-4c36-93ab-464fdc56dd83", + "linkGroupGuid": "4f98eb28-207c-4a22-b28c-6ea7f53a32cf" + } }, - "Example 32": { + "Example 8": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} + "value": { + "itemType": "associationChain", + "associationChainName": "Name of association chain", + "associationChainLinks": [ + { + "forwards": true, + "sourceDatabaseVersionGuid": "b70111f7-748d-4363-a66c-477d40931bc8", + "tabularAttributeGuid": "93cc7ec4-9e68-488e-849b-c77d1d8fdb0a" + }, + { + "forwards": false, + "sourceDatabaseVersionGuid": "b8f36cfc-8b7c-4249-a386-1b5a10c3cbac", + "tabularAttributeGuid": "e3b0ea6c-611f-456d-b349-ef00fffcfabd" + } + ] + } } } }, @@ -15954,45 +26088,98 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 25": { + "Example 1": { "summary": "Layout Attribute Item", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. The ReadOnly and Required properties default to false.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b"} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b" + } }, - "Example 26": { + "Example 2": { "summary": "Layout Attribute Item with ReadOnly and Required properties set", "description": "This example demonstrates how to add the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database specifying the ReadOnly and Required properties and the Guid of the created layout item.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":true} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", + "required": true, + "readOnly": true + } }, - "Example 27": { + "Example 3": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates how to add the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":false,"readOnly":false}]} + "value": { + "itemType": "attribute", + "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", + "metaAttributes": [ + { + "itemType": "attribute", + "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", + "required": false, + "readOnly": false + } + ] + } }, - "Example 28": { + "Example 4": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates how to add the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include.", - "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"]} + "value": { + "itemType": "attribute", + "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "tabularColumnGuids": [ + "7b28a5fd-4972-40fc-8181-626586258bc3", + "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + ] + } }, - "Example 29": { + "Example 5": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates how to add the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"} + "value": { + "itemType": "recordLink", + "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" + } }, - "Example 30": { + "Example 6": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates how to add the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"} + "value": { + "itemType": "smartLink", + "forwards": true, + "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" + } }, - "Example 31": { + "Example 7": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"8b7229c5-054b-42b6-ac1a-b14f6c157122","sourceTableGuid":"b81d43b1-a9fc-4215-be61-de1b8cc98a58","linkGroupGuid":"a5917c68-cf0a-43f9-9f5d-548fc38f66e0"} + "value": { + "itemType": "crossDatabaseLink", + "sourceDatabaseGuid": "34210c54-854f-4cbc-8d06-fccff35e926a", + "sourceTableGuid": "ba1c3c9f-d10a-4c36-93ab-464fdc56dd83", + "linkGroupGuid": "4f98eb28-207c-4a22-b28c-6ea7f53a32cf" + } }, - "Example 32": { + "Example 8": { "summary": "Layout Association Chain Item", "description": "This example demonstrates how to add an association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"a7a96307-741d-480a-9880-e061f8f91392","tabularAttributeGuid":"10910662-4f63-45d0-9e48-9643950e97c8"},{"forwards":false,"sourceDatabaseVersionGuid":"209f0111-ae29-4993-ab10-fdeb2fa44f72","tabularAttributeGuid":"4c10c829-68a9-47c7-937b-31dc236f915d"}]} + "value": { + "itemType": "associationChain", + "associationChainName": "Name of association chain", + "associationChainLinks": [ + { + "forwards": true, + "sourceDatabaseVersionGuid": "b70111f7-748d-4363-a66c-477d40931bc8", + "tabularAttributeGuid": "93cc7ec4-9e68-488e-849b-c77d1d8fdb0a" + }, + { + "forwards": false, + "sourceDatabaseVersionGuid": "b8f36cfc-8b7c-4249-a386-1b5a10c3cbac", + "tabularAttributeGuid": "e3b0ea6c-611f-456d-b349-ef00fffcfabd" + } + ] + } } } } @@ -16007,40 +26194,105 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutItem" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Layout Attribute Item", "description": "This example demonstrates the response to creating a new attribute layout item. It was created by adding the 'Additive' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"ec51581f-4a78-4b1b-81df-83382c541b7b","required":true,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":null,"guid":"71867d59-6c3d-43ca-92fb-0b7ded903b5d"} + "value": { + "itemType": "attribute", + "attributeGuid": "ec51581f-4a78-4b1b-81df-83382c541b7b", + "required": true, + "readOnly": false, + "metaAttributes": null, + "tabularColumnGuids": null, + "guid": "5f09f8ef-8583-46b3-bd45-1549a9b690a9" + } }, - "Example 23": { + "Example 2": { "summary": "Layout Attribute Item with Meta Attributes", "description": "This example demonstrates the response to creating a new attribute layout item with a meta-attribute. It was created by adding the 'Flexural modulus' attribute with its 'Notes' meta-attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"attribute","attributeGuid":"000000ec-0001-4fff-8fff-dd92ffff0000","required":false,"readOnly":false,"metaAttributes":[{"itemType":"attribute","attributeGuid":"3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5","required":true,"readOnly":false}],"tabularColumnGuids":null,"guid":"7c9fa412-9395-46ae-80ef-5254a6c23cdb"} + "value": { + "itemType": "attribute", + "attributeGuid": "000000ec-0001-4fff-8fff-dd92ffff0000", + "required": false, + "readOnly": false, + "metaAttributes": [ + { + "itemType": "attribute", + "attributeGuid": "3cd6866c-3ad4-4cc9-b2d0-e7296b0c12d5", + "required": true, + "readOnly": false + } + ], + "tabularColumnGuids": null, + "guid": "22e8638d-6a29-4ea5-9dfe-34d5884b8199" + } }, - "Example 24": { + "Example 3": { "summary": "Layout Attribute Item for a Tabular Attribute", "description": "This example demonstrates the response to creating a new tabular attribute layout item with specified tabular columns to include. It was created by adding the 'Restricted substances associated with this material' attribute to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with specified tabular columns to include. ", - "value": {"itemType":"attribute","attributeGuid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","required":false,"readOnly":false,"metaAttributes":null,"tabularColumnGuids":["7b28a5fd-4972-40fc-8181-626586258bc3","9a0ce77a-60cf-42c7-b827-e7d74bea7a6b"],"guid":null} + "value": { + "itemType": "attribute", + "attributeGuid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "required": false, + "readOnly": false, + "metaAttributes": null, + "tabularColumnGuids": [ + "7b28a5fd-4972-40fc-8181-626586258bc3", + "9a0ce77a-60cf-42c7-b827-e7d74bea7a6b" + ], + "guid": null + } }, - "Example 25": { + "Example 4": { "summary": "Layout Record Link Group Item", "description": "This example demonstrates the response to creating a new link group layout item. It was created by adding the 'MaterialUniverse' (reverse name 'Training Exercise') link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"recordLink","linkGroupGuid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949","guid":null} + "value": { + "itemType": "recordLink", + "linkGroupGuid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949", + "guid": null + } }, - "Example 26": { + "Example 5": { "summary": "Layout Smart Link Group Item", "description": "This example demonstrates the response to creating a new smart link group layout item. It was created by adding the 'Smart Link to Training Record' smart link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"smartLink","forwards":true,"linkGroupGuid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66","guid":null} + "value": { + "itemType": "smartLink", + "forwards": true, + "linkGroupGuid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66", + "guid": null + } }, - "Example 27": { + "Example 6": { "summary": "Layout Cross Database Link Group Item", "description": "This example demonstrates the response to creating a new cross database link group layout item. It was created by adding a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"crossDatabaseLink","sourceDatabaseGuid":"7b913c71-31dd-43e0-806b-a1f177dc77d3","sourceTableGuid":"148a3ab0-4b0e-4dd3-a1f5-1fa7c8ee3549","linkGroupGuid":"0f6175b5-201a-4e41-91b7-e7603022e6a4","guid":null} + "value": { + "itemType": "crossDatabaseLink", + "sourceDatabaseGuid": "254e2990-1f4a-4f62-a7e6-b58cf75d12c3", + "sourceTableGuid": "041e499a-cddc-4269-a942-35b9374323b2", + "linkGroupGuid": "0e33c30e-6d4c-4aab-8b26-ca916f588462", + "guid": null + } }, - "Example 28": { + "Example 7": { "summary": "Layout Association Chain Item", "description": "This example demonstrates the response to creating a new association chain layout item. It was created by adding a association chain to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"itemType":"associationChain","associationChainName":"Name of association chain","associationChainLinks":[{"forwards":true,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"030aafea-1cd3-4f6a-924a-194009cacbfa"},{"forwards":false,"sourceDatabaseVersionGuid":"00000000-0000-0000-0000-000000000000","tabularAttributeGuid":"7e732b6a-4871-4daf-9151-7801361d6110"}],"guid":null} + "value": { + "itemType": "associationChain", + "associationChainName": "Name of association chain", + "associationChainLinks": [ + { + "forwards": true, + "sourceDatabaseVersionGuid": "00000000-0000-0000-0000-000000000000", + "tabularAttributeGuid": "5713bb7d-0318-406a-bee4-338e98a0f425" + }, + { + "forwards": false, + "sourceDatabaseVersionGuid": "00000000-0000-0000-0000-000000000000", + "tabularAttributeGuid": "401e2aeb-125b-41bb-ab9f-45b424b3ca70" + } + ], + "guid": null + } } } } @@ -16185,7 +26437,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutsInfo" }, - "example": {"layouts":[{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Metals","guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Polymers","guid":"00007645-0009-4fff-8fff-dd92ffff0000"}]} + "example": { + "layouts": [ + { + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + { + "displayNames": {}, + "name": "Metals", + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + }, + { + "displayNames": {}, + "name": "Polymers", + "guid": "00007645-0009-4fff-8fff-dd92ffff0000" + } + ] + } } } }, @@ -16226,15 +26499,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Composite materials"} + "value": { + "name": "Composite materials" + } }, - "Example 8": { + "Example 2": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} + "value": { + "name": "Composite materials (guid)", + "guid": "9f2899db-d162-4c03-9339-13c70126bfe6" + } } } }, @@ -16243,15 +26521,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Composite materials"} + "value": { + "name": "Composite materials" + } }, - "Example 8": { + "Example 2": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} + "value": { + "name": "Composite materials (guid)", + "guid": "9f2899db-d162-4c03-9339-13c70126bfe6" + } } } }, @@ -16260,15 +26543,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Composite materials"} + "value": { + "name": "Composite materials" + } }, - "Example 8": { + "Example 2": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} + "value": { + "name": "Composite materials (guid)", + "guid": "9f2899db-d162-4c03-9339-13c70126bfe6" + } } } }, @@ -16277,15 +26565,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsCreateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Composite materials"} + "value": { + "name": "Composite materials" + } }, - "Example 8": { + "Example 2": { "summary": "Layout with Guid", "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Composite materials (guid)","guid":"31dcb165-63fb-4d96-baab-7874360157f2"} + "value": { + "name": "Composite materials (guid)", + "guid": "9f2899db-d162-4c03-9339-13c70126bfe6" + } } } } @@ -16299,7 +26592,11 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayout" }, - "example": {"displayNames":{},"name":"Ceramics","guid":"86b5ba49-b6ab-4e1b-b238-59f19c3ed08f"} + "example": { + "displayNames": {}, + "name": "Ceramics", + "guid": "d2cedf38-a213-4f36-ae86-c345b4fd00b8" + } } } }, @@ -16390,15 +26687,123 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Layout with 'slim' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to false, which is the default value.", - "value": {"sections":[{"sectionDetailType":"slim","displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"slim","displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": { + "sections": [ + { + "sectionDetailType": "slim", + "displayNames": { + "en": "General Properties English Display Name", + "fr": "General Properties French Display Name" + }, + "name": "General Properties", + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "sectionDetailType": "slim", + "displayNames": { + "en": "Mechanical Properties English Display Name", + "fr": "Mechanical Properties French Display Name" + }, + "name": "Mechanical Properties", + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + } + ], + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + } }, - "Example 8": { + "Example 2": { "summary": "Layout with 'full' sections", "description": "This example demonstrated the response to getting a layout with the 'showFullDetail' parameter set to true.", - "value": {"sections":[{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e29666e5-d1ae-40f3-a358-000db9a58fa7","name":"Price","guid":"26c7ffa2-7378-458a-bd83-0bced7308d5b"},{"itemType":"attribute","attributeType":"point","required":false,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"9263f637-d0cb-4193-88d3-05c13f053ac0","name":"Density","guid":"9791e667-2eea-46e3-9074-cc5fd0bd0c8e"}],"displayNames":{"en":"General Properties English Display Name","fr":"General Properties French Display Name"},"name":"General Properties","guid":"b10170ab-ff56-4828-81b8-c4427674ed2f"},{"sectionDetailType":"full","sectionItems":[{"itemType":"attribute","attributeType":"floatFunctional","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"e7bf2634-66c0-4b4a-be5e-b2589256b86b","name":"Young's modulus","guid":"5b24e5a4-24a1-4fe6-9a47-ee2d28d73c15"},{"itemType":"attribute","attributeType":"range","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"60175935-e616-470d-a159-5aebf6d0bfd6","name":"Tensile strength","guid":"6e0c4274-ea28-47b7-af3b-a8dc653664e5"},{"itemType":"attribute","attributeType":"point","required":true,"readOnly":false,"metaAttributes":[],"underlyingEntityGuid":"3c6c6dc1-dc22-4d01-a353-5b27709579f2","name":"Shape factor","guid":"72b4cff7-4c6d-455e-99ba-8987876cf8de"}],"displayNames":{"en":"Mechanical Properties English Display Name","fr":"Mechanical Properties French Display Name"},"name":"Mechanical Properties","guid":"aa6a7ef2-0e37-40a6-b3eb-11d502408281"}],"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": { + "sections": [ + { + "sectionDetailType": "full", + "sectionItems": [ + { + "itemType": "attribute", + "attributeType": "point", + "required": false, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "fef60a39-c969-4dc8-b2c7-cd0d06a44a53", + "name": "Price", + "guid": "d208863f-49f0-43fe-a7d0-fab813c59737" + }, + { + "itemType": "attribute", + "attributeType": "point", + "required": false, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "a8a717dc-1945-42a9-b697-2f253660be2c", + "name": "Density", + "guid": "ec7a6be7-9d30-4764-9183-084b9f98b4c2" + } + ], + "displayNames": { + "en": "General Properties English Display Name", + "fr": "General Properties French Display Name" + }, + "name": "General Properties", + "guid": "b10170ab-ff56-4828-81b8-c4427674ed2f" + }, + { + "sectionDetailType": "full", + "sectionItems": [ + { + "itemType": "attribute", + "attributeType": "floatFunctional", + "required": true, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "4d09c2c2-849e-44f8-9c8a-678e1634e99e", + "name": "Young's modulus", + "guid": "f9b8b3a3-5eba-42fb-b9ac-c8119a1c1cd7" + }, + { + "itemType": "attribute", + "attributeType": "range", + "required": true, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "3f2a778d-a4ab-4328-bade-3c30b03bbeb1", + "name": "Tensile strength", + "guid": "65f08d4a-5e6c-404b-8b12-a0e55966b12e" + }, + { + "itemType": "attribute", + "attributeType": "point", + "required": true, + "readOnly": false, + "metaAttributes": [], + "underlyingEntityGuid": "8c9eb888-00a9-4b13-8f51-07ed987d47e5", + "name": "Shape factor", + "guid": "918a074c-a9de-40fb-a7e7-2b0e4436c1a1" + } + ], + "displayNames": { + "en": "Mechanical Properties English Display Name", + "fr": "Mechanical Properties French Display Name" + }, + "name": "Mechanical Properties", + "guid": "aa6a7ef2-0e37-40a6-b3eb-11d502408281" + } + ], + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + } } } } @@ -16450,15 +26855,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} + "value": { + "name": "Ceramics (Updated)", + "guid": "089440bc-c2dc-42ed-85a2-4d9f5da3de0c" + } }, - "Example 8": { + "Example 2": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } } } }, @@ -16467,15 +26877,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} + "value": { + "name": "Ceramics (Updated)", + "guid": "089440bc-c2dc-42ed-85a2-4d9f5da3de0c" + } }, - "Example 8": { + "Example 2": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } } } }, @@ -16484,15 +26899,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} + "value": { + "name": "Ceramics (Updated)", + "guid": "089440bc-c2dc-42ed-85a2-4d9f5da3de0c" + } }, - "Example 8": { + "Example 2": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } } } }, @@ -16501,15 +26921,20 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaLayoutsUpdateLayout" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Everything for a layout", "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)","guid":"c854a7fb-732a-431c-8f53-c83f302f8062"} + "value": { + "name": "Ceramics (Updated)", + "guid": "089440bc-c2dc-42ed-85a2-4d9f5da3de0c" + } }, - "Example 8": { + "Example 2": { "summary": "Rename layout", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } } } } @@ -16613,10 +27038,97 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParametersInfo" }, "examples": { - "Example 4": { + "Example 1": { "summary": "A mix of parameters", "description": "This example contains a mix of numeric and discrete parameters from the MI_Training database.", - "value": {"parameters":[{"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"},{"type":"numeric","isRestricted":false,"values":[{"type":"numeric","value":-1.0,"guid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94"},{"type":"numeric","value":0.0,"guid":"00000022-000b-4fff-8fff-0022ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/strain-ratio.html","defaultParameterValueGuid":"4c35e5cd-0641-45d1-96d3-bc42076b3a94","displayNames":{"en":"Strain Ratio","fr":"Rapport de contrainte"},"name":"Strain Ratio","guid":"00000022-000a-4fff-8fff-0000ffff0000"},{"type":"discrete","values":[{"type":"discrete","name":"Mean","guid":"21a27377-12eb-413c-bac4-d4ffceda39d1"},{"type":"discrete","name":"A-basis","guid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c"},{"type":"discrete","name":"B-basis","guid":"9ba94816-6784-4848-bfa6-d24b12597a5b"}],"helpPath":"/help/basis.html","defaultParameterValueGuid":"21a27377-12eb-413c-bac4-d4ffceda39d1","displayNames":{"en":"Basis","fr":"Base"},"name":"Basis","guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}]} + "value": { + "parameters": [ + { + "type": "numeric", + "isRestricted": false, + "unit": { + "symbol": "% strain", + "guid": "0000019b-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "type": "numeric", + "value": 0.1, + "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" + }, + { + "type": "numeric", + "value": 1.0, + "guid": "00000005-000b-4fff-8fff-0005ffff0000" + } + ], + "interpolationType": "linear", + "scaleType": "linear", + "helpPath": "/help/strain.html", + "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", + "displayNames": { + "en": "Strain", + "fr": "Souche" + }, + "name": "Strain", + "guid": "00000005-000a-4fff-8fff-0000ffff0000" + }, + { + "type": "numeric", + "isRestricted": false, + "values": [ + { + "type": "numeric", + "value": -1.0, + "guid": "4c35e5cd-0641-45d1-96d3-bc42076b3a94" + }, + { + "type": "numeric", + "value": 0.0, + "guid": "00000022-000b-4fff-8fff-0022ffff0000" + } + ], + "interpolationType": "linear", + "scaleType": "linear", + "helpPath": "/help/strain-ratio.html", + "defaultParameterValueGuid": "4c35e5cd-0641-45d1-96d3-bc42076b3a94", + "displayNames": { + "en": "Strain Ratio", + "fr": "Rapport de contrainte" + }, + "name": "Strain Ratio", + "guid": "00000022-000a-4fff-8fff-0000ffff0000" + }, + { + "type": "discrete", + "values": [ + { + "type": "discrete", + "name": "Mean", + "guid": "21a27377-12eb-413c-bac4-d4ffceda39d1" + }, + { + "type": "discrete", + "name": "A-basis", + "guid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c" + }, + { + "type": "discrete", + "name": "B-basis", + "guid": "9ba94816-6784-4848-bfa6-d24b12597a5b" + } + ], + "helpPath": "/help/basis.html", + "defaultParameterValueGuid": "21a27377-12eb-413c-bac4-d4ffceda39d1", + "displayNames": { + "en": "Basis", + "fr": "Base" + }, + "name": "Basis", + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + ] + } } } } @@ -16650,30 +27162,136 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 0, + "name": "Color" + } }, - "Example 17": { + "Example 2": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red", + "guid": "b5cc5126-14f4-43bb-90c2-4c0e0a84f187" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 1, + "name": "Color (guid)", + "guid": "844713d2-43ea-47b0-962a-335aca2e5800" + } }, - "Example 18": { + "Example 3": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} + "value": { + "type": "numeric", + "isRestricted": true, + "values": [ + { + "value": 2010.0, + "type": "numeric", + "name": "Twenty Ten" + }, + { + "value": 2015.0, + "type": "numeric" + }, + { + "value": 2020.0, + "type": "numeric", + "name": "Twenty Twenty" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 2, + "name": "Year" + } }, - "Example 19": { + "Example 4": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} + "value": { + "type": "numeric", + "isRestricted": true, + "unit": { + "guid": "00000099-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Small box" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Big box" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 0, + "name": "Box dimension" + } }, - "Example 20": { + "Example 5": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} + "value": { + "type": "numeric", + "isRestricted": false, + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Cold" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Hot" + } + ], + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "/help/outside-temperature.html", + "defaultParameterValueIndex": 2, + "name": "Outside Temperature" + } } } }, @@ -16682,30 +27300,136 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 0, + "name": "Color" + } }, - "Example 17": { + "Example 2": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red", + "guid": "b5cc5126-14f4-43bb-90c2-4c0e0a84f187" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 1, + "name": "Color (guid)", + "guid": "844713d2-43ea-47b0-962a-335aca2e5800" + } }, - "Example 18": { + "Example 3": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} + "value": { + "type": "numeric", + "isRestricted": true, + "values": [ + { + "value": 2010.0, + "type": "numeric", + "name": "Twenty Ten" + }, + { + "value": 2015.0, + "type": "numeric" + }, + { + "value": 2020.0, + "type": "numeric", + "name": "Twenty Twenty" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 2, + "name": "Year" + } }, - "Example 19": { + "Example 4": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} + "value": { + "type": "numeric", + "isRestricted": true, + "unit": { + "guid": "00000099-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Small box" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Big box" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 0, + "name": "Box dimension" + } }, - "Example 20": { + "Example 5": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} + "value": { + "type": "numeric", + "isRestricted": false, + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Cold" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Hot" + } + ], + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "/help/outside-temperature.html", + "defaultParameterValueIndex": 2, + "name": "Outside Temperature" + } } } }, @@ -16714,30 +27438,136 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 0, + "name": "Color" + } }, - "Example 17": { + "Example 2": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red", + "guid": "b5cc5126-14f4-43bb-90c2-4c0e0a84f187" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 1, + "name": "Color (guid)", + "guid": "844713d2-43ea-47b0-962a-335aca2e5800" + } }, - "Example 18": { + "Example 3": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} + "value": { + "type": "numeric", + "isRestricted": true, + "values": [ + { + "value": 2010.0, + "type": "numeric", + "name": "Twenty Ten" + }, + { + "value": 2015.0, + "type": "numeric" + }, + { + "value": 2020.0, + "type": "numeric", + "name": "Twenty Twenty" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 2, + "name": "Year" + } }, - "Example 19": { + "Example 4": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} + "value": { + "type": "numeric", + "isRestricted": true, + "unit": { + "guid": "00000099-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Small box" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Big box" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 0, + "name": "Box dimension" + } }, - "Example 20": { + "Example 5": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} + "value": { + "type": "numeric", + "isRestricted": false, + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Cold" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Hot" + } + ], + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "/help/outside-temperature.html", + "defaultParameterValueIndex": 2, + "name": "Outside Temperature" + } } } }, @@ -16746,30 +27576,136 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameter" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Discrete Parameter", "description": "This example demonstrates how to create a new discrete parameter for the MI_Training database.", - "value": {"values":[{"type":"discrete","name":"Red"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":0,"name":"Color"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 0, + "name": "Color" + } }, - "Example 17": { + "Example 2": { "summary": "Discrete Parameter with Guids", "description": "This example demonstrates how to create a new discrete parameter with a specified guid value for the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. Guids can be explicitly set for the individual parameter values, if needed.", - "value": {"values":[{"type":"discrete","name":"Red","guid":"f5528e6a-8029-42ca-b301-6089b3e120dd"},{"type":"discrete","name":"Green"}],"type":"discrete","defaultParameterValueIndex":1,"name":"Color (guid)","guid":"b089c4fe-897a-4d08-8cdb-c546c2a031cb"} + "value": { + "values": [ + { + "type": "discrete", + "name": "Red", + "guid": "b5cc5126-14f4-43bb-90c2-4c0e0a84f187" + }, + { + "type": "discrete", + "name": "Green" + } + ], + "type": "discrete", + "defaultParameterValueIndex": 1, + "name": "Color (guid)", + "guid": "844713d2-43ea-47b0-962a-335aca2e5800" + } }, - "Example 18": { + "Example 3": { "summary": "Numeric Restricted Parameter", "description": "This example demonstrates how to create a new numeric restricted parameter for the MI_Training database. Note that the IsRestricted flag is set to true.", - "value": {"type":"numeric","isRestricted":true,"values":[{"value":2010.0,"type":"numeric","name":"Twenty Ten"},{"value":2015.0,"type":"numeric"},{"value":2020.0,"type":"numeric","name":"Twenty Twenty"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":2,"name":"Year"} + "value": { + "type": "numeric", + "isRestricted": true, + "values": [ + { + "value": 2010.0, + "type": "numeric", + "name": "Twenty Ten" + }, + { + "value": 2015.0, + "type": "numeric" + }, + { + "value": 2020.0, + "type": "numeric", + "name": "Twenty Twenty" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 2, + "name": "Year" + } }, - "Example 19": { + "Example 4": { "summary": "Numeric Restricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric restricted parameter which also has the 'centimetre' unit from the MI_Training database. Note that the IsRestricted flag is set to true. Only the unit guid is required to reference a unit.", - "value": {"type":"numeric","isRestricted":true,"unit":{"guid":"00000099-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Small box"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Big box"}],"interpolationType":"none","scaleType":"linear","defaultParameterValueIndex":0,"name":"Box dimension"} + "value": { + "type": "numeric", + "isRestricted": true, + "unit": { + "guid": "00000099-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Small box" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Big box" + } + ], + "interpolationType": "none", + "scaleType": "linear", + "defaultParameterValueIndex": 0, + "name": "Box dimension" + } }, - "Example 20": { + "Example 5": { "summary": "Numeric Unrestricted Parameter with Unit", "description": "This example demonstrates how to create a new numeric unrestricted parameter which also has the 'Temperature (Kelvin/Celsius)' unit from the MI_Training database. The IsRestricted flag can either be explicitly set to false or omitted. Pre-defined parameter values can still be specified, but the parameter will not be restricted to them.", - "value": {"type":"numeric","isRestricted":false,"unit":{"guid":"00000002-0013-4fff-8fff-0000ffff0000"},"values":[{"value":10.0,"type":"numeric","name":"Cold"},{"value":20.0,"type":"numeric"},{"value":30.0,"type":"numeric","name":"Hot"}],"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"/help/outside-temperature.html","defaultParameterValueIndex":2,"name":"Outside Temperature"} + "value": { + "type": "numeric", + "isRestricted": false, + "unit": { + "guid": "00000002-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "value": 10.0, + "type": "numeric", + "name": "Cold" + }, + { + "value": 20.0, + "type": "numeric" + }, + { + "value": 30.0, + "type": "numeric", + "name": "Hot" + } + ], + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "/help/outside-temperature.html", + "defaultParameterValueIndex": 2, + "name": "Outside Temperature" + } } } } @@ -16783,7 +27719,36 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameter" }, - "example": {"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/Strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"} + "example": { + "type": "numeric", + "isRestricted": false, + "unit": { + "symbol": "% strain", + "guid": "0000019b-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "type": "numeric", + "value": 0.1, + "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" + }, + { + "type": "numeric", + "value": 1.0, + "guid": "00000005-000b-4fff-8fff-0005ffff0000" + } + ], + "interpolationType": "linear", + "scaleType": "linear", + "helpPath": "/help/Strain.html", + "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", + "displayNames": { + "en": "Strain", + "fr": "Souche" + }, + "name": "Strain", + "guid": "00000005-000a-4fff-8fff-0000ffff0000" + } } } }, @@ -16833,7 +27798,36 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameter" }, - "example": {"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/Strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"} + "example": { + "type": "numeric", + "isRestricted": false, + "unit": { + "symbol": "% strain", + "guid": "0000019b-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "type": "numeric", + "value": 0.1, + "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" + }, + { + "type": "numeric", + "value": 1.0, + "guid": "00000005-000b-4fff-8fff-0005ffff0000" + } + ], + "interpolationType": "linear", + "scaleType": "linear", + "helpPath": "/help/Strain.html", + "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", + "displayNames": { + "en": "Strain", + "fr": "Souche" + }, + "name": "Strain", + "guid": "00000005-000a-4fff-8fff-0000ffff0000" + } } } }, @@ -16874,40 +27868,76 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "help/strain-updated.html", + "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", + "name": "Strain (Updated)", + "guid": "66a7d855-c830-4715-8edf-f9fd451900c4" + } }, - "Example 23": { + "Example 2": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} + "value": { + "type": "discrete", + "helpPath": "help/basis-updated.html", + "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", + "name": "Basis (Updated)", + "guid": "931eda0c-574c-4e6e-9e0d-c8a858197e29" + } }, - "Example 24": { + "Example 3": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} + "value": { + "type": "numeric", + "guid": "2a7f240c-2993-467f-8bd2-548b9eb213a5" + } }, - "Example 25": { + "Example 4": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": {"type":"discrete","name":"Strain (Updated)"} + "value": { + "type": "discrete", + "name": "Strain (Updated)" + } }, - "Example 26": { + "Example 5": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "guid": "1105b356-dd30-4f47-93a1-b8ebd2f39edb" + } }, - "Example 27": { + "Example 6": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": {"type":"numeric","unit":null} + "value": { + "type": "numeric", + "unit": null + } }, - "Example 28": { + "Example 7": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} + "value": { + "type": "numeric", + "interpolationType": "cubicSpline", + "scaleType": "logarithmic" + } } } }, @@ -16916,40 +27946,76 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "help/strain-updated.html", + "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", + "name": "Strain (Updated)", + "guid": "66a7d855-c830-4715-8edf-f9fd451900c4" + } }, - "Example 23": { + "Example 2": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} + "value": { + "type": "discrete", + "helpPath": "help/basis-updated.html", + "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", + "name": "Basis (Updated)", + "guid": "931eda0c-574c-4e6e-9e0d-c8a858197e29" + } }, - "Example 24": { + "Example 3": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} + "value": { + "type": "numeric", + "guid": "2a7f240c-2993-467f-8bd2-548b9eb213a5" + } }, - "Example 25": { + "Example 4": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": {"type":"discrete","name":"Strain (Updated)"} + "value": { + "type": "discrete", + "name": "Strain (Updated)" + } }, - "Example 26": { + "Example 5": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "guid": "1105b356-dd30-4f47-93a1-b8ebd2f39edb" + } }, - "Example 27": { + "Example 6": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": {"type":"numeric","unit":null} + "value": { + "type": "numeric", + "unit": null + } }, - "Example 28": { + "Example 7": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} + "value": { + "type": "numeric", + "interpolationType": "cubicSpline", + "scaleType": "logarithmic" + } } } }, @@ -16958,40 +28024,76 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "help/strain-updated.html", + "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", + "name": "Strain (Updated)", + "guid": "66a7d855-c830-4715-8edf-f9fd451900c4" + } }, - "Example 23": { + "Example 2": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} + "value": { + "type": "discrete", + "helpPath": "help/basis-updated.html", + "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", + "name": "Basis (Updated)", + "guid": "931eda0c-574c-4e6e-9e0d-c8a858197e29" + } }, - "Example 24": { + "Example 3": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} + "value": { + "type": "numeric", + "guid": "2a7f240c-2993-467f-8bd2-548b9eb213a5" + } }, - "Example 25": { + "Example 4": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": {"type":"discrete","name":"Strain (Updated)"} + "value": { + "type": "discrete", + "name": "Strain (Updated)" + } }, - "Example 26": { + "Example 5": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "guid": "1105b356-dd30-4f47-93a1-b8ebd2f39edb" + } }, - "Example 27": { + "Example 6": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": {"type":"numeric","unit":null} + "value": { + "type": "numeric", + "unit": null + } }, - "Example 28": { + "Example 7": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} + "value": { + "type": "numeric", + "interpolationType": "cubicSpline", + "scaleType": "logarithmic" + } } } }, @@ -17000,40 +28102,76 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameter" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a numeric parameter", "description": "This example shows how to update all properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"interpolationType":"cubicSpline","scaleType":"logarithmic","helpPath":"help/strain-updated.html","defaultParameterValueGuid":"173284fb-e557-406f-a7eb-f4e75f1d48a9","name":"Strain (Updated)","guid":"99830f94-e988-45cb-9ed7-8051ca410e9b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "interpolationType": "cubicSpline", + "scaleType": "logarithmic", + "helpPath": "help/strain-updated.html", + "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", + "name": "Strain (Updated)", + "guid": "66a7d855-c830-4715-8edf-f9fd451900c4" + } }, - "Example 23": { + "Example 2": { "summary": "Everything for a discrete parameter", "description": "This example shows how to update all properties of the 'Basis' discrete parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","helpPath":"help/basis-updated.html","defaultParameterValueGuid":"505b5d32-0a4a-48af-9a7a-90c4caacd35c","name":"Basis (Updated)","guid":"15bb756f-de08-42a5-983f-4c1a0b45797a"} + "value": { + "type": "discrete", + "helpPath": "help/basis-updated.html", + "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", + "name": "Basis (Updated)", + "guid": "931eda0c-574c-4e6e-9e0d-c8a858197e29" + } }, - "Example 24": { + "Example 3": { "summary": "Update Guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", - "value": {"type":"numeric","guid":"eecebbdb-2b23-4e5f-ab6e-194a11d8a3d8"} + "value": { + "type": "numeric", + "guid": "2a7f240c-2993-467f-8bd2-548b9eb213a5" + } }, - "Example 25": { + "Example 4": { "summary": "Update Name", "description": "This example demonstrates how to update the 'Name' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Name can be updated for both kinds of parameters.", - "value": {"type":"discrete","name":"Strain (Updated)"} + "value": { + "type": "discrete", + "name": "Strain (Updated)" + } }, - "Example 26": { + "Example 5": { "summary": "Update Guid and Unit", "description": "This example demonstrates how to update the 'Guid' and 'Unit' properties of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Its Unit will be changed to kg. Only numeric parameters have units.", - "value": {"type":"numeric","unit":{"guid":"0000007a-0013-4fff-8fff-0000ffff0000"},"guid":"54af03f7-9ec8-4551-811d-5bd9b5fef99b"} + "value": { + "type": "numeric", + "unit": { + "guid": "0000007a-0013-4fff-8fff-0000ffff0000" + }, + "guid": "1105b356-dd30-4f47-93a1-b8ebd2f39edb" + } }, - "Example 27": { + "Example 6": { "summary": "Remove Unit", "description": "This example demonstrates how to remove the 'Unit' property of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database by setting it to null.", - "value": {"type":"numeric","unit":null} + "value": { + "type": "numeric", + "unit": null + } }, - "Example 28": { + "Example 7": { "summary": "Change interpolation and scale type", "description": "This example demonstrates how to update the interpolation type and scale type of the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. The parameter must be a numeric parameter.", - "value": {"type":"numeric","interpolationType":"cubicSpline","scaleType":"logarithmic"} + "value": { + "type": "numeric", + "interpolationType": "cubicSpline", + "scaleType": "logarithmic" + } } } } @@ -17047,7 +28185,36 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameter" }, - "example": {"type":"numeric","isRestricted":false,"unit":{"symbol":"% strain","guid":"0000019b-0013-4fff-8fff-0000ffff0000"},"values":[{"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"},{"type":"numeric","value":1.0,"guid":"00000005-000b-4fff-8fff-0005ffff0000"}],"interpolationType":"linear","scaleType":"linear","helpPath":"/help/Strain.html","defaultParameterValueGuid":"00000005-000b-4fff-8fff-0005ffff0000","displayNames":{"en":"Strain","fr":"Souche"},"name":"Strain","guid":"00000005-000a-4fff-8fff-0000ffff0000"} + "example": { + "type": "numeric", + "isRestricted": false, + "unit": { + "symbol": "% strain", + "guid": "0000019b-0013-4fff-8fff-0000ffff0000" + }, + "values": [ + { + "type": "numeric", + "value": 0.1, + "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" + }, + { + "type": "numeric", + "value": 1.0, + "guid": "00000005-000b-4fff-8fff-0005ffff0000" + } + ], + "interpolationType": "linear", + "scaleType": "linear", + "helpPath": "/help/Strain.html", + "defaultParameterValueGuid": "00000005-000b-4fff-8fff-0005ffff0000", + "displayNames": { + "en": "Strain", + "fr": "Souche" + }, + "name": "Strain", + "guid": "00000005-000a-4fff-8fff-0000ffff0000" + } } } }, @@ -17095,7 +28262,23 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionParameterDeletionException" }, - "example": {"message":"Cannot delete parameter 'Strain' (GUID = '00000005-000a-4fff-8fff-0000ffff0000').","code":400,"errors":[{"message":"It is being used in one or more attributes.","reason":"inUse","referencedByType":"attribute","referencedBy":[{"name":"Stress","guid":"af033295-75d5-4f92-96cf-280c0142bf1e"}]}]} + "example": { + "message": "Cannot delete parameter 'Strain' (GUID = '00000005-000a-4fff-8fff-0000ffff0000').", + "code": 400, + "errors": [ + { + "message": "It is being used in one or more attributes.", + "reason": "inUse", + "referencedByType": "attribute", + "referencedBy": [ + { + "name": "Stress", + "guid": "af033295-75d5-4f92-96cf-280c0142bf1e" + } + ] + } + ] + } } } }, @@ -17197,7 +28380,11 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameterValue" }, - "example": {"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"} + "example": { + "type": "numeric", + "value": 0.1, + "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" + } } } }, @@ -17247,20 +28434,32 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Strain 0.1 (Updated)", + "guid": "90df11b8-724e-450b-91ad-2cceadfed7d5" + } }, - "Example 11": { + "Example 2": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} + "value": { + "type": "discrete", + "name": "Mean (Updated)", + "guid": "0a82c5b2-bc49-4e08-85a2-e09339441d7c" + } }, - "Example 12": { + "Example 3": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} + "value": { + "type": "numeric", + "guid": "171d4ec5-84ae-4a5a-b9b6-8a0232adeac9" + } } } }, @@ -17269,20 +28468,32 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Strain 0.1 (Updated)", + "guid": "90df11b8-724e-450b-91ad-2cceadfed7d5" + } }, - "Example 11": { + "Example 2": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} + "value": { + "type": "discrete", + "name": "Mean (Updated)", + "guid": "0a82c5b2-bc49-4e08-85a2-e09339441d7c" + } }, - "Example 12": { + "Example 3": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} + "value": { + "type": "numeric", + "guid": "171d4ec5-84ae-4a5a-b9b6-8a0232adeac9" + } } } }, @@ -17291,20 +28502,32 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Strain 0.1 (Updated)", + "guid": "90df11b8-724e-450b-91ad-2cceadfed7d5" + } }, - "Example 11": { + "Example 2": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} + "value": { + "type": "discrete", + "name": "Mean (Updated)", + "guid": "0a82c5b2-bc49-4e08-85a2-e09339441d7c" + } }, - "Example 12": { + "Example 3": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} + "value": { + "type": "numeric", + "guid": "171d4ec5-84ae-4a5a-b9b6-8a0232adeac9" + } } } }, @@ -17313,20 +28536,32 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersUpdateParameterValue" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update numeric parameter value", "description": "This example demonstrates how to update all properties of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Strain 0.1 (Updated)","guid":"e4854cfe-b31f-47da-a9c1-e11fdc41fd0b"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Strain 0.1 (Updated)", + "guid": "90df11b8-724e-450b-91ad-2cceadfed7d5" + } }, - "Example 11": { + "Example 2": { "summary": "Update discrete parameter value", "description": "This example demonstrates how to update all properties of the 'Mean' discrete parameter value (guid = 21a27377-12eb-413c-bac4-d4ffceda39d1) from the 'Basis' numeric parameter (guid = 7a6ccb7b-8a47-4cab-8203-c741d476560f) from the MI_Training database.", - "value": {"type":"discrete","name":"Mean (Updated)","guid":"62f8672a-dbfd-44b0-bf81-b02e2b1c2782"} + "value": { + "type": "discrete", + "name": "Mean (Updated)", + "guid": "0a82c5b2-bc49-4e08-85a2-e09339441d7c" + } }, - "Example 12": { + "Example 3": { "summary": "Change guid of numeric", "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", - "value": {"type":"numeric","guid":"42ceb103-e9cb-406d-807b-2f66905cbc87"} + "value": { + "type": "numeric", + "guid": "171d4ec5-84ae-4a5a-b9b6-8a0232adeac9" + } } } } @@ -17340,7 +28575,11 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameterValue" }, - "example": {"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"} + "example": { + "type": "numeric", + "value": 0.1, + "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" + } } } }, @@ -17397,7 +28636,23 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionParameterValueDeletionException" }, - "example": {"message":"Cannot delete parameter value 'Mean' (GUID = '21a27377-12eb-413c-bac4-d4ffceda39d1').","code":400,"errors":[{"message":"It is being used in one or more parameters as a default value.","reason":"inUse","referencedByType":"defaultParameterValue","referencedBy":[{"name":"Basis","guid":"7a6ccb7b-8a47-4cab-8203-c741d476560f"}]}]} + "example": { + "message": "Cannot delete parameter value 'Mean' (GUID = '21a27377-12eb-413c-bac4-d4ffceda39d1').", + "code": 400, + "errors": [ + { + "message": "It is being used in one or more parameters as a default value.", + "reason": "inUse", + "referencedByType": "defaultParameterValue", + "referencedBy": [ + { + "name": "Basis", + "guid": "7a6ccb7b-8a47-4cab-8203-c741d476560f" + } + ] + } + ] + } } } }, @@ -17446,15 +28701,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Cold"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Cold" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": {"type":"discrete","name":"Heavy water"} + "value": { + "type": "discrete", + "name": "Heavy water" + } } } }, @@ -17463,15 +28725,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Cold"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Cold" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": {"type":"discrete","name":"Heavy water"} + "value": { + "type": "discrete", + "name": "Heavy water" + } } } }, @@ -17480,15 +28749,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Cold"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Cold" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": {"type":"discrete","name":"Heavy water"} + "value": { + "type": "discrete", + "name": "Heavy water" + } } } }, @@ -17497,15 +28773,22 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaParametersCreateParameterValue" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Numeric parameter value", "description": "This example demonstrates how to create a new numeric parameter value for the 'Temperature' numeric parameter (guid = 00000001-000a-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"value":10.0,"type":"numeric","name":"Cold"} + "value": { + "value": 10.0, + "type": "numeric", + "name": "Cold" + } }, - "Example 8": { + "Example 2": { "summary": "Discrete parameter value", "description": "This example demonstrates how to create a new discrete parameter value for the 'Chemical Environment' discrete parameter (guid = b7cee874-160f-439a-a784-b887c516b2d5) from the MI_Training database.", - "value": {"type":"discrete","name":"Heavy water"} + "value": { + "type": "discrete", + "name": "Heavy water" + } } } } @@ -17519,7 +28802,11 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaParametersParameterValue" }, - "example": {"type":"numeric","value":0.1,"guid":"173284fb-e557-406f-a7eb-f4e75f1d48a9"} + "example": { + "type": "numeric", + "value": 0.1, + "guid": "173284fb-e557-406f-a7eb-f4e75f1d48a9" + } } } }, @@ -17550,7 +28837,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesAllProfilesInfo" }, - "example": {"profiles":[{"key":"MI_Training","isImplicit":true,"name":"MI Training"},{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"},{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a","guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Composites"},{"key":"MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658","guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Additive Manufacturing"}],"defaultProfile":{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"}} + "example": { + "profiles": [ + { + "key": "MI_Training", + "isImplicit": true, + "name": "MI Training" + }, + { + "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Metals" + }, + { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a", + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Composites" + }, + { + "key": "MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658", + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Additive Manufacturing" + } + ], + "defaultProfile": { + "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Metals" + } + } } } }, @@ -17572,25 +28895,58 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } }, - "Example 14": { + "Example 2": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": {"defaultProfile":null} + "value": { + "defaultProfile": null + } }, - "Example 15": { + "Example 3": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ], + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } } } }, @@ -17599,25 +28955,58 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } }, - "Example 14": { + "Example 2": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": {"defaultProfile":null} + "value": { + "defaultProfile": null + } }, - "Example 15": { + "Example 3": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ], + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } } } }, @@ -17626,25 +29015,58 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } }, - "Example 14": { + "Example 2": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": {"defaultProfile":null} + "value": { + "defaultProfile": null + } }, - "Example 15": { + "Example 3": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ], + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } } } }, @@ -17653,25 +29075,58 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateAllProfilesInfo" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update default profile", "description": "This example demonstrates how to update default profile. Default Profile might be set to one of the profiles visible to user or to null.", - "value": {"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } }, - "Example 14": { + "Example 2": { "summary": "Remove default profile", "description": "This example demonstrates how to remove default profile by setting it to null", - "value": {"defaultProfile":null} + "value": { + "defaultProfile": null + } }, - "Example 15": { + "Example 3": { "summary": "Update profiles order", "description": "This example demonstrates how to reorder profiles. Profiles will be reordered in the order provided. Their values can not be changed. Full list of explicit profiles must be provided.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}]} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Everything for AllProfilesInfo", "description": "This example shows all properties that can be updated for AllProfilesInfo.", - "value": {"profiles":[{"guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658"},{"guid":"f76e3ce8-608a-42da-8d99-f0009dac966f"},{"guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a"}],"defaultProfile":{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a"}} + "value": { + "profiles": [ + { + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658" + }, + { + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f" + }, + { + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + ], + "defaultProfile": { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a" + } + } } } } @@ -17685,7 +29140,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesAllProfilesInfo" }, - "example": {"profiles":[{"key":"MI_Training","isImplicit":true,"name":"MI Training"},{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"},{"key":"MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a","guid":"90cb537b-82e9-4e8b-8193-208f581f7e0a","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Composites"},{"key":"MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658","guid":"31ae18d9-eaf7-43ab-9b88-716c34e61658","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Additive Manufacturing"}],"defaultProfile":{"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"}} + "example": { + "profiles": [ + { + "key": "MI_Training", + "isImplicit": true, + "name": "MI Training" + }, + { + "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Metals" + }, + { + "key": "MITrainingComposites-90cb537b-82e9-4e8b-8193-208f581f7e0a", + "guid": "90cb537b-82e9-4e8b-8193-208f581f7e0a", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Composites" + }, + { + "key": "MITrainingAdditiveManufacturing-31ae18d9-eaf7-43ab-9b88-716c34e61658", + "guid": "31ae18d9-eaf7-43ab-9b88-716c34e61658", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Additive Manufacturing" + } + ], + "defaultProfile": { + "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Metals" + } + } } } }, @@ -17713,20 +29204,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": {"name":"MI:Training Processes"} + "value": { + "name": "MI:Training Processes" + } }, - "Example 11": { + "Example 2": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} + "value": { + "name": "MI:Training Processes", + "guid": "a856e1e4-b5ad-4aa5-ba3c-5ab8c5213c8b" + } }, - "Example 12": { + "Example 3": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} + "value": { + "description": "#markdown\r\nFor process-oriented users.", + "homepageUrl": "TrainingProfiles/TrainingProcesses", + "groupName": "MI:Training Profiles", + "name": "MI:Training Processes", + "guid": "9ffb0f27-c2fe-46be-98d4-6f2371cfac0f" + } } } }, @@ -17735,20 +29237,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": {"name":"MI:Training Processes"} + "value": { + "name": "MI:Training Processes" + } }, - "Example 11": { + "Example 2": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} + "value": { + "name": "MI:Training Processes", + "guid": "a856e1e4-b5ad-4aa5-ba3c-5ab8c5213c8b" + } }, - "Example 12": { + "Example 3": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} + "value": { + "description": "#markdown\r\nFor process-oriented users.", + "homepageUrl": "TrainingProfiles/TrainingProcesses", + "groupName": "MI:Training Profiles", + "name": "MI:Training Processes", + "guid": "9ffb0f27-c2fe-46be-98d4-6f2371cfac0f" + } } } }, @@ -17757,20 +29270,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": {"name":"MI:Training Processes"} + "value": { + "name": "MI:Training Processes" + } }, - "Example 11": { + "Example 2": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} + "value": { + "name": "MI:Training Processes", + "guid": "a856e1e4-b5ad-4aa5-ba3c-5ab8c5213c8b" + } }, - "Example 12": { + "Example 3": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} + "value": { + "description": "#markdown\r\nFor process-oriented users.", + "homepageUrl": "TrainingProfiles/TrainingProcesses", + "groupName": "MI:Training Profiles", + "name": "MI:Training Processes", + "guid": "9ffb0f27-c2fe-46be-98d4-6f2371cfac0f" + } } } }, @@ -17779,20 +29303,31 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesCreateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile", "description": "This example demonstrates how to create a new profile", - "value": {"name":"MI:Training Processes"} + "value": { + "name": "MI:Training Processes" + } }, - "Example 11": { + "Example 2": { "summary": "Profile with specified guid", "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"name":"MI:Training Processes","guid":"a4bccbe9-715d-4b50-9733-02e5c2d9f09a"} + "value": { + "name": "MI:Training Processes", + "guid": "a856e1e4-b5ad-4aa5-ba3c-5ab8c5213c8b" + } }, - "Example 12": { + "Example 3": { "summary": "Full profile", "description": "This example demonstrates how to create a new profile with all of its fields filled out.", - "value": {"description":"#markdown\r\nFor process-oriented users.","homepageUrl":"TrainingProfiles/TrainingProcesses","groupName":"MI:Training Profiles","name":"MI:Training Processes","guid":"8acbf083-f654-4ff7-a156-8c201c1af02e"} + "value": { + "description": "#markdown\r\nFor process-oriented users.", + "homepageUrl": "TrainingProfiles/TrainingProcesses", + "groupName": "MI:Training Profiles", + "name": "MI:Training Processes", + "guid": "9ffb0f27-c2fe-46be-98d4-6f2371cfac0f" + } } } } @@ -17806,7 +29341,31 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesProfile" }, - "example": {"description":"#markdown\r\nFor metals-oriented users.","homepageUrl":"TrainingProfiles/MITrainingMetals","profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}],"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"} + "example": { + "description": "#markdown\r\nFor metals-oriented users.", + "homepageUrl": "TrainingProfiles/MITrainingMetals", + "profileTables": [ + { + "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "MaterialUniverse" + }, + { + "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "ProcessUniverse" + } + ], + "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Metals" + } } } }, @@ -17845,7 +29404,31 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesProfile" }, - "example": {"description":"#markdown\r\nFor metals-oriented users.","homepageUrl":"TrainingProfiles/MITrainingMetals","profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}],"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"} + "example": { + "description": "#markdown\r\nFor metals-oriented users.", + "homepageUrl": "TrainingProfiles/MITrainingMetals", + "profileTables": [ + { + "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "MaterialUniverse" + }, + { + "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "ProcessUniverse" + } + ], + "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Metals" + } } } }, @@ -17881,20 +29464,34 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} + "value": { + "guid": "e5a04eec-e208-4f47-90d1-605a4fe1bbdf" + } }, - "Example 11": { + "Example 2": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"name":"MI:Training Metals (Updated)"} + "value": { + "name": "MI:Training Metals (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": { + "description": "#markdown\r\nFor metals-oriented users. (Updated)", + "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", + "profileTableGuids": [ + "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" + ], + "guid": "bce049bb-8f36-44fc-89df-3e4d2bc86398", + "groupName": "MI:Training Profiles (Updated)", + "name": "MI:Training Metals" + } } } }, @@ -17903,20 +29500,34 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} + "value": { + "guid": "e5a04eec-e208-4f47-90d1-605a4fe1bbdf" + } }, - "Example 11": { + "Example 2": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"name":"MI:Training Metals (Updated)"} + "value": { + "name": "MI:Training Metals (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": { + "description": "#markdown\r\nFor metals-oriented users. (Updated)", + "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", + "profileTableGuids": [ + "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" + ], + "guid": "bce049bb-8f36-44fc-89df-3e4d2bc86398", + "groupName": "MI:Training Profiles (Updated)", + "name": "MI:Training Metals" + } } } }, @@ -17925,20 +29536,34 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} + "value": { + "guid": "e5a04eec-e208-4f47-90d1-605a4fe1bbdf" + } }, - "Example 11": { + "Example 2": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"name":"MI:Training Metals (Updated)"} + "value": { + "name": "MI:Training Metals (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": { + "description": "#markdown\r\nFor metals-oriented users. (Updated)", + "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", + "profileTableGuids": [ + "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" + ], + "guid": "bce049bb-8f36-44fc-89df-3e4d2bc86398", + "groupName": "MI:Training Profiles (Updated)", + "name": "MI:Training Metals" + } } } }, @@ -17947,20 +29572,34 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesUpdateProfile" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"11b2c4e3-e9e4-4e94-8d6a-435b659b5254"} + "value": { + "guid": "e5a04eec-e208-4f47-90d1-605a4fe1bbdf" + } }, - "Example 11": { + "Example 2": { "summary": "Update a name", "description": "This example demonstrates how to update the 'Name' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"name":"MI:Training Metals (Updated)"} + "value": { + "name": "MI:Training Metals (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Everything for a profile", "description": "This example demonstrates how to update all properties of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f). Profile tables will be reordered in the order provided. Their values can not be changed. Full list of profiles profileTables must be provided.", - "value": {"description":"#markdown\r\nFor metals-oriented users. (Updated)","homepageUrl":"TrainingProfiles/TrainingMetalsUpdated","profileTableGuids":["81bb4607-e2a3-4c78-81fc-a18a09979c72","a7cb2018-8410-42fd-ac6a-8bc1b441ba6e"],"guid":"e7844e3c-10e4-43f4-9efd-5bf792fa28be","groupName":"MI:Training Profiles (Updated)","name":"MI:Training Metals"} + "value": { + "description": "#markdown\r\nFor metals-oriented users. (Updated)", + "homepageUrl": "TrainingProfiles/TrainingMetalsUpdated", + "profileTableGuids": [ + "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" + ], + "guid": "bce049bb-8f36-44fc-89df-3e4d2bc86398", + "groupName": "MI:Training Profiles (Updated)", + "name": "MI:Training Metals" + } } } } @@ -17974,7 +29613,31 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfilesProfile" }, - "example": {"description":"#markdown\r\nFor metals-oriented users.","homepageUrl":"TrainingProfiles/MITrainingMetals","profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}],"key":"MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f","guid":"f76e3ce8-608a-42da-8d99-f0009dac966f","groupName":"MI:Training Profiles","isImplicit":false,"name":"MI:Training Metals"} + "example": { + "description": "#markdown\r\nFor metals-oriented users.", + "homepageUrl": "TrainingProfiles/MITrainingMetals", + "profileTables": [ + { + "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "MaterialUniverse" + }, + { + "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "ProcessUniverse" + } + ], + "key": "MITrainingMetals-f76e3ce8-608a-42da-8d99-f0009dac966f", + "guid": "f76e3ce8-608a-42da-8d99-f0009dac966f", + "groupName": "MI:Training Profiles", + "isImplicit": false, + "name": "MI:Training Metals" + } } } }, @@ -18048,7 +29711,24 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTablesInfo" }, - "example": {"profileTables":[{"guid":"a7cb2018-8410-42fd-ac6a-8bc1b441ba6e","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"MaterialUniverse"},{"guid":"81bb4607-e2a3-4c78-81fc-a18a09979c72","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"ProcessUniverse"}]} + "example": { + "profileTables": [ + { + "guid": "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "MaterialUniverse" + }, + { + "guid": "81bb4607-e2a3-4c78-81fc-a18a09979c72", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "ProcessUniverse" + } + ] + } } } }, @@ -18084,20 +29764,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" + } }, - "Example 11": { + "Example 2": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "guid": "8cc07606-3568-4874-b70b-de4d15048114" + } }, - "Example 12": { + "Example 3": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", + "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", + "guid": "40ce5cb5-245d-45dd-bdc3-79d55a0ec410" + } } } }, @@ -18106,20 +29799,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" + } }, - "Example 11": { + "Example 2": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "guid": "8cc07606-3568-4874-b70b-de4d15048114" + } }, - "Example 12": { + "Example 3": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", + "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", + "guid": "40ce5cb5-245d-45dd-bdc3-79d55a0ec410" + } } } }, @@ -18128,20 +29834,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" + } }, - "Example 11": { + "Example 2": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "guid": "8cc07606-3568-4874-b70b-de4d15048114" + } }, - "Example 12": { + "Example 3": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", + "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", + "guid": "40ce5cb5-245d-45dd-bdc3-79d55a0ec410" + } } } }, @@ -18150,20 +29869,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesCreateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f)", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e" + } }, - "Example 11": { + "Example 2": { "summary": "Profile Table with specified guid", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","guid":"489676e4-4112-4917-905e-d9c5116a1330"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "guid": "8cc07606-3568-4874-b70b-de4d15048114" + } }, - "Example 12": { + "Example 3": { "summary": "Full Profile Table", "description": "This example demonstrates how to create a new profile table for the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f) with all of its fields filled out.", - "value": {"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","tableGuid":"bc666ac6-8ac6-482b-9a16-502e6ab3730e","subsetGuid":"c2a6b6d0-540c-4927-b861-840644fc3968","layoutGuid":"f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0","guid":"4af3fc6e-38ec-495f-8d53-e41d3ed9e431"} + "value": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", + "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", + "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", + "guid": "40ce5cb5-245d-45dd-bdc3-79d55a0ec410" + } } } } @@ -18177,7 +29909,17 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTable" }, - "example": {"subsetGuid":"c43d5d46-1d6a-4fd3-8cc7-923e8592daec","subsetFallbackHint":"Metals","layoutGuid":"2826bb31-9fb5-4ca5-8db2-121ae944221d","layoutFallbackHint":"Metals","guid":"2aa49cb3-19a4-44e3-a389-278123c96631","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"Design Data"} + "example": { + "subsetGuid": "c43d5d46-1d6a-4fd3-8cc7-923e8592daec", + "subsetFallbackHint": "Metals", + "layoutGuid": "2826bb31-9fb5-4ca5-8db2-121ae944221d", + "layoutFallbackHint": "Metals", + "guid": "2aa49cb3-19a4-44e3-a389-278123c96631", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "Design Data" + } } } }, @@ -18228,7 +29970,17 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTable" }, - "example": {"subsetGuid":"c43d5d46-1d6a-4fd3-8cc7-923e8592daec","subsetFallbackHint":"Metals","layoutGuid":"2826bb31-9fb5-4ca5-8db2-121ae944221d","layoutFallbackHint":"Metals","guid":"2aa49cb3-19a4-44e3-a389-278123c96631","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"Design Data"} + "example": { + "subsetGuid": "c43d5d46-1d6a-4fd3-8cc7-923e8592daec", + "subsetFallbackHint": "Metals", + "layoutGuid": "2826bb31-9fb5-4ca5-8db2-121ae944221d", + "layoutFallbackHint": "Metals", + "guid": "2aa49cb3-19a4-44e3-a389-278123c96631", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "Design Data" + } } } }, @@ -18273,20 +30025,29 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} + "value": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "guid": "0694d977-3737-4eae-94f6-8265d9b79d85" + } }, - "Example 11": { + "Example 2": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":null,"layoutGuid":null} + "value": { + "subsetGuid": null, + "layoutGuid": null + } }, - "Example 12": { + "Example 3": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} + "value": { + "guid": "996e33ee-6fb8-4372-b065-3ba601895f00" + } } } }, @@ -18295,20 +30056,29 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} + "value": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "guid": "0694d977-3737-4eae-94f6-8265d9b79d85" + } }, - "Example 11": { + "Example 2": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":null,"layoutGuid":null} + "value": { + "subsetGuid": null, + "layoutGuid": null + } }, - "Example 12": { + "Example 3": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} + "value": { + "guid": "996e33ee-6fb8-4372-b065-3ba601895f00" + } } } }, @@ -18317,20 +30087,29 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} + "value": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "guid": "0694d977-3737-4eae-94f6-8265d9b79d85" + } }, - "Example 11": { + "Example 2": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":null,"layoutGuid":null} + "value": { + "subsetGuid": null, + "layoutGuid": null + } }, - "Example 12": { + "Example 3": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} + "value": { + "guid": "996e33ee-6fb8-4372-b065-3ba601895f00" + } } } }, @@ -18339,20 +30118,29 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesUpdateProfileTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a profile table", "description": "This example shows how to update all properties of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","layoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","guid":"f7303f59-b08d-4ac9-8fd5-f00067b895d1"} + "value": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "guid": "0694d977-3737-4eae-94f6-8265d9b79d85" + } }, - "Example 11": { + "Example 2": { "summary": "Remove subset and layout", "description": "This example shows how to remove the 'Subset' and 'Layout' properties from the 'Design Data' profile table (guid = 2aa49cb3-19a4-44e3-a389-278123c96631) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"subsetGuid":null,"layoutGuid":null} + "value": { + "subsetGuid": null, + "layoutGuid": null + } }, - "Example 12": { + "Example 3": { "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", - "value": {"guid":"e3a089db-f577-4a04-acf5-6d9077c6f6be"} + "value": { + "guid": "996e33ee-6fb8-4372-b065-3ba601895f00" + } } } } @@ -18366,7 +30154,17 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaProfileTablesProfileTable" }, - "example": {"subsetGuid":"c43d5d46-1d6a-4fd3-8cc7-923e8592daec","subsetFallbackHint":"Metals","layoutGuid":"2826bb31-9fb5-4ca5-8db2-121ae944221d","layoutFallbackHint":"Metals","guid":"2aa49cb3-19a4-44e3-a389-278123c96631","databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseFallbackHint":"MI:Training","tableGuid":"0000b5e2-0011-4fff-8fff-0000ffff0000","tableFallbackHint":"Design Data"} + "example": { + "subsetGuid": "c43d5d46-1d6a-4fd3-8cc7-923e8592daec", + "subsetFallbackHint": "Metals", + "layoutGuid": "2826bb31-9fb5-4ca5-8db2-121ae944221d", + "layoutFallbackHint": "Metals", + "guid": "2aa49cb3-19a4-44e3-a389-278123c96631", + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseFallbackHint": "MI:Training", + "tableGuid": "0000b5e2-0011-4fff-8fff-0000ffff0000", + "tableFallbackHint": "Design Data" + } } } }, @@ -18478,7 +30276,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"Second Training Database And Table - MI Training Exercise for Import","reverseDisplayNames":{},"displayNames":{},"name":"MI Training Exercise for Import - Second Training Database And Table","guid":"2b8a40a4-e0f3-4820-a8be-0d70aa3e96a9"}]} + "example": { + "recordLinkGroups": [ + { + "identity": 115, + "type": "static", + "reverseName": "Training Exercise", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "MaterialUniverse", + "guid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" + }, + { + "identity": 3, + "type": "dynamic", + "reverseName": "Smart Link to Training Record", + "reverseDisplayNames": { + "en": "en-Smart Link to Training Record", + "fr": "fr-Smart Link to Training Record" + }, + "displayNames": { + "en": "en-Smart Link to MaterialUniverse", + "fr": "fr-Smart Link to MaterialUniverse" + }, + "name": "Smart Link to MaterialUniverse", + "guid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" + }, + { + "identity": 1, + "type": "crossDatabase", + "reverseName": "Second Training Database And Table - MI Training Exercise for Import", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "MI Training Exercise for Import - Second Training Database And Table", + "guid": "3a6a6cc0-0032-4c8e-907e-e16a14844b2b" + } + ] + } } } }, @@ -18519,35 +30353,109 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} + "value": { + "type": "static", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static self link reversed", + "name": "Material Universe static self link" + } }, - "Example 20": { + "Example 2": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} + "value": { + "type": "static", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static link", + "name": "Process Universe static link", + "guid": "31bcd8f7-0cea-465e-bfd5-5ad7dc63cbd5" + } }, - "Example 21": { + "Example 3": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "7563afa6-294c-43dd-b382-de725ffeda04" + }, + "reverseName": "Cross database link to Material Universe", + "name": "Cross database link from Material Universe" + } }, - "Example 22": { + "Example 4": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "0e415ef1-1a57-4fed-9e78-f2c71c1424c3", + "tableGuid": "d154b59c-a983-4ccc-98ce-8d94a4117932" + }, + "reverseName": "Cross database link to MI Training - Material Universe", + "name": "Cross database link from MI Training - Material Universe", + "guid": "d826aafb-6904-4dfd-8475-0c56cf971189" + } }, - "Example 23": { + "Example 5": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} + "value": { + "type": "dynamic", + "forbidOrphans": false, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + ], + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic self link reversed", + "name": "Material Universe dynamic self link" + } }, - "Example 24": { + "Example 6": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} + "value": { + "type": "dynamic", + "forbidOrphans": true, + "referentialIntegrityModel": "oneToMany", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" + }, + { + "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", + "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" + } + ], + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic link", + "name": "Process Universe dynamic link", + "guid": "5657114b-0bc8-4861-89d5-76d5b57ead8f" + } } } }, @@ -18556,35 +30464,109 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} + "value": { + "type": "static", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static self link reversed", + "name": "Material Universe static self link" + } }, - "Example 20": { + "Example 2": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} + "value": { + "type": "static", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static link", + "name": "Process Universe static link", + "guid": "31bcd8f7-0cea-465e-bfd5-5ad7dc63cbd5" + } }, - "Example 21": { + "Example 3": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "7563afa6-294c-43dd-b382-de725ffeda04" + }, + "reverseName": "Cross database link to Material Universe", + "name": "Cross database link from Material Universe" + } }, - "Example 22": { + "Example 4": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "0e415ef1-1a57-4fed-9e78-f2c71c1424c3", + "tableGuid": "d154b59c-a983-4ccc-98ce-8d94a4117932" + }, + "reverseName": "Cross database link to MI Training - Material Universe", + "name": "Cross database link from MI Training - Material Universe", + "guid": "d826aafb-6904-4dfd-8475-0c56cf971189" + } }, - "Example 23": { + "Example 5": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} + "value": { + "type": "dynamic", + "forbidOrphans": false, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + ], + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic self link reversed", + "name": "Material Universe dynamic self link" + } }, - "Example 24": { + "Example 6": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} + "value": { + "type": "dynamic", + "forbidOrphans": true, + "referentialIntegrityModel": "oneToMany", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" + }, + { + "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", + "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" + } + ], + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic link", + "name": "Process Universe dynamic link", + "guid": "5657114b-0bc8-4861-89d5-76d5b57ead8f" + } } } }, @@ -18593,35 +30575,109 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} + "value": { + "type": "static", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static self link reversed", + "name": "Material Universe static self link" + } }, - "Example 20": { + "Example 2": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} + "value": { + "type": "static", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static link", + "name": "Process Universe static link", + "guid": "31bcd8f7-0cea-465e-bfd5-5ad7dc63cbd5" + } }, - "Example 21": { + "Example 3": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "7563afa6-294c-43dd-b382-de725ffeda04" + }, + "reverseName": "Cross database link to Material Universe", + "name": "Cross database link from Material Universe" + } }, - "Example 22": { + "Example 4": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "0e415ef1-1a57-4fed-9e78-f2c71c1424c3", + "tableGuid": "d154b59c-a983-4ccc-98ce-8d94a4117932" + }, + "reverseName": "Cross database link to MI Training - Material Universe", + "name": "Cross database link from MI Training - Material Universe", + "guid": "d826aafb-6904-4dfd-8475-0c56cf971189" + } }, - "Example 23": { + "Example 5": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} + "value": { + "type": "dynamic", + "forbidOrphans": false, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + ], + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic self link reversed", + "name": "Material Universe dynamic self link" + } }, - "Example 24": { + "Example 6": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} + "value": { + "type": "dynamic", + "forbidOrphans": true, + "referentialIntegrityModel": "oneToMany", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" + }, + { + "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", + "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" + } + ], + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic link", + "name": "Process Universe dynamic link", + "guid": "5657114b-0bc8-4861-89d5-76d5b57ead8f" + } } } }, @@ -18630,35 +30686,109 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup" }, "examples": { - "Example 19": { + "Example 1": { "summary": "Static record link group", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself.", - "value": {"type":"static","includeIndirectLinks":false,"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static self link reversed","name":"Material Universe static self link"} + "value": { + "type": "static", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static self link reversed", + "name": "Material Universe static self link" + } }, - "Example 20": { + "Example 2": { "summary": "Static record link group with specified guid", "description": "This example demonstrates how to create a new static record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"static","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe static link","name":"Process Universe static link","guid":"b6b39d90-f8d8-47d1-9fec-6bbde301aff5"} + "value": { + "type": "static", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe static link", + "name": "Process Universe static link", + "guid": "31bcd8f7-0cea-465e-bfd5-5ad7dc63cbd5" + } }, - "Example 21": { + "Example 3": { "summary": "Cross database record link group", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to a table in different databases. Since no database guid is specified this will link to all databases containing this table.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkTarget":{"tableGuid":"12a98420-25d0-4b94-a8de-eef7ce1080d7"},"reverseName":"Cross database link to Material Universe","name":"Cross database link from Material Universe"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": false, + "linkTarget": { + "tableGuid": "7563afa6-294c-43dd-b382-de725ffeda04" + }, + "reverseName": "Cross database link to Material Universe", + "name": "Cross database link from Material Universe" + } }, - "Example 22": { + "Example 4": { "summary": "Cross database record link group with specified guid and target database guid", "description": "This example demonstrates how to create a new cross database record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated. This will link from 'MaterialUniverse' table to a table in different database. Since the database guid is specified it will link to all versions of that specific database.", - "value": {"type":"crossDatabase","includeIndirectLinks":true,"linkTarget":{"databaseGuid":"131c9d21-73cf-48b7-a919-612ee84ed1d6","tableGuid":"2178d28c-0e0e-4d1d-8b42-e14b20a50ffd"},"reverseName":"Cross database link to MI Training - Material Universe","name":"Cross database link from MI Training - Material Universe","guid":"ff02b8ec-fb62-479e-9b2a-520cd2c84f97"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": true, + "linkTarget": { + "databaseGuid": "0e415ef1-1a57-4fed-9e78-f2c71c1424c3", + "tableGuid": "d154b59c-a983-4ccc-98ce-8d94a4117932" + }, + "reverseName": "Cross database link to MI Training - Material Universe", + "name": "Cross database link from MI Training - Material Universe", + "guid": "d826aafb-6904-4dfd-8475-0c56cf971189" + } }, - "Example 23": { + "Example 5": { "summary": "Dynamic record link group", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000'). This will link from 'MaterialUniverse' table to itself. Created link will have 'One to One' referential integrity model and will allow orphans.", - "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"000002cf-0001-4fff-8fff-dd92ffff0000"}],"linkTarget":{"tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic self link reversed","name":"Material Universe dynamic self link"} + "value": { + "type": "dynamic", + "forbidOrphans": false, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "000002cf-0001-4fff-8fff-dd92ffff0000" + } + ], + "linkTarget": { + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic self link reversed", + "name": "Material Universe dynamic self link" + } }, - "Example 24": { + "Example 6": { "summary": "Dynamic record link group with all fields specified", "description": "This example demonstrates how to create a new dynamic record link group for the MI_Training database in 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') with a specified guid, referential integrity model and forbid orphans flag. If the guid is not specified a random new Guid will be generated. If referential integrity model is not specified it defaults to 'One to One' model. If forbid orphans flag is not specified it defaults to allowing them. This link group will link from 'MaterialUniverse' table to 'ProcessUniverse' table", - "value": {"type":"dynamic","forbidOrphans":true,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSourceGuid":"bd489a13-97ee-4933-a677-7a18513e0997","attributeTargetGuid":"00000079-0001-4fff-8fff-3248ffff0000"},{"attributeSourceGuid":"0000007c-0001-4fff-8fff-dd92ffff0000","attributeTargetGuid":"000000cf-0001-4fff-8fff-3248ffff0000"}],"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"00003248-0011-4fff-8fff-0000ffff0000"},"reverseName":"Material Universe dynamic link","name":"Process Universe dynamic link","guid":"9e131901-fd64-4163-a1a1-f0abe5d507e7"} + "value": { + "type": "dynamic", + "forbidOrphans": true, + "referentialIntegrityModel": "oneToMany", + "attributePairs": [ + { + "attributeSourceGuid": "bd489a13-97ee-4933-a677-7a18513e0997", + "attributeTargetGuid": "00000079-0001-4fff-8fff-3248ffff0000" + }, + { + "attributeSourceGuid": "0000007c-0001-4fff-8fff-dd92ffff0000", + "attributeTargetGuid": "000000cf-0001-4fff-8fff-3248ffff0000" + } + ], + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "00003248-0011-4fff-8fff-0000ffff0000" + }, + "reverseName": "Material Universe dynamic link", + "name": "Process Universe dynamic link", + "guid": "5657114b-0bc8-4861-89d5-76d5b57ead8f" + } } } } @@ -18673,20 +30803,99 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 31": { + "Example 4": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", - "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} + "value": { + "type": "static", + "includeIndirectLinks": false, + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "c9954321-b4d4-4443-949e-f9b161e2c8fb" + }, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "73d8f19a-38df-4144-964d-cc1448d38ebb" + } + }, + "identity": 125, + "reverseName": "Fatigue Statistical Data", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Fatigue Test Data", + "guid": "485da78d-d094-4edb-a5a9-077fe1bc02f2" + } }, - "Example 32": { + "Example 5": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"53c65c5e-e7a4-4642-a37a-413116581335","tableGuid":"b97990f9-92b2-4de1-ada3-e2aea940e645"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"1db65b9b-c008-408b-9dac-e8bb93389166"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": false, + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "linkTarget": { + "databaseGuid": "bfdcfbc6-770a-458b-8a7c-ae7e88a3a2cd", + "tableGuid": "e0916c54-1938-4bee-8339-e6ee492d6f7a" + } + }, + "identity": 1, + "reverseName": "MI Training - MaterialUniverse", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Different database - different table", + "guid": "fe03d00d-1793-48fa-8a97-98fa3968aa5f" + } }, - "Example 33": { + "Example 6": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", - "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} + "value": { + "type": "dynamic", + "forbidOrphans": false, + "referentialIntegrityModel": "oneToMany", + "attributePairs": [ + { + "attributeSource": { + "type": "shortText", + "displayNames": {}, + "name": "Panel Number", + "guid": "6e50a7a8-a759-44c9-b151-215a07949c1f" + }, + "attributeTarget": { + "type": "shortText", + "displayNames": {}, + "name": "Panel Number", + "guid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" + } + } + ], + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "7db2ff8e-54ed-45d6-b522-e03c8be405b3" + }, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333" + } + }, + "identity": 8, + "reverseName": "Further panel information", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Tensile test data", + "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" + } } } } @@ -18762,7 +30971,43 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo" }, - "example": {"recordLinkGroups":[{"identity":115,"type":"static","reverseName":"Training Exercise","reverseDisplayNames":{},"displayNames":{},"name":"MaterialUniverse","guid":"00e07ec0-695e-4ca3-bf1d-3bbeef126949"},{"identity":3,"type":"dynamic","reverseName":"Smart Link to Training Record","reverseDisplayNames":{"en":"en-Smart Link to Training Record","fr":"fr-Smart Link to Training Record"},"displayNames":{"en":"en-Smart Link to MaterialUniverse","fr":"fr-Smart Link to MaterialUniverse"},"name":"Smart Link to MaterialUniverse","guid":"7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66"},{"identity":1,"type":"crossDatabase","reverseName":"MI Training MaterialUniverse - Second Training Database And Table","reverseDisplayNames":{},"displayNames":{},"name":"Second Training Database And Table - MI Training MaterialUniverse","guid":"eecf990c-1e0f-471e-a2ff-85422054ca0d"}]} + "example": { + "recordLinkGroups": [ + { + "identity": 115, + "type": "static", + "reverseName": "Training Exercise", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "MaterialUniverse", + "guid": "00e07ec0-695e-4ca3-bf1d-3bbeef126949" + }, + { + "identity": 3, + "type": "dynamic", + "reverseName": "Smart Link to Training Record", + "reverseDisplayNames": { + "en": "en-Smart Link to Training Record", + "fr": "fr-Smart Link to Training Record" + }, + "displayNames": { + "en": "en-Smart Link to MaterialUniverse", + "fr": "fr-Smart Link to MaterialUniverse" + }, + "name": "Smart Link to MaterialUniverse", + "guid": "7bf0d4d5-6896-4a10-b7a1-d1fe4e533e66" + }, + { + "identity": 1, + "type": "crossDatabase", + "reverseName": "MI Training MaterialUniverse - Second Training Database And Table", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Second Training Database And Table - MI Training MaterialUniverse", + "guid": "52b820f9-b827-4029-bdfc-6a0cdf5c90ae" + } + ] + } } } }, @@ -18854,20 +31099,99 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", - "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} + "value": { + "type": "static", + "includeIndirectLinks": false, + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "c9954321-b4d4-4443-949e-f9b161e2c8fb" + }, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "73d8f19a-38df-4144-964d-cc1448d38ebb" + } + }, + "identity": 125, + "reverseName": "Fatigue Statistical Data", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Fatigue Test Data", + "guid": "485da78d-d094-4edb-a5a9-077fe1bc02f2" + } }, - "Example 11": { + "Example 2": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"ef292629-5ae3-448f-a39e-38c5522e33c2","tableGuid":"608f1889-84ef-433f-8103-a9024ae1288c"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"0ce7f6ed-beda-4507-b870-a77bc155428d"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": false, + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "linkTarget": { + "databaseGuid": "fcf91831-7a47-4907-89fa-f1ddf2edf68f", + "tableGuid": "e2e9641b-542f-48c0-a580-e715a47ae5fb" + } + }, + "identity": 1, + "reverseName": "MI Training - MaterialUniverse", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Different database - different table", + "guid": "f6fb8e2f-080f-4fff-9c7b-be821408c3b7" + } }, - "Example 12": { + "Example 3": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", - "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} + "value": { + "type": "dynamic", + "forbidOrphans": false, + "referentialIntegrityModel": "oneToMany", + "attributePairs": [ + { + "attributeSource": { + "type": "shortText", + "displayNames": {}, + "name": "Panel Number", + "guid": "6e50a7a8-a759-44c9-b151-215a07949c1f" + }, + "attributeTarget": { + "type": "shortText", + "displayNames": {}, + "name": "Panel Number", + "guid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" + } + } + ], + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "7db2ff8e-54ed-45d6-b522-e03c8be405b3" + }, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333" + } + }, + "identity": 8, + "reverseName": "Further panel information", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Tensile test data", + "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" + } } } } @@ -18981,30 +31305,66 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} + "value": { + "type": "static", + "guid": "793139d9-9be4-49cf-83ee-7f0020480720" + } }, - "Example 17": { + "Example 2": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} + "value": { + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)" + } }, - "Example 18": { + "Example 3": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} + "value": { + "includeIndirectLinks": true, + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)", + "guid": "a7c251da-d729-4b3a-ac71-606b7b7b33a0" + } }, - "Example 19": { + "Example 4": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} + "value": { + "includeIndirectLinks": true, + "type": "crossDatabase", + "reverseName": "Link To MI Training - Material Universe (Updated)", + "name": "Link From MI Training - Material Universe (Updated)", + "guid": "595753ac-d42d-4913-947e-8700dcf973dc" + } }, - "Example 20": { + "Example 5": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} + "value": { + "forbidOrphans": true, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", + "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" + }, + { + "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", + "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" + } + ], + "type": "dynamic", + "reverseName": "Further panel information (Updated)", + "name": "Tensile test data (Updated)", + "guid": "e99cb34a-3297-420d-bdfd-330a175b09bf" + } } } }, @@ -19013,30 +31373,66 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} + "value": { + "type": "static", + "guid": "793139d9-9be4-49cf-83ee-7f0020480720" + } }, - "Example 17": { + "Example 2": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} + "value": { + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)" + } }, - "Example 18": { + "Example 3": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} + "value": { + "includeIndirectLinks": true, + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)", + "guid": "a7c251da-d729-4b3a-ac71-606b7b7b33a0" + } }, - "Example 19": { + "Example 4": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} + "value": { + "includeIndirectLinks": true, + "type": "crossDatabase", + "reverseName": "Link To MI Training - Material Universe (Updated)", + "name": "Link From MI Training - Material Universe (Updated)", + "guid": "595753ac-d42d-4913-947e-8700dcf973dc" + } }, - "Example 20": { + "Example 5": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} + "value": { + "forbidOrphans": true, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", + "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" + }, + { + "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", + "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" + } + ], + "type": "dynamic", + "reverseName": "Further panel information (Updated)", + "name": "Tensile test data (Updated)", + "guid": "e99cb34a-3297-420d-bdfd-330a175b09bf" + } } } }, @@ -19045,30 +31441,66 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} + "value": { + "type": "static", + "guid": "793139d9-9be4-49cf-83ee-7f0020480720" + } }, - "Example 17": { + "Example 2": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} + "value": { + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)" + } }, - "Example 18": { + "Example 3": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} + "value": { + "includeIndirectLinks": true, + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)", + "guid": "a7c251da-d729-4b3a-ac71-606b7b7b33a0" + } }, - "Example 19": { + "Example 4": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} + "value": { + "includeIndirectLinks": true, + "type": "crossDatabase", + "reverseName": "Link To MI Training - Material Universe (Updated)", + "name": "Link From MI Training - Material Universe (Updated)", + "guid": "595753ac-d42d-4913-947e-8700dcf973dc" + } }, - "Example 20": { + "Example 5": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} + "value": { + "forbidOrphans": true, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", + "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" + }, + { + "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", + "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" + } + ], + "type": "dynamic", + "reverseName": "Further panel information (Updated)", + "name": "Tensile test data (Updated)", + "guid": "e99cb34a-3297-420d-bdfd-330a175b09bf" + } } } }, @@ -19077,30 +31509,66 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","guid":"553b7ad5-eb50-4d2a-9cc9-470ab308c19f"} + "value": { + "type": "static", + "guid": "793139d9-9be4-49cf-83ee-7f0020480720" + } }, - "Example 17": { + "Example 2": { "summary": "Update name and reverse name", "description": "This example demonstrates how to update the 'Name' and 'Reverse name' properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)"} + "value": { + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)" + } }, - "Example 18": { + "Example 3": { "summary": "Update everything for static record link group", "description": "This example demonstrates how to update all properties of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"static","reverseName":"Fatigue Statistical Data (updated)","name":"Fatigue Test Data (updated)","guid":"d36f78c9-d296-487b-986f-6ee5862405cd"} + "value": { + "includeIndirectLinks": true, + "type": "static", + "reverseName": "Fatigue Statistical Data (updated)", + "name": "Fatigue Test Data (updated)", + "guid": "a7c251da-d729-4b3a-ac71-606b7b7b33a0" + } }, - "Example 19": { + "Example 4": { "summary": "Update everything for cross database record link group", "description": "This example demonstrates how to update all properties of cross database record link group from the 'MaterialUniverse' table (GUID = '0000dd92-0011-4fff-8fff-0000ffff0000') from the MI_Training database.", - "value": {"includeIndirectLinks":true,"type":"crossDatabase","reverseName":"Link To MI Training - Material Universe (Updated)","name":"Link From MI Training - Material Universe (Updated)","guid":"0efff2ae-2116-4c50-a822-6eec9716ab0d"} + "value": { + "includeIndirectLinks": true, + "type": "crossDatabase", + "reverseName": "Link To MI Training - Material Universe (Updated)", + "name": "Link From MI Training - Material Universe (Updated)", + "guid": "595753ac-d42d-4913-947e-8700dcf973dc" + } }, - "Example 20": { + "Example 5": { "summary": "Update everything for dynamic record link group", "description": "This example demonstrates how to update all properties of 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from the 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from the MI_Training database.", - "value": {"forbidOrphans":true,"referentialIntegrityModel":"oneToOne","attributePairs":[{"attributeSourceGuid":"6e50a7a8-a759-44c9-b151-215a07949c1f","attributeTargetGuid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"},{"attributeSourceGuid":"1228c02f-25e7-4748-bcfa-038c334c73e4","attributeTargetGuid":"61796104-14e0-4d59-bdba-22a9277f4775"}],"type":"dynamic","reverseName":"Further panel information (Updated)","name":"Tensile test data (Updated)","guid":"17a42f6e-929e-4c79-9847-cdaed9dfc51e"} + "value": { + "forbidOrphans": true, + "referentialIntegrityModel": "oneToOne", + "attributePairs": [ + { + "attributeSourceGuid": "6e50a7a8-a759-44c9-b151-215a07949c1f", + "attributeTargetGuid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" + }, + { + "attributeSourceGuid": "1228c02f-25e7-4748-bcfa-038c334c73e4", + "attributeTargetGuid": "61796104-14e0-4d59-bdba-22a9277f4775" + } + ], + "type": "dynamic", + "reverseName": "Further panel information (Updated)", + "name": "Tensile test data (Updated)", + "guid": "e99cb34a-3297-420d-bdfd-330a175b09bf" + } } } } @@ -19115,20 +31583,99 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup" }, "examples": { - "Example 34": { + "Example 7": { "summary": "Static record link group", "description": "This example demonstrates the returned value from getting a 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from MI_Training database.", - "value": {"type":"static","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"c9954321-b4d4-4443-949e-f9b161e2c8fb"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"73d8f19a-38df-4144-964d-cc1448d38ebb"}},"identity":125,"reverseName":"Fatigue Statistical Data","reverseDisplayNames":{},"displayNames":{},"name":"Fatigue Test Data","guid":"485da78d-d094-4edb-a5a9-077fe1bc02f2"} + "value": { + "type": "static", + "includeIndirectLinks": false, + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "c9954321-b4d4-4443-949e-f9b161e2c8fb" + }, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "73d8f19a-38df-4144-964d-cc1448d38ebb" + } + }, + "identity": 125, + "reverseName": "Fatigue Statistical Data", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Fatigue Test Data", + "guid": "485da78d-d094-4edb-a5a9-077fe1bc02f2" + } }, - "Example 35": { + "Example 8": { "summary": "Cross database record link group", "description": "This example demonstrates the returned value from getting a cross database record link group from 'MaterialUniverse' table from MI_Training database.", - "value": {"type":"crossDatabase","includeIndirectLinks":false,"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0000dd92-0011-4fff-8fff-0000ffff0000"},"linkTarget":{"databaseGuid":"1ce1f8ca-3da0-4232-91a0-ee94c4b937a4","tableGuid":"87d7a1ab-97db-452e-9d03-5e1e85b24e2c"}},"identity":1,"reverseName":"MI Training - MaterialUniverse","reverseDisplayNames":{},"displayNames":{},"name":"Different database - different table","guid":"4e2c0b7e-0743-49cf-9e24-ca9421c21ce1"} + "value": { + "type": "crossDatabase", + "includeIndirectLinks": false, + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "linkTarget": { + "databaseGuid": "c3ba64ba-f600-485a-b6e8-e378d7f570dc", + "tableGuid": "4237f710-71b9-4813-9375-6c1e066fcd66" + } + }, + "identity": 1, + "reverseName": "MI Training - MaterialUniverse", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Different database - different table", + "guid": "152c16a5-6e8a-47ae-9428-c7f1372fceaf" + } }, - "Example 36": { + "Example 9": { "summary": "Dynamic record link group", "description": "This example demonstrates the returned value from getting a 'Tensile test data' dynamic record link group (GUID = '5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f') from 'Composite Pedigree' table (GUID = '7db2ff8e-54ed-45d6-b522-e03c8be405b3') from MI_Training database.", - "value": {"type":"dynamic","forbidOrphans":false,"referentialIntegrityModel":"oneToMany","attributePairs":[{"attributeSource":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"6e50a7a8-a759-44c9-b151-215a07949c1f"},"attributeTarget":{"type":"shortText","displayNames":{},"name":"Panel Number","guid":"ab0ddcf2-d73e-44b1-9e69-383a7374edf7"}}],"linkInfo":{"linkSource":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"7db2ff8e-54ed-45d6-b522-e03c8be405b3"},"linkTarget":{"databaseGuid":"43a43640-4919-428a-bac9-16efbc4ce6ed","databaseVersionGuid":"feead34a-cc0e-4070-bbc0-647654a25407","tableGuid":"0dd5348e-72f3-4bcb-bb38-621e5953a333"}},"identity":8,"reverseName":"Further panel information","reverseDisplayNames":{},"displayNames":{},"name":"Tensile test data","guid":"5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f"} + "value": { + "type": "dynamic", + "forbidOrphans": false, + "referentialIntegrityModel": "oneToMany", + "attributePairs": [ + { + "attributeSource": { + "type": "shortText", + "displayNames": {}, + "name": "Panel Number", + "guid": "6e50a7a8-a759-44c9-b151-215a07949c1f" + }, + "attributeTarget": { + "type": "shortText", + "displayNames": {}, + "name": "Panel Number", + "guid": "ab0ddcf2-d73e-44b1-9e69-383a7374edf7" + } + } + ], + "linkInfo": { + "linkSource": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "7db2ff8e-54ed-45d6-b522-e03c8be405b3" + }, + "linkTarget": { + "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", + "databaseVersionGuid": "feead34a-cc0e-4070-bbc0-647654a25407", + "tableGuid": "0dd5348e-72f3-4bcb-bb38-621e5953a333" + } + }, + "identity": 8, + "reverseName": "Further panel information", + "reverseDisplayNames": {}, + "displayNames": {}, + "name": "Tensile test data", + "guid": "5b8fca7e-b8e7-4fc6-8e02-642b3fb3218f" + } } } } @@ -19202,30 +31749,79 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "name": "Unification" + } }, - "Example 17": { + "Example 2": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} + "value": { + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ], + "name": "Unification" + } }, - "Example 18": { + "Example 3": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} + "value": { + "mappedRecordLinkGroups": [ + { + "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" + } + ], + "name": "Unification" + } }, - "Example 19": { + "Example 4": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} + "value": { + "mappedCrossDatabaseRecordLinkGroups": [ + { + "guid": "bf33f74a-fc2f-4573-b123-a849e4beb5ce" + } + ], + "name": "Unification" + } }, - "Example 20": { + "Example 5": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "name": "Unification" + } } } }, @@ -19234,30 +31830,79 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "name": "Unification" + } }, - "Example 17": { + "Example 2": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} + "value": { + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ], + "name": "Unification" + } }, - "Example 18": { + "Example 3": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} + "value": { + "mappedRecordLinkGroups": [ + { + "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" + } + ], + "name": "Unification" + } }, - "Example 19": { + "Example 4": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} + "value": { + "mappedCrossDatabaseRecordLinkGroups": [ + { + "guid": "bf33f74a-fc2f-4573-b123-a849e4beb5ce" + } + ], + "name": "Unification" + } }, - "Example 20": { + "Example 5": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "name": "Unification" + } } } }, @@ -19266,30 +31911,79 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "name": "Unification" + } }, - "Example 17": { + "Example 2": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} + "value": { + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ], + "name": "Unification" + } }, - "Example 18": { + "Example 3": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} + "value": { + "mappedRecordLinkGroups": [ + { + "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" + } + ], + "name": "Unification" + } }, - "Example 19": { + "Example 4": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} + "value": { + "mappedCrossDatabaseRecordLinkGroups": [ + { + "guid": "bf33f74a-fc2f-4573-b123-a849e4beb5ce" + } + ], + "name": "Unification" + } }, - "Example 20": { + "Example 5": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "name": "Unification" + } } } }, @@ -19298,30 +31992,79 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesCreateStandardName" }, "examples": { - "Example 16": { + "Example 1": { "summary": "Standard name for attributes", "description": "This example demonstrates how to create a new standard name which maps to two attributes from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "name": "Unification" + } }, - "Example 17": { + "Example 2": { "summary": "Standard name for parameters", "description": "This example demonstrates how to create a new standard name which maps to two parameters from the MI_Training database.", - "value": {"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}],"name":"Unification"} + "value": { + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ], + "name": "Unification" + } }, - "Example 18": { + "Example 3": { "summary": "Standard name for record link groups", "description": "This example demonstrates how to create a new standard name which maps to a record link group from the MI_Training database.", - "value": {"mappedRecordLinkGroups":[{"guid":"9337df8e-c22b-4aaf-a9fc-6930c69c94cb"}],"name":"Unification"} + "value": { + "mappedRecordLinkGroups": [ + { + "guid": "9337df8e-c22b-4aaf-a9fc-6930c69c94cb" + } + ], + "name": "Unification" + } }, - "Example 19": { + "Example 4": { "summary": "Standard name for cross-database record link groups", "description": "This example demonstrates how to create a new standard name which maps to a cross-database record link group.", - "value": {"mappedCrossDatabaseRecordLinkGroups":[{"guid":"031e3f09-d7eb-44a7-88e0-ae4901fd90f3"}],"name":"Unification"} + "value": { + "mappedCrossDatabaseRecordLinkGroups": [ + { + "guid": "bf33f74a-fc2f-4573-b123-a849e4beb5ce" + } + ], + "name": "Unification" + } }, - "Example 20": { + "Example 5": { "summary": "Standard name for attributes and parameters", "description": "This example demonstrates how to create a new standard name which maps to two attributes and a parameter from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}],"name":"Unification"} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + ], + "name": "Unification" + } } } } @@ -19424,25 +32167,48 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"name":"Density (Updated)"} + "value": { + "name": "Density (Updated)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} + "value": { + "guid": "112d2f6a-870a-4cdc-b2dd-5fc2c1f9af55" + } }, - "Example 15": { + "Example 3": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} + "value": { + "mappedAttributes": [], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ] + } } } }, @@ -19451,25 +32217,48 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"name":"Density (Updated)"} + "value": { + "name": "Density (Updated)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} + "value": { + "guid": "112d2f6a-870a-4cdc-b2dd-5fc2c1f9af55" + } }, - "Example 15": { + "Example 3": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} + "value": { + "mappedAttributes": [], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ] + } } } }, @@ -19478,25 +32267,48 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"name":"Density (Updated)"} + "value": { + "name": "Density (Updated)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} + "value": { + "guid": "112d2f6a-870a-4cdc-b2dd-5fc2c1f9af55" + } }, - "Example 15": { + "Example 3": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} + "value": { + "mappedAttributes": [], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ] + } } } }, @@ -19505,25 +32317,48 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaStandardNamesUpdateStandardName" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"name":"Density (Updated)"} + "value": { + "name": "Density (Updated)" + } }, - "Example 14": { + "Example 2": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"guid":"54b8f191-70de-42c8-852c-b0cd4397d4fd"} + "value": { + "guid": "112d2f6a-870a-4cdc-b2dd-5fc2c1f9af55" + } }, - "Example 15": { + "Example 3": { "summary": "Update mapped attributes", "description": "This example demonstrates how to update the mapped attributes of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[{"guid":"000000b9-0001-4fff-8fff-dd92ffff0000"},{"guid":"000000ec-0001-4fff-8fff-dd92ffff0000"}]} + "value": { + "mappedAttributes": [ + { + "guid": "000000b9-0001-4fff-8fff-dd92ffff0000" + }, + { + "guid": "000000ec-0001-4fff-8fff-dd92ffff0000" + } + ] + } }, - "Example 16": { + "Example 4": { "summary": "Replace mapped attributes with parameters", "description": "This example demonstrates how to remove the mapped attribute and add mapped parameters to the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", - "value": {"mappedAttributes":[],"mappedParameters":[{"guid":"00000001-000a-4fff-8fff-0000ffff0000"},{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}]} + "value": { + "mappedAttributes": [], + "mappedParameters": [ + { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + }, + { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + ] + } } } } @@ -19650,7 +32485,28 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubsetsInfo" }, - "example": {"subsets":[{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"},{"displayNames":{},"name":"Polymers","guid":"00007645-0010-4fff-8fff-dd92ffff0000"}]} + "example": { + "subsets": [ + { + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" + }, + { + "displayNames": {}, + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + }, + { + "displayNames": {}, + "name": "Polymers", + "guid": "00007645-0010-4fff-8fff-dd92ffff0000" + } + ] + } } } }, @@ -19691,20 +32547,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Alloys"} + "value": { + "name": "Alloys" + } }, - "Example 11": { + "Example 2": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} + "value": { + "name": "Alloys (guid)", + "guid": "733ba3e0-835a-45e9-9318-2b0ba454882b" + } }, - "Example 12": { + "Example 3": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} + "value": { + "associatedLayout": { + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Alloys (Layout)" + } } } }, @@ -19713,20 +32579,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Alloys"} + "value": { + "name": "Alloys" + } }, - "Example 11": { + "Example 2": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} + "value": { + "name": "Alloys (guid)", + "guid": "733ba3e0-835a-45e9-9318-2b0ba454882b" + } }, - "Example 12": { + "Example 3": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} + "value": { + "associatedLayout": { + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Alloys (Layout)" + } } } }, @@ -19735,20 +32611,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Alloys"} + "value": { + "name": "Alloys" + } }, - "Example 11": { + "Example 2": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} + "value": { + "name": "Alloys (guid)", + "guid": "733ba3e0-835a-45e9-9318-2b0ba454882b" + } }, - "Example 12": { + "Example 3": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} + "value": { + "associatedLayout": { + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Alloys (Layout)" + } } } }, @@ -19757,20 +32643,30 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsCreateSubset" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Subset", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Alloys"} + "value": { + "name": "Alloys" + } }, - "Example 11": { + "Example 2": { "summary": "Subset with Guid", "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"name":"Alloys (guid)","guid":"7fe65fc2-9191-43b6-902a-1f86d4d2420c"} + "value": { + "name": "Alloys (guid)", + "guid": "733ba3e0-835a-45e9-9318-2b0ba454882b" + } }, - "Example 12": { + "Example 3": { "summary": "Subset with associated layout", "description": "This example demonstrates how to create a new subset for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with the 'Ceramics' layout associated.", - "value": {"associatedLayout":{"guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"name":"Alloys (Layout)"} + "value": { + "associatedLayout": { + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Alloys (Layout)" + } } } } @@ -19784,7 +32680,15 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubset" }, - "example": {"associatedLayout":{"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"displayNames":{},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"} + "example": { + "associatedLayout": { + "name": "Ceramics", + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + "displayNames": {}, + "name": "Ceramics", + "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" + } } } }, @@ -19867,7 +32771,22 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubset" }, - "example": {"associatedLayout":{"displayNames":{"en":"Ceramics Layout English Display Name","fr":"Ceramics Layout French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"} + "example": { + "associatedLayout": { + "displayNames": { + "en": "Ceramics Layout English Display Name", + "fr": "Ceramics Layout French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" + } } } }, @@ -19917,25 +32836,39 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Ceramics (Updated)", + "guid": "64429c6b-5cb5-4780-ade3-eb4d4412c423" + } }, - "Example 14": { + "Example 2": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } }, - "Example 15": { + "Example 3": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + } + } }, - "Example 16": { + "Example 4": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":null} + "value": { + "associatedLayout": null + } } } }, @@ -19944,25 +32877,39 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Ceramics (Updated)", + "guid": "64429c6b-5cb5-4780-ade3-eb4d4412c423" + } }, - "Example 14": { + "Example 2": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } }, - "Example 15": { + "Example 3": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + } + } }, - "Example 16": { + "Example 4": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":null} + "value": { + "associatedLayout": null + } } } }, @@ -19971,25 +32918,39 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Ceramics (Updated)", + "guid": "64429c6b-5cb5-4780-ade3-eb4d4412c423" + } }, - "Example 14": { + "Example 2": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } }, - "Example 15": { + "Example 3": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + } + } }, - "Example 16": { + "Example 4": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":null} + "value": { + "associatedLayout": null + } } } }, @@ -19998,25 +32959,39 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsUpdateSubset" }, "examples": { - "Example 13": { + "Example 1": { "summary": "Everything for a subset", "description": "This example demonstrates how to update all properties of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},"name":"Ceramics (Updated)","guid":"07b49dce-9ec9-463d-9fe0-9b16c7eb1704"} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + }, + "name": "Ceramics (Updated)", + "guid": "64429c6b-5cb5-4780-ade3-eb4d4412c423" + } }, - "Example 14": { + "Example 2": { "summary": "Rename subset", "description": "This example demonstrates how to update the 'Name' property of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"Ceramics (Updated)"} + "value": { + "name": "Ceramics (Updated)" + } }, - "Example 15": { + "Example 3": { "summary": "Update associated layout", "description": "This example demonstrates how to update associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":{"guid":"0000b135-0009-4fff-8fff-dd92ffff0000"}} + "value": { + "associatedLayout": { + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + } + } }, - "Example 16": { + "Example 4": { "summary": "Remove associated layout", "description": "This example demonstrates how to remove associated layout of the 'Ceramics' subset (guid = 00000b36-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"associatedLayout":null} + "value": { + "associatedLayout": null + } } } } @@ -20030,7 +33005,22 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsSubset" }, - "example": {"associatedLayout":{"displayNames":{"en":"Ceramics Layout English Display Name","fr":"Ceramics Layout French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"} + "example": { + "associatedLayout": { + "displayNames": { + "en": "Ceramics Layout English Display Name", + "fr": "Ceramics Layout French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" + } } } }, @@ -20137,15 +33127,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } }, - "Example 8": { + "Example 2": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } } } }, @@ -20154,15 +33150,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } }, - "Example 8": { + "Example 2": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } } } }, @@ -20171,15 +33173,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } }, - "Example 8": { + "Example 2": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } } } }, @@ -20188,15 +33196,21 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Add a Record History to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":false} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } }, - "Example 8": { + "Example 2": { "summary": "Add a Record History and its descendants to a Subset", "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03","recurseChildren":true} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } } } } @@ -20260,10 +33274,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } } } }, @@ -20272,10 +33288,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } } } }, @@ -20284,10 +33302,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } } } }, @@ -20296,10 +33316,12 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Remove a Record History from a Subset", "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"recordHistoryGuid":"5a842e54-e143-45f5-aec8-18fb84f4fe03"} + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } } } } @@ -20370,7 +33392,36 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTablesInfo" }, - "example": {"tables":[{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"tableTypes":["Universe","Material"],"displayNames":{"en":"MaterialUniverse English Display Name","fr":"MaterialUniverse French Display Name"},"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"},{"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"tableTypes":["Design"],"displayNames":{},"name":"Design Data","guid":"0000b5e2-0011-4fff-8fff-0000ffff0000"}]} + "example": { + "tables": [ + { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "tableTypes": [ + "Universe", + "Material" + ], + "displayNames": { + "en": "MaterialUniverse English Display Name", + "fr": "MaterialUniverse French Display Name" + }, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "tableTypes": [ + "Design" + ], + "displayNames": {}, + "name": "Design Data", + "guid": "0000b5e2-0011-4fff-8fff-0000ffff0000" + } + ] + } } } }, @@ -20402,20 +33453,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings" + } }, - "Example 11": { + "Example 2": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings (Guid)", + "guid": "09481cca-c5b3-478b-8e44-423f626441ea" + } }, - "Example 12": { + "Example 3": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} + "value": { + "isHiddenFromBrowse": true, + "isHiddenFromSearch": true, + "name": "Coatings (Hidden)" + } } } }, @@ -20424,20 +33488,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings" + } }, - "Example 11": { + "Example 2": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings (Guid)", + "guid": "09481cca-c5b3-478b-8e44-423f626441ea" + } }, - "Example 12": { + "Example 3": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} + "value": { + "isHiddenFromBrowse": true, + "isHiddenFromSearch": true, + "name": "Coatings (Hidden)" + } } } }, @@ -20446,20 +33523,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings" + } }, - "Example 11": { + "Example 2": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings (Guid)", + "guid": "09481cca-c5b3-478b-8e44-423f626441ea" + } }, - "Example 12": { + "Example 3": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} + "value": { + "isHiddenFromBrowse": true, + "isHiddenFromSearch": true, + "name": "Coatings (Hidden)" + } } } }, @@ -20468,20 +33558,33 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesCreateTable" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Table", "description": "This example demonstrates how to create a new table in the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings" + } }, - "Example 11": { + "Example 2": { "summary": "Table with Guid", "description": "This example demonstrates how to create a new table with a specified guid value in the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":false,"name":"Coatings (Guid)","guid":"154804d9-2598-48eb-91d2-91cfccc372a1"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "name": "Coatings (Guid)", + "guid": "09481cca-c5b3-478b-8e44-423f626441ea" + } }, - "Example 12": { + "Example 3": { "summary": "Hidden Table", "description": "This example demonstrates how to create a new table in the MI_Training database that is not browsable or searchable. ", - "value": {"isHiddenFromBrowse":true,"isHiddenFromSearch":true,"name":"Coatings (Hidden)"} + "value": { + "isHiddenFromBrowse": true, + "isHiddenFromSearch": true, + "name": "Coatings (Hidden)" + } } } } @@ -20495,7 +33598,16 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": {"versionState":"unversioned","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"tableTypes":[],"displayNames":{},"name":"Material Universe","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"} + "example": { + "versionState": "unversioned", + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "tableTypes": [], + "displayNames": {}, + "name": "Material Universe", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + } } } }, @@ -20569,7 +33681,82 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": {"defaultSubset":{"name":"All bulk materials","guid":"0000b1c5-0010-4fff-8fff-dd92ffff0000"},"subsets":[{"name":"Aerospace materials","guid":"0000fc72-0010-4fff-8fff-dd92ffff0000"},{"name":"All bulk materials","guid":"0000b1c5-0010-4fff-8fff-dd92ffff0000"},{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0010-4fff-8fff-dd92ffff0000"},{"name":"Metals","guid":"0000b135-0010-4fff-8fff-dd92ffff0000"},{"name":"Polymers","guid":"00007645-0010-4fff-8fff-dd92ffff0000"}],"defaultLayout":{"name":"All Attributes","guid":"384f9abe-0581-434d-a976-86952282207a"},"layouts":[{"name":"Aerospace materials","guid":"0000fc72-0009-4fff-8fff-dd92ffff0000"},{"name":"All Attributes","guid":"384f9abe-0581-434d-a976-86952282207a"},{"name":"All bulk materials","guid":"0000b1c5-0009-4fff-8fff-dd92ffff0000"},{"displayNames":{"en":"Ceramics English Display Name","fr":"Ceramics French Display Name"},"name":"Ceramics","guid":"00000b36-0009-4fff-8fff-dd92ffff0000"},{"name":"Metals","guid":"0000b135-0009-4fff-8fff-dd92ffff0000"},{"name":"Polymers","guid":"00007645-0009-4fff-8fff-dd92ffff0000"}],"versionState":"unversioned","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":false,"displayNames":{"en":"MaterialUniverse English Display Name","fr":"MaterialUniverse French Display Name"},"name":"MaterialUniverse","guid":"0000dd92-0011-4fff-8fff-0000ffff0000"} + "example": { + "defaultSubset": { + "name": "All bulk materials", + "guid": "0000b1c5-0010-4fff-8fff-dd92ffff0000" + }, + "subsets": [ + { + "name": "Aerospace materials", + "guid": "0000fc72-0010-4fff-8fff-dd92ffff0000" + }, + { + "name": "All bulk materials", + "guid": "0000b1c5-0010-4fff-8fff-dd92ffff0000" + }, + { + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" + }, + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + }, + { + "name": "Polymers", + "guid": "00007645-0010-4fff-8fff-dd92ffff0000" + } + ], + "defaultLayout": { + "name": "All Attributes", + "guid": "384f9abe-0581-434d-a976-86952282207a" + }, + "layouts": [ + { + "name": "Aerospace materials", + "guid": "0000fc72-0009-4fff-8fff-dd92ffff0000" + }, + { + "name": "All Attributes", + "guid": "384f9abe-0581-434d-a976-86952282207a" + }, + { + "name": "All bulk materials", + "guid": "0000b1c5-0009-4fff-8fff-dd92ffff0000" + }, + { + "displayNames": { + "en": "Ceramics English Display Name", + "fr": "Ceramics French Display Name" + }, + "name": "Ceramics", + "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" + }, + { + "name": "Metals", + "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" + }, + { + "name": "Polymers", + "guid": "00007645-0009-4fff-8fff-dd92ffff0000" + } + ], + "versionState": "unversioned", + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "displayNames": { + "en": "MaterialUniverse English Display Name", + "fr": "MaterialUniverse French Display Name" + }, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + } } } }, @@ -20610,40 +33797,59 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": true, + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "name": "MaterialUniverse (Updated)", + "guid": "c55293cb-01ae-460b-a020-2f82e26dbd83" + } }, - "Example 23": { + "Example 2": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":true} + "value": { + "isHiddenFromBrowse": true + } }, - "Example 24": { + "Example 3": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromSearch":false} + "value": { + "isHiddenFromSearch": false + } }, - "Example 25": { + "Example 4": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} + "value": { + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" + } }, - "Example 26": { + "Example 5": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":null} + "value": { + "defaultSubsetGuid": null + } }, - "Example 27": { + "Example 6": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": { + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" + } }, - "Example 28": { + "Example 7": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":null} + "value": { + "defaultLayoutGuid": null + } } } }, @@ -20652,40 +33858,59 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": true, + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "name": "MaterialUniverse (Updated)", + "guid": "c55293cb-01ae-460b-a020-2f82e26dbd83" + } }, - "Example 23": { + "Example 2": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":true} + "value": { + "isHiddenFromBrowse": true + } }, - "Example 24": { + "Example 3": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromSearch":false} + "value": { + "isHiddenFromSearch": false + } }, - "Example 25": { + "Example 4": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} + "value": { + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" + } }, - "Example 26": { + "Example 5": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":null} + "value": { + "defaultSubsetGuid": null + } }, - "Example 27": { + "Example 6": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": { + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" + } }, - "Example 28": { + "Example 7": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":null} + "value": { + "defaultLayoutGuid": null + } } } }, @@ -20694,40 +33919,59 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": true, + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "name": "MaterialUniverse (Updated)", + "guid": "c55293cb-01ae-460b-a020-2f82e26dbd83" + } }, - "Example 23": { + "Example 2": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":true} + "value": { + "isHiddenFromBrowse": true + } }, - "Example 24": { + "Example 3": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromSearch":false} + "value": { + "isHiddenFromSearch": false + } }, - "Example 25": { + "Example 4": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} + "value": { + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" + } }, - "Example 26": { + "Example 5": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":null} + "value": { + "defaultSubsetGuid": null + } }, - "Example 27": { + "Example 6": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": { + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" + } }, - "Example 28": { + "Example 7": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":null} + "value": { + "defaultLayoutGuid": null + } } } }, @@ -20736,40 +33980,59 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesUpdateTable" }, "examples": { - "Example 22": { + "Example 1": { "summary": "Everything for a table", "description": "This example demonstrates how to update all properties of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":false,"isHiddenFromSearch":true,"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000","name":"MaterialUniverse (Updated)","guid":"c097e1c9-0f03-4d51-b0ec-9bccbcb01602"} + "value": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": true, + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", + "name": "MaterialUniverse (Updated)", + "guid": "c55293cb-01ae-460b-a020-2f82e26dbd83" + } }, - "Example 23": { + "Example 2": { "summary": "Update 'IsHiddenFromBrowse'", "description": "This example demonstrates how to update the 'IsHiddenFromBrowse' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromBrowse":true} + "value": { + "isHiddenFromBrowse": true + } }, - "Example 24": { + "Example 3": { "summary": "Update 'IsHiddenFromSearch'", "description": "This example demonstrates how to update the 'IsHiddenFromSearch' property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"isHiddenFromSearch":false} + "value": { + "isHiddenFromSearch": false + } }, - "Example 25": { + "Example 4": { "summary": "Update default subset", "description": "This example demonstrates how to update the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000"} + "value": { + "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000" + } }, - "Example 26": { + "Example 5": { "summary": "Remove default subset", "description": "This example demonstrates how to remove the default subset property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultSubsetGuid":null} + "value": { + "defaultSubsetGuid": null + } }, - "Example 27": { + "Example 6": { "summary": "Update default layout", "description": "This example demonstrates how to update the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":"00000b36-0009-4fff-8fff-dd92ffff0000"} + "value": { + "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000" + } }, - "Example 28": { + "Example 7": { "summary": "Remove default layout", "description": "This example demonstrates how to remove the default layout property of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"defaultLayoutGuid":null} + "value": { + "defaultLayoutGuid": null + } } } } @@ -20783,7 +34046,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": {"defaultSubset":{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"},"subsets":[{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"}],"defaultLayout":{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"},"layouts":[{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"}],"versionState":"unreleased","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"} + "example": { + "defaultSubset": { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + }, + "subsets": [ + { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + } + ], + "defaultLayout": { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + }, + "layouts": [ + { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + } + ], + "versionState": "unreleased", + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + } } } }, @@ -20831,7 +34121,23 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionTableDeletionException" }, - "example": {"message":"Cannot delete table 'Restricted Substances' (GUID = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f').","code":400,"errors":[{"message":"It is being used in one or more tabular attributes.","reason":"inUse","referencedByType":"tabularAttribute","referencedBy":[{"name":"Restricted substances associated with this material","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554"}]}]} + "example": { + "message": "Cannot delete table 'Restricted Substances' (GUID = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f').", + "code": 400, + "errors": [ + { + "message": "It is being used in one or more tabular attributes.", + "reason": "inUse", + "referencedByType": "tabularAttribute", + "referencedBy": [ + { + "name": "Restricted substances associated with this material", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554" + } + ] + } + ] + } } } }, @@ -20881,7 +34187,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": {"defaultSubset":{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"},"subsets":[{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"}],"defaultLayout":{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"},"layouts":[{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"}],"versionState":"released","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"} + "example": { + "defaultSubset": { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + }, + "subsets": [ + { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + } + ], + "defaultLayout": { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + }, + "layouts": [ + { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + } + ], + "versionState": "released", + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + } } } }, @@ -20893,14 +34226,33 @@ "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException" }, "examples": { - "Example 7": { + "Example 1": { "summary": "Invalid version state.", "description": "A table can only be released if it is currently unreleased.", - "value": {"message":"Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.","code":400,"errors":[{"message":"Invalid version state 'Released'.","reason":"invalidVersionState","versionState":"released"}]} + "value": { + "message": "Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Released'.", + "reason": "invalidVersionState", + "versionState": "released" + } + ] + } }, - "Example 8": { + "Example 2": { "summary": "Table is not version controlled.", - "value": {"message":"Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.","code":400,"errors":[{"message":"Table is not version controlled.","reason":"notVersioned"}]} + "value": { + "message": "Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } } } } @@ -20949,7 +34301,34 @@ "schema": { "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, - "example": {"defaultSubset":{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"},"subsets":[{"name":"All substances","guid":"883ab52b-01b6-4a15-a89a-2bfa17c8d0e9"}],"defaultLayout":{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"},"layouts":[{"name":"All substances","guid":"bdd30b01-f9bc-4024-a1de-55956c8f2e5c"}],"versionState":"unreleased","isHiddenFromBrowse":false,"isHiddenFromSearch":false,"isVersioned":true,"name":"Restricted Substances","guid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f"} + "example": { + "defaultSubset": { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + }, + "subsets": [ + { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + } + ], + "defaultLayout": { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + }, + "layouts": [ + { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + } + ], + "versionState": "unreleased", + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + } } } }, @@ -21454,10 +34833,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} + "value": { + "name": "Hawaiian common", + "guid": "e512e84b-9046-459d-9495-cedc05725192" + } } } }, @@ -21466,10 +34848,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} + "value": { + "name": "Hawaiian common", + "guid": "e512e84b-9046-459d-9495-cedc05725192" + } } } }, @@ -21478,10 +34863,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} + "value": { + "name": "Hawaiian common", + "guid": "e512e84b-9046-459d-9495-cedc05725192" + } } } }, @@ -21490,10 +34878,13 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsCreateUnitSystem" }, "examples": { - "Example 4": { + "Example 1": { "summary": "Unit System", "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", - "value": {"name":"Hawaiian common","guid":"4a017cea-0afd-4018-8703-61dc17b8eeaa"} + "value": { + "name": "Hawaiian common", + "guid": "e512e84b-9046-459d-9495-cedc05725192" + } } } } @@ -21596,20 +34987,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} + "value": { + "name": "UK Imperial (Updated)", + "guid": "7c9e6d05-74f6-4a88-8c5b-306ea1633cf0" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)"} + "value": { + "name": "UK Imperial (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} + "value": { + "guid": "15ca9ecd-0682-4c2a-bb4f-519ea578d94c" + } } } }, @@ -21618,20 +35016,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} + "value": { + "name": "UK Imperial (Updated)", + "guid": "7c9e6d05-74f6-4a88-8c5b-306ea1633cf0" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)"} + "value": { + "name": "UK Imperial (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} + "value": { + "guid": "15ca9ecd-0682-4c2a-bb4f-519ea578d94c" + } } } }, @@ -21640,20 +35045,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} + "value": { + "name": "UK Imperial (Updated)", + "guid": "7c9e6d05-74f6-4a88-8c5b-306ea1633cf0" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)"} + "value": { + "name": "UK Imperial (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} + "value": { + "guid": "15ca9ecd-0682-4c2a-bb4f-519ea578d94c" + } } } }, @@ -21662,20 +35074,27 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaUnitsUpdateUnitSystem" }, "examples": { - "Example 10": { + "Example 1": { "summary": "Everything for a unit system", "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)","guid":"9f872228-4dc9-4dd5-b159-67b812206bf2"} + "value": { + "name": "UK Imperial (Updated)", + "guid": "7c9e6d05-74f6-4a88-8c5b-306ea1633cf0" + } }, - "Example 11": { + "Example 2": { "summary": "Update name", "description": "This example demonstrates how to update the 'Name' property of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"name":"UK Imperial (Updated)"} + "value": { + "name": "UK Imperial (Updated)" + } }, - "Example 12": { + "Example 3": { "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", - "value": {"guid":"2c4d4d2a-d6e0-49c5-9f46-56c462632b68"} + "value": { + "guid": "15ca9ecd-0682-4c2a-bb4f-519ea578d94c" + } } } } @@ -21800,140 +35219,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "834311e5-dffa-492e-9c0f-77ca6f977740", + "8499ed9b-9e36-407d-9944-322b9d17f700" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -21942,140 +35975,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "834311e5-dffa-492e-9c0f-77ca6f977740", + "8499ed9b-9e36-407d-9944-322b9d17f700" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -22084,140 +36731,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "834311e5-dffa-492e-9c0f-77ca6f977740", + "8499ed9b-9e36-407d-9944-322b9d17f700" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -22226,140 +37487,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["c82845ff-68a7-4219-a7c7-974d05e0e202","7edafb8d-cced-492a-8cdf-27a193e544b7"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "834311e5-dffa-492e-9c0f-77ca6f977740", + "8499ed9b-9e36-407d-9944-322b9d17f700" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } } @@ -22445,140 +38320,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "a235afb0-62e8-49bc-86f1-a098141bbe08", + "12ed370c-ec3c-4f3f-a369-9fb29245cd40" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -22587,140 +39076,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "a235afb0-62e8-49bc-86f1-a098141bbe08", + "12ed370c-ec3c-4f3f-a369-9fb29245cd40" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -22729,140 +39832,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "a235afb0-62e8-49bc-86f1-a098141bbe08", + "12ed370c-ec3c-4f3f-a369-9fb29245cd40" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -22871,140 +40588,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["93216a3f-3f7c-406e-9aa4-d66634c6591a","f2091ca9-1048-40cb-9c23-9a979b2d1518"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "a235afb0-62e8-49bc-86f1-a098141bbe08", + "12ed370c-ec3c-4f3f-a369-9fb29245cd40" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } } @@ -23081,140 +41412,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "395f25a3-e503-4a5b-b301-914dcac5ff90", + "9b202dce-a9a4-417e-a086-b79149674b5d" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -23223,140 +42168,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "395f25a3-e503-4a5b-b301-914dcac5ff90", + "9b202dce-a9a4-417e-a086-b79149674b5d" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -23365,140 +42924,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "395f25a3-e503-4a5b-b301-914dcac5ff90", + "9b202dce-a9a4-417e-a086-b79149674b5d" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -23507,140 +43680,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 163": { + "Example 1": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 164": { + "Example 2": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 165": { + "Example 3": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 166": { + "Example 4": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 167": { + "Example 5": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 168": { + "Example 6": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 169": { + "Example 7": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 170": { + "Example 8": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 171": { + "Example 9": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 172": { + "Example 10": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["279899fd-3ce1-4910-8721-3f9c2791389e","16c47d8d-08e6-41d0-bf4b-f28d65c3bf92"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "395f25a3-e503-4a5b-b301-914dcac5ff90", + "9b202dce-a9a4-417e-a086-b79149674b5d" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 173": { + "Example 11": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 174": { + "Example 12": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 175": { + "Example 13": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 176": { + "Example 14": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 177": { + "Example 15": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 178": { + "Example 16": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 179": { + "Example 17": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 180": { + "Example 18": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 181": { + "Example 19": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 182": { + "Example 20": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 183": { + "Example 21": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 184": { + "Example 22": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 185": { + "Example 23": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 186": { + "Example 24": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 187": { + "Example 25": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 188": { + "Example 26": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 189": { + "Example 27": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } } @@ -23694,140 +44481,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "827d01d0-89a7-4b79-972b-c5dd0c3b96ee", + "a13f90b1-9489-436c-9109-032825e29c33" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -23836,140 +45237,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "827d01d0-89a7-4b79-972b-c5dd0c3b96ee", + "a13f90b1-9489-436c-9109-032825e29c33" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -23978,140 +45993,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "827d01d0-89a7-4b79-972b-c5dd0c3b96ee", + "a13f90b1-9489-436c-9109-032825e29c33" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } }, @@ -24120,140 +46749,754 @@ "$ref": "#/components/schemas/GrantaServerApiSearchSearchRequest" }, "examples": { - "Example 190": { + "Example 28": { "summary": "Free text search", "description": "This example demonstrates how to create a new free text search with results sorted by relevance", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 191": { + "Example 29": { "summary": "Free text search with boosted identities", "description": "A free text search in MI_TRAINING in attributes with identities -4 (record name), 928 and 886 with results in the record name boosted by a factor of 20", - "value": {"criterion":{"value":"lead","attributes":{"identities":[-4,928,886],"guids":[],"filterOn":"specific"},"localColumns":{"filterOn":"none"},"attributeIdentitiesToBoost":[{"identity":-4,"boostFactor":20.0}],"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "lead", + "attributes": { + "identities": [ + -4, + 928, + 886 + ], + "guids": [], + "filterOn": "specific" + }, + "localColumns": { + "filterOn": "none" + }, + "attributeIdentitiesToBoost": [ + { + "identity": -4, + "boostFactor": 20.0 + } + ], + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 192": { + "Example 30": { "summary": "Free text search with excluded columns", "description": "A free text search in MI_TRAINING with local tabular columns 'Comments' and 'Category' from 'Restricted substances that may be used in the manufacture of this material' tabular attribute from 'MaterialUniverse' table excluded from search.", - "value": {"criterion":{"value":"Intermediate","attributes":{"filterOn":"none"},"localColumns":{"identities":[],"guids":["d5c215fe-6305-407b-a830-cc5ff14e4cf9","bfb3edea-be3e-4598-a711-6abb171a4569"],"filterOn":"specific"},"type":"text"},"sortCriteria":[]} + "value": { + "criterion": { + "value": "Intermediate", + "attributes": { + "filterOn": "none" + }, + "localColumns": { + "identities": [], + "guids": [ + "d5c215fe-6305-407b-a830-cc5ff14e4cf9", + "bfb3edea-be3e-4598-a711-6abb171a4569" + ], + "filterOn": "specific" + }, + "type": "text" + }, + "sortCriteria": [] + } }, - "Example 193": { + "Example 31": { "summary": "Simple attribute search", "description": "A simple search in MI_TRAINING on an integer 8965 attribute, with results sorted by that attribute", - "value": {"criterion":{"innerCriterion":{"gte":1,"lte":10,"type":"integer"},"attributeCriterionType":"matches","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"identity":8965,"attributeType":"integer","type":"attribute","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "gte": 1, + "lte": 10, + "type": "integer" + }, + "attributeCriterionType": "matches", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "identity": 8965, + "attributeType": "integer", + "type": "attribute", + "sortDirection": "ascending" + } + ] + } }, - "Example 194": { + "Example 32": { "summary": "Attribute exists search", "description": "A search in MI_TRAINING on for records that have data for integer 8965 attribute", - "value": {"criterion":{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 195": { + "Example 33": { "summary": "Multiple attribute search", "description": "A search where results must match all three attribute criterion (the long text meta attribute exist, the date time attribute has a value in the given range, and the discrete attribute has one of the given values)", - "value": {"criterion":{"all":[{"innerCriterion":{"type":"longText"},"attributeCriterionType":"exists","identity":5886,"isMetaAttribute":true,"type":"attribute"},{"innerCriterion":{"gte":"1990-01-01T00:00:00+00:00","lte":"1999-12-31T00:00:00+00:00","type":"dateTime"},"attributeCriterionType":"matches","identity":5872,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"all":[],"any":[1665,1666],"none":[],"type":"discreteIdentityValues"},"attributeCriterionType":"matches","identity":5876,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [ + { + "innerCriterion": { + "type": "longText" + }, + "attributeCriterionType": "exists", + "identity": 5886, + "isMetaAttribute": true, + "type": "attribute" + }, + { + "innerCriterion": { + "gte": "1990-01-01T00:00:00+00:00", + "lte": "1999-12-31T00:00:00+00:00", + "type": "dateTime" + }, + "attributeCriterionType": "matches", + "identity": 5872, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "all": [], + "any": [ + 1665, + 1666 + ], + "none": [], + "type": "discreteIdentityValues" + }, + "attributeCriterionType": "matches", + "identity": 5876, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 196": { + "Example 34": { "summary": "Nested boolean search", "description": "A nested boolean search in MI_TRAINING where results must either match the free text search for 'steel', or both the integer attribute with identity 8965 exists and attribute with identity 928 is not applicable", - "value": {"criterion":{"all":[],"any":[{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},{"all":[{"innerCriterion":{"type":"integer"},"attributeCriterionType":"exists","identity":8965,"isMetaAttribute":false,"type":"attribute"},{"attributeCriterionType":"notApplicable","identity":928,"isMetaAttribute":false,"type":"attribute"}],"any":[],"none":[],"type":"boolean"}],"none":[],"type":"boolean"},"sortCriteria":[]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + { + "all": [ + { + "innerCriterion": { + "type": "integer" + }, + "attributeCriterionType": "exists", + "identity": 8965, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "attributeCriterionType": "notApplicable", + "identity": 928, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "any": [], + "none": [], + "type": "boolean" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [] + } }, - "Example 197": { + "Example 35": { "summary": "Record name search", "description": "A search in MI_TRAINING for a value in either the (full) record name, the short (tree) name, or the breadcrumbs, sorted by (full) record name", - "value": {"criterion":{"all":[],"any":[{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-4,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-9,"isMetaAttribute":false,"type":"attribute"},{"innerCriterion":{"value":"steel","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","identity":-10,"isMetaAttribute":false,"type":"attribute"}],"none":[],"type":"boolean"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "all": [], + "any": [ + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -4, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -9, + "isMetaAttribute": false, + "type": "attribute" + }, + { + "innerCriterion": { + "value": "steel", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "identity": -10, + "isMetaAttribute": false, + "type": "attribute" + } + ], + "none": [], + "type": "boolean" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 198": { + "Example 36": { "summary": "Record color search", "description": "A search in MI_TRAINING for results where the record color is red, sorted by record name", - "value": {"criterion":{"innerCriterion":{"all":["red"],"any":[],"none":[],"textMatchBehavior":"contains","type":"discreteTextValues"},"attributeCriterionType":"matches","identity":-6,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"property":"recordName","sortType":"natural","type":"recordProperty","sortDirection":"descending"}]} + "value": { + "criterion": { + "innerCriterion": { + "all": [ + "red" + ], + "any": [], + "none": [], + "textMatchBehavior": "contains", + "type": "discreteTextValues" + }, + "attributeCriterionType": "matches", + "identity": -6, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "property": "recordName", + "sortType": "natural", + "type": "recordProperty", + "sortDirection": "descending" + } + ] + } }, - "Example 199": { + "Example 37": { "summary": "Record list search", "description": "A search in MI_TRAINING for results where the record is in any of the given (favorites) list", - "value": {"criterion":{"recordListIdentifiers":["344be7d6-3b8f-4991-9f07-109c4ea4298a","e759e5f0-c5c8-4b32-8559-0624788b3f25"],"type":"recordListMember"},"sortCriteria":[]} + "value": { + "criterion": { + "recordListIdentifiers": [ + "827d01d0-89a7-4b79-972b-c5dd0c3b96ee", + "a13f90b1-9489-436c-9109-032825e29c33" + ], + "type": "recordListMember" + }, + "sortCriteria": [] + } }, - "Example 200": { + "Example 38": { "summary": "Record reference search", "description": "A search in MI_TRAINING for results where the record matches the record history GUID", - "value": {"criterion":{"databaseKey":"MI_Training","recordHistoryGuid":"dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae","type":"reference"},"sortCriteria":[]} + "value": { + "criterion": { + "databaseKey": "MI_Training", + "recordHistoryGuid": "dc1c65fc-25fa-4b86-9b5b-d3f25fa2a8ae", + "type": "reference" + }, + "sortCriteria": [] + } }, - "Example 201": { + "Example 39": { "summary": "Record ancestor search", "description": "A search in MI_TRAINING for results where the record is below the Glasses folder in the tree", - "value": {"criterion":{"ancestorIdentity":8923,"directParentOnly":false,"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "ancestorIdentity": 8923, + "directParentOnly": false, + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 202": { + "Example 40": { "summary": "Top level records search", "description": "A search in MI_TRAINING for results where the record has no parent in the tree", - "value": {"criterion":{"type":"recordAncestor"},"sortCriteria":[]} + "value": { + "criterion": { + "type": "recordAncestor" + }, + "sortCriteria": [] + } }, - "Example 203": { + "Example 41": { "summary": "Subset search", "description": "A search in MI_TRAINING for results where the record is in the Material Universe 'Ceramics' subset", - "value": {"criterion":{"subsetGuid":"00000b36-0010-4fff-8fff-dd92ffff0000","type":"subset"},"sortCriteria":[]} + "value": { + "criterion": { + "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", + "type": "subset" + }, + "sortCriteria": [] + } }, - "Example 204": { + "Example 42": { "summary": "Tabular data link exists", "description": "A tabular search in MI_TRAINING where there is a tabular link from the tabular attribute 'Restricted substances that may be associated with this material'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","type":"link"},"attributeCriterionType":"exists","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "type": "link" + }, + "attributeCriterionType": "exists", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 205": { + "Example 43": { "summary": "Tabular data local column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where the 'amount' is greater than 10% ('amount' is a local column).", - "value": {"criterion":{"innerCriterion":{"localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"localColumnCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","type":"localColumn"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "localColumnCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "type": "localColumn" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 206": { + "Example 44": { "summary": "Tabular data linked attribute column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material', where there is a linked 'Restricted Substance' with an 'amount' greater than 10% ('amount' is a local column), and the 'Chemical name' attribute in the linked 'Restricted Substances' table contains 'Alkanes'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","localCriterion":{"innerCriterion":{"gte":10.0,"type":"range"},"attributeCriterionType":"matches","guid":"1f1e5808-5a10-4b70-9ff6-8b832bf561d8","isMetaAttribute":false,"type":"attribute"},"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"value":"Alkanes","textMatchBehavior":"contains","type":"shortText"},"attributeCriterionType":"matches","guid":"5555b6f5-d492-4efd-bfe3-3e9faf79ab07","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "localCriterion": { + "innerCriterion": { + "gte": 10.0, + "type": "range" + }, + "attributeCriterionType": "matches", + "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", + "isMetaAttribute": false, + "type": "attribute" + }, + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "value": "Alkanes", + "textMatchBehavior": "contains", + "type": "shortText" + }, + "attributeCriterionType": "matches", + "guid": "5555b6f5-d492-4efd-bfe3-3e9faf79ab07", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 207": { + "Example 45": { "summary": "Tabular data linked column column search", "description": "A tabular search in MI_TRAINING on the tabular attribute 'Restricted substances that may be associated with this material' where there is a linked 'Restricted Substance', which has a linked 'Legislations and Lists' via the tabular attribute 'Legislations restricting its use', and the 'Legislation rating' is 'Banned with conditions'. Target attribute and table may both be omitted, but this could affect performance.", - "value": {"criterion":{"innerCriterion":{"targetTableGuid":"fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"446d4fc3-f902-4875-9e48-6df9a691c2b0","innerCriterion":{"innerCriterion":{"targetTableGuid":"08a1f735-9b37-49bc-96b3-e46e070f6c17","targetDatabaseKey":"MI_TRAINING","linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"targetAttributeGuid":"77e38bc0-d8ab-484d-a84c-a9ffec81afab","innerCriterion":{"innerCriterion":{"value":"Banned with conditions","textMatchBehavior":"exactMatch","type":"discreteText"},"attributeCriterionType":"matches","guid":"5d7b7b7e-b666-4279-9964-2f28c4123c45","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc","isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"6e5d7d7b-be80-4e81-b013-0a19db19305f","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableGuid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "446d4fc3-f902-4875-9e48-6df9a691c2b0", + "innerCriterion": { + "innerCriterion": { + "targetTableGuid": "08a1f735-9b37-49bc-96b3-e46e070f6c17", + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "targetAttributeGuid": "77e38bc0-d8ab-484d-a84c-a9ffec81afab", + "innerCriterion": { + "innerCriterion": { + "value": "Banned with conditions", + "textMatchBehavior": "exactMatch", + "type": "discreteText" + }, + "attributeCriterionType": "matches", + "guid": "5d7b7b7e-b666-4279-9964-2f28c4123c45", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "c33cecb7-f3d2-4415-9de6-1ed4e5b2abdc", + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "6e5d7d7b-be80-4e81-b013-0a19db19305f", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 208": { + "Example 46": { "summary": "Tabular linking value search", "description": "A tabular search in MI_TRAINING where the tabular linking value for the tabular attribute 'Restricted substances associated with this material' contains '85535'", - "value": {"criterion":{"innerCriterion":{"linkDatumType":"tabularAttribute","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"values":["85535"],"linkingValueMatchBehavior":"FreeTextMatchingRows","type":"tabularLinkingValue"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","guid":"51e51832-0bcc-4fe0-bb95-ddd6917dc554","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "linkDatumType": "tabularAttribute", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "values": [ + "85535" + ], + "linkingValueMatchBehavior": "FreeTextMatchingRows", + "type": "tabularLinkingValue" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "guid": "51e51832-0bcc-4fe0-bb95-ddd6917dc554", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 209": { + "Example 47": { "summary": "Record link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where record link to table with identity 59 exists where the target has a populated picture attribute with identity 8563. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"picture"},"attributeCriterionType":"exists","identity":8563,"isMetaAttribute":false,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "picture" + }, + "attributeCriterionType": "exists", + "identity": 8563, + "isMetaAttribute": false, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 210": { + "Example 48": { "summary": "Record link exists search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a record link to table with identity 59 exists. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":59,"targetDatabaseKey":"MI_TRAINING","linkDatumType":"recordLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"type":"link"},"attributeCriterionType":"exists","identity":101,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 59, + "targetDatabaseKey": "MI_TRAINING", + "linkDatumType": "recordLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "type": "link" + }, + "attributeCriterionType": "exists", + "identity": 101, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 211": { + "Example 49": { "summary": "Cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a cross database link to table with identity 56 in Target_Database exists and the linked record has a populated float functional meta attribute with identity 33. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":56,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":false,"innerCriterion":{"innerCriterion":{"type":"floatFunctional"},"attributeCriterionType":"exists","identity":33,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":45,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 56, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": false, + "innerCriterion": { + "innerCriterion": { + "type": "floatFunctional" + }, + "attributeCriterionType": "exists", + "identity": 33, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 45, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 212": { + "Example 50": { "summary": "Reverse cross database link search", "description": "A search in MI_TRAINING from Metals Pedigree table ($ad27baf0-42e9-4136-bc96-9dbbf116e265) where a reverse cross database link from table 39 in Target_Database exists and the linked record has a populated file attribute with identity 87. Note that link searches must be made against a specific table", - "value": {"criterion":{"innerCriterion":{"targetTableIdentity":39,"targetDatabaseKey":"Target_Database","linkDatumType":"crossDatabaseLink","indirectLinks":"fromLinkDefinition","searchInReversedDirection":true,"innerCriterion":{"innerCriterion":{"type":"file"},"attributeCriterionType":"exists","identity":87,"isMetaAttribute":true,"type":"attribute"},"type":"link","localRowsBehavior":"AllRows"},"attributeCriterionType":"matches","identity":65,"isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "targetTableIdentity": 39, + "targetDatabaseKey": "Target_Database", + "linkDatumType": "crossDatabaseLink", + "indirectLinks": "fromLinkDefinition", + "searchInReversedDirection": true, + "innerCriterion": { + "innerCriterion": { + "type": "file" + }, + "attributeCriterionType": "exists", + "identity": 87, + "isMetaAttribute": true, + "type": "attribute" + }, + "type": "link", + "localRowsBehavior": "AllRows" + }, + "attributeCriterionType": "matches", + "identity": 65, + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 213": { + "Example 51": { "summary": "Paginated search", "description": "A free text search where only the first 5 results will be returned initially, and the results have a sliding expiration time of 10 minutes", - "value": {"criterion":{"value":"steel","attributes":{"filterOn":"all"},"localColumns":{"filterOn":"all"},"type":"text"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}],"pagingOptions":{"pageSize":5,"keepAliveInMinutes":10,"pageNumber":1}} + "value": { + "criterion": { + "value": "steel", + "attributes": { + "filterOn": "all" + }, + "localColumns": { + "filterOn": "all" + }, + "type": "text" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ], + "pagingOptions": { + "pageSize": 5, + "keepAliveInMinutes": 10, + "pageNumber": 1 + } + } }, - "Example 214": { + "Example 52": { "summary": "Float functional graph search", "description": "A search on the float functional attribute 'Young's modulus with temperature' for records that have at least one series, use the Temperature parameter (00000001-000a-4fff-8fff-0000ffff0000) on the X-Axis and are not marked as 'Show as table'", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalGraph","xAxisParameterGuid":"00000001-000a-4fff-8fff-0000ffff0000","numberOfSeriesGte":1,"showAsTable":false},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[{"type":"relevance","sortDirection":"ascending"}]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalGraph", + "xAxisParameterGuid": "00000001-000a-4fff-8fff-0000ffff0000", + "numberOfSeriesGte": 1, + "showAsTable": false + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [ + { + "type": "relevance", + "sortDirection": "ascending" + } + ] + } }, - "Example 215": { + "Example 53": { "summary": "Float functional search by attribute value", "description": "A search in MI_TRAINING on 'Young's modulus with temperature' for records that have a Young's Modulus of between 75 and 80 GPa at a temperature of 100°C", - "value": {"criterion":{"innerCriterion":{"type":"floatFunctionalData","gte":75.0,"lte":80.0,"constraints":[{"gte":100.0,"lte":100.0,"scaleType":"linear","interpolationType":"linear","type":"numeric","parameter":{"guid":"00000001-000a-4fff-8fff-0000ffff0000"}}]},"attributeCriterionType":"matches","guid":"00000001-0001-4fff-8fff-dd92ffff0000","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "type": "floatFunctionalData", + "gte": 75.0, + "lte": 80.0, + "constraints": [ + { + "gte": 100.0, + "lte": 100.0, + "scaleType": "linear", + "interpolationType": "linear", + "type": "numeric", + "parameter": { + "guid": "00000001-000a-4fff-8fff-0000ffff0000" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "00000001-0001-4fff-8fff-dd92ffff0000", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } }, - "Example 216": { + "Example 54": { "summary": "Discrete functional search", "description": "A search in MI_TRAINING on 'Environmental Resistance' for records that have a resistance of 'Good' or 'Very good' in the Chemical Environment of 'Fresh Water'", - "value": {"criterion":{"innerCriterion":{"anyGuids":["00000032-0007-4fff-8fff-000cffff0000","00000033-0007-4fff-8fff-000cffff0000"],"type":"discreteFunctionalValues","constraints":[{"any":["Fresh water"],"type":"discreteName","parameter":{"guid":"b7cee874-160f-439a-a784-b887c516b2d5"}}]},"attributeCriterionType":"matches","guid":"0cb16afc-c567-4e20-943c-9639b30fee62","isMetaAttribute":false,"type":"attribute"},"sortCriteria":[]} + "value": { + "criterion": { + "innerCriterion": { + "anyGuids": [ + "00000032-0007-4fff-8fff-000cffff0000", + "00000033-0007-4fff-8fff-000cffff0000" + ], + "type": "discreteFunctionalValues", + "constraints": [ + { + "any": [ + "Fresh water" + ], + "type": "discreteName", + "parameter": { + "guid": "b7cee874-160f-439a-a784-b887c516b2d5" + } + } + ] + }, + "attributeCriterionType": "matches", + "guid": "0cb16afc-c567-4e20-943c-9639b30fee62", + "isMetaAttribute": false, + "type": "attribute" + }, + "sortCriteria": [] + } } } } @@ -24348,6 +47591,9 @@ } } }, + "403": { + "description": "Forbidden" + }, "404": { "description": "Search not found" } @@ -24375,6 +47621,9 @@ "200": { "description": "Ok" }, + "403": { + "description": "Forbidden" + }, "404": { "description": "Search not found" } @@ -34411,11 +57660,9 @@ }, "GrantaServerApiSchemaDatabase": { "required": [ - "guid", "isLocked", "isReadOnly", "key", - "name", "status" ], "type": "object", @@ -34443,11 +57690,6 @@ "key": { "type": "string" }, - "versionGuid": { - "type": "string", - "format": "uuid", - "nullable": true - }, "status": { "$ref": "#/components/schemas/GrantaServerApiDatabaseStatus" }, @@ -34457,6 +57699,20 @@ "isLocked": { "type": "boolean" }, + "name": { + "type": "string", + "nullable": true + }, + "guid": { + "type": "string", + "format": "uuid", + "nullable": true + }, + "versionGuid": { + "type": "string", + "format": "uuid", + "nullable": true + }, "indexInSync": { "type": "boolean", "nullable": true @@ -34473,13 +57729,6 @@ "schemaVersion": { "type": "string", "nullable": true - }, - "name": { - "type": "string" - }, - "guid": { - "type": "string", - "format": "uuid" } }, "additionalProperties": false @@ -37210,11 +60459,9 @@ }, "GrantaServerApiSchemaSlimEntitiesSlimDatabase": { "required": [ - "guid", "isLocked", "isReadOnly", "key", - "name", "status" ], "type": "object", @@ -37222,11 +60469,6 @@ "key": { "type": "string" }, - "versionGuid": { - "type": "string", - "format": "uuid", - "nullable": true - }, "status": { "$ref": "#/components/schemas/GrantaServerApiDatabaseStatus" }, @@ -37236,6 +60478,20 @@ "isLocked": { "type": "boolean" }, + "name": { + "type": "string", + "nullable": true + }, + "guid": { + "type": "string", + "format": "uuid", + "nullable": true + }, + "versionGuid": { + "type": "string", + "format": "uuid", + "nullable": true + }, "indexInSync": { "type": "boolean", "nullable": true @@ -37252,13 +60508,6 @@ "schemaVersion": { "type": "string", "nullable": true - }, - "name": { - "type": "string" - }, - "guid": { - "type": "string", - "format": "uuid" } }, "additionalProperties": false @@ -40052,6 +63301,29 @@ "description": "dateTime: Criterion for matching records where the datetime data is within the given bounds. If one of gte or lte is null, this will be an open ended search.\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "dateTime" }, + "GrantaServerApiSearchDateTimeDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "dateTime" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "dateTime" + }, "GrantaServerApiSearchDatumCriterion": { "type": "object", "additionalProperties": false, @@ -40088,15 +63360,75 @@ "GrantaServerApiSearchDatumExistsCriterion": { "type": "object", "additionalProperties": false, - "description": "Inner criterion of an attribute search criterion for when the only bit of information about the datum that we want to convey is its type\r\nFor link datum types, linking information must also be provided.\r\n\r\nThis is one of: \r\n * GrantaServerApiSearchLinkExistsDatumCriterion\r\n * GrantaServerApiSearchSimpleDatumExistsCriterion", + "description": "Inner criterion of an attribute search criterion for when the only bit of information about the datum that we want to convey is its type\r\nFor link datum types, linking information must also be provided.\r\n\r\nThis is one of: \r\n * GrantaServerApiSearchIntegerDatumExistsCriterion\r\n * GrantaServerApiSearchPointDatumExistsCriterion\r\n * GrantaServerApiSearchRangeDatumExistsCriterion\r\n * GrantaServerApiSearchLogicalDatumExistsCriterion\r\n * GrantaServerApiSearchShortTextDatumExistsCriterion\r\n * GrantaServerApiSearchLongTextDatumExistsCriterion\r\n * GrantaServerApiSearchDateTimeDatumExistsCriterion\r\n * GrantaServerApiSearchDiscreteDatumExistsCriterion\r\n * GrantaServerApiSearchHyperlinkDatumExistsCriterion\r\n * GrantaServerApiSearchFileDatumExistsCriterion\r\n * GrantaServerApiSearchPictureDatumExistsCriterion\r\n * GrantaServerApiSearchLinkExistsDatumCriterion\r\n * GrantaServerApiSearchFloatFunctionalDatumExistsCriterion\r\n * GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion\r\n * GrantaServerApiSearchMathsFunctionalDatumExistsCriterion\r\n * GrantaServerApiSearchTabularDatumExistsCriterion", "discriminator": { "propertyName": "type", "mapping": { + "integer": "#/components/schemas/GrantaServerApiSearchIntegerDatumExistsCriterion", + "point": "#/components/schemas/GrantaServerApiSearchPointDatumExistsCriterion", + "range": "#/components/schemas/GrantaServerApiSearchRangeDatumExistsCriterion", + "logical": "#/components/schemas/GrantaServerApiSearchLogicalDatumExistsCriterion", + "shortText": "#/components/schemas/GrantaServerApiSearchShortTextDatumExistsCriterion", + "longText": "#/components/schemas/GrantaServerApiSearchLongTextDatumExistsCriterion", + "dateTime": "#/components/schemas/GrantaServerApiSearchDateTimeDatumExistsCriterion", + "discrete": "#/components/schemas/GrantaServerApiSearchDiscreteDatumExistsCriterion", + "hyperlink": "#/components/schemas/GrantaServerApiSearchHyperlinkDatumExistsCriterion", + "file": "#/components/schemas/GrantaServerApiSearchFileDatumExistsCriterion", + "picture": "#/components/schemas/GrantaServerApiSearchPictureDatumExistsCriterion", "link": "#/components/schemas/GrantaServerApiSearchLinkExistsDatumCriterion", - "type": "#/components/schemas/GrantaServerApiSearchSimpleDatumExistsCriterion" + "floatFunctional": "#/components/schemas/GrantaServerApiSearchFloatFunctionalDatumExistsCriterion", + "discreteFunctional": "#/components/schemas/GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion", + "mathsFunctional": "#/components/schemas/GrantaServerApiSearchMathsFunctionalDatumExistsCriterion", + "tabular": "#/components/schemas/GrantaServerApiSearchTabularDatumExistsCriterion" } } }, + "GrantaServerApiSearchDiscreteDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "discrete" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "discrete" + }, + "GrantaServerApiSearchDiscreteFunctionalDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "discreteFunctional" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "discreteFunctional" + }, "GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion": { "required": [ "type" @@ -40587,6 +63919,29 @@ "description": "\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "file" }, + "GrantaServerApiSearchFileDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "file" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "file" + }, "GrantaServerApiSearchFloatFunctionalDatumCriterion": { "required": [ "type" @@ -40631,6 +63986,29 @@ "description": "floatFunctionalData: Criterion for matching records with float functional data\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "floatFunctionalData" }, + "GrantaServerApiSearchFloatFunctionalDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "floatFunctional" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "floatFunctional" + }, "GrantaServerApiSearchFloatFunctionalGraphDatumCriterion": { "required": [ "type" @@ -40800,6 +64178,29 @@ "description": "hyperlink: Criterion for matching records where the hyperlink description contains the given value.\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "hyperlink" }, + "GrantaServerApiSearchHyperlinkDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "hyperlink" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "hyperlink" + }, "GrantaServerApiSearchIndexStatus": { "type": "object", "properties": { @@ -40887,6 +64288,29 @@ "description": "integer: Criterion for matching records where the integer data is within the given bounds. If one of gte or lte is null, this will be an open ended search.\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "integer" }, + "GrantaServerApiSearchIntegerDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "integer" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "integer" + }, "GrantaServerApiSearchLinkDatumCriterion": { "required": [ "type" @@ -41183,6 +64607,29 @@ "description": "\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "logical" }, + "GrantaServerApiSearchLogicalDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "logical" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "logical" + }, "GrantaServerApiSearchLongSortingValue": { "required": [ "type" @@ -41238,6 +64685,29 @@ "description": "\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "longText" }, + "GrantaServerApiSearchLongTextDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "longText" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "longText" + }, "GrantaServerApiSearchMathsFunctionalDatumCriterion": { "required": [ "type" @@ -41282,6 +64752,29 @@ "description": "mathsFunctional: Criterion for matching records with maths functional data (EELs)\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "mathsFunctional" }, + "GrantaServerApiSearchMathsFunctionalDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "mathsFunctional" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "mathsFunctional" + }, "GrantaServerApiSearchNumericParameterConstraint": { "required": [ "type" @@ -41396,6 +64889,29 @@ "description": "picture: Criterion for matching records where picture data exists.\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "picture" }, + "GrantaServerApiSearchPictureDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "picture" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "picture" + }, "GrantaServerApiSearchPointDatumCriterion": { "required": [ "type" @@ -41431,6 +64947,29 @@ "description": "Criterion for matching records where the point data is within the given bounds. If one of gte or lte is null, this will be an open ended search.\r\nIf this is a unitted attribute, the search values should be given in terms of the units defined for the attribute in the database/integration schema.\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "point" }, + "GrantaServerApiSearchPointDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "point" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "point" + }, "GrantaServerApiSearchRangeDatumCriterion": { "required": [ "type" @@ -41466,6 +65005,29 @@ "description": "Criterion for matching records where the range data is within the given bounds. If one of gte or lte is null, this will be an open ended search.\r\nIf this is a unitted attribute, the search values should be given in terms of the units defined for the attribute in the database/integration schema.\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "range" }, + "GrantaServerApiSearchRangeDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "range" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "range" + }, "GrantaServerApiSearchRecordAncestorCriterion": { "required": [ "type" @@ -41905,7 +65467,7 @@ "description": "\r\n\r\nThis extends: GrantaServerApiSearchDatumCriterion", "x-discriminator-value": "shortText" }, - "GrantaServerApiSearchSimpleDatumExistsCriterion": { + "GrantaServerApiSearchShortTextDatumExistsCriterion": { "required": [ "type" ], @@ -41919,14 +65481,14 @@ "properties": { "type": { "type": "string", - "default": "type" + "default": "shortText" } } } ], "additionalProperties": false, "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", - "x-discriminator-value": "type" + "x-discriminator-value": "shortText" }, "GrantaServerApiSearchSortCriterion": { "type": "object", @@ -42001,6 +65563,29 @@ "description": "\r\n\r\nThis extends: GrantaServerApiSearchSortingValue", "x-discriminator-value": "text" }, + "GrantaServerApiSearchTabularDatumExistsCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "default": "tabular" + } + } + } + ], + "additionalProperties": false, + "description": "Inner criterion of an attribute exists search criterion for when the only bit of information about the datum that we want to convey is its type\r\n\r\nThis extends: GrantaServerApiSearchDatumExistsCriterion", + "x-discriminator-value": "tabular" + }, "GrantaServerApiSearchTabularLinkingValueCriterion": { "required": [ "type" From bfaa52d2ac9803e5278848412681e94008dd26a4 Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Fri, 19 Apr 2024 08:13:52 -0400 Subject: [PATCH 27/31] Fix pre-commit hooks in code generation (#183) Co-authored-by: ludovicsteinbach --- .github/workflows/generate_library.yml | 1 + ansys-grantami-serverapi-openapi/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_library.yml b/.github/workflows/generate_library.yml index dcc875a2..e0dbae70 100644 --- a/.github/workflows/generate_library.yml +++ b/.github/workflows/generate_library.yml @@ -61,6 +61,7 @@ jobs: - name: "Install and run pre-commit" run: | pip install pre-commit + git add ansys-grantami-serverapi-openapi/ ! pre-commit run --all-files - name: "Commit changes to library code" diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 28c03dac..1bcad6b5 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 = "3.0.0.dev240" +version = "3.0.0.dev244" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] From 238a85c4d179ed5849601412ff86a5466b20e6c0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 19 Apr 2024 13:02:16 +0000 Subject: [PATCH 28/31] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../grantami/serverapi_openapi/__init__.py | 3 -- .../serverapi_openapi/api/integration_api.py | 8 +--- .../api/list_management_api.py | 48 +++++-------------- .../serverapi_openapi/models/__init__.py | 1 - 4 files changed, 14 insertions(+), 46 deletions(-) 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 aed27506..1eb1c0b0 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 @@ -305,9 +305,6 @@ from .models.granta_server_api_data_discrete_parameter_with_value import ( GrantaServerApiDataDiscreteParameterWithValue, ) -from .models.granta_server_api_data_discrete_parameter_with_value import ( - GrantaServerApiDataDiscreteParameterWithValue, -) from .models.granta_server_api_data_export_attribute_to_export import ( GrantaServerApiDataExportAttributeToExport, ) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py index cb522b0f..8cff74fb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py @@ -820,9 +820,7 @@ def update_schema( ------- Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] """ - data = self._update_schema_with_http_info( - schema, body, _return_http_data_only=True - ) + data = self._update_schema_with_http_info(schema, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _update_schema_with_http_info( @@ -849,9 +847,7 @@ def _update_schema_with_http_info( del params["kwargs"] # verify the required parameter "schema" is set if "schema" not in params or params["schema"] is None: - raise ValueError( - "Missing the required parameter 'schema' when calling 'update_schema'" - ) + raise ValueError("Missing the required parameter 'schema' when calling 'update_schema'") collection_formats: Dict[str, Any] = {} diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py index 80089d91..e64cfffc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py @@ -1106,14 +1106,10 @@ def publish_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._publish_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._publish_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _publish_list_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _publish_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -1192,14 +1188,10 @@ def request_approval( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._request_approval_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._request_approval_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _request_approval_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _request_approval_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -1283,9 +1275,7 @@ def reset_awaiting_approval( ) return data # type: ignore[no-any-return] - def _reset_awaiting_approval_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _reset_awaiting_approval_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -1364,9 +1354,7 @@ def revise_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._revise_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._revise_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] def _revise_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: @@ -1380,9 +1368,7 @@ def _revise_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> 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 revise_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method revise_list") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set @@ -1448,9 +1434,7 @@ def run_record_lists_search( ------- Union[GrantaServerApiListsDtoRecordListSearchInfo, None] """ - data = self._run_record_lists_search_with_http_info( - body, _return_http_data_only=True - ) + data = self._run_record_lists_search_with_http_info(body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _run_record_lists_search_with_http_info( @@ -1540,14 +1524,10 @@ def unpublish_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._unpublish_list_with_http_info( - list_identifier, _return_http_data_only=True - ) + data = self._unpublish_list_with_http_info(list_identifier, _return_http_data_only=True) return data # type: ignore[no-any-return] - def _unpublish_list_with_http_info( - self, list_identifier: "str", **kwargs: Any - ) -> Any: + def _unpublish_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -1630,9 +1610,7 @@ def update_list( ------- Union[GrantaServerApiListsDtoRecordListHeader, None] """ - data = self._update_list_with_http_info( - list_identifier, body, _return_http_data_only=True - ) + data = self._update_list_with_http_info(list_identifier, body, _return_http_data_only=True) return data # type: ignore[no-any-return] def _update_list_with_http_info( @@ -1652,9 +1630,7 @@ def _update_list_with_http_info( 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 update_list" - ) + raise TypeError(f"Got an unexpected keyword argument '{key}' to method update_list") params[key] = val del params["kwargs"] # verify the required parameter "list_identifier" is set 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 227b39bd..60c74063 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 @@ -1750,7 +1750,6 @@ from .microsoft_asp_net_core_mvc_object_result import MicrosoftAspNetCoreMvcObjectResult from .system_net_http_status_code import SystemNetHttpStatusCode - __all__ = [ "ModelBase", "Unset", From a93efcde7604851a2a89e1a6c89c41184ddbabd1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" Date: Fri, 19 Apr 2024 13:04:10 +0000 Subject: [PATCH 29/31] Generate Client Library code - Automated --- .../pyproject.toml | 4 +- .../serverapi_openapi/api/integration_api.py | 101 --- .../api/list_management_api.py | 602 ------------------ ...youts_new_layout_association_chain_link.py | 5 - ..._server_api_schema_parameters_parameter.py | 5 - 5 files changed, 2 insertions(+), 715 deletions(-) diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 73907a08..8d43aab6 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 = "3.0.0.dev244" +version = "3.0.0a3" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] @@ -14,7 +14,7 @@ documentation = "https://grantami.docs.pyansys.com" readme = "README.md" keywords = ["Ansys", "OpenAPI"] classifiers = [ - "Development Status :: 3 - Alpha", + "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py index 8cff74fb..b50873da 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py @@ -800,104 +800,3 @@ def _update_schema_with_http_info( collection_formats=collection_formats, response_type_map=response_type_map, ) - - def update_schema( - self, - *, - schema: "str", - body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, - ) -> "Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None]": - """Updates an integration schema, or adds a new one if there is not one with the same key already. Will fail if the schema is not valid, or if the user is not both a global administrator and an administrator for the schema. - - This method makes a synchronous HTTP request. - - Parameters - ---------- - schema: str - body: GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier - - Returns - ------- - Union[GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, None] - """ - data = self._update_schema_with_http_info(schema, body, _return_http_data_only=True) - return data # type: ignore[no-any-return] - - def _update_schema_with_http_info( - self, - schema: "str", - body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, - **kwargs: Any, - ) -> Any: - all_params = [ - "schema", - "body", - "_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 update_schema" - ) - params[key] = val - del params["kwargs"] - # verify the required parameter "schema" is set - if "schema" not in params or params["schema"] is None: - raise ValueError("Missing the required parameter 'schema' when calling 'update_schema'") - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - if "schema" in params and schema is not None: - path_params["schema"] = params["schema"] - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/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]] = { - 201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", - 400: None, - 403: None, - } - - return self.api_client.call_api( - "/v1alpha/integration-schemas/{schema}", - "PUT", - 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/list_management_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py index e64cfffc..f8e588a6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py @@ -1090,605 +1090,3 @@ def _update_list_with_http_info( collection_formats=collection_formats, response_type_map=response_type_map, ) - - def publish_list( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to \"published\". The list must be awaiting approval, and not already published. The \"awaiting approval\" flag will be reset to false. - - This method makes a synchronous HTTP request. - - Parameters - ---------- - list_identifier: str - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] - """ - data = self._publish_list_with_http_info(list_identifier, _return_http_data_only=True) - return data # type: ignore[no-any-return] - - def _publish_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: - all_params = [ - "list_identifier", - "_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 publish_list" - ) - params[key] = val - del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'publish_list'" - ) - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/json"] - ) - - response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiListsDtoRecordListHeader", - 400: None, - 403: None, - 404: None, - } - - return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/publish", - "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 request_approval( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to \"awaiting approval\". - - This method makes a synchronous HTTP request. - - Parameters - ---------- - list_identifier: str - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] - """ - data = self._request_approval_with_http_info(list_identifier, _return_http_data_only=True) - return data # type: ignore[no-any-return] - - def _request_approval_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: - all_params = [ - "list_identifier", - "_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 request_approval" - ) - params[key] = val - del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'request_approval'" - ) - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/json"] - ) - - response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiListsDtoRecordListHeader", - 400: None, - 403: None, - 404: None, - } - - return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/request-approval", - "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 reset_awaiting_approval( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to not be \"awaiting approval\". - - This method makes a synchronous HTTP request. - - Parameters - ---------- - list_identifier: str - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] - """ - data = self._reset_awaiting_approval_with_http_info( - list_identifier, _return_http_data_only=True - ) - return data # type: ignore[no-any-return] - - def _reset_awaiting_approval_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: - all_params = [ - "list_identifier", - "_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 reset_awaiting_approval" - ) - params[key] = val - del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'reset_awaiting_approval'" - ) - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/json"] - ) - - response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiListsDtoRecordListHeader", - 400: None, - 403: None, - 404: None, - } - - return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/reset", - "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 revise_list( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Creates a private copy of a list that can be revised. - - This method makes a synchronous HTTP request. - - Parameters - ---------- - list_identifier: str - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] - """ - data = self._revise_list_with_http_info(list_identifier, _return_http_data_only=True) - return data # type: ignore[no-any-return] - - def _revise_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: - all_params = [ - "list_identifier", - "_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 revise_list") - params[key] = val - del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'revise_list'" - ) - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/json"] - ) - - response_type_map: Dict[int, Optional[str]] = { - 201: "GrantaServerApiListsDtoRecordListHeader", - 400: None, - 403: None, - 404: None, - } - - return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/revise", - "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 run_record_lists_search( - self, *, body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None - ) -> "Union[GrantaServerApiListsDtoRecordListSearchInfo, None]": - """Posts a search request, and returns an object containing search result identifier - - This method makes a synchronous HTTP request. - - Parameters - ---------- - body: GrantaServerApiListsDtoRecordListSearchRequest - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListSearchInfo, None] - """ - data = self._run_record_lists_search_with_http_info(body, _return_http_data_only=True) - return data # type: ignore[no-any-return] - - def _run_record_lists_search_with_http_info( - self, - body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None, - **kwargs: Any, - ) -> Any: - all_params = [ - "body", - "_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 run_record_lists_search" - ) - params[key] = val - del params["kwargs"] - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/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]] = { - 201: "GrantaServerApiListsDtoRecordListSearchInfo", - 400: None, - 403: None, - } - - return self.api_client.call_api( - "/api/v1/lists/search", - "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 unpublish_list( - self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Update the status of an existing list to \"unpublished\". The list must be published, and awaiting approval. The \"awaiting approval\" flag will be reset to false. - - This method makes a synchronous HTTP request. - - Parameters - ---------- - list_identifier: str - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] - """ - data = self._unpublish_list_with_http_info(list_identifier, _return_http_data_only=True) - return data # type: ignore[no-any-return] - - def _unpublish_list_with_http_info(self, list_identifier: "str", **kwargs: Any) -> Any: - all_params = [ - "list_identifier", - "_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 unpublish_list" - ) - params[key] = val - del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'unpublish_list'" - ) - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/json"] - ) - - response_type_map: Dict[int, Optional[str]] = { - 200: "GrantaServerApiListsDtoRecordListHeader", - 400: None, - 403: None, - 404: None, - } - - return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}/unpublish", - "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 update_list( - self, - *, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Performs a partial update on the properties of a list. - - This method makes a synchronous HTTP request. - - Parameters - ---------- - list_identifier: str - body: GrantaServerApiListsDtoUpdateRecordListProperties - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] - """ - data = self._update_list_with_http_info(list_identifier, body, _return_http_data_only=True) - return data # type: ignore[no-any-return] - - def _update_list_with_http_info( - self, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, - **kwargs: Any, - ) -> Any: - all_params = [ - "list_identifier", - "body", - "_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 update_list") - params[key] = val - del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'update_list'" - ) - - collection_formats: Dict[str, Any] = {} - - path_params: Dict[str, Any] = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] - - query_params: List[Any] = [] - - header_params: Dict[str, Any] = {} - - 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( - ["text/plain", "application/json", "text/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: "GrantaServerApiListsDtoRecordListHeader", - 400: None, - 403: None, - 404: None, - } - - return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}", - "PATCH", - 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/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py index e31c4b8f..1b16d7d9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_association_chain_link.py @@ -149,11 +149,6 @@ def source_database_version_guid(self, source_database_version_guid: "str") -> N if source_database_version_guid is None: raise ValueError("Invalid value for 'source_database_version_guid', must not be 'None'") # Field is required - if source_database_version_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'source_database_version_guid', must not be 'Unset'" - ) - # Field is required if source_database_version_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] raise ValueError( "Invalid value for 'source_database_version_guid', must not be 'Unset'" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py index 8573179a..d60074a7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_parameter.py @@ -165,11 +165,6 @@ def default_parameter_value_guid(self, default_parameter_value_guid: "str") -> N if default_parameter_value_guid is None: raise ValueError("Invalid value for 'default_parameter_value_guid', must not be 'None'") # Field is required - if default_parameter_value_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] - raise ValueError( - "Invalid value for 'default_parameter_value_guid', must not be 'Unset'" - ) - # Field is required if default_parameter_value_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] raise ValueError( "Invalid value for 'default_parameter_value_guid', must not be 'Unset'" From fc0911a33eb2f9414139229e8792b6358dc44b83 Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Fri, 19 Apr 2024 15:10:10 +0200 Subject: [PATCH 30/31] Set version to 3.0.0a4 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7d652db6..ff3ec916 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 io.swagger AnsysPython-swagger-codegen - 3.0.0a3 + 3.0.0a4 jar AnsysPython-swagger-codegen From 3bd1cd962aab1ca9b89d98ed9df7ca64e2bf80e5 Mon Sep 17 00:00:00 2001 From: ludovicsteinbach Date: Fri, 19 Apr 2024 13:12:44 +0000 Subject: [PATCH 31/31] Generate Client Library code - Automated --- ansys-grantami-serverapi-openapi/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 8d43aab6..0a6a5baa 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 = "3.0.0a3" +version = "3.0.0a4" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "]